implement --replace for ftp-upload protocol v1.2
[gnulib.git] / ChangeLog
1 2012-06-10  Karl Berry  <karl@gnu.org>
2
3         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
4
5 2012-06-10  Bruce Korb  <bkorb@gnu.org>
6
7         parse-duration: Relicense under LGPLv2+.
8         * modules/parse-duration (License): Change to LGPLv2+.
9
10 2012-06-10  Jim Meyering  <meyering@redhat.com>
11
12         maint.mk: prohibit common grammar error: "all these"
13         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
14         the list of prohibited word sequences.  It should be "all of these".
15         * lib/tempname.c (__gen_tempname): Fix one of them.
16
17 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
18
19         do-release-commit-and-tag: support VPATH builds
20         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
21         (noteworthy): Defined earlier to factor its value.
22         (noteworthy_stub): New.
23         Use it to factor.
24         (help_version): Split into...
25         (help, version): these.
26         Adjust the option processing part.
27         Support "--option=value" in addition to "--option value".
28         (builddir): New.
29         (--builddir): New option.
30         * top/README-release: Document this.
31         Reword slightly so that the reader cannot understand that he
32         has to do these steps before calling do-release-commit-and-tag.
33
34 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
35
36         readme-release: also require announce-gen and maintainer-makefile
37         * modules/readme-release (Depends-on): here.
38         * modules/announce-gen, modules/do-release-commit-and-tag,
39         modules/gnu-web-doc-update, modules/maintainer-makefile
40         (Description): Point to readme-release.
41
42 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
43
44         maint.mk: fix VPATH issues.
45         * top/maint.mk (news-check): GNU Make understand $< very well.
46         (release-prep): NEWS is in $(srcdir).
47
48 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
49
50         readme-release: require the promoted modules.
51         * modules/readme-release (Depends-on): Add
52         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
53         in this text.
54
55 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
56             Bruno Haible  <bruno@clisp.org>
57
58         error, strerror-override: Support mingw64 from Fedora 17.
59         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
60         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
61         EINPROGRESS.
62         * lib/strerror-override.h (strerror_override): Test it.
63         * lib/strerror-override.c (strerror_override): Likewise.
64         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
65
66 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
67             Bruno Haible  <bruno@clisp.org>
68
69         error, strerror-override: Support mingw64 from Fedora 17.
70         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
71         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
72         * lib/strerror-override.h (strerror_override): Test it.
73         * lib/strerror-override.c (strerror_override): Likewise.
74
75 2012-06-03  Bruno Haible  <bruno@clisp.org>
76
77         error, strerror-override: Support new errno values from POSIX:2008.
78         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
79         ENOTRECOVERABLE.
80         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
81         platforms.
82         * lib/strerror-override.c (strerror_override): Conditionalize the
83         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
84         * lib/strerror-override.h (strerror_override): Declare also if
85         GNULIB_defined_EOWNERDEAD is defined.
86         * tests/test-errno.c (e130, e131): New variables.
87         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
88         ENOTRECOVERABLE.
89         Reported by Paolo Bonzini.
90
91 2012-05-31  Jim Meyering  <meyering@redhat.com>
92
93         savewd: add missing dependency on sys_wait module
94         * modules/savewd (Depends-on): Add sys_wait, needed at least
95         for MSVC.  Report and suggested change by Michael Goffioul.
96
97 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
98
99         system-quote-tests: port to CentOS 5
100         Problem reported by Tom G. Christensen in
101         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
102         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
103
104 2012-05-29  Jim Meyering  <meyering@redhat.com>
105
106         maint: fix typos in comments and ChangeLog
107         Culprits identified and fixed mostly automatically using these commands:
108         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
109         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
110         using http://github.com/lyda/misspell-check
111         * ChangeLog: Fix typos.
112         * doc/solaris-versions: Likewise.
113         * lib/regexec.c (re_search_stub): Likewise.
114         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
115
116 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
117
118         manywarnings: remove duplicate -Wmultichar entry
119         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
120         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
121         so keep the entry marked as documented.
122
123 2012-05-27  Karl Berry  <karl@gnu.org>
124
125         * config/srclist.txt (mktime.c): remove last libc sync,
126         perhaps just temporarily.
127
128 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
129
130         regex: don't assume uint64_t or uint32_t
131         * lib/regcomp.c (init_word_char): Don't assume that the types
132         uint64_t and uint32_t exist.  The C standard doesn't guarantee
133         them, and on some 32-bit compilers there is no uint64_t.
134         Problem reported by Gianluigi Tiesi in
135         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
136
137 2012-05-25  Jim Meyering  <meyering@redhat.com>
138
139         maint.mk: add strncpy-prohibiting syntax-check rule
140         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
141
142 2012-05-24  Jim Meyering  <meyering@redhat.com>
143
144         maint.mk: compute $(gpg_key_ID) more portably
145         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
146         That use of sed is not portable to some fringe systems.
147         Reported by Paul Eggert in
148         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
149
150 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
151
152         mktime: sync from glibc
153         * config/srclist.txt: Uncomment mktime.c.
154         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
155         First, indent with tabs, since glibc uses tabs and doesn't want to
156         change and we'd rather be identical to glibc.  Also, two small
157         coding changes:
158         (isdst_differ): Use &&, not &, as && is the usual style.
159         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
160         for clarity.
161
162 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
163
164         announce-gen: du -h is more portable than du --human
165         * build-aux/announce-gen (sizes): Invoke du with -h instead
166         of --human.  Accept leading white space in its output.
167
168 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
169
170         announce-gen: Improve diagnostics.
171         * build-aux/announce-gen: When parsing command line options,
172         prefer "announce-gen: option --release-type requires an argument"
173         to "Option release-type requires an argument".
174
175 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
176
177         maint.mk: gpg_key_ID: use sed more portably
178         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
179         the closing brace.
180         (refresh-po): Fuse two sed invocations into one.
181
182 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
183
184         gitlog-to-changelog: support the log message format used in Bison.
185         * build-aux/gitlog-to-changelog: Support --strip-tab and
186         --strip-cherry-picked.
187
188 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
189
190         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
191         the rest of the current time slice to another thread in the current
192         process. So if the thread that feeds the file decscriptor we're
193         polling is not in the current process, we get busy-waiting.
194         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
195         Patch from Theodore Leblond.
196         * lib/select.c: Split polling out of the loop that sets the output
197         fd_sets.  Check for zero result and loop if the wait timeout is
198         infinite.
199
200 2012-05-21  Simon Josefsson  <simon@josefsson.org>
201
202         select: Fix build error on IRIX 6.5.
203         * lib/select.c: Include stddef.h for NULL.
204
205 2012-05-21  Simon Josefsson  <simon@josefsson.org>
206
207         gc: fix libgcrypt detection on older machines.
208         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
209         copyright years because the file has been distributed every year
210         since it was created.
211
212 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
213
214         crypto: fix bug in large buffer handling
215         Problem reported by Serge Belyshev for glibc in
216         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
217         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
218         * lib/md4.c (md4_process_block):
219         * lib/md5.c (md5_process_block):
220         * lib/sha1.c (sha1_process_block):
221         * lib/sha256.c (sha256_process_block):
222         Don't assume the buffer length is less than 2**32.
223         * lib/sha512.c (sha512_process_block): Likewise.
224         Here, the bug is present only in the rare case where the host does
225         not support uint64_t or where size_t is wider than 64 bits.
226         Use u64size to work around the problems.
227         * lib/u64.h (u64size): New macro.
228
229 2012-05-15  Pádraig Brady  <P@draigBrady.com>
230
231         fsusage: fix block size returned on older Linux 2.6
232
233         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
234         which is available since Linux 2.6.
235         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
236         when the member is available so it can be used as a fallback.
237         * doc/posix-functions/statvfs.texi: Mention the hang issue
238         on Linux < 2.6.36.
239
240 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
241
242         bootstrap: suppress stderr chatter
243         * build-aux/bootstrap (insert_sorted_if_absent, main program):
244         Omit unnecessary chatter to stderr.  The main program chatter
245         was there only inadvertantly.
246
247         bootstrap: .gitignore files created by autopoint, libtool
248         I ran into this problem when bootstrapping the latest diffutils.
249         After './bootstrap', 'git status' reported lots of untracked files
250         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
251         autopoint and do not need to be version-controlled.
252         * build-aux/bootstrap: Put into .gitignore the files that
253         autopoint and libtool create, by keeping track of files that exist
254         after but not before these programs are run.
255         (version_controlled_file): Move up.  2nd arg is now full file
256         name, not base name; this is more convenient.  Put CVS at the end,
257         as it's now somewhat deprecated.
258
259 2012-05-14  Jim Meyering  <meyering@redhat.com>
260
261         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
262         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
263         definition.  Reported by Bruno Haible.
264
265 2012-05-13  Bruno Haible  <bruno@clisp.org>
266             Paul Eggert  <eggert@cs.ucla.edu>
267
268         binary-io: Define set_binary_mode function.
269         * lib/binary-io.h (set_binary_mode): New function.
270         (SET_BINARY): Define in terms of set_binary_mode.
271         * modules/binary-io (configure.ac): Require AC_C_INLINE.
272         * tests/test-binary-io.c (main): Accept an argument, and test either
273         set_binary_mode or SET_BINARY depending on the argument.
274         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
275         argument. Clean up also t-bin-out0.tmp.
276
277 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
278
279         bootstrap: take advantage of POSIX shell features
280
281         The 'bootstrap' script offered by Gnulib script already uses POSIX
282         shell features (like $((...)) arithmetic expansions) that are not
283         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
284         means that bootstrap must already be run using a proper POSIX shell,
285         which will thus provide more features, like ${var#pattern} parameter
286         expansion or inversion of a command exit status with '!'.  We can
287         thus use these features to improve the clarity and the performances
288         of the bootstrap script.
289
290         Suggested by Eric Blake.
291
292         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
293         of sed/expr plus command substitutions, to save some forks.  While
294         we are at it, prefer the POSIX $(...) form of command substitution,
295         rather than the legacy form `...` (since the former is visually
296         clearer and interacts better with quoting), and prefer the idiom:
297           "if ! CMD; then ACTION ..."
298         over the idiom:
299           "if CMD; then :; else ACTION ..."
300         which was required by legacy Bourne shells not supporting '!'.
301
302 2012-05-12  Bruno Haible  <bruno@clisp.org>
303
304         system-quote: Add more comments.
305         * lib/system-quote.h: Add more comments about wilcards and limitations.
306         Suggested by Eli Zaretskii <eliz@gnu.org>.
307
308         sh-quote, system-quote: Add comments about wildcards.
309         * lib/sh-quote.h: Clarify what happens with wildcard characters.
310         * lib/system-quote.h: Likewise.
311         Reported by Eli Zaretskii <eliz@gnu.org>.
312
313 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
314
315         fsusage: check for GNU/Linux statvfs problem dynamically
316         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
317         Define STAT_STATFS2_BSIZE too, since in this case the code now
318         checks dynamically whether statvfs is reliable, falling back on
319         Linux-style statfs otherwise.
320         (statvfs_works): New function, for dynamically testing statvfs.
321         (get_fs_usage) [STAT_STATVFS]: Use it.
322         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
323         statvfs on GNU/Linux hosts, since it's now done dynamically.
324
325 2012-05-10  Bruno Haible  <bruno@clisp.org>
326
327         system-quote, execute, spawn-pipe: Escape '?' on Windows.
328         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
329         '?' character.
330         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
331         * tests/test-system-quote-main.c (check_all): Check also strings like
332         "??????????".
333         Reported by Eli Zaretskii <eliz@gnu.org>.
334
335 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
336
337         _Noreturn: port config.h to gcc -Wundef
338         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
339         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
340         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
341
342 2012-05-10  Bruno Haible  <bruno@clisp.org>
343
344         system-quote: Refactor.
345         * lib/system-quote.h (system_quote_copy): Fix comment.
346         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
347         New functions, extracted from system_quote_copy.
348         (system_quote_length, system_quote_copy): Use these functions.
349         Reported by Paul Eggert.
350
351 2012-05-08  Bruno Haible  <bruno@clisp.org>
352
353         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
354         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
355
356 2012-05-08  Bruno Haible  <bruno@clisp.org>
357
358         Tests for module 'system-quote'.
359         * modules/system-quote-tests: New file.
360         * tests/test-system-quote.sh: New file.
361         * tests/test-system-quote-main.c: New file.
362         * tests/test-system-quote-child.c: New file.
363
364         New module 'system-quote'.
365         * lib/system-quote.h: New file.
366         * lib/system-quote.c: New file.
367         * modules/system-quote: New file.
368
369 2012-05-08  Bruno Haible  <bruno@clisp.org>
370
371         sh-quote: Make C++ safe and allow multiple inclusion.
372         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
373         declarations in extern "C".
374
375 2012-05-08  Bruno Haible  <bruno@clisp.org>
376
377         sh-quote tests: Make tests stricter.
378         * tests/test-sh-quote.c (check_one): Check the return value of
379         shell_quote_copy.
380         (main): Check a string with a CR character. Check a string that
381         contains UCHAR_MAX.
382
383 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
384
385         warnings.m4: provide a means to specify the program to compile.
386         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
387         (gl_WARN_ADD): here.
388         Use gl_AS_VAR_APPEND.
389         Support an argument to specify the program to compile.
390         (gl_WARN_ADD): Accept an argument to specify the program to compile.
391         AC_SUBST the WARN_CFLAGS when they are used.
392         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
393         leave this to gl_WARN_ADD.
394
395 2012-05-08  Eric Blake  <eblake@redhat.com>
396
397         doc: recommendations on gettext version
398         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
399         choice between versions.
400         * DEPENDENCIES (gettext): Cover both approaches.
401
402 2012-05-08  Jim Meyering  <meyering@redhat.com>
403
404         init.sh: explain why EXEEXT support uses aliases rather than functions
405         * tests/init.sh: Add a comment.
406
407         init.sh: don't let bash aliases interfere with tests
408         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
409         is bash.  This avoids problems for those who alias standard commands to
410         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
411         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
412
413 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
414
415         stdint: be more consistent with glibc, SunOS libc
416         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
417         (gl_int_fast16_t, gl_uint_fast16_t)
418         (gl_int_fast32_t, gl_uint_fast32_t)
419         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
420         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
421         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
422         Be consistent with glibc by default, and with SunOS 5.10 and later
423         if __sun is defined.  This lessens the likelihood of clashes if
424         code compiled for older hosts is combined with code compiled for
425         newer ones.  Problem reported by Niels Möller in
426         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
427
428 2012-05-07  Eric Blake  <eblake@redhat.com>
429
430         isatty: relax license to LGPLv2+
431         * modules/isatty (License): Relax license.
432
433 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
434
435         stat-size: comment fix
436         * lib/stat-size.h: Remove obsolete comment about indenting.
437
438 2012-05-06  Bruno Haible  <bruno@clisp.org>
439
440         Tests for module 'sh-quote'.
441         * modules/sh-quote-tests: New file.
442         * tests/test-sh-quote.c: New file.
443
444 2012-05-06  Bruno Haible  <bruno@clisp.org>
445
446         sh-quote: Improve shell_quote_argv's signature.
447         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
448         * lib/sh-quote.c (shell_quote_argv): Likewise.
449
450 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
451
452         stdint: document issues with int_fast8_t etc.
453         * doc/posix-headers/stdint.texi (stdint.h): Say that other
454         stdint.h substitutes may define these types differently.  See
455         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
456
457 2012-05-05  Bruno Haible  <bruno@clisp.org>
458
459         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
460         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
461         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
462         or 'guessing no (mishandles large arguments)'.
463
464 2012-05-05  Bruno Haible  <bruno@clisp.org>
465
466         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
467         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
468         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
469         set gl_cv_func_link_follows_symlink to "guessing no".
470
471 2012-05-05  Bruno Haible  <bruno@clisp.org>
472
473         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
474         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
475         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
476         "guessing no".
477         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
478
479 2012-05-05  Bruno Haible  <bruno@clisp.org>
480
481         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
482         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
483         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
484         set gl_cv_struct_dirent_d_ino to "guessing yes".
485
486 2012-05-05  Bruno Haible  <bruno@clisp.org>
487
488         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
489         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
490         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
491         "guessing yes".
492
493 2012-05-05  Bruno Haible  <bruno@clisp.org>
494
495         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
496         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
497         compiling to a glibc system, set gl_cv_func_signbit and
498         gl_cv_func_signbit_gcc to "guessing yes".
499
500 2012-05-05  Bruno Haible  <bruno@clisp.org>
501
502         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
503         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
504         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
505         to "guessing yes".
506         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
507         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
508
509 2012-05-05  Bruno Haible  <bruno@clisp.org>
510
511         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
512         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
513         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
514         gl_cv_func_realpath_works to "guessing yes".
515
516 2012-05-05  Bruno Haible  <bruno@clisp.org>
517
518         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
519         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
520         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
521
522 2012-05-04  Bruno Haible  <bruno@clisp.org>
523
524         Tweak last commit.
525         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
526         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
527
528 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
529
530         unistd_h: make it easier to avoid sys_types_h
531         This is useful for Emacs, which has its own method of porting to
532         Windows, and which therefore does not need the sys_types_h module.
533         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
534         code moved here from gl_SYS_TYPES_H.
535         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
536         using the code directly.
537         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
538         gl_SYS_TYPES_H.
539         * modules/sys_types (Files):
540         * modules/unistd (Files): Add m4/off_t.m4.
541
542 2012-05-03  Bruno Haible  <bruno@clisp.org>
543
544         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
545         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
546         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
547         "guessing yes" or "guessing no".
548         (gl_FUNC_LSTAT): Update.
549         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
550         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
551         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
552
553 2012-05-03  Bruno Haible  <bruno@clisp.org>
554
555         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
556         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
557         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
558         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
559         cross-compiling, choose the first alternative on glibc systems.
560         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
561
562 2012-05-03  Bruno Haible  <bruno@clisp.org>
563
564         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
565         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
566         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
567
568 2012-05-03  Bruno Haible  <bruno@clisp.org>
569
570         chown: Avoid "guessing no" when cross-compiling to glibc systems.
571         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
572
573 2012-05-03  Bruno Haible  <bruno@clisp.org>
574
575         Avoid "guessing no" guesses when cross-compiling to glibc systems.
576         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
577         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
578         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
579         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
580         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
581         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
582         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
583         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
584         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
585         compiling to glibc systems, set gl_cv_func_chown_slash_works,
586         gl_cv_func_chown_ctime_works to "guessing yes".
587         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
588         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
589         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
590         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
591         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
592         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
593         compiling to glibc systems, set gl_cv_func_open_directory_works to
594         "guessing yes".
595         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
596         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
597         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
598         "guessing yes".
599         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
600         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
601         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
602         compiling to glibc systems, set gl_cv_func_floorf_ieee to
603         "guessing yes".
604         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
605         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
606         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
607         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
608         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
609         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
610         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
611         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
612         "guessing yes".
613         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
614         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
615         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
616         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
617         "guessing yes".
618         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
619         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
620         "guessing yes".
621         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
622         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
623         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
624         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
625         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
626         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
627         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
628         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
629         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
630         compiling to glibc systems, set gl_cv_func_log10f_ieee to
631         "guessing yes".
632         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
633         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
634         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
635         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
636         "guessing yes".
637         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
638         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
639         "guessing yes".
640         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
641         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
642         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
643         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
644         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
645         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
646         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
647         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
648         compiling to glibc systems, set gl_cv_func_mkfifo_works to
649         "guessing yes".
650         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
651         compiling to glibc systems, set gl_cv_func_mknod_works to
652         "guessing yes".
653         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
654         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
655         "guessing yes".
656         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
657         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
658         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
659         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
660         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
661         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
662         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
663         compiling to glibc systems, set gl_cv_func_svid_putenv to
664         "guessing yes".
665         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
666         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
667         "guessing yes".
668         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
669         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
670         "guessing yes".
671         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
672         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
673         to "guessing yes".
674         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
675         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
676         to "guessing yes".
677         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
678         compiling to glibc systems, set gl_cv_func_rmdir_works to
679         "guessing yes".
680         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
681         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
682         gl_cv_func_unlink_parent_fails to "guessing yes".
683         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
684         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
685         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
686         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
687         gl_cv_func_rename_dest_works to "guessing yes".
688         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
689         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
690         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
691         compiling to glibc systems, set gl_cv_func_roundf_ieee to
692         "guessing yes".
693         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
694         compiling to glibc systems, set gl_cv_func_roundl_ieee to
695         "guessing yes".
696         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
697         compiling to glibc systems, set gl_cv_func_setenv_works to
698         "guessing yes".
699         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
700         compiling to glibc systems, set gl_cv_func_unsetenv_works to
701         "guessing yes".
702         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
703         compiling to glibc systems, set gl_cv_func_sleep_works to
704         "guessing yes".
705         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
706         compiling to glibc systems, set gl_cv_func_stat_file_slash to
707         "guessing yes".
708         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
709         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
710         "guessing yes".
711         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
712         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
713         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
714         compiling to glibc systems, set gl_cv_func_truncf_ieee to
715         "guessing yes".
716         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
717         compiling to glibc systems, set gl_cv_func_truncl_ieee to
718         "guessing yes".
719         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
720         compiling to glibc systems, set gl_cv_func_usleep_works to
721         "guessing yes".
722         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
723         compiling to glibc systems, set gl_cv_func_futimesat_works to
724         "guessing yes".
725
726 2012-05-03  Bruno Haible  <bruno@clisp.org>
727
728         Say "guessing yes" or "guessing no" when cross-compiling.
729         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
730         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
731         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
732         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
733         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
734         am_cv_func_working_getline to "guessing yes" or "guessing no".
735         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
736         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
737         (gl_FUNC_MEMMEM): When cross-compiling, set
738         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
739         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
740         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
742         set gl_cv_func_strcasestr_works_always to "guessing yes" or
743         "guessing no".
744         (gl_FUNC_STRCASESTR): When cross-compiling, set
745         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
746         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
747         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
748         (gl_FUNC_STRSTR): When cross-compiling, set
749         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
750         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
751         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
752         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
753         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
754
755 2012-05-01  Bruno Haible  <bruno@clisp.org>
756
757         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
758         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
759         * build-aux/reloc-ldflags: Likewise.
760         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
761
762 2012-05-01  Bruno Haible  <bruno@clisp.org>
763
764         gnulib-tool: Remove transitional code.
765         * gnulib-tool: Don't warn about --import with 0 arguments any more.
766         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
767
768 2012-05-01  Bruno Haible  <bruno@clisp.org>
769
770         getcwd: Fix misindentation.
771         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
772
773 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
774
775         exclude: process exclude and include directives in order
776         This restores the pre-2009 behavior, and is part of a fix of a
777         grep bug reported by Quentin Arce in
778         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
779         * lib/exclude.c (struct exclude): Remove 'tail' member.
780         (new_exclude_segment): Prepend the new segment instead of appending.
781         Return void, since that's now more convenient.
782         (file_pattern_matches): Renamed from excluded_file_pattern_p.
783         (file_name_matches): Renamed from excluded_file_name_p.
784         (file_pattern_matches, file_name_matches):
785         Return true if the pattern matches, not if it excludes.
786         All callers changed.
787         (excluded_file_name): Process the list in reverse order;
788         since the list is now reversed this restores the pre-2009 behavior.
789         (add_exclude): Adjust to new reversed-order list.  Use local var
790         rather than macro, for clarity.
791         * tests/test-exclude7.sh: Adjust to corrected behavior.
792
793         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
794         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
795         it's not possible here.  Handle the case of \ at end of pattern
796         without dumping core.
797         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
798
799         _Noreturn: future-proof non-GNU and non-MSVC compilers
800         * build-aux/snippet/_Noreturn.h (_Noreturn):
801         * m4/gnulib-common.m4 (gl_COMMON_BODY):
802         Do not define _Noreturn if __STDC_VERSION__ indicates this is
803         C11 or later.  This is more likely to work with random future C
804         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
805         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
806
807         exclude: handle wildcards with FNM_EXTMATCH
808         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
809         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
810         comment that "has wildcards" really means "has or may have
811         wildcards".  Simplify by avoiding the need to call strcspn.
812
813 2012-04-29  Bruno Haible  <bruno@clisp.org>
814
815         gnulib-tool: Fix list of authors.
816         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
817
818 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
819
820         bootstrap: support Automake-NG in $buildreq
821         * bootstrap (check_versions): Handle automake and aclocal from
822         Automake-NG specially.  They can be specified as respectively
823         the "automake-ng" and "aclocal-ng" requirements.
824
825 2012-04-25  Eric Blake  <eblake@redhat.com>
826
827         bootstrap: only force latest Makefile.in.in for gettext module
828         * build-aux/bootstrap (with_gettext): Only install latest
829         Makefile.in.in for projects requesting bleeding edge gettext.
830
831 2012-04-22  Bruno Haible  <bruno@clisp.org>
832
833         doc: Mention reason for replacement on glibc/Linux systems.
834         * doc/posix-functions/dprintf.texi: Mention the problem with special
835         'long double' values.
836         * doc/posix-functions/fprintf.texi: Likewise.
837         * doc/posix-functions/printf.texi: Likewise.
838         * doc/posix-functions/snprintf.texi: Likewise.
839         * doc/posix-functions/sprintf.texi: Likewise.
840         * doc/posix-functions/vdprintf.texi: Likewise.
841         * doc/posix-functions/vfprintf.texi: Likewise.
842         * doc/posix-functions/vprintf.texi: Likewise.
843         * doc/posix-functions/vsnprintf.texi: Likewise.
844         * doc/posix-functions/vsprintf.texi: Likewise.
845         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
846         platforms with F_DUPFD_CLOEXEC problems.
847         * doc/posix-functions/glob.texi: Mention which platforms are affected
848         by the problem with symbolic links.
849         * doc/posix-functions/linkat.texi: Mention the problem with
850         AT_SYMLINK_FOLLOW on Linux.
851
852 2012-04-22  Bruno Haible  <bruno@clisp.org>
853
854         pwrite: Don't replace on all platforms.
855         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
856
857 2012-04-22  Bruno Haible  <bruno@clisp.org>
858
859         rint* tests: Avoid gcc warnings.
860         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
861         * tests/test-rintf.c (INFINITY, NAN): Likewise.
862         * tests/test-rintl.c (INFINITY, NAN): Likewise.
863
864 2012-04-21  Bruno Haible  <bruno@clisp.org>
865
866         users.txt: Update.
867         * users.txt: Add freedink, wdiff. Update URLs for projects that have
868         switched from CVS to git, bzr, or svn.
869
870 2012-04-21  Bruno Haible  <bruno@clisp.org>
871
872         Large File Support for native Windows platforms.
873
874         * m4/largefile.m4 (gl_LARGEFILE): New macro.
875         * modules/largefile (configure.ac): Require gl_LARGEFILE.
876
877         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
878         type.
879         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
880         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
881         * doc/posix-headers/sys_types.texi: Mention the effect of the
882         'largefile' module.
883
884         * lib/fcntl.in.h: Add comments about off_t.
885         * modules/fcntl-h (Depends-on): Add sys_types.
886
887         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
888         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
889         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
890         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
891         * modules/unistd (Depends-on): Add sys_types.
892         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
893
894         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
895         instead of lseek.
896         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
897         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
898         * modules/lseek (Depends-on): Add sys_types.
899
900         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
901         msvc-nothrow.h.
902         (SetFileSize): New function.
903         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
904         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
905         if Large File Support is requested.
906         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
907         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
908
909         * lib/stdio.in.h: Add comments about off_t.
910         * modules/stdio (Depends-on): Add sys_types.
911
912         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
913         instead of ftello.
914         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
915         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
916         (gl_PREREQ_FTELLO): New macro.
917         * modules/ftello (Depends-on): Add sys_types.
918         (configure.ac): Incoke gl_PREREQ_FTELLO.
919
920         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
921         instead of fseeko.
922         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
923         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
924         (gl_PREREQ_FSEEKO): New macro.
925         * modules/fseeko (Depends-on): Add sys_types.
926         (configure.ac): Invoke gl_PREREQ_FSEEKO.
927
928         * lib/sys_stat.in.h: Add comments about off_t.
929         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
930         64-bit integer for st_size in 'struct stat'.
931         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
932         Define _GL_WINDOWS_64_BIT_ST_SIZE.
933         * modules/sys_stat (Depends-on): Add sys_types.
934         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
935
936         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
937         instead of stat or _stat.
938
939         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
940         'struct _stati64' instead of fstat and 'struct stat'.
941         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
942         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
943
944         Reported by Ray Satiro <raysatiro@yahoo.com>.
945
946 2012-04-19  Eric Blake  <eblake@redhat.com>
947
948         bootstrap: accommodate older libtool
949         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
950         Reported by Daniel P. Berrange.
951
952 2012-04-19  Jim Meyering  <meyering@redhat.com>
953
954         announce-gen: avoid failure due to lack of Digest::SHA1
955         Even with the preferred Digest::SHA available, this script
956         would fail when the backup module, Digest::SHA1, was not installed.
957         * build-aux/announce-gen: Quote the conditional use of "use".
958         Reported by Reuben Thomas in:
959         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
960
961         bootstrap: don't let a user's CDPATH setting affect this script
962         When CDPATH is set, cd will sometimes generate output.
963         When "cd" is run in a subshell whose output matters, that
964         surprising-to-some output can cause malfunction.
965         Unsetting CDPATH turns off this shell "feature."
966         * build-aux/bootstrap (CDPATH): Unset.
967         Reported by Reuben Thomas in:
968         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
969         and inspired by his patch here:
970         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
971
972 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
973         and Jim Meyering  <meyering@redhat.com>
974
975         maint.mk: catch "see @xref{}" and similar
976         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
977         prohibit "See also @xref{", "Also see @pxref{", and similar.
978
979 2012-04-16  Jim Meyering  <meyering@redhat.com>
980
981         bootstrap: really use gnulib's po/Makefile.in.in
982         * build-aux/bootstrap: Correct the source file name in previous change.
983         Reported by Akim Demaille.
984
985         configmake: correct minor inconsistency in Makefile rule
986         * modules/configmake (Makefile.am): All other rules like this one
987         run the final "mv -f ..." in the same backslash-continued command
988         as the one that does everything else.  This one put the mv -f ...
989         command on a separate, non-backslash-continued line.
990         Make it like the others.
991
992         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
993         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
994         the one from gettext.  Reported by Akim Demaille.
995
996 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
997
998         Fix recursion of install-* into po directories.
999         Bison's install-pdf bug reported by Hans Aberg at
1000         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
1001         * build-aux/po/Makefile.in.in (install-dvi, install-html)
1002         (install-info, install-pdf, install-ps): New targets.
1003
1004 2012-04-16  Jim Meyering  <meyering@redhat.com>
1005
1006         maint: avoid spurious "make sc_maint" failure
1007         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
1008         exempt all *.class file names, for lib/javaversion.class.
1009
1010 2012-04-15  Bruno Haible  <bruno@clisp.org>
1011
1012         lseek: Make configure test independent of environment.
1013         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
1014         Windows, we know that lseek() on pipes is broken; skip the runtime
1015         test.
1016
1017 2012-04-14  Bruno Haible  <bruno@clisp.org>
1018
1019         stat: Bypass buggy override in mingw64.
1020         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
1021         * lib/stat.c (stat) [mingw64]: Define to _stat.
1022         * doc/posix-functions/stat.texi: Mention mingw64 bug.
1023
1024 2012-04-14  Bruno Haible  <bruno@clisp.org>
1025
1026         pathmax: Fix compilation error on MSVC 9.
1027         * modules/pathmax (Depends-on): Add unistd.
1028
1029 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
1030
1031         README: document pointer comparison assumption
1032         * README (Portability guidelines): Document assumption about
1033         pointer comparisons, in response to a recent bug-gnulib comment by
1034         Jeffrey Kegler.
1035
1036 2012-04-12  Bruno Haible  <bruno@clisp.org>
1037
1038         Tests for module 'getrusage'.
1039         * modules/getrusage-tests: New file.
1040         * tests/test-getrusage.c: New file.
1041
1042         New module 'getrusage'.
1043         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
1044         warn-on-use.h.
1045         (getrusage): New declaration.
1046         * lib/getrusage.c: New file.
1047         * m4/getrusage.m4: New file.
1048         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
1049         is declared.
1050         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
1051         HAVE_GETRUSAGE.
1052         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
1053         snippet/c++defs, snippet/warn-on-use.
1054         (Makefile.am): Update generation of sys/resource.h. Substitute
1055         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
1056         * modules/getrusage: New file.
1057         * doc/posix-functions/getrusage.texi: Mention the new module.
1058
1059 2012-04-12  Bruno Haible  <bruno@clisp.org>
1060
1061         Tests for module 'sys_resource'.
1062         * modules/sys_resource-tests: New file.
1063         * tests/test-sys_resource.c: New file.
1064
1065         New module 'sys_resource'.
1066         * lib/sys_resource.in.h: New file.
1067         * m4/sys_resource_h.m4: New file.
1068         * modules/sys_resource: New file.
1069         * doc/posix-headers/sys_resource.texi: Mention the new module.
1070
1071 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
1072
1073         ioctl: Fix compilation error on mingw.
1074         * lib/ioctl.c: Include <windows.h>.
1075         Also reported by Ray Satiro <raysatiro@yahoo.com>.
1076
1077 2012-04-04  Jim Meyering  <meyering@redhat.com>
1078
1079         regex: correct #pragma guard expression
1080         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
1081         not 4.3.  Correct its cpp guard expression.
1082
1083 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
1084
1085         regex: remove unnecessary type punning
1086         Problem reported by Vladimir Serbinenko in
1087         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
1088         * lib/regex.h (struct re_pattern_buffer): Change the type of
1089         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
1090         Fix comment to match code.
1091         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
1092         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
1093         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
1094         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
1095         (set_regs):
1096         Omit no-longer-necessary casts.
1097
1098 2012-04-03  Bruno Haible  <bruno@clisp.org>
1099
1100         Tests for module 'ilogbl'.
1101         * modules/ilogbl-tests: New file.
1102         * tests/test-ilogbl.c: New file.
1103
1104         New module 'ilogbl'.
1105         * lib/math.in.h (ilogbl): New declaration.
1106         * lib/ilogbl.c: New file.
1107         * m4/ilogbl.m4: New file.
1108         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
1109         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
1110         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
1111         Split sed invocation, to avoid the limit of 100 substitutions of
1112         HP-UX 'sed'.
1113         * modules/ilogbl: New file.
1114         * tests/test-math-c++.cc: Check the declaration of ilogbl.
1115         * doc/posix-functions/ilogbl.texi: Mention the new module.
1116
1117 2012-04-03  Bruno Haible  <bruno@clisp.org>
1118
1119         Tests for module 'ilogbf'.
1120         * modules/ilogbf-tests: New file.
1121         * tests/test-ilogbf.c: New file.
1122
1123         New module 'ilogbf'.
1124         * lib/math.in.h (ilogbf): New declaration.
1125         * lib/ilogbf.c: New file.
1126         * m4/ilogbf.m4: New file.
1127         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
1128         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
1129         REPLACE_ILOGBF.
1130         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
1131         REPLACE_ILOGBF.
1132         * modules/ilogbf: New file.
1133         * tests/test-math-c++.cc: Check the declaration of ilogbf.
1134         * doc/posix-functions/ilogbf.texi: Mention the new module.
1135
1136 2012-04-03  Bruno Haible  <bruno@clisp.org>
1137
1138         Tests for module 'ilogb'.
1139         * modules/ilogb-tests: New file.
1140         * tests/test-ilogb.c: New file.
1141         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
1142         tests/test-logb-ieee.h.
1143
1144         New module 'ilogb'.
1145         * lib/math.in.h (ilogb): New declaration.
1146         * lib/ilogb.c: New file.
1147         * m4/ilogb.m4: New file.
1148         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
1149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
1150         REPLACE_ILOGB.
1151         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
1152         REPLACE_ILOGB.
1153         * modules/ilogb: New file.
1154         * tests/test-math-c++.cc: Check the declaration of ilogb.
1155         * doc/posix-functions/ilogb.texi: Mention the new module.
1156
1157 2012-04-03  Bruno Haible  <bruno@clisp.org>
1158
1159         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
1160         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
1161         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
1162         (main): Check their values.
1163         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
1164         problem.
1165
1166 2012-04-03  Bruno Haible  <bruno@clisp.org>
1167
1168         Tests for module 'logbl-ieee'.
1169         * modules/logbl-ieee-tests: New file.
1170         * tests/test-logbl-ieee.c: New file.
1171
1172         New module 'logbl-ieee'.
1173         * modules/logbl-ieee: New file.
1174
1175         Tests for module 'logb-ieee'.
1176         * modules/logb-ieee-tests: New file.
1177         * tests/test-logb-ieee.c: New file.
1178
1179         New module 'logb-ieee'.
1180         * modules/logb-ieee: New file.
1181
1182         Tests for module 'logbf-ieee'.
1183         * modules/logbf-ieee-tests: New file.
1184         * tests/test-logbf-ieee.c: New file.
1185         * tests/test-logb-ieee.h: New file.
1186
1187         New module 'logbf-ieee'.
1188         * modules/logbf-ieee: New file.
1189
1190 2012-04-03  Bruno Haible  <bruno@clisp.org>
1191
1192         Tests for module 'logbl'.
1193         * modules/logbl-tests: New file.
1194         * tests/test-logbl.c: New file.
1195
1196         New module 'logbl'.
1197         * lib/math.in.h (logbl): New declaration.
1198         * lib/logbl.c: New file.
1199         * m4/logbl.m4: New file.
1200         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
1201         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
1202         REPLACE_LOGBL.
1203         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
1204         REPLACE_LOGBL.
1205         * modules/logbl: New file.
1206         * tests/test-math-c++.cc: Check the declaration of logbl.
1207         * doc/posix-functions/logbl.texi: Mention the new module.
1208
1209 2012-04-02  Bruno Haible  <bruno@clisp.org>
1210
1211         Tests for module 'logbf'.
1212         * modules/logbf-tests: New file.
1213         * tests/test-logbf.c: New file.
1214
1215         New module 'logbf'.
1216         * lib/math.in.h (logbf): New declaration.
1217         * lib/logbf.c: New file.
1218         * m4/logbf.m4: New file.
1219         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
1220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
1221         REPLACE_LOGBF.
1222         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
1223         REPLACE_LOGBF.
1224         * modules/logbf: New file.
1225         * tests/test-math-c++.cc: Check the declaration of logbf.
1226         * doc/posix-functions/logbf.texi: Mention the new module.
1227
1228 2012-04-02  Bruno Haible  <bruno@clisp.org>
1229
1230         logb tests: More tests.
1231         * tests/test-logb.h: New file, based on tests/test-logb.c and
1232         tests/test-frexp.h.
1233         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
1234         (main): Just invoke test_function.
1235         * modules/logb-tests (Files): Add tests/test-logb.h,
1236         tests/minus-zero.h, tests/randomd.c.
1237         (Makefile.am): Add randomd.c to test_logb_SOURCES.
1238
1239         logb: Provide replacement and workarounds.
1240         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
1241         is 1.
1242         * lib/logb.c: New file.
1243         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
1244         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
1245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
1246         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
1247         * modules/logb (Files): Add lib/logb.c.
1248         (Depends-on): Add isfinite, frexp, isnand.
1249         (configure.ac): Compile the replacement code logb.c if needed.
1250         * tests/test-math-c++.cc: Check the declaration of logb.
1251         * doc/posix-functions/logb.texi: Mention the replacement and the bug
1252         with subnormal numbers.
1253
1254 2012-04-02  Bruno Haible  <bruno@clisp.org>
1255
1256         log10* tests: Speed up.
1257         * tests/test-log10.h (test_function): Reduce amount of random numbers
1258         to test.
1259
1260 2012-04-01  Bruno Haible  <bruno@clisp.org>
1261
1262         logf-ieee: Fix test whether logf works.
1263         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
1264
1265 2012-04-01  Bruno Haible  <bruno@clisp.org>
1266
1267         log10l: Work around log10l-ieee test failure on IRIX 6.5.
1268         * lib/log10l.c: Include <float.h>
1269         (log10l): On IRIX, normalize the +Infinity value.
1270         * modules/log10l (Depends-on): Add 'float'.
1271         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
1272         +Infinity.
1273
1274         log10f-ieee: Work around test failure on NetBSD 5.1.
1275         * m4/log10f-ieee.m4: New file.
1276         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
1277         test whether log10f works with a negative argument. Replace it if not.
1278         * lib/log10f.c (log10f): For negative arguments, return NaN.
1279         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
1280         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
1281         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
1282
1283         log10f-ieee: Work around test failure on Solaris 9.
1284         * modules/log10f-ieee (Depends-on): Add log10-ieee.
1285         (configure.ac): Require gl_FUNC_LOG10F.
1286
1287         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1288         * m4/log10-ieee.m4: New file.
1289         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
1290         whether log10 works with a negative argument. Replace it if not.
1291         * lib/log10.c (log10): For negative arguments, return NaN.
1292         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
1293         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
1294         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
1295
1296         Tests for module 'log10l-ieee'.
1297         * modules/log10l-ieee-tests: New file.
1298         * tests/test-log10l-ieee.c: New file.
1299
1300         New module 'log10l-ieee'.
1301         * modules/log10l-ieee: New file.
1302
1303         Tests for module 'log10-ieee'.
1304         * modules/log10-ieee-tests: New file.
1305         * tests/test-log10-ieee.c: New file.
1306
1307         New module 'log10-ieee'.
1308         * modules/log10-ieee: New file.
1309
1310         Tests for module 'log10f-ieee'.
1311         * modules/log10f-ieee-tests: New file.
1312         * tests/test-log10f-ieee.c: New file.
1313         * tests/test-log10-ieee.h: New file.
1314
1315         New module 'log10f-ieee'.
1316         * modules/log10f-ieee: New file.
1317
1318 2012-04-01  Bruno Haible  <bruno@clisp.org>
1319
1320         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1321         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1322         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1323         workaround.
1324         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1325         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1327         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1328         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1329         (Depends-on): Update conditions.
1330         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1331         IRIX 6.5, OSF/1 5.1 problems.
1332
1333 2012-04-01  Bruno Haible  <bruno@clisp.org>
1334
1335         log10f: Work around OSF/1 5.1 bug.
1336         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1337         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1338         workaround.
1339         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1340         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1342         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1343         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1344         (Depends-on): Update conditions.
1345         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1346
1347 2012-04-01  Bruno Haible  <bruno@clisp.org>
1348
1349         log10: Work around OSF/1 5.1 bug.
1350         * lib/math.in.h (log10): New declaration.
1351         * lib/log10.c: New file.
1352         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1353         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1354         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1355         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1356         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1357         * modules/log10 (Files): Add lib/log10.c.
1358         (Depends-on): Add math.
1359         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1360         * tests/test-math-c++.cc: Check the declaration of log10.
1361         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1362
1363 2012-03-31  Bruno Haible  <bruno@clisp.org>
1364
1365         log10l tests: More tests.
1366         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1367         tests/minus-zero.h, tests/randoml.c.
1368         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1369         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1370         (main): Invoke test_function.
1371
1372         log10f tests: More tests.
1373         * modules/log10f-tests (Files): Add tests/test-log10.h,
1374         tests/minus-zero.h, tests/randomf.c.
1375         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1376         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1377         (main): Invoke test_function.
1378
1379         log10 tests: More tests.
1380         * tests/test-log10.h: New file.
1381         * modules/log10-tests (Files): Add tests/test-log10.h,
1382         tests/minus-zero.h, tests/randomd.c.
1383         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1384         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1385         (main): Invoke test_function.
1386
1387 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1388
1389         fflush: Fix syntax error.
1390         * lib/fflush.c: Include unused-parameter.h, needed for
1391         _GL_UNUSED_PARAMETER.
1392         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1393
1394 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1395
1396         regex: pacify GCC when compiling GRUB
1397         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1398         a diagnostic.  Reported by Vladimir Serbinenko in
1399         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1400
1401 2012-03-29  Eric Blake  <eblake@redhat.com>
1402
1403         stdio: don't assume gets any more
1404         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1405         support.
1406         * modules/stdio (Makefile.am): Likewise.
1407         * lib/stdio-read.c (gets): Likewise.
1408         * tests/test-stdio-c++.cc: Likewise.
1409         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1410         * lib/stdio.in.h (gets): Make warning occur in more places.
1411         * doc/posix-functions/gets.texi (gets): Update documentation.
1412         Reported by Christer Solskogen.
1413
1414         maint.mk: fix syntax checks without exclusions
1415         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1416         Reported by Daniel P. Berrange.
1417
1418         strerror_r: avoid compiler warning
1419         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1420         level.
1421
1422         fflush: avoid compiler warning
1423         * lib/fflush.c (update_fpos_cache): Mark variables that are
1424         potentially unused.
1425
1426 2012-03-25  Bruno Haible  <bruno@clisp.org>
1427
1428         Tests for module 'localeconv'.
1429         * modules/localeconv-tests: New file.
1430         * tests/test-localeconv.c: New file.
1431
1432         New module 'localeconv'.
1433         * lib/locale.in.h (localeconv): New declaration.
1434         * lib/localeconv.c: New file.
1435         * m4/localeconv.m4: New file.
1436         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1437         REPLACE_LOCALECONV.
1438         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1439         REPLACE_LOCALECONV.
1440         * modules/localeconv: New file.
1441         * modules/nl_langinfo (Depends-on): Add localeconv.
1442         * modules/human (Depends-on): Likewise.
1443         * doc/posix-functions/localeconv.texi: Mention the new module.
1444
1445 2012-03-25  Bruno Haible  <bruno@clisp.org>
1446
1447         locale: Provide a complete 'struct lconv'.
1448         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1449         'struct lconv' does not contain int_p_cs_precedes.
1450         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1451         * doc/posix-headers/locale.texi: Update.
1452
1453         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1454         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1455         * doc/posix-headers/locale.texi: Update.
1456
1457         locale: Provide a working 'struct lconv'.
1458         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1459         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1460         'struct lconv' does not even contain decimal_point.
1461         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1462         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1463         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1464         * doc/posix-headers/locale.texi: Mention the problems with
1465         'struct lconv'.
1466         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1467
1468 2012-03-24  Bruno Haible  <bruno@clisp.org>
1469
1470         Enable common subexpression optimization in GCC.
1471         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1472         macros.
1473         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1474         GCC attribute 'const'.
1475         (uc_locale_language): Declare with GCC attribute 'pure'.
1476         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1477         with GCC attribute 'const'.
1478         * lib/unictype.in.h (uc_is_general_category_withtable,
1479         uc_combining_class, uc_combining_class_name,
1480         uc_combining_class_long_name, uc_bidi_class_name,
1481         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1482         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1483         uc_decimal_value, uc_digit_value, uc_numeric_value,
1484         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1485         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1486         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1487         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1488         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1489         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1490         Declare with GCC attribute 'const'.
1491         (uc_general_category_name, uc_general_category_long_name,
1492         uc_general_category_byname, uc_general_category,
1493         uc_is_general_category, uc_combining_class_byname,
1494         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1495         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1496         Declare with GCC attribute 'pure'.
1497         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1498         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1499         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1500         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1501         with GCC attribute 'pure'.
1502         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1503         'const'.
1504         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1505         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1506         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1507         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1508         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1509         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1510         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1511         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1512         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1513         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1514         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1515         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1516         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1517         GCC attribute 'pure'.
1518         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1519         'const'.
1520         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1521         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1522         u32_strwidth): Declare with GCC attribute 'pure'.
1523
1524         Enable common subexpression optimization in GCC.
1525         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1526         (alphasort): Declare with GCC attribute 'pure'.
1527         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1528         (atoll): Declare with GCC attribute 'pure'.
1529         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1530         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1531         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1532         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1533         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1534         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1535         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1536
1537 2012-03-24  Bruno Haible  <bruno@clisp.org>
1538
1539         gnulib-tool: Avoid unintended error output from 'cmp'.
1540         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1541         "cmp -s", not "cmp > /dev/null".
1542
1543 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1544
1545         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1546
1547         It's not just Automake versions < 1.9b that creates an empty
1548         pkgdatadir at installation time if pkgdata_DATA is specified
1549         to empty; modern automake versions do this as well, at least
1550         until automake 1.11.4 (not yet released at the moment of writing,
1551         but soon to appear).  That behaviour was generally considered a
1552         feature rather than a bug, at least until this discussion:
1553         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1554
1555         See also automake bugs #10997 and #11030.
1556
1557         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1558         reference to relevant automake bug numbers.
1559         (func_emit_tests_Makefile_am): Likewise.
1560
1561 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1562
1563         announce-gen: use Digest::SHA when possible
1564         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1565         back to Digest::SHA1 if necessary.
1566
1567 2012-03-20  Jim Meyering  <meyering@redhat.com>
1568
1569         tests: avoid gcc warnings about argv vs. const initializers
1570         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1571         warnings about discarding 'const' qualifier from pointer target type.
1572         * tests/test-posix_spawn2.c (main): Likewise.
1573
1574 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1575
1576         README-release: simplify slightly
1577         * top/README-release: Run "git checkout master" only once.
1578
1579 2012-03-15  Mark Wielaard  <mark@klomp.org>
1580
1581         git-merge-changelog: add specific example on how to use with hg.
1582         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1583
1584 2012-03-18  Mark Wielaard  <mark@klomp.org>
1585
1586         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1587
1588 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1589
1590         git-version-gen: don't let "prefix" envvar cause trouble
1591         * build-aux/git-version-gen (prefix): Initialize properly,
1592         so as not to use a value specified via the environment.
1593         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1594
1595 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1596
1597         regex: diagnose too-large repeat counts in EREs
1598         Previously, the code did not diagnose the too-large repeat count
1599         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1600         as if it were 'b\{1000000000}', which is unexpected.
1601         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1602         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1603         is a reasonable one for this problem.  Another option would be to
1604         create a new REG_OVERFLOW error for repeat counts that are too large.
1605         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1606         count is too large, so that the caller can distinguish the two cases.
1607         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1608         "Too large" return code, and that repeat counts are one example of this.
1609
1610 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1611
1612         doc: some glibc x32 integer width issues
1613         * doc/posix-headers/sys_types.texi (sys/types.h):
1614         * doc/posix-headers/time.texi (time.h):
1615         Mention that glibc x32 does not conform to POSIX in a couple of
1616         areas related to integer widths.
1617
1618 2012-03-15  Bruno Haible  <bruno@clisp.org>
1619
1620         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1621         * lib/fma.c (VOLATILE): New macro.
1622         (FUNC): Use it to work around a GCC compiler bug.
1623
1624 2012-03-13  Bruno Haible  <bruno@clisp.org>
1625
1626         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1627         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1628         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1629         REPLACE_HYPOTL to 1.
1630         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1631
1632 2012-03-13  Bruno Haible  <bruno@clisp.org>
1633
1634         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1635         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1636         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1637         REPLACE_REMAINDERL to 1.
1638         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1639         bug.
1640
1641 2012-03-13  Bruno Haible  <bruno@clisp.org>
1642
1643         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1644         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1645         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1646         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1647         too big rounding errors.
1648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1649         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1650         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1651         (Depends-on): Update conditions.
1652         * tests/test-sqrtl.c (my_ldexpl): New function.
1653         (main): Add test of a particular value.
1654         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1655
1656 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1657
1658         doc: Update timer_* platform portability notes.
1659         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1660         that always return ENOSYS.
1661         * doc/posix-functions/timer_delete.texi: Likewise.
1662         * doc/posix-functions/timer_gettime.texi: Likewise.
1663         * doc/posix-functions/timer_settime.texi: Likewise.
1664
1665 2012-03-13  Bruno Haible  <bruno@clisp.org>
1666
1667         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1668         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1669         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1670         REPLACE_CBRTL to 1.
1671         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1672
1673 2012-03-13  Bruno Haible  <bruno@clisp.org>
1674
1675         remainderl: Avoid compilation error on AIX >= 5.2.
1676         * lib/math.in.h (remainderl): Undefine macro from the system header.
1677
1678 2012-03-13  Bruno Haible  <bruno@clisp.org>
1679
1680         Avoid compilation errors with MSVC option -fp:strict.
1681         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1682         * lib/cbrtf.c: Likewise.
1683         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1684
1685 2012-03-12  Bruno Haible  <bruno@clisp.org>
1686
1687         uninorm: Don't crash in out-of-memory conditions.
1688         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1689         gracefully.
1690         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1691         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1692
1693 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1694
1695         quote: fix syntax-check
1696         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1697         also exports quote_quoting_options.
1698
1699 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1700
1701         Collapse list of copyright years to ranges.  See
1702         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1703         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1704         build-aux/csharpexec.sh.in, build-aux/gnupload,
1705         build-aux/install-reloc, build-aux/javacomp.sh.in,
1706         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1707         build-aux/move-if-change, build-aux/reloc-ldflags,
1708         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1709
1710 2012-03-11  Bruno Haible  <bruno@clisp.org>
1711
1712         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1713         * m4/log2f-ieee.m4: New file.
1714         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1715         whether log2f works with a minus zero argument. Replace it if not.
1716         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1717         (Depends-on): Add log2-ieee.
1718         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1719         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1720
1721         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1722         * m4/log2-ieee.m4: New file.
1723         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1724         whether log2 works with a minus zero argument. Replace it if not.
1725         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1726         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1727         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1728
1729         Tests for module 'log2l-ieee'.
1730         * modules/log2l-ieee-tests: New file.
1731         * tests/test-log2l-ieee.c: New file.
1732
1733         New module 'log2l-ieee'.
1734         * modules/log2l-ieee: New file.
1735
1736         Tests for module 'log2-ieee'.
1737         * modules/log2-ieee-tests: New file.
1738         * tests/test-log2-ieee.c: New file.
1739
1740         New module 'log2-ieee'.
1741         * modules/log2-ieee: New file.
1742
1743         Tests for module 'log2f-ieee'.
1744         * modules/log2f-ieee-tests: New file.
1745         * tests/test-log2f-ieee.c: New file.
1746         * tests/test-log2-ieee.h: New file.
1747
1748         New module 'log2f-ieee'.
1749         * modules/log2f-ieee: New file.
1750
1751 2012-03-11  Bruno Haible  <bruno@clisp.org>
1752
1753         Tests for module 'log2l'.
1754         * modules/log2l-tests: New file.
1755         * tests/test-log2l.c: New file.
1756
1757         New module 'log2l'.
1758         * lib/math.in.h (log2l): New declaration.
1759         * lib/log2l.c: New file.
1760         * m4/log2l.m4: New file.
1761         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1762         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1763         REPLACE_LOG2L.
1764         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1765         REPLACE_LOG2L.
1766         * modules/log2l: New file.
1767         * tests/test-math-c++.cc: Check the declaration of log2l.
1768         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1769         and OSF/1 problems.
1770
1771 2012-03-11  Bruno Haible  <bruno@clisp.org>
1772
1773         Tests for module 'log2f'.
1774         * modules/log2f-tests: New file.
1775         * tests/test-log2f.c: New file.
1776
1777         New module 'log2f'.
1778         * lib/math.in.h (log2f): New declaration.
1779         * lib/log2f.c: New file.
1780         * m4/log2f.m4: New file.
1781         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1783         REPLACE_LOG2F.
1784         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1785         REPLACE_LOG2F.
1786         * modules/log2f: New file.
1787         * tests/test-math-c++.cc: Check the declaration of log2f.
1788         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1789         and OSF/1 and Cygwin problems.
1790
1791 2012-03-11  Bruno Haible  <bruno@clisp.org>
1792
1793         Tests for module 'log2'.
1794         * modules/log2-tests: New file.
1795         * tests/test-log2.c: New file.
1796         * tests/test-log2.h: New file.
1797
1798         New module 'log2'.
1799         * lib/math.in.h (log2): New declaration.
1800         * lib/log2.c: New file.
1801         * m4/log2.m4: New file.
1802         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1803         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1804         REPLACE_LOG2.
1805         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1806         REPLACE_LOG2.
1807         * modules/log2: New file.
1808         * tests/test-math-c++.cc: Check the declaration of log2.
1809         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1810         and OSF/1 and Cygwin problems.
1811
1812 2012-03-11  Bruno Haible  <bruno@clisp.org>
1813
1814         exp2* tests: More tests.
1815         * tests/test-exp2.h (test_function): Test all integral arguments that
1816         don't need to overflow or denormalized numbers.
1817         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1818         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1819         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1820
1821 2012-03-10  Bruno Haible  <bruno@clisp.org>
1822
1823         log1pl-ieee: Work around test failure on AIX 7.1.
1824         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1825
1826         log1pl-ieee: Work around test failure on IRIX 6.5.
1827         * m4/log1pl-ieee.m4: New file.
1828         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1829         test whether log1pl works with a minus zero argument. Replace it if
1830         not.
1831         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1833         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1834         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1835         (Depends-on): Update conditions.
1836         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1837         m4/signbit.m4.
1838         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1839         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1840
1841         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1842         * m4/log1pf-ieee.m4: New file.
1843         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1844         test whether log1pf works with a minus zero argument. Replace it if
1845         not.
1846         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1847         m4/signbit.m4.
1848         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1849         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1850
1851         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1852         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1853         (configure.ac): Require gl_FUNC_LOG1PF.
1854
1855         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1856         * m4/log1p-ieee.m4: New file.
1857         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1858         whether log1p works with a minus zero argument. Replace it if not.
1859         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1861         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1862         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1863         (Depends-on): Update conditions.
1864         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1865         m4/signbit.m4.
1866         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1867         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1868
1869         Tests for module 'log1pl-ieee'.
1870         * modules/log1pl-ieee-tests: New file.
1871         * tests/test-log1pl-ieee.c: New file.
1872
1873         New module 'log1pl-ieee'.
1874         * modules/log1pl-ieee: New file.
1875
1876         Tests for module 'log1p-ieee'.
1877         * modules/log1p-ieee-tests: New file.
1878         * tests/test-log1p-ieee.c: New file.
1879
1880         New module 'log1p-ieee'.
1881         * modules/log1p-ieee: New file.
1882
1883         Tests for module 'log1pf-ieee'.
1884         * modules/log1pf-ieee-tests: New file.
1885         * tests/test-log1pf-ieee.c: New file.
1886         * tests/test-log1p-ieee.h: New file.
1887
1888         New module 'log1pf-ieee'.
1889         * modules/log1pf-ieee: New file.
1890
1891 2012-03-10  Bruno Haible  <bruno@clisp.org>
1892
1893         Tests for module 'log1pl'.
1894         * modules/log1pl-tests: New file.
1895         * tests/test-log1pl.c: New file.
1896
1897         New module 'log1pl'.
1898         * lib/math.in.h (log1pl): New declaration.
1899         * lib/log1pl.c: New file.
1900         * m4/log1pl.m4: New file.
1901         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1903         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1904         * modules/log1pl: New file.
1905         * tests/test-math-c++.cc: Check the declaration of log1pl.
1906         * doc/posix-functions/log1pl.texi: Mention the new module.
1907
1908 2012-03-10  Bruno Haible  <bruno@clisp.org>
1909
1910         Tests for module 'log1pf'.
1911         * modules/log1pf-tests: New file.
1912         * tests/test-log1pf.c: New file.
1913
1914         New module 'log1pf'.
1915         * lib/math.in.h (log1pf): New declaration.
1916         * lib/log1pf.c: New file.
1917         * m4/log1pf.m4: New file.
1918         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1919         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1920         REPLACE_LOG1PF.
1921         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1922         REPLACE_LOG1PF.
1923         * modules/log1pf: New file.
1924         * tests/test-math-c++.cc: Check the declaration of log1pf.
1925         * doc/posix-functions/log1pf.texi: Mention the new module.
1926
1927 2012-03-10  Bruno Haible  <bruno@clisp.org>
1928
1929         log1p tests: More tests.
1930         * tests/test-log1p.h: New file.
1931         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1932         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1933         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1934         (main): Invoke test_function.
1935
1936         log1p: Provide replacement for Minix and MSVC.
1937         * lib/math.in.h (log1p): New declaration.
1938         * lib/log1p.c: New file.
1939         * m4/log1p.m4: New file.
1940         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1942         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1943         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1944         (Depends-on): Add math, isnand, log, round.
1945         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1946         HAVE_LOG1P is 0.
1947         * tests/test-math-c++.cc: Check the declaration of log1p.
1948         * doc/posix-functions/log1p.texi: Mention the replacement.
1949
1950 2012-03-10  Bruno Haible  <bruno@clisp.org>
1951
1952         math tests: Small simplification.
1953         * tests/test-exp.h (test_function): Use the same err_bound for
1954         'double' on platforms with sizeof (long double) == sizeof (double)
1955         than on platforms with sizeof (long double) > sizeof (double).
1956         * tests/test-exp2.h (test_function): Likewise.
1957         * tests/test-expm1.h (test_function): Likewise.
1958         * tests/test-log.h (test_function): Likewise.
1959
1960 2012-03-10  Bruno Haible  <bruno@clisp.org>
1961
1962         Fix some comments.
1963         * lib/expl.c: Fix an ambiguous comment.
1964         * lib/expm1.c: Likewise.
1965         * lib/expm1l.c: Likewise.
1966         * lib/exp2.c: Likewise.
1967         * lib/exp2l.c: Likewise.
1968
1969 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1970
1971         regex: allow inclusion of <regex.h> before <limits.h>
1972         Without this patch, portable programs had to include <limits.h> before
1973         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1974         I ran into this problem with a test version of GNU grep on Solaris 8.
1975         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1976         This is done conditionally so that this change can be merged
1977         back to glibc.
1978         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1979         using the included regex.
1980
1981         fts: depend on fdopendir
1982         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1983         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1984         problem was introduced when fdopendir was split out.
1985
1986 2012-03-10  Bruno Haible  <bruno@clisp.org>
1987
1988         Remove unused variables.
1989         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1990         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1991
1992 2012-03-10  Bruno Haible  <bruno@clisp.org>
1993
1994         isnanf-nolibm: Fix last commit.
1995         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1996
1997         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1998         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1999
2000 2012-03-10  Bruno Haible  <bruno@clisp.org>
2001
2002         logf-ieee: Work around test failure on NetBSD 5.1.
2003         * m4/logf-ieee.m4: New file.
2004         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
2005         whether logf works with a negative argument. Replace it if not.
2006         * lib/logf.c (logf): For negative arguments, return NaN.
2007         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
2008         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
2009         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
2010
2011         logf-ieee: Work around test failure on Solaris 9.
2012         * modules/logf-ieee (Depends-on): Add log-ieee.
2013         (configure.ac): Require gl_FUNC_LOGF.
2014
2015         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2016         * m4/log-ieee.m4: New file.
2017         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
2018         log works with a negative argument. Replace it if not.
2019         * lib/log.c (log): For negative arguments, return NaN.
2020         * modules/log-ieee (Files): Add m4/log-ieee.m4.
2021         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
2022         * doc/posix-functions/log.texi: Mention the log-ieee module.
2023
2024         Tests for module 'logl-ieee'.
2025         * modules/logl-ieee-tests: New file.
2026         * tests/test-logl-ieee.c: New file.
2027
2028         New module 'logl-ieee'.
2029         * modules/logl-ieee: New file.
2030
2031         Tests for module 'log-ieee'.
2032         * modules/log-ieee-tests: New file.
2033         * tests/test-log-ieee.c: New file.
2034
2035         New module 'log-ieee'.
2036         * modules/log-ieee: New file.
2037
2038         Tests for module 'logf-ieee'.
2039         * modules/logf-ieee-tests: New file.
2040         * tests/test-logf-ieee.c: New file.
2041         * tests/test-log-ieee.h: New file.
2042
2043         New module 'logf-ieee'.
2044         * modules/logf-ieee: New file.
2045
2046 2012-03-10  Bruno Haible  <bruno@clisp.org>
2047
2048         log: Fix bug introduced on 2012-03-09.
2049         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
2050
2051 2012-03-10  Pádraig Brady  <P@draigBrady.com>
2052
2053         timer-time: link explicitly with pthreads on glibc
2054         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2055         to support static linking, when newer glibc is
2056         detected, as that contains pthread emulation of
2057         POSIX timer functions where required.
2058         * modules/timer-time: Depend on threadlib to
2059         pull in the appropriate library to link.
2060
2061 2012-03-10  Bruno Haible  <bruno@clisp.org>
2062
2063         log* tests: More tests.
2064         * tests/test-log.h: New file.
2065         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
2066         (main): Invoke test_function.
2067         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
2068         (main): Invoke test_function.
2069         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
2070         (main): Invoke test_function.
2071         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2072         tests/randomd.c.
2073         (Makefile.am): Add randomd.c to test_log_SOURCES.
2074         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2075         tests/randomf.c.
2076         (Makefile.am): Add randomf.c to test_logf_SOURCES.
2077         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
2078         tests/randoml.c.
2079         (Depends-on): Add 'float'.
2080         (Makefile.am): Add randoml.c to test_logl_SOURCES.
2081
2082 2012-03-09  Bruno Haible  <bruno@clisp.org>
2083
2084         logl: Work around OSF/1 5.1 bug.
2085         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
2086         * lib/logl.c (logl): If logl exists, use it and provide just the
2087         workaround.
2088         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
2089         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
2090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
2091         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
2092         * modules/logl (configure.ac): Consider REPLACE_LOGL.
2093         (Depends-on): Update conditions.
2094         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
2095
2096 2012-03-09  Bruno Haible  <bruno@clisp.org>
2097
2098         logf: Work around OSF/1 5.1 bug.
2099         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
2100         * lib/logf.c (logf): If logf exists, use it and provide just the
2101         workaround.
2102         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
2103         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
2104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
2105         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
2106         * modules/logf (configure.ac): Consider REPLACE_LOGF.
2107         (Depends-on): Update conditions.
2108         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
2109
2110 2012-03-09  Bruno Haible  <bruno@clisp.org>
2111
2112         log: Work around OSF/1 5.1 bug.
2113         * lib/math.in.h (log): New declaration.
2114         * lib/log.c: New file.
2115         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
2116         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
2117         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
2118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
2119         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
2120         * modules/log (Files): Add lib/log.c.
2121         (Depends-on): Add math.
2122         (configure.ac): If REPLACE_LOG is 1, compile an override.
2123         * tests/test-math-c++.cc: Check the declaration of log.
2124         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
2125
2126 2012-03-09  Jim Meyering  <meyering@redhat.com>
2127
2128         readtokens.c: adjust wording in a comment
2129         * lib/readtokens.c: Insert omitted "that" in a comment.
2130
2131 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2132
2133         modechange: add notations +40, 00440, etc.
2134         * lib/modechange.c (mode_compile): Support new notations
2135         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
2136
2137 2012-03-08  Bruno Haible  <bruno@clisp.org>
2138
2139         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
2140         * m4/exp2l-ieee.m4: New file.
2141         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
2142         test whether exp2l works with a NaN argument and with a negative
2143         infinity argument. Replace it if not.
2144         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
2145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
2146         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
2147         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
2148         (Depends-on): Update conditions.
2149         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
2150         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
2151         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
2152
2153         Tests for module 'exp2l-ieee'.
2154         * modules/exp2l-ieee-tests: New file.
2155         * tests/test-exp2l-ieee.c: New file.
2156
2157         New module 'exp2l-ieee'.
2158         * modules/exp2l-ieee: New file.
2159
2160         Tests for module 'exp2-ieee'.
2161         * modules/exp2-ieee-tests: New file.
2162         * tests/test-exp2-ieee.c: New file.
2163
2164         New module 'exp2-ieee'.
2165         * modules/exp2-ieee: New file.
2166
2167         Tests for module 'exp2f-ieee'.
2168         * modules/exp2f-ieee-tests: New file.
2169         * tests/test-exp2f-ieee.c: New file.
2170         * tests/test-exp2-ieee.h: New file.
2171
2172         New module 'exp2f-ieee'.
2173         * modules/exp2f-ieee: New file.
2174
2175 2012-03-08  Bruno Haible  <bruno@clisp.org>
2176
2177         Tests for module 'exp2l'.
2178         * modules/exp2l-tests: New file.
2179         * tests/test-exp2l.c: New file.
2180
2181         New module 'exp2l'.
2182         * lib/math.in.h (exp2l): New declaration.
2183         * lib/exp2l.c: New file.
2184         * lib/expl-table.c: New file, extracted from lib/expl.c.
2185         * lib/expl.c (gl_expl_table): New declaration.
2186         (expl): Remove expl_table. Update reference.
2187         * m4/exp2l.m4: New file.
2188         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
2189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
2190         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
2191         * modules/exp2l: New file.
2192         * modules/expl (Files): Add lib/expl-table.c.
2193         (configure.ac): Compile also expl-table.c.
2194         * tests/test-math-c++.cc: Check the declaration of exp2l.
2195         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
2196         problem.
2197
2198 2012-03-08  Bruno Haible  <bruno@clisp.org>
2199
2200         Tests for module 'exp2f'.
2201         * modules/exp2f-tests: New file.
2202         * tests/test-exp2f.c: New file.
2203
2204         New module 'exp2f'.
2205         * lib/math.in.h (exp2f): New declaration.
2206         * lib/exp2f.c: New file.
2207         * m4/exp2f.m4: New file.
2208         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
2209         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
2210         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
2211         * modules/exp2f: New file.
2212         * tests/test-math-c++.cc: Check the declaration of exp2f.
2213         * doc/posix-functions/exp2f.texi: Mention the new module and the
2214         IRIX problem.
2215
2216 2012-03-08  Bruno Haible  <bruno@clisp.org>
2217
2218         Tests for module 'exp2'.
2219         * modules/exp2-tests: New file.
2220         * tests/test-exp2.c: New file.
2221         * tests/test-exp2.h: New file.
2222
2223         New module 'exp2'.
2224         * lib/math.in.h (exp2): New declaration.
2225         * lib/exp2.c: New file.
2226         * m4/exp2.m4: New file.
2227         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
2228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
2229         REPLACE_EXP2.
2230         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
2231         REPLACE_EXP2.
2232         * modules/exp2: New file.
2233         * tests/test-math-c++.cc: Check the declaration of exp2.
2234         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
2235         and OpenBSD problems.
2236
2237 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
2238
2239         savedir: fix comment typo
2240         * lib/savedir.c (savedirstream): Fix typo in comment.
2241
2242 2012-03-08  Bruno Haible  <bruno@clisp.org>
2243
2244         test-readtokens.c: use const; remove unwarranted cast
2245         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
2246
2247 2012-03-08  Bruno Haible  <bruno@clisp.org>
2248
2249         fmal: Avoid compilation error on AIX.
2250         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
2251         AIX 5.2..7.1.
2252
2253 2012-03-08  Bruno Haible  <bruno@clisp.org>
2254
2255         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
2256         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
2257         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
2258         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
2259         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
2260         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
2261         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
2262
2263 2012-03-08  Bruno Haible  <bruno@clisp.org>
2264
2265         remainderf: Override buggy system function on IRIX 6.5.
2266         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
2267         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
2268         when it exists.
2269         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
2270
2271 2012-03-08  Jim Meyering  <meyering@redhat.com>
2272
2273         test-readtokens.c: avoid const-related compilation warnings
2274         * tests/test-readtokens.c: Avoid const-related compilation warnings.
2275
2276 2012-03-07  Jim Meyering  <meyering@redhat.com>
2277             Bruno Haible  <bruno@clisp.org>
2278
2279         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
2280         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
2281         tests/randomd.c.
2282         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
2283         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
2284         tests/randoml.c.
2285         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
2286
2287 2012-03-07  Bruno Haible  <bruno@clisp.org>
2288
2289         expm1l: Avoid compilation error on AIX.
2290         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
2291         AIX 5.2..7.1.
2292
2293 2012-03-07  Bruno Haible  <bruno@clisp.org>
2294
2295         expm1l: Don't override undeclared system function on IRIX 6.5.
2296         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
2297         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
2298         it exists. Set HAVE_DECL_EXPM1L.
2299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
2300         HAVE_EXPM1L.
2301         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
2302         HAVE_EXPM1L.
2303         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
2304
2305 2012-03-07  Bruno Haible  <bruno@clisp.org>
2306
2307         remainderl: Don't override undeclared system function on IRIX 6.5.
2308         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
2309         HAVE_REMAINDERL.
2310         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
2311         declared when it exists. Set HAVE_DECL_REMAINDERL.
2312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2313         not HAVE_REMAINDERL.
2314         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2315         HAVE_REMAINDERL.
2316         * doc/posix-functions/remainderl.texi: Mention missing declaration
2317         problem.
2318
2319 2012-03-07  Bruno Haible  <bruno@clisp.org>
2320
2321         rintf: Don't override undeclared system function on IRIX 6.5.
2322         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2323         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2324         exists. Set HAVE_DECL_RINTF.
2325         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2326         HAVE_RINTF.
2327         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2328         HAVE_RINTF.
2329         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2330
2331 2012-03-07  Bruno Haible  <bruno@clisp.org>
2332
2333         roundl: Avoid compilation error on AIX.
2334         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2335         AIX 5.2..7.1.
2336
2337 2012-03-07  Bruno Haible  <bruno@clisp.org>
2338
2339         roundl: Don't override undeclared system function on IRIX 6.5.
2340         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2341         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2342         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2343         * modules/roundl (configure.ac): For replacement code, test
2344         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2345         (Depends-on): Update conditions.
2346         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2347
2348 2012-03-07  Bruno Haible  <bruno@clisp.org>
2349
2350         roundf: Don't override undeclared system function on IRIX 6.5.
2351         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2352         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2353         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2354         * modules/roundf (configure.ac): For replacement code, test
2355         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2356         (Depends-on): Update conditions.
2357         * modules/roundf-ieee (Depends-on): Update conditions.
2358         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2359
2360 2012-03-07  Bruno Haible  <bruno@clisp.org>
2361
2362         round: Don't override undeclared system function on IRIX 6.5.
2363         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2364         argument.
2365         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2366         also when it is not declared. Set HAVE_ROUND. For replacement code,
2367         test HAVE_ROUND, not HAVE_DECL_ROUND.
2368         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2369         not HAVE_DECL_ROUND.
2370         (Depends-on): Update conditions.
2371         * modules/round-ieee (Depends-on): Update conditions.
2372         * doc/posix-functions/round.texi: Mention the IRIX problem.
2373
2374 2012-03-07  Bruno Haible  <bruno@clisp.org>
2375
2376         copysignf: Don't override undeclared system function on IRIX 6.5.
2377         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2378         HAVE_COPYSIGNF.
2379         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2380         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2382         not HAVE_COPYSIGNF.
2383         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2384         HAVE_COPYSIGNF.
2385         * doc/posix-functions/copysignf.texi: Mention missing declaration
2386         problem.
2387
2388 2012-03-07  Jim Meyering  <meyering@redhat.com>
2389
2390         readtokens: add tests
2391         * modules/readtokens-tests: New file.
2392         * tests/test-readtokens.c: New file.
2393
2394 2012-03-07  Jim Meyering  <meyering@redhat.com>
2395
2396         quotearg: the module must now include quote.h
2397         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2398         So must the module.
2399         * modules/quotearg (Files): Add quote.h.
2400
2401 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2402
2403         readtokens: avoid core dumps with unusual calling patterns
2404         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2405         * lib/readtokens.c: Include limits.h.
2406         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2407         (readtoken): Don't cache the delimiters; the cache code was buggy
2408         if !delim && saved_delim, or if the new n_delim differs from the old.
2409         Also, it wasn't thread-safe.
2410
2411 2012-03-07  Bruno Haible  <bruno@clisp.org>
2412
2413         quote: Adhere to common module description layout.
2414         * modules/quote (Makefile.am): Add back empty section.
2415
2416 2012-03-06  Akim Demaille  <demaille@gostai.com>
2417
2418         quote: fuse into quotearg
2419         This patch is made for the benefit of Bison.
2420         quote does not leave the choice of the quoting style to the user.
2421         quoting_style provides poor customizability, yet quoting_options,
2422         which is very rich, is hidden inside quotearg.c.  So in order to
2423         allow quote customization, move its implementation to quotearg.c.
2424         * lib/quote.c: Remove.
2425         * modules/quote: Adjust.
2426         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2427         warning: provide all the members of literal structs.
2428         (quote_quoting_options): New.
2429         (quote, quote_n): Import implementation from quote.c.
2430         * lib/quote.h: Import the comments from quote.c.
2431         (quote_quoting_options): New.
2432
2433 2012-03-06  Bruno Haible  <bruno@clisp.org>
2434
2435         Tests for module 'expm1l-ieee'.
2436         * modules/expm1l-ieee-tests: New file.
2437         * tests/test-expm1l-ieee.c: New file.
2438
2439         New module 'expm1l-ieee'.
2440         * modules/expm1l-ieee: New file.
2441
2442         Tests for module 'expm1f-ieee'.
2443         * modules/expm1f-ieee-tests: New file.
2444         * tests/test-expm1f-ieee.c: New file.
2445
2446         New module 'expm1f-ieee'.
2447         * modules/expm1f-ieee: New file.
2448
2449         Tests for module 'expm1-ieee'.
2450         * modules/expm1-ieee-tests: New file.
2451         * tests/test-expm1-ieee.c: New file.
2452         * tests/test-expm1-ieee.h: New file.
2453
2454         New module 'expm1-ieee'.
2455         * modules/expm1-ieee: New file.
2456         * m4/expm1-ieee.m4: New file.
2457         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2458         whether expm1 works with a minus zero argument. Replace it if not.
2459         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2461         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2462         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2463         (Depends-on): Update conditions.
2464         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2465         AIX problem.
2466
2467 2012-03-06  Bruno Haible  <bruno@clisp.org>
2468
2469         Work around expm1f bug on IRIX 6.5.
2470         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2471         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2472         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2473         not work.
2474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2475         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2476         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2477         (Depends-on): Update conditions.
2478         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2479
2480 2012-03-06  Bruno Haible  <bruno@clisp.org>
2481
2482         Tests for module 'expm1l'.
2483         * modules/expm1l-tests: New file.
2484         * tests/test-expm1l.c: New file.
2485
2486         New module 'expm1l'.
2487         * lib/math.in.h (expm1l): New declaration.
2488         * lib/expm1l.c: New file.
2489         * m4/expm1l.m4: New file.
2490         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2492         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2493         * modules/expm1l: New file.
2494         * tests/test-math-c++.cc: Check the declaration of expm1l.
2495         * doc/posix-functions/expm1l.texi: Mention the new module.
2496
2497 2012-03-06  Bruno Haible  <bruno@clisp.org>
2498
2499         Tests for module 'expm1f'.
2500         * modules/expm1f-tests: New file.
2501         * tests/test-expm1f.c: New file.
2502
2503         New module 'expm1f'.
2504         * lib/math.in.h (expm1f): New declaration.
2505         * lib/expm1f.c: New file.
2506         * m4/expm1f.m4: New file.
2507         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2508         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2509         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2510         * modules/expm1f: New file.
2511         * tests/test-math-c++.cc: Check the declaration of expm1f.
2512         * doc/posix-functions/expm1f.texi: Mention the new module.
2513
2514 2012-03-06  Bruno Haible  <bruno@clisp.org>
2515
2516         Tests for module 'expm1'.
2517         * modules/expm1-tests: New file.
2518         * tests/test-expm1.c: New file.
2519         * tests/test-expm1.h: New file.
2520
2521         New module 'expm1'.
2522         * lib/math.in.h (expm1): New declaration.
2523         * lib/expm1.c: New file.
2524         * m4/expm1.m4: New file.
2525         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2526         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2527         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2528         * modules/expm1: New file.
2529         * tests/test-math-c++.cc: Check the declaration of expm1.
2530         * doc/posix-functions/expm1.texi: Mention the new module.
2531
2532 2012-03-06  Bruno Haible  <bruno@clisp.org>
2533
2534         math: Ensure declarations of math functions.
2535         * modules/acosf (Depends-on): Add 'extensions'.
2536         * modules/asinf (Depends-on): Likewise.
2537         * modules/atan2f (Depends-on): Likewise.
2538         * modules/atanf (Depends-on): Likewise.
2539         * modules/cbrt (Depends-on): Likewise.
2540         * modules/cbrtf (Depends-on): Likewise.
2541         * modules/cbrtl (Depends-on): Likewise.
2542         * modules/copysignf (Depends-on): Likewise.
2543         * modules/copysignl (Depends-on): Likewise.
2544         * modules/cosf (Depends-on): Likewise.
2545         * modules/coshf (Depends-on): Likewise.
2546         * modules/expf (Depends-on): Likewise.
2547         * modules/fabsf (Depends-on): Likewise.
2548         * modules/fabsl (Depends-on): Likewise.
2549         * modules/fmaf (Depends-on): Likewise.
2550         * modules/fmal (Depends-on): Likewise.
2551         * modules/fmodf (Depends-on): Likewise.
2552         * modules/fmodl (Depends-on): Likewise.
2553         * modules/frexpf (Depends-on): Likewise.
2554         * modules/frexpl (Depends-on): Likewise.
2555         * modules/hypot (Depends-on): Likewise.
2556         * modules/hypotf (Depends-on): Likewise.
2557         * modules/hypotl (Depends-on): Likewise.
2558         * modules/ldexpf (Depends-on): Likewise.
2559         * modules/ldexpl (Depends-on): Likewise.
2560         * modules/log10f (Depends-on): Likewise.
2561         * modules/log10l (Depends-on): Likewise.
2562         * modules/log1p (Depends-on): Likewise.
2563         * modules/logb (Depends-on): Likewise.
2564         * modules/logf (Depends-on): Likewise.
2565         * modules/modff (Depends-on): Likewise.
2566         * modules/modfl (Depends-on): Likewise.
2567         * modules/powf (Depends-on): Likewise.
2568         * modules/remainderf (Depends-on): Likewise.
2569         * modules/remainderl (Depends-on): Likewise.
2570         * modules/rintf (Depends-on): Likewise.
2571         * modules/rintl (Depends-on): Likewise.
2572         * modules/sinf (Depends-on): Likewise.
2573         * modules/sinhf (Depends-on): Likewise.
2574         * modules/sqrtf (Depends-on): Likewise.
2575         * modules/tanf (Depends-on): Likewise.
2576         * modules/tanhf (Depends-on): Likewise.
2577         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2578         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2579         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2580         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2581         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2582         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2583         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2584         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2585         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2586         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2587         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2588         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2589         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2590         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2591         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2592         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2593         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2594         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2595         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2596         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2597         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2598         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2599         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2600         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2601         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2602         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2603         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2604         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2605         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2606         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2607         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2608         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2609         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2610         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2611         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2612         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2613         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2614         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2615         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2616         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2617         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2618
2619 2012-03-06  Bruno Haible  <bruno@clisp.org>
2620
2621         math: Update module names in warnings.
2622         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2623         tanl): Use specific module name in warn-on-use warning.
2624
2625 2012-03-06  Bruno Haible  <bruno@clisp.org>
2626
2627         expl: Simplify computation.
2628         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2629
2630 2012-03-05  Bruno Haible  <bruno@clisp.org>
2631
2632         exp* tests: More tests.
2633         * tests/test-exp.h: New file.
2634         * tests/test-exp.c: Include <float.h> and test-exp.h.
2635         (main): Invoke test_function.
2636         * tests/test-expf.c: Include <float.h> and test-exp.h.
2637         (main): Invoke test_function.
2638         * tests/test-expl.c: Include <float.h> and test-exp.h.
2639         (main): Invoke test_function.
2640         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2641         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2642         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2643         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2644         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2645         (Depends-on): Add 'float'.
2646         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2647
2648         expl: Fix precision of computed result.
2649         * lib/expl.c: Completely rewritten.
2650         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2651         (Maintainer): Add me.
2652         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2653
2654 2012-03-05  Bruno Haible  <bruno@clisp.org>
2655
2656         cbrt* tests: More tests.
2657         * tests/test-cbrt.h: New file.
2658         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2659         (main): Invoke test_function.
2660         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2661         (main): Invoke test_function.
2662         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2663         (main): Invoke test_function.
2664         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2665         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2666         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2667         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2668         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2669         (Depends-on): Add 'float'.
2670         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2671
2672 2012-03-05  Bruno Haible  <bruno@clisp.org>
2673
2674         hypot* tests: More tests.
2675         * tests/test-hypot.h: New file, partially extracted from
2676         tests/test-hypotl.c.
2677         * tests/test-hypot.c: Include test-hypot.h.
2678         (main): Invoke test_function.
2679         * tests/test-hypotf.c: Include test-hypot.h.
2680         (main): Invoke test_function.
2681         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2682         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2683         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2684         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2685         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2686         tests/randomf.c.
2687         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2688         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2689         tests/randoml.c.
2690         (Depends-on): Add 'fpucw', 'float'.
2691         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2692
2693 2012-03-05  Bruno Haible  <bruno@clisp.org>
2694
2695         fpucw: Doc about FreeBSD.
2696         * lib/fpucw.h: Mention FreeBSD in comments.
2697
2698 2012-03-04  Bruno Haible  <bruno@clisp.org>
2699
2700         sqrt* tests: More tests.
2701         * tests/test-sqrt.h: New file.
2702         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2703         (main): Invoke test_function.
2704         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2705         (main): Invoke test_function.
2706         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2707         (main): Invoke test_function.
2708         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2709         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2710         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2711         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2712         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2713         (Depends-on): Add 'float'.
2714         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2715
2716 2012-03-04  Bruno Haible  <bruno@clisp.org>
2717
2718         remainder* tests: More tests.
2719         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2720         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2721         (main): Invoke test_function.
2722         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2723         (main): Invoke test_function.
2724         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2725         (main): Invoke test_function.
2726         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2727         tests/randomd.c.
2728         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2729         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2730         tests/randomf.c.
2731         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2732         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2733         tests/randoml.c.
2734         (Depends-on): Add 'float'.
2735         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2736
2737 2012-03-04  Bruno Haible  <bruno@clisp.org>
2738
2739         remainder, remainderf, remainderl: Fix computation for large quotients.
2740         * lib/remainder.c: Completely rewritten.
2741         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2742         USE_FLOAT.
2743         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2744         USE_LONG_DOUBLE.
2745         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2746         isnand, isinf. Remove round, fma.
2747         * modules/remainderf (Files): Add lib/remainder.c.
2748         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2749         Remove roundf, fmaf.
2750         * modules/remainderl (Files): Add lib/remainder.c.
2751         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2752         isinf. Remove roundl, fmal.
2753         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2754         REMAINDER_LIBM.
2755         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2756         REMAINDERF_LIBM.
2757         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2758         REMAINDERL_LIBM.
2759
2760 2012-03-04  Bruno Haible  <bruno@clisp.org>
2761
2762         fmod* tests: More tests.
2763         * tests/test-fmod.h (my_ldexp): New function.
2764         (test_function): Reduce amount of random numbers to test. Add tests
2765         of very large quotients x / y.
2766         * tests/test-fmod.c (MAX_EXP): New macro.
2767         * tests/test-fmodf.c (MAX_EXP): Likewise.
2768         * tests/test-fmodl.c (MAX_EXP): Likewise.
2769
2770 2012-03-04  Bruno Haible  <bruno@clisp.org>
2771
2772         fmod, fmodl: Fix computation for large quotients x / y.
2773         * lib/fmod.c: Completely rewritten.
2774         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2775         USE_LONG_DOUBLE.
2776         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2777         isnand. Remove fma.
2778         * modules/fmodl (Files): Add lib/fmod.c.
2779         (Depends-on): Add float, isfinite, signbit, fabsl,
2780         frexpl, ldexpl, isnanl. Remove fma.
2781         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2782         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2783
2784 2012-03-03  Bruno Haible  <bruno@clisp.org>
2785
2786         fmod* tests: More tests.
2787         * tests/test-fmod.h: New file.
2788         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2789         (main): Invoke test_function.
2790         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2791         (main): Invoke test_function.
2792         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2793         (main): Invoke test_function.
2794         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2795         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2796         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2797         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2798         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2799         (Depends-on): Add 'float'.
2800         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2801
2802 2012-03-03  Bruno Haible  <bruno@clisp.org>
2803
2804         rint* tests: More tests.
2805         * tests/test-rint.h: New file, partially extracted from
2806         tests/test-rintl.c.
2807         * tests/test-rint.c: Include test-rint.h.
2808         (main): Invoke test_function.
2809         * tests/test-rintf.c: Include test-rint.h.
2810         (main): Invoke test_function.
2811         * tests/test-rintl.c: Include test-rint.h.
2812         (main): Invoke test_function.
2813         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2814         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2815         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2816         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2817         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2818         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2819
2820 2012-03-03  Bruno Haible  <bruno@clisp.org>
2821
2822         modf* tests: More tests.
2823         * tests/test-modf.h: New file.
2824         * tests/test-modf.c: Include <float.h> and test-modf.h.
2825         (main): Invoke test_function.
2826         * tests/test-modff.c: Include <float.h> and test-modf.h.
2827         (main): Invoke test_function.
2828         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2829         (main): Invoke test_function.
2830         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2831         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2832         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2833         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2834         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2835         (Depends-on): Add 'float'.
2836         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2837
2838 2012-03-03  Bruno Haible  <bruno@clisp.org>
2839
2840         fabs* tests: More tests.
2841         * tests/test-fabs.h: New file, partially extracted from
2842         tests/test-fabsl.c.
2843         * tests/test-fabs.c (RANDOM): New macro.
2844         * tests/test-fabsf.c (RANDOM): New macro.
2845         * tests/test-fabsl.c (RANDOM): New macro.
2846         * modules/fabs-tests (Files): Add tests/randomd.c.
2847         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2848         * modules/fabsf-tests (Files): Add tests/randomf.c.
2849         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2850         * modules/fabsl-tests (Files): Add tests/randoml.c.
2851         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2852
2853 2012-03-03  Bruno Haible  <bruno@clisp.org>
2854
2855         ldexp* tests: More tests.
2856         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2857         * tests/test-ldexp.c (RANDOM): New macro.
2858         * tests/test-ldexpf.c (RANDOM): New macro.
2859         * tests/test-ldexpl.c (RANDOM): New macro.
2860         * modules/ldexp-tests (Files): Add tests/randomd.c.
2861         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2862         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2863         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2864         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2865         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2866
2867 2012-03-03  Bruno Haible  <bruno@clisp.org>
2868
2869         frexp* tests: More tests.
2870         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2871         * tests/test-frexp.c (RANDOM): New macro.
2872         * tests/test-frexpf.c (RANDOM): New macro.
2873         * tests/test-frexpl.c (RANDOM): New macro.
2874         * modules/frexp-tests (Files): Add tests/randomd.c.
2875         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2876         * modules/frexpf-tests (Files): Add tests/randomf.c.
2877         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2878         * modules/frexpl-tests (Files): Add tests/randoml.c.
2879         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2880
2881 2012-03-03  Bruno Haible  <bruno@clisp.org>
2882
2883         Support for pseudo-random numbers in tests.
2884         * tests/randomf.c: New file.
2885         * tests/randomd.c: New file.
2886         * tests/randoml.c: New file.
2887         * tests/macros.h (randomf, randomd, randoml): New declarations.
2888
2889 2012-03-03  Bruno Haible  <bruno@clisp.org>
2890
2891         frexp* tests: Refactor.
2892         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2893         * tests/test-frexp.c: Include and use it.
2894         * tests/test-frexpf.c: Likewise.
2895         * tests/test-frexpl.c: Likewise.
2896         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2897         * modules/frexpf-tests (Files): Likewise.
2898         * modules/frexpl-tests (Files): Likewise.
2899
2900 2012-03-02  Jim Meyering  <meyering@redhat.com>
2901
2902         maint: don't specify XZ_OPT=-9ev in dist-related rule
2903         Using xz's -9 option is warranted only if you have a very large
2904         tarball (see xz's documentation for the sizes vs. presets), and
2905         requires 64MiB of memory at decompression time.
2906         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2907         Automake's default of just "-e" is fine.  Override on a
2908         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2909
2910 2012-03-01  Eric Blake  <eblake@redhat.com>
2911
2912         maint.mk: allow announcement for non-gnulib project
2913         * maint.mk (announcement): Skip gnulib version if not used.
2914
2915 2012-03-01  Jim Meyering  <meyering@redhat.com>
2916
2917         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2918         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2919         envvar settings cannot interfere.  Otherwise, setting envvars like
2920         prohibit=foo require=bar, etc. would cause spurious test failures.
2921
2922 2012-03-01  Eric Blake  <eblake@redhat.com>
2923
2924         maint.mk: add per-line exclusions to prohibitions
2925         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2926         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2927         (sc_const_long_option): Use it.
2928
2929 2012-03-01  Bruno Haible  <bruno@clisp.org>
2930
2931         Tests for module 'expl-ieee'.
2932         * modules/expl-ieee-tests: New file.
2933         * tests/test-expl-ieee.c: New file.
2934
2935         New module 'expl-ieee'.
2936         * modules/expl-ieee: New file.
2937
2938         Tests for module 'exp-ieee'.
2939         * modules/exp-ieee-tests: New file.
2940         * tests/test-exp-ieee.c: New file.
2941
2942         New module 'exp-ieee'.
2943         * modules/exp-ieee: New file.
2944
2945         Tests for module 'expf-ieee'.
2946         * modules/expf-ieee-tests: New file.
2947         * tests/test-expf-ieee.c: New file.
2948         * tests/test-exp-ieee.h: New file.
2949
2950         New module 'expf-ieee'.
2951         * modules/expf-ieee: New file.
2952
2953 2012-02-29  Bruno Haible  <bruno@clisp.org>
2954
2955         cbrtl-ieee: Work around test failure on IRIX 6.5.
2956         * m4/cbrtl-ieee.m4: New file.
2957         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2958         test whether cbrtl works with a minus zero argument. Replace it if not.
2959         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2960         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2961         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2962         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2963         (Depends-on): Update conditions.
2964         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2965         m4/signbit.m4.
2966         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2967         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2968         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2969
2970         Tests for module 'cbrtl-ieee'.
2971         * modules/cbrtl-ieee-tests: New file.
2972         * tests/test-cbrtl-ieee.c: New file.
2973
2974         New module 'cbrtl-ieee'.
2975         * modules/cbrtl-ieee: New file.
2976
2977         Tests for module 'cbrt-ieee'.
2978         * modules/cbrt-ieee-tests: New file.
2979         * tests/test-cbrt-ieee.c: New file.
2980
2981         New module 'cbrt-ieee'.
2982         * modules/cbrt-ieee: New file.
2983
2984         Tests for module 'cbrtf-ieee'.
2985         * modules/cbrtf-ieee-tests: New file.
2986         * tests/test-cbrtf-ieee.c: New file.
2987         * tests/test-cbrt-ieee.h: New file.
2988
2989         New module 'cbrtf-ieee'.
2990         * modules/cbrtf-ieee: New file.
2991
2992 2012-02-29  Bruno Haible  <bruno@clisp.org>
2993
2994         cbrtf: Work around bug in IRIX 6.5 system function.
2995         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2996         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2997         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2998         work.
2999         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
3000         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
3001         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
3002         (Depends-on): Update conditions.
3003         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
3004
3005 2012-02-29  Bruno Haible  <bruno@clisp.org>
3006
3007         Tests for module 'cbrtl'.
3008         * modules/cbrtl-tests: New file.
3009         * tests/test-cbrtl.c: New file.
3010
3011         New module 'cbrtl'.
3012         * lib/math.in.h (cbrtl): New declaration.
3013         * lib/cbrtl.c: New file.
3014         * m4/cbrtl.m4: New file.
3015         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
3016         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
3017         HAVE_DECL_CBRTL.
3018         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
3019         HAVE_DECL_CBRTL.
3020         * modules/cbrtl: New file.
3021         * tests/test-math-c++.cc: Check the declaration of cbrtl.
3022         * doc/posix-functions/cbrtl.texi: Mention the new module.
3023
3024 2012-02-29  Bruno Haible  <bruno@clisp.org>
3025
3026         Tests for module 'cbrtf'.
3027         * modules/cbrtf-tests: New file.
3028         * tests/test-cbrtf.c: New file.
3029
3030         New module 'cbrtf'.
3031         * lib/math.in.h (cbrtf): New declaration.
3032         * lib/cbrtf.c: New file.
3033         * m4/cbrtf.m4: New file.
3034         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
3035         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
3036         HAVE_DECL_CBRTF.
3037         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
3038         HAVE_DECL_CBRTF.
3039         * modules/cbrtf: New file.
3040         * tests/test-math-c++.cc: Check the declaration of cbrtf.
3041         * doc/posix-functions/cbrtf.texi: Mention the new module.
3042
3043 2012-02-29  Bruno Haible  <bruno@clisp.org>
3044
3045         cbrt: Provide replacement on MSVC and Minix.
3046         * lib/math.in.h (cbrt): New declaration.
3047         * lib/cbrt.c: New file.
3048         * m4/cbrt.m4: New file.
3049         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
3050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
3051         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
3052         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
3053         (Depends-on): Add dependencies.
3054         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
3055         * tests/test-math-c++.cc: Check the declaration of cbrt.
3056         * doc/posix-functions/cbrt.texi: Mention that the module provides a
3057         replacement.
3058
3059 2012-02-29  Bruno Haible  <bruno@clisp.org>
3060
3061         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
3062         * m4/hypotl-ieee.m4: New file.
3063         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
3064         test whether hypotl works with mixed NaN and Infinity arguments.
3065         Replace it if not.
3066         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
3067         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
3068         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
3069         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
3070         (Depends-on): Update conditions.
3071         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
3072         (Depends-on): Add hypot-ieee.
3073         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
3074         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
3075
3076         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
3077         * m4/hypotf-ieee.m4: New file.
3078         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
3079         test whether hypotf works with mixed NaN and Infinity arguments.
3080         Replace it if not.
3081         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
3082         (Depends-on): Add hypot-ieee.
3083         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
3084         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
3085
3086         hypot-ieee: Work around test failure on OSF/1 and native Windows.
3087         * lib/math.in.h (hypot): New declaration.
3088         * lib/hypot.c: New file.
3089         * m4/hypot-ieee.m4: New file.
3090         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
3091         whether hypot works with mixed NaN and Infinity arguments. Replace it
3092         if not.
3093         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
3094         REPLACE_HYPOT.
3095         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
3096         * modules/hypot (Files): Add lib/hypot.c.
3097         (Depends-on): Add dependencies.
3098         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
3099         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
3100         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
3101         * tests/test-math-c++.cc: Check the declaration of hypot.
3102         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
3103
3104         Tests for module 'hypotl-ieee'.
3105         * modules/hypotl-ieee-tests: New file.
3106         * tests/test-hypotl-ieee.c: New file.
3107
3108         New module 'hypotl-ieee'.
3109         * modules/hypotl-ieee: New file.
3110
3111         Tests for module 'hypot-ieee'.
3112         * modules/hypot-ieee-tests: New file.
3113         * tests/test-hypot-ieee.c: New file.
3114
3115         New module 'hypot-ieee'.
3116         * modules/hypot-ieee: New file.
3117
3118         Tests for module 'hypotf-ieee'.
3119         * modules/hypotf-ieee-tests: New file.
3120         * tests/test-hypotf-ieee.c: New file.
3121         * tests/test-hypot-ieee.h: New file.
3122
3123         New module 'hypotf-ieee'.
3124         * modules/hypotf-ieee: New file.
3125
3126 2012-02-29  Bruno Haible  <bruno@clisp.org>
3127
3128         Remove unused variables.
3129         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
3130         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3131         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
3132         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3133
3134 2012-02-29  Eric Blake  <eblake@redhat.com>
3135
3136         termios: fix pid_t always, not just for tcgetsid
3137         * doc/posix-headers/termios.texi (termios.h): Mention problem.
3138         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
3139         just when building tcgetsid.
3140
3141 2012-02-29  Bruno Haible  <bruno@clisp.org>
3142
3143         Tests for module 'hypotl'.
3144         * modules/hypotl-tests: New file.
3145         * tests/test-hypotl.c: New file.
3146
3147         New module 'hypotl'.
3148         * lib/math.in.h (hypotl): New declaration.
3149         * lib/hypotl.c: New file.
3150         * m4/hypotl.m4: New file.
3151         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3152         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
3153         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
3154         * modules/hypotl: New file.
3155         * tests/test-math-c++.cc: Check the hypotl declaration.
3156         * doc/posix-functions/hypotl.texi: Mention the new module.
3157
3158 2012-02-29  Eric Blake  <eblake@redhat.com>
3159
3160         tcgetsid: fix cygwin header bug
3161         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
3162
3163         docs: update cygwin progress
3164         * doc/posix-functions/llround.texi (llround): Added in cygwin
3165         1.7.8.
3166         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
3167         * doc/glibc-functions/program_invocation_name.texi
3168         (program_invocation_name): Likewise.
3169         * doc/glibc-functions/program_invocation_short_name.texi
3170         (program_invocation_short_name): Likewise.
3171         * doc/glibc-functions/madvise.texi (madvise): Likewise.
3172         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
3173         Likewise.
3174         * doc/posix-functions/pthread_spin_destroy.texi
3175         (pthread_spin_destroy): Added in cygwin 1.7.10.
3176         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
3177         Likewise.
3178         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
3179         Likewise.
3180         * doc/posix-functions/pthread_spin_trylock.texi
3181         (pthread_spin_trylock): Likewise.
3182         * doc/posix-functions/pthread_spin_unlock.texi
3183         (pthread_spin_unlock): Likewise.
3184         * doc/posix-functions/pthread_setschedprio.texi
3185         (pthread_setschedprio): Likewise.
3186         * doc/posix-functions/pthread_attr_getstack.texi
3187         (pthread_attr_getstack): Likewise.
3188         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
3189         (pthread_attr_getstackaddr): Likewise.
3190         * doc/glibc-functions/pthread_getattr_np.texi
3191         (pthread_getattr_np): Likewise.
3192         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
3193         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
3194         * doc/posix-functions/clock_settime.texi (clock_settime):
3195         Likewise.
3196         * doc/posix-functions/pthread_attr_getguardsize.texi
3197         (pthread_attr_getguardsize): Likewise.
3198         * doc/posix-functions/pthread_attr_setguardsize.texi
3199         (pthread_attr_setguardsize): Likewise.
3200         * doc/posix-functions/pthread_attr_setstack.texi
3201         (pthread_attr_setstack): Likewise.
3202         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
3203         (pthread_attr_setstackaddr): Likewise.
3204         * doc/posix-functions/clock_getcpuclockid.texi
3205         (clock_getcpuclockid): Likewise.
3206         * doc/posix-functions/pthread_getcpuclockid.texi
3207         (pthread_getcpuclockid): Likewise.
3208         * doc/glibc-functions/error.texi (error): Likewise.
3209         * doc/glibc-functions/error_at_line.texi (error_at_line):
3210         Likewise.
3211         * doc/glibc-functions/error_message_count.texi
3212         (error_message_count): Likewise.
3213         * doc/glibc-functions/error_one_per_line.texi
3214         (error_one_per_line): Likewise.
3215         * doc/glibc-functions/error_print_progname.texi
3216         (error_print_progname): Likewise.
3217         * doc/posix-functions/pthread_condattr_getclock.texi
3218         (pthread_condattr_getclock): Likewise.
3219         * doc/posix-functions/pthread_condattr_setclock.texi
3220         (pthread_condattr_setclock): Likewise.
3221         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
3222         Likewise.
3223         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
3224         * doc/glibc-functions/getpt.texi (getpt): Likewise.
3225         * doc/glibc-functions/get_current_dir_name.texi
3226         (get_current_dir_name): Likewise.
3227         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
3228         Likewise.
3229         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
3230         wrong return type.
3231         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
3232         1.7.11.
3233
3234 2012-02-29  Bruno Haible  <bruno@clisp.org>
3235
3236         Tests for module 'hypotf'.
3237         * modules/hypotf-tests: New file.
3238         * tests/test-hypotf.c: New file.
3239
3240         New module 'hypotf'.
3241         * lib/math.in.h (hypotf): New declaration.
3242         * lib/hypotf.c: New file.
3243         * m4/hypotf.m4: New file.
3244         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
3245         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
3246         REPLACE_HYPOTF.
3247         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
3248         REPLACE_HYPOTF.
3249         * modules/hypotf: New file.
3250         * tests/test-math-c++.cc: Check the hypotf declaration.
3251         * doc/posix-functions/hypotf.texi: Mention the new module.
3252
3253         hypot: Prepare for hypotf module.
3254         * m4/hypot.m4: New file.
3255         * modules/hypot (Files): Add m4/hypot.m4.
3256         (configure.ac): Invoke gl_FUNC_HYPOT.
3257
3258 2012-02-29  Bruno Haible  <bruno@clisp.org>
3259
3260         hypot tests: More tests.
3261         * tests/test-hypot.c: Include <float.h>.
3262         (main): Add tests about overflow and underflow.
3263
3264 2012-02-29  Bruno Haible  <bruno@clisp.org>
3265
3266         math code: Add comments.
3267         * lib/acosl.c: Add comment about related glibc source files.
3268         * lib/asinl.c: Likewise.
3269         * lib/atanl.c: Likewise.
3270         * lib/expl.c: Likewise.
3271         * lib/logl.c: Likewise.
3272         * lib/sincosl.c: Likewise.
3273         * lib/sinl.c: Likewise.
3274         * lib/tanl.c: Likewise.
3275         * lib/trigl.c: Likewise.
3276         * lib/cosl.c: Likewise. Fix comments.
3277
3278 2012-02-28  Bruno Haible  <bruno@clisp.org>
3279
3280         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
3281         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
3282         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
3283         HUGE_VALL are defined.
3284         (numeric_equald): Renamed from numeric_equal.
3285         (numeric_equalf, numeric_equall): New functions.
3286         (main): Check also HUGE_VALF, HUGE_VALL.
3287         * modules/math-tests (Files): Add tests/macros.h.
3288         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
3289         HUGE_VALL.
3290
3291 2012-02-28  Bruno Haible  <bruno@clisp.org>
3292
3293         doc: Move ISO C11 feature notes into POSIX chapters.
3294         * doc/posix-functions/aligned_alloc.texi: Renamed from
3295         doc/glibc-functions/aligned_alloc.texi.
3296         * doc/posix-functions/quick_exit.texi: Renamed from
3297         doc/glibc-functions/quick_exit.texi.
3298         * doc/posix-headers/uchar.texi: Renamed from
3299         doc/glibc-headers/uchar.texi.
3300         * doc/posix-functions/c16rtomb.texi: Renamed from
3301         doc/glibc-functions/c16rtomb.texi.
3302         * doc/posix-functions/c32rtomb.texi: Renamed from
3303         doc/glibc-functions/c32rtomb.texi.
3304         * doc/posix-functions/mbrtoc16.texi: Renamed from
3305         doc/glibc-functions/mbrtoc16.texi.
3306         * doc/posix-functions/mbrtoc32.texi: Renamed from
3307         doc/glibc-functions/mbrtoc32.texi.
3308         * doc/gnulib.texi: Update.
3309         (Glibc uchar.h): Remove section.
3310         Suggested by Eric Blake.
3311
3312 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3313
3314         stdnoreturn: port to MSVC better
3315         MSVC standard headers use __declspec(noreturn), so #define noreturn
3316         to empty on that platform.  Reported by Bruno Haible in
3317         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3318         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3319         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3320
3321 2012-02-28  Bruno Haible  <bruno@clisp.org>
3322
3323         doc: Mention new glibc headers and functions.
3324         * doc/glibc-headers/uchar.texi: New file.
3325         * doc/glibc-functions/aligned_alloc.texi: New file.
3326         * doc/glibc-functions/c16rtomb.texi: New file.
3327         * doc/glibc-functions/c32rtomb.texi: New file.
3328         * doc/glibc-functions/clock_adjtime.texi: New file.
3329         * doc/glibc-functions/fanotify_init.texi: New file.
3330         * doc/glibc-functions/fanotify_mark.texi: New file.
3331         * doc/glibc-functions/inet6_opt_append.texi: New file.
3332         * doc/glibc-functions/inet6_opt_find.texi: New file.
3333         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3334         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3335         * doc/glibc-functions/inet6_opt_init.texi: New file.
3336         * doc/glibc-functions/inet6_opt_next.texi: New file.
3337         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3338         * doc/glibc-functions/inet6_rth_add.texi: New file.
3339         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3340         * doc/glibc-functions/inet6_rth_init.texi: New file.
3341         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3342         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3343         * doc/glibc-functions/inet6_rth_space.texi: New file.
3344         * doc/glibc-functions/login.texi: New file.
3345         * doc/glibc-functions/mbrtoc16.texi: New file.
3346         * doc/glibc-functions/mbrtoc32.texi: New file.
3347         * doc/glibc-functions/name_to_handle_at.texi: New file.
3348         * doc/glibc-functions/ntp_gettimex.texi: New file.
3349         * doc/glibc-functions/open_by_handle_at.texi: New file.
3350         * doc/glibc-functions/prlimit.texi: New file.
3351         * doc/glibc-functions/process_vm_readv.texi: New file.
3352         * doc/glibc-functions/process_vm_writev.texi: New file.
3353         * doc/glibc-functions/recvmmsg.texi: New file.
3354         * doc/glibc-functions/scandirat.texi: New file.
3355         * doc/glibc-functions/sendmmsg.texi: New file.
3356         * doc/glibc-functions/setns.texi: New file.
3357         * doc/glibc-functions/timespec_get.texi: New file.
3358         * doc/gnulib.texi: Include them.
3359         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3360         sections.
3361         Reported by Eric Blake.
3362
3363 2012-02-28  Bruno Haible  <bruno@clisp.org>
3364
3365         Avoid compilation errors with MSVC option -fp:strict.
3366         * lib/floor.c: Use MSVC specific pragma fenv_access.
3367         * lib/ceil.c: Likewise.
3368         * lib/trunc.c: Likewise.
3369         * lib/round.c: Likewise.
3370         * lib/rint.c: Likewise.
3371         * lib/fma.c: Likewise.
3372         * lib/integer_length.c: Likewise.
3373         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3374         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3375         * tests/test-floor2.c: Likewise.
3376         * tests/test-floorf2.c: Likewise.
3377         * tests/test-ceil2.c: Likewise.
3378         * tests/test-ceilf2.c: Likewise.
3379         * tests/test-trunc2.c: Likewise.
3380         * tests/test-truncf2.c: Likewise.
3381         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3382
3383 2012-02-27  Bruno Haible  <bruno@clisp.org>
3384
3385         Tests for module 'sqrtl-ieee'.
3386         * modules/sqrtl-ieee-tests: New file.
3387         * tests/test-sqrtl-ieee.c: New file.
3388
3389         New module 'sqrtl-ieee'.
3390         * modules/sqrtl-ieee: New file.
3391
3392         Tests for module 'sqrt-ieee'.
3393         * modules/sqrt-ieee-tests: New file.
3394         * tests/test-sqrt-ieee.c: New file.
3395
3396         New module 'sqrt-ieee'.
3397         * modules/sqrt-ieee: New file.
3398
3399         Tests for module 'sqrtf-ieee'.
3400         * modules/sqrtf-ieee-tests: New file.
3401         * tests/test-sqrtf-ieee.c: New file.
3402         * tests/test-sqrt-ieee.h: New file.
3403
3404         New module 'sqrtf-ieee'.
3405         * modules/sqrtf-ieee: New file.
3406
3407 2012-02-27  Bruno Haible  <bruno@clisp.org>
3408
3409         remainderl-ieee: Work around test failure on OSF/1.
3410         * m4/remainderl-ieee.m4: New file.
3411         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3412         present, test whether remainderl works with a zero second argument.
3413         Replace it if not.
3414         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3416         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3417         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3418         (Depends-on): Update conditions.
3419         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3420         (Depends-on): Add remainder-ieee.
3421         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3422         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3423         module.
3424
3425         remainderf-ieee: Work around test failure on OSF/1.
3426         * m4/remainderf-ieee.m4: New file.
3427         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3428         present, test whether remainderf works with a zero second argument.
3429         Replace it if not.
3430         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3431         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3432         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3433         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3434         (Depends-on): Update conditions.
3435         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3436         (Depends-on): Add remainder-ieee.
3437         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3438         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3439         module.
3440
3441         remainder-ieee: Work around test failure on OSF/1.
3442         * m4/remainder-ieee.m4: New file.
3443         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3444         present, test whether remainder works with a zero second argument.
3445         Replace it if not.
3446         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3448         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3449         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3450         (Depends-on): Update dependencies.
3451         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3452         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3453         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3454
3455         Tests for module 'remainderl-ieee'.
3456         * modules/remainderl-ieee-tests: New file.
3457         * tests/test-remainderl-ieee.c: New file.
3458
3459         New module 'remainderl-ieee'.
3460         * modules/remainderl-ieee: New file.
3461
3462         Tests for module 'remainder-ieee'.
3463         * modules/remainder-ieee-tests: New file.
3464         * tests/test-remainder-ieee.c: New file.
3465
3466         New module 'remainder-ieee'.
3467         * modules/remainder-ieee: New file.
3468
3469         Tests for module 'remainderf-ieee'.
3470         * modules/remainderf-ieee-tests: New file.
3471         * tests/test-remainderf-ieee.c: New file.
3472         * tests/test-remainder-ieee.h: New file.
3473
3474         New module 'remainderf-ieee'.
3475         * modules/remainderf-ieee: New file.
3476
3477 2012-02-27  Bruno Haible  <bruno@clisp.org>
3478
3479         modff, modfl: Fix configure syntax error.
3480         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3481         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3482
3483 2012-02-27  Bruno Haible  <bruno@clisp.org>
3484
3485         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3486         * m4/fmodl-ieee.m4: New file.
3487         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3488         whether fmodl works with zero arguments. Replace it if not.
3489         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3490         (Depends-on): Add fmod-ieee.
3491         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3492         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3493
3494         fmodf-ieee: Work around test failure on OSF/1.
3495         * m4/fmodf-ieee.m4: New file.
3496         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3497         whether fmodf works with zero arguments. Replace it if not.
3498         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3500         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3501         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3502         (Depends-on): Update dependencies.
3503         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3504         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3505         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3506
3507         fmodf-ieee: Work around test failure on MSVC 9.
3508         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3509         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3510
3511         fmod-ieee: Work around test failures on OSF/1, mingw.
3512         * m4/fmod-ieee.m4: New file.
3513         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3514         whether fmod works with zero arguments. Replace it if not.
3515         * lib/math.in.h (fmod): New declaration.
3516         * lib/fmod.c: New file.
3517         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3519         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3520         * modules/fmod (Files): Add lib/fmod.c.
3521         (Depends-on): Add math, isinf, trunc, fma.
3522         (configure.ac): Arrange to compile lib/fmod.c if needed.
3523         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3524         m4/signbit.m4.
3525         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3526         * tests/test-math-c++.cc: Check the declaration of fmod.
3527         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3528
3529         fmodl-ieee: Fix test failures.
3530         * lib/fmodl.c (fmodl): Treat Inf specially.
3531         * modules/fmodl (Depends-on): Add isinf.
3532
3533         Tests for module 'fmodl-ieee'.
3534         * modules/fmodl-ieee-tests: New file.
3535         * tests/test-fmodl-ieee.c: New file.
3536
3537         New module 'fmodl-ieee'.
3538         * modules/fmodl-ieee: New file.
3539
3540         Tests for module 'fmod-ieee'.
3541         * modules/fmod-ieee-tests: New file.
3542         * tests/test-fmod-ieee.c: New file.
3543
3544         New module 'fmod-ieee'.
3545         * modules/fmod-ieee: New file.
3546
3547         Tests for module 'fmodf-ieee'.
3548         * modules/fmodf-ieee-tests: New file.
3549         * tests/test-fmodf-ieee.c: New file.
3550         * tests/test-fmod-ieee.h: New file.
3551
3552         New module 'fmodf-ieee'.
3553         * modules/fmodf-ieee: New file.
3554
3555 2012-02-27  Bruno Haible  <bruno@clisp.org>
3556
3557         Tests for module 'rintl-ieee'.
3558         * modules/rintl-ieee-tests: New file.
3559         * tests/test-rintl-ieee.c: New file.
3560
3561         New module 'rintl-ieee'.
3562         * modules/rintl-ieee: New file.
3563
3564         Tests for module 'rint-ieee'.
3565         * modules/rint-ieee-tests: New file.
3566         * tests/test-rint-ieee.c: New file.
3567
3568         New module 'rint-ieee'.
3569         * modules/rint-ieee: New file.
3570
3571         Tests for module 'rintf-ieee'.
3572         * modules/rintf-ieee-tests: New file.
3573         * tests/test-rintf-ieee.c: New file.
3574         * tests/test-rint-ieee.h: New file.
3575
3576         New module 'rintf-ieee'.
3577         * modules/rintf-ieee: New file.
3578
3579 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3580
3581         regex: re_search etc. should return -2 when memory exhausted
3582         This bug was uncovered when testing 'grep'.  Without the fix,
3583         re_search and friends return -1 when memory is exhausted, but -1
3584         means no match, and this causes grep to falsely report no-match
3585         instead of memory-exhaustion.  See
3586         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3587         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3588         trouble; this can occur if re_search_internal ran out of memory.
3589
3590 2012-02-26  Bruno Haible  <bruno@clisp.org>
3591
3592         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3593         * m4/modfl-ieee.m4: New file.
3594         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3595         whether modfl works with Inf. Replace it if not.
3596         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3598         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3599         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3600         (Depends-on): Update dependencies.
3601         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3602         m4/signbit.m4.
3603         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3604         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3605
3606         modfl-ieee: Fix dependencies.
3607         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3608
3609         modfl-ieee: Fix test failures.
3610         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3611         * modules/modfl (Depends-on): Add isfinite, isinf.
3612
3613         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3614         * m4/modff-ieee.m4: New file.
3615         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3616         whether modff works with NaN and Inf. Replace it if not.
3617         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3619         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3620         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3621         (Depends-on): Update dependencies.
3622         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3623         m4/signbit.m4.
3624         (Depends-on): Add modf-ieee.
3625         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3626         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3627
3628         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3629         * m4/modf-ieee.m4: New file.
3630         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3631         whether modf works with NaN and Inf. Replace it if not.
3632         * lib/math.in.h (modf): New declaration.
3633         * lib/modf.c: New file.
3634         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3635         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3636         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3637         * modules/modf (Files): Add lib/modf.c.
3638         (Depends-on): Add math, isfinite, trunc, isinf.
3639         (configure.ac): Addrange to compile lib/modf.c if needed.
3640         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3641         m4/signbit.m4.
3642         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3643         * tests/test-math-c++.cc: Check the declaration of modf.
3644         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3645
3646         Tests for module 'modfl-ieee'.
3647         * modules/modfl-ieee-tests: New file.
3648         * tests/test-modfl-ieee.c: New file.
3649
3650         New module 'modfl-ieee'.
3651         * modules/modfl-ieee: New file.
3652
3653         Tests for module 'modf-ieee'.
3654         * modules/modf-ieee-tests: New file.
3655         * tests/test-modf-ieee.c: New file.
3656
3657         New module 'modf-ieee'.
3658         * modules/modf-ieee: New file.
3659
3660         Tests for module 'modff-ieee'.
3661         * modules/modff-ieee-tests: New file.
3662         * tests/test-modff-ieee.c: New file.
3663         * tests/test-modf-ieee.h: New file.
3664
3665         New module 'modff-ieee'.
3666         * modules/modff-ieee: New file.
3667
3668 2012-02-26  Bruno Haible  <bruno@clisp.org>
3669
3670         Tests for module 'fabsl-ieee'.
3671         * modules/fabsl-ieee-tests: New file.
3672         * tests/test-fabsl-ieee.c: New file.
3673
3674         New module 'fabsl-ieee'.
3675         * modules/fabsl-ieee: New file.
3676
3677         Tests for module 'fabs-ieee'.
3678         * modules/fabs-ieee-tests: New file.
3679         * tests/test-fabs-ieee.c: New file.
3680
3681         New module 'fabs-ieee'.
3682         * modules/fabs-ieee: New file.
3683
3684         Tests for module 'fabsf-ieee'.
3685         * modules/fabsf-ieee-tests: New file.
3686         * tests/test-fabsf-ieee.c: New file.
3687         * tests/test-fabs-ieee.h: New file.
3688
3689         New module 'fabsf-ieee'.
3690         * modules/fabsf-ieee: New file.
3691
3692 2012-02-26  Bruno Haible  <bruno@clisp.org>
3693
3694         Tests for module 'fmal-ieee'.
3695         * modules/fmal-ieee-tests: New file.
3696         * tests/test-fmal-ieee.c: New file.
3697
3698         New module 'fmal-ieee'.
3699         * modules/fmal-ieee: New file.
3700
3701         Tests for module 'fma-ieee'.
3702         * modules/fma-ieee-tests: New file.
3703         * tests/test-fma-ieee.c: New file.
3704
3705         New module 'fma-ieee'.
3706         * modules/fma-ieee: New file.
3707
3708         Tests for module 'fmaf-ieee'.
3709         * modules/fmaf-ieee-tests: New file.
3710         * tests/test-fmaf-ieee.c: New file.
3711         * tests/test-fma-ieee.h: New file.
3712
3713         New module 'fmaf-ieee'.
3714         * modules/fmaf-ieee: New file.
3715
3716 2012-02-26  Bruno Haible  <bruno@clisp.org>
3717
3718         Tests for module 'ldexpl-ieee'.
3719         * modules/ldexpl-ieee-tests: New file.
3720         * tests/test-ldexpl-ieee.c: New file.
3721
3722         New module 'ldexpl-ieee'.
3723         * modules/ldexpl-ieee: New file.
3724
3725         Tests for module 'ldexp-ieee'.
3726         * modules/ldexp-ieee-tests: New file.
3727         * tests/test-ldexp-ieee.c: New file.
3728
3729         New module 'ldexp-ieee'.
3730         * modules/ldexp-ieee: New file.
3731
3732         Tests for module 'ldexpf-ieee'.
3733         * modules/ldexpf-ieee-tests: New file.
3734         * tests/test-ldexpf-ieee.c: New file.
3735         * tests/test-ldexp-ieee.h: New file.
3736
3737         New module 'ldexpf-ieee'.
3738         * modules/ldexpf-ieee: New file.
3739
3740 2012-02-26  Bruno Haible  <bruno@clisp.org>
3741
3742         Refactor frexp*-ieee tests.
3743         * tests/test-frexp-ieee.h: New file.
3744         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3745         (main): Just call test_function.
3746         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3747         (main): Just call test_function.
3748         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3749         (main): Just call test_function.
3750         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3751         * modules/frexp-ieee-tests (Files): Likewise.
3752         * modules/frexpl-ieee-tests (Files): Likewise.
3753
3754         Tests for module 'frexpl-ieee'.
3755         * modules/frexpl-ieee-tests: New file.
3756         * tests/test-frexpl-ieee.c: New file.
3757
3758         New module 'frexpl-ieee'.
3759         * modules/frexpl-ieee: New file.
3760
3761         Tests for module 'frexp-ieee'.
3762         * modules/frexp-ieee-tests: New file.
3763         * tests/test-frexp-ieee.c: New file.
3764
3765         New module 'frexp-ieee'.
3766         * modules/frexp-ieee: New file.
3767
3768         Tests for module 'frexpf-ieee'.
3769         * modules/frexpf-ieee-tests: New file.
3770         * tests/test-frexpf-ieee.c: New file.
3771
3772         New module 'frexpf-ieee'.
3773         * modules/frexpf-ieee: New file.
3774
3775 2012-02-26  Bruno Haible  <bruno@clisp.org>
3776
3777         roundl-ieee tests: More tests.
3778         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3779         (main): Add tests for [MX] shaded specification in POSIX.
3780         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3781         (Depends-on): Add isnanl-nolibm.
3782
3783         round-ieee tests: More tests.
3784         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3785         (main): Add tests for [MX] shaded specification in POSIX.
3786         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3787         (Depends-on): Add isnand-nolibm.
3788
3789         roundf-ieee tests: More tests.
3790         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3791         (main): Add tests for [MX] shaded specification in POSIX.
3792         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3793         (Depends-on): Add isnanf-nolibm.
3794
3795         truncl-ieee tests: More tests.
3796         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3797         (main): Add tests for [MX] shaded specification in POSIX.
3798         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3799         (Depends-on): Add isnanl-nolibm.
3800
3801         trunc-ieee tests: More tests.
3802         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3803         (main): Add tests for [MX] shaded specification in POSIX.
3804         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3805         (Depends-on): Add isnand-nolibm.
3806
3807         truncf-ieee tests: More tests.
3808         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3809         (main): Add tests for [MX] shaded specification in POSIX.
3810         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3811         (Depends-on): Add isnanf-nolibm.
3812
3813         ceill-ieee tests: More tests.
3814         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3815         (main): Add tests for [MX] shaded specification in POSIX.
3816         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3817         (Depends-on): Add isnanl-nolibm.
3818
3819         ceil-ieee tests: More tests.
3820         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3821         (main): Add tests for [MX] shaded specification in POSIX.
3822         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3823         (Depends-on): Add isnand-nolibm.
3824
3825         ceilf-ieee tests: More tests.
3826         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3827         (main): Add tests for [MX] shaded specification in POSIX.
3828         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3829         (Depends-on): Add isnanf-nolibm.
3830
3831         floorl-ieee tests: More tests.
3832         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3833         (main): Add tests for [MX] shaded specification in POSIX.
3834         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3835         (Depends-on): Add isnanl-nolibm.
3836
3837         floor-ieee tests: More tests.
3838         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3839         (main): Add tests for [MX] shaded specification in POSIX.
3840         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3841         (Depends-on): Add isnand-nolibm.
3842
3843         floorf-ieee tests: More tests.
3844         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3845         (main): Add tests for [MX] shaded specification in POSIX.
3846         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3847         (Depends-on): Add isnanf-nolibm.
3848
3849 2012-02-26  Bruno Haible  <bruno@clisp.org>
3850
3851         fpieee: More comments.
3852         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3853
3854 2012-02-25  Bruno Haible  <bruno@clisp.org>
3855
3856         Tests for module 'log10l'.
3857         * modules/log10l-tests: New file.
3858         * tests/test-log10l.c: New file.
3859         * tests/test-math-c++.cc: Check the declaration of log10l.
3860
3861         New module 'log10l'.
3862         * lib/math.in.h (log10l): New declaration.
3863         * lib/log10l.c: New file.
3864         * m4/log10l.m4: New file.
3865         * modules/log10l: New file.
3866         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3867         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3868         HAVE_DECL_LOG10L.
3869         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3870         HAVE_DECL_LOG10L.
3871         * doc/posix-functions/log10l.texi: Mention the new module.
3872
3873 2012-02-25  Bruno Haible  <bruno@clisp.org>
3874
3875         fmodl, remainder*: Avoid wrong results due to rounding errors.
3876         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3877         expected bounds.
3878         * lib/remainderf.c (remainderf): Likewise.
3879         * lib/remainder.c (remainder): Likewise.
3880         * lib/remainderl.c (remainderl): Likewise.
3881
3882 2012-02-25  Bruno Haible  <bruno@clisp.org>
3883
3884         Tests for module 'remainderl'.
3885         * modules/remainderl-tests: New file.
3886         * tests/test-remainderl.c: New file.
3887         * tests/test-math-c++.cc: Check the declaration of remainderl.
3888
3889         New module 'remainderl'.
3890         * lib/math.in.h (remainderl): New declaration.
3891         * lib/remainderl.c: New file.
3892         * m4/remainderl.m4: New file.
3893         * modules/remainderl: New file.
3894         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3895         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3896         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3897         HAVE_REMAINDERL.
3898         * doc/posix-functions/remainderl.texi: Mention the new module.
3899
3900 2012-02-25  Bruno Haible  <bruno@clisp.org>
3901
3902         Tests for module 'remainderf'.
3903         * modules/remainderf-tests: New file.
3904         * tests/test-remainderf.c: New file.
3905         * tests/test-math-c++.cc: Check the declaration of remainderf.
3906
3907         New module 'remainderf'.
3908         * lib/math.in.h (remainderf): New declaration.
3909         * lib/remainderf.c: New file.
3910         * m4/remainderf.m4: New file.
3911         * modules/remainderf: New file.
3912         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3914         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3915         HAVE_REMAINDERF.
3916         * doc/posix-functions/remainderf.texi: Mention the new module.
3917
3918 2012-02-25  Bruno Haible  <bruno@clisp.org>
3919
3920         remainder: Support for MSVC.
3921         * lib/math.in.h (remainder): New declaration.
3922         * lib/remainder.c: New file.
3923         * m4/remainder.m4: New file.
3924         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3925         (Depends-on): Add math, round, fma.
3926         (configure.ac): Use results of gl_FUNC_REMAINDER.
3927         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3929         HAVE_DECL_REMAINDER.
3930         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3931         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3932         * tests/test-math-c++.cc: Check the declaration of remainder.
3933         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3934         problems are fixed.
3935
3936 2012-02-25  Bruno Haible  <bruno@clisp.org>
3937
3938         Tests for module 'fmodl'.
3939         * modules/fmodl-tests: New file.
3940         * tests/test-fmodl.c: New file.
3941         * tests/test-math-c++.cc: Check the declaration of fmodl.
3942
3943         New module 'fmodl'.
3944         * lib/math.in.h (fmodl): New declaration.
3945         * lib/fmodl.c: New file.
3946         * m4/fmodl.m4: New file.
3947         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3949         REPLACE_FMODL.
3950         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3951         REPLACE_FMODL.
3952         * modules/fmodl: New file.
3953         * doc/posix-functions/fmodl.texi: Mention the new module.
3954
3955 2012-02-25  Bruno Haible  <bruno@clisp.org>
3956
3957         Tests for module 'modfl'.
3958         * modules/modfl-tests: New file.
3959         * tests/test-modfl.c: New file.
3960         * tests/test-math-c++.cc: Check the declaration of modfl.
3961
3962         New module 'modfl'.
3963         * lib/math.in.h (modfl): New declaration.
3964         * lib/modfl.c: New file.
3965         * m4/modfl.m4: New file.
3966         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3967         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3968         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3969         * modules/modfl: New file.
3970         * doc/posix-functions/modfl.texi: Mention the new module.
3971
3972 2012-02-25  Bruno Haible  <bruno@clisp.org>
3973
3974         Tests for module 'fabsl'.
3975         * modules/fabsl-tests: New file.
3976         * tests/test-fabsl.c: New file.
3977         * tests/test-math-c++.cc: Check the declaration of fabsl.
3978
3979         New module 'fabsl'.
3980         * lib/math.in.h (fabsl): New declaration.
3981         * lib/fabsl.c: New file.
3982         * m4/fabsl.m4: New file.
3983         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3985         REPLACE_FABSL.
3986         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3987         REPLACE_FABSL.
3988         * modules/fabsl: New file.
3989         * doc/posix-functions/fabsl.texi: Mention the new module.
3990
3991 2012-02-25  Bruno Haible  <bruno@clisp.org>
3992
3993         fabs tests: More tests.
3994         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3995         (zero): New variable.
3996         (main): Add tests for signed zero.
3997         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3998
3999         fabsf tests: More tests.
4000         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
4001         (zero): New variable.
4002         (main): Add tests for signed zero.
4003         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
4004
4005 2012-02-24  Bruno Haible  <bruno@clisp.org>
4006
4007         atanl: Provide function definition on MSVC.
4008         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
4009         function pointer.
4010         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
4011
4012 2012-02-24  Bruno Haible  <bruno@clisp.org>
4013
4014         acosl: Provide function definition on MSVC.
4015         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
4016         function pointer.
4017         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
4018
4019 2012-02-24  Bruno Haible  <bruno@clisp.org>
4020
4021         asinl: Provide function definition on MSVC.
4022         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
4023         function pointer.
4024         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
4025
4026 2012-02-24  Bruno Haible  <bruno@clisp.org>
4027
4028         tanl: Provide function definition on MSVC.
4029         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
4030         function pointer.
4031         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
4032
4033 2012-02-24  Bruno Haible  <bruno@clisp.org>
4034
4035         cosl: Provide function definition on MSVC.
4036         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
4037         function pointer.
4038         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
4039
4040 2012-02-24  Bruno Haible  <bruno@clisp.org>
4041
4042         sinl: Provide function definition on MSVC.
4043         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
4044         function pointer.
4045         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
4046
4047 2012-02-24  Bruno Haible  <bruno@clisp.org>
4048
4049         logl: Provide function definition on MSVC.
4050         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
4051         function pointer.
4052         * lib/math.in.h (logl): Undefine if it does not exist as a function.
4053
4054 2012-02-24  Bruno Haible  <bruno@clisp.org>
4055
4056         expl: Provide function definition on MSVC.
4057         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
4058         function pointer.
4059         * lib/math.in.h (expl): Undefine if it does not exist as a function.
4060
4061 2012-02-24  Bruno Haible  <bruno@clisp.org>
4062
4063         sqrtl: Provide function definition on MSVC.
4064         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
4065         a function pointer.
4066         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
4067
4068 2012-02-24  Bruno Haible  <bruno@clisp.org>
4069
4070         ceill: Provide function definition on MSVC.
4071         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
4072         used as a function pointer.
4073         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
4074
4075 2012-02-24  Bruno Haible  <bruno@clisp.org>
4076
4077         floorl: Provide function definition on MSVC.
4078         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
4079         used as a function pointer.
4080         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
4081
4082 2012-02-24  Bruno Haible  <bruno@clisp.org>
4083
4084         ceilf: Provide function definition on MSVC.
4085         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
4086         used as a function pointer.
4087         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
4088
4089 2012-02-24  Bruno Haible  <bruno@clisp.org>
4090
4091         floorf: Provide function definition on MSVC.
4092         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
4093         used as a function pointer.
4094         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
4095
4096 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4097
4098         stdnoreturn: new module
4099         This implements a replacement for C11's <stdnoreturn.h>.
4100         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
4101         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
4102         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
4103         * tests/test-stdnoreturn.c: New files.
4104
4105 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
4106
4107         regex: fix false multibyte matches in some regular expressions
4108         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
4109         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
4110         * lib/regex_internal.c (re_string_skip_chars):
4111         Fix miscomputation of remain_len that may cause incomplete
4112         multi-byte character and false match.
4113
4114 2012-02-24  Jim Meyering  <meyering@redhat.com>
4115
4116         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
4117         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
4118         uses with "==" *before* the call, e.g., 0 == strcmp (...)
4119         Remove now-unnecessary str''cmp obfuscation.
4120         Suggested by Akim Demaille.
4121
4122 2012-02-24  Bruno Haible  <bruno@clisp.org>
4123
4124         streq: Rename macro.
4125         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
4126         * NEWS: Mention the change.
4127         * lib/mbrtowc.c (mbrtowc): Update.
4128         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
4129         * lib/wcwidth.c (wcwidth): Update.
4130         Suggested by Akim Demaille and Jim Meyering.
4131
4132 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4133
4134         regex: fix typo in definition of MIN
4135         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
4136         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
4137
4138 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4139             Bruno Haible  <bruno@clisp.org>
4140
4141         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
4142         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
4143         entries into a stack-allocated buffer directly.
4144         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
4145
4146 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
4147             Bruno Haible  <bruno@clisp.org>
4148
4149         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
4150
4151          - There were several instances of this pattern:
4152
4153              for (;;) {
4154                n = acl (f, GETACLCNT, 0, NULL);
4155                [ allocate an array A of size N ]
4156                if (acl (f, GETACL, n, a) == n)
4157                  break;
4158              }
4159
4160            This loop might never terminate if some other process is constantly
4161            manipulating the file's ACL.  The loop should be rewritten to
4162            terminate.
4163
4164          - The acl (... GETACLNT ...) call is merely an optimization; its value
4165            is merely a hint as to how big to make the array.  A better
4166            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
4167            and just guess a reasonably-big size, growing the size and trying
4168            again if it's not large enough.  This guarantees termination, and
4169            saves a system call.
4170
4171         * lib/acl-internal.h: Include <limits.h>.
4172         (MIN, SIZE_MAX): New macros.
4173         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
4174         a stack-allocated buffer, and use malloc if it does not fit. Don't
4175         use GETACLCNT.
4176         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4177
4178 2012-02-19  Bruno Haible  <bruno@clisp.org>
4179
4180         acl: Fix endless loop on Solaris with vxfs.
4181         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
4182         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
4183         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
4184         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
4185         * tests/test-sameacls.c (main)[Solaris]: Likewise.
4186         Reported by Bill Jones in
4187         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
4188
4189 2012-02-19  Bruno Haible  <bruno@clisp.org>
4190
4191         acl: Fix copy-acl test failure on Solaris 11 2011-11.
4192         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
4193         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
4194         that this function returns 0 in some more cases.
4195
4196 2012-02-19  Bruno Haible  <bruno@clisp.org>
4197
4198         acl: Update doc references.
4199         * doc/acl-resources.txt: Update links to Solaris documentation.
4200
4201 2012-02-19  Bruno Haible  <bruno@clisp.org>
4202
4203         Fix test failure in many locales on Solaris 11.
4204         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
4205         'tr' arguments.
4206         * tests/test-pipe-filter-ii1.c (main): Likewise.
4207         * build-aux/bootstrap (check_versions): Run 'tr' command with range
4208         expressions in the C locale.
4209         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4210         * m4/host-os.m4 (gl_HOST_OS): Likewise.
4211
4212 2012-02-19  Bruno Haible  <bruno@clisp.org>
4213
4214         gnulib-tool: Improve usage message.
4215         * gnulib-tool (func_usage): Move doc of --help and --version to the
4216         section "Operation modes".
4217
4218 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
4219
4220         README-release: make it easier to execute commands
4221         * top/README-release: break commands out on to separate lines.
4222
4223 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
4224
4225         GNUmakefile: simplify detection of unconfigured trees
4226         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
4227         whether the tree make is being run from is already configured or
4228         not.  Related simplifications.
4229
4230 2012-02-13  Simon Josefsson  <simon@josefsson.org>
4231
4232         * gnulib-tool (func_usage): Document --help and --version.
4233
4234 2012-02-11  Jim Meyering  <meyering@redhat.com>
4235
4236         bootstrap: don't exit 0 upon gnulib-tool failure
4237         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
4238         its exit status, not 0.
4239
4240 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
4241
4242         README-release: various improvements
4243         * top/README-release: Give a command to push changes for the
4244         release.  Add "distcheck" to list of other pre-release checks.
4245         Fix instance of "make stable" which should be "make TYPE".
4246
4247 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4248
4249         maint: replace FSF snail-mail addresses with URLs
4250         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
4251         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
4252         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
4253         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
4254         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
4255         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
4256         * lib/check-version.c, lib/check-version.h, lib/config.charset:
4257         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
4258         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
4259         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
4260         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
4261         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
4262         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
4263         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
4264         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
4265         * lib/glthread/thread.c, lib/glthread/thread.h:
4266         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
4267         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
4268         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
4269         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
4270         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
4271         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
4272         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
4273         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
4274         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
4275         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
4276         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
4277         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
4278         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
4279         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
4280         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
4281         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
4282         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
4283         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
4284         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
4285         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
4286         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
4287         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
4288         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
4289         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
4290         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
4291         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
4292         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
4293         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
4294         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
4295         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
4296         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
4297         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
4298         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
4299         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
4300         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
4301         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
4302         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
4303         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
4304         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
4305         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
4306         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
4307         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
4308         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
4309         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
4310         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
4311         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4312         * tests/test-poll.c, tests/test-quotearg-simple.c:
4313         * tests/test-quotearg.c, tests/test-quotearg.h:
4314         * tests/test-round-ieee.c, tests/test-round1.c:
4315         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4316         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4317         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4318         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4319         * tests/test-strerror.c, tests/test-strerror_r.c:
4320         * tests/test-strsignal.c, tests/test-strverscmp.c:
4321         * tests/test-xmemdup0.c:
4322         Replace FSF snail mail addresses with URLs, as per GNU coding
4323         standards.  See glibc bug
4324         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4325
4326 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4327
4328         README-release: capitalize a word and split a line
4329         * top/README-release: Fix punctuation and spacing.
4330
4331 2012-02-08  Akim Demaille  <demaille@gostai.com>
4332
4333         fatal-signal: use C prototypes (with explicit void).
4334         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4335         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4336
4337 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4338
4339         regex: spelling fix
4340         * lib/regexec.c: spelling fix
4341
4342         regex: rely on stdint.h for SIZE_MAX
4343         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4344
4345 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4346
4347         regex: merge glibc changes
4348
4349         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4350         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4351         (init_word_char): Work even if bitset words are not exactly 32 or
4352         64 bits wide.  Don't assume there are no padding bits.
4353         * lib/regex.c [_LIBC]: Do not include <config.h>.
4354         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4355         and -Wtype-limits.
4356         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4357         needless disagreement with glibc.  All uses changed.  Define it to
4358         1 only if _GNU_SOURCE, to match glibc.
4359         (_REG_RM_NAME): Remove; no longer needed, since the names in
4360         question are now all protected by __USE_GNU.
4361         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4362         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4363         * lib/regex_internal.h (MIN): New macro.
4364
4365         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4366         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4367
4368         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4369         * lib/regex_internal.c (re_string_fetch_byte_case):
4370         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4371         is miscompiled, and it turns out it is because of an incorrect
4372         attribute on re_string_fetch_byte_case.  Unlike
4373         re_string_peek_byte_case, this one is really not pure, it modifies
4374         memory (increments pstr->cur_idx), and with the pure attribute GCC
4375         assumed it doesn't and it cached the presumed value of
4376         regexp->cur_idx in a variable across the
4377          for (;; ++i)
4378            {
4379              if (i >= BRACKET_NAME_BUF_SIZE)
4380                return REG_EBRACK;
4381              if (token->type == OP_OPEN_CHAR_CLASS)
4382                ch = re_string_fetch_byte_case (regexp);
4383              else
4384                ch = re_string_fetch_byte (regexp);
4385              if (re_string_eoi(regexp))
4386                return REG_EBRACK;
4387              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4388                break;
4389              elem->opr.name[i] = ch;
4390            }
4391
4392         2011-11-29 Andreas Schwab <schwab@redhat.com>
4393         * lib/regcomp.c (build_equiv_class):
4394         Fix access after end of search string in regex matcher.
4395
4396         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4397         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4398
4399         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4400         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4401
4402         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4403         * lib/regcomp.c (parse_branch, parse_sub_exp):
4404         More regex memory leak fixes and tests.
4405         (parse_sub_exp, parse_bracket_exp):
4406         Fix memory leak for some invalid regular expressions.
4407
4408         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4409         * lib/regex_internal.c, lib/regexec.c:
4410         Fix unnecessary overallocation due to incomplete character.  When
4411         incomplete characters are found at the end of a string the code
4412         ran amok and allocated lots of memory.  Stricter limits are now in
4413         place.
4414
4415         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4416         * lib/regex.h: Update documentation.
4417
4418         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4419         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4420
4421         2010-05-05 Andreas Schwab <schwab@redhat.com>
4422         * lib/regexec.c (find_collation_sequence_value):
4423         Fix lookup of collation sequence value during regexp matching.
4424
4425         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4426         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4427
4428         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4429         * lib/regex.h: Cleanup namespace.
4430
4431         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4432         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4433
4434         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4435         * lib/regex_internal.h: Prevent some declarations and definitions
4436         to be seen when used in tests.
4437
4438         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4439         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4440         __libc_lock_* macros if not _LIBC.
4441         (struct re_dfa_t): Add lock.
4442
4443 2012-02-07  Eric Blake  <eblake@redhat.com>
4444
4445         maint.mk: also prohibit lower-case @var@
4446         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4447         lower case, like @top_srcdir@.
4448
4449 2012-02-04  Eric Blake  <eblake@redhat.com>
4450
4451         canonicalize: avoid uninitialized memory use
4452         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4453         random '/' left in dest.
4454         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4455
4456 2012-02-04  Bruno Haible  <bruno@clisp.org>
4457
4458         isatty: Fix test failure of ptsname_r on native Windows.
4459         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4460         and don't set errno.
4461         (isatty): Test first whether fd is valid. Set errno when returning 0.
4462
4463 2012-02-04  Bruno Haible  <bruno@clisp.org>
4464
4465         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4466         * tests/test-spawn-pipe-main.c: Include progname.h.
4467         (main): Invoke set_program_name.
4468         * modules/spawn-pipe-tests (Depends-on): Add progname.
4469
4470         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4471         * tests/test-nonblocking-socket-main.c: Include progname.h.
4472         (main): Invoke set_program_name.
4473         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4474
4475         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4476         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4477         (main): Invoke set_program_name.
4478         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4479
4480 2012-02-04  Eric Blake  <eblake@redhat.com>
4481
4482         canonicalize-lgpl: fix // handling
4483         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4484
4485         canonicalize: fix // handling
4486         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4487         /// to //, since only // is special.
4488
4489 2012-02-04  Bruno Haible  <bruno@clisp.org>
4490
4491         ioctl: Fix test failure on native Windows.
4492         * lib/ioctl.c: Include msvc-nothrow.h.
4493         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4494
4495 2012-02-04  Bruno Haible  <bruno@clisp.org>
4496
4497         fsync: Avoid test failure on native Windows.
4498         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4499         read-only.
4500
4501 2012-02-04  Bruno Haible  <bruno@clisp.org>
4502
4503         sys_select: Avoid syntax error on OpenBSD 5.0.
4504         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4505         currently being included, just include the system's <sys/select.h>.
4506
4507 2012-02-04  Bruno Haible  <bruno@clisp.org>
4508
4509         sys_select: Avoid syntax error on OpenBSD 5.0.
4510         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4511         <sys/select.h>, not before.
4512         Reported by Jiri B <jirib@devio.us>.
4513
4514 2012-02-04  Bruno Haible  <bruno@clisp.org>
4515
4516         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4517         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4518         global variables.
4519         * tests/test-get-rusage-data.c (main): Likewise.
4520         Reported by Jim Meyering.
4521
4522 2012-02-04  Bruno Haible  <bruno@clisp.org>
4523
4524         stdioext: Fix last commit.
4525         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4526
4527 2012-02-03  Bruno Haible  <bruno@clisp.org>
4528
4529         stdioext: Add tentative support for Plan9.
4530         * lib/stdio-impl.h: Include <errno.h>.
4531         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4532         * lib/freadable.c (freadable): Likewise.
4533         * lib/fwritable.c (fwritable): Likewise.
4534         * lib/fbufmode.c (fbufmode): Likewise.
4535         * lib/freading.c (freading): Likewise.
4536         * lib/fwriting.c (fwriting): Likewise.
4537         * lib/freadptr.c (freadptr): Likewise.
4538         * lib/freadseek.c (freadptrinc): Likewise.
4539         * lib/freadahead.c (freadahead): Likewise.
4540         * lib/fpurge.c (fpurge): Likewise.
4541         * lib/fseeko.c (rpl_fseeko): Likewise.
4542         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4543         Reported by Jens Staal <staal1978@gmail.com>.
4544
4545 2012-02-02  Jim Meyering  <meyering@redhat.com>
4546
4547         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4548         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4549         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4550         not even to try to add the attribute.  Instead, add a pragma to suppress
4551         the suggestion/warning.
4552
4553 2012-01-31  Karl Berry  <karl@gnu.org>
4554
4555         setstate doc: typo.
4556         * doc/posix-functions/setstate.texi (setstate): { not (.
4557
4558 2012-01-31  Bruno Haible  <bruno@clisp.org>
4559
4560         popen: Make more robust on Windows.
4561         * lib/popen.c: On native Windows, use the _popen based code even if
4562         HAVE_POPEN is set.
4563         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4564         environment variable on native Windows.
4565
4566 2012-01-30  Bruno Haible  <bruno@clisp.org>
4567
4568         pclose: Fix typo.
4569         * lib/stdio.in.h (pclose): Fix typo in warning message.
4570
4571 2012-01-30  Bruno Haible  <bruno@clisp.org>
4572
4573         doc about getlogin_r, setstate.
4574         * doc/posix-functions/getlogin_r.texi: List the incompatible
4575         declaration problem under "not fixed by gnulib".
4576         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4577         problem on Solaris 11 and other platforms.
4578
4579 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4580             Bruno Haible  <bruno@clisp.org>
4581
4582         poll tests: Make test more robust.
4583         * tests/test-poll.c: Include macros.h.
4584         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4585         return value of various I/O operations.
4586         * modules/poll-tests (Files): Add tests/macros.h.
4587
4588 2012-01-30  Bruno Haible  <bruno@clisp.org>
4589
4590         sys_stat: Fix support for mingw64 and MSVC.
4591         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4592         header files already do it.
4593         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4594         stat itself.
4595         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4596
4597 2012-01-30  Bruno Haible  <bruno@clisp.org>
4598
4599         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4600         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4601         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4602
4603 2012-01-29  Bruno Haible  <bruno@clisp.org>
4604
4605         quotearg: Fix test failure on MacOS X 10.5.
4606         * tests/test-quotearg-simple.c: Include localcharset.h.
4607         (main): If the locale encoding is not ASCII, bypass the tests of
4608         locale_quoting_style and clocale_quoting_style.
4609         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4610
4611 2012-01-29  Jim Meyering  <meyering@redhat.com>
4612
4613         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4614         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4615         detect uses of canonicalize_file_name.
4616
4617 2012-01-28  Bruno Haible  <bruno@clisp.org>
4618
4619         test-framework-sh: Fix test failure with AIX 7.1 diff.
4620         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4621         in column 1, like 'diff -c' does.
4622         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4623         whether 'diff -u' is used. Instead, test whether the output contains
4624         some '@' character.
4625
4626 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4627
4628         strtoimax: eliminate need for stdint.h, inttypes.h checks
4629         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4630         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4631         the prerequisites for a recently-introduced strtoimax test.
4632         I guess this might cause strtoimax to be replaced when not
4633         strictly necessary on older hosts, but this shouldn't introduce
4634         any bugs and it should make Emacs 'configure' faster on typical
4635         modern hosts.  Problem discovered when importing the latest gnulib
4636         to an Emacs test version.
4637         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4638
4639 2012-01-28  Bruno Haible  <bruno@clisp.org>
4640
4641         sys_time: Override 'struct timeval' on some native Windows platforms.
4642         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4643         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4644         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4645         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4646         needs to be overridden.
4647         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4648         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4649         * tests/test-sys_select.c: Check that the tv_sec member has the same
4650         size as a 'time_t'.
4651         * tests/test-sys_time.c: Likewise.
4652         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4653         is set, set also REPLACE_GETTIMEOFDAY.
4654         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4655         convert the resulting 'struct timeval' before returning.
4656         * lib/select.c: Include <sys/time.h>.
4657         (select, timeval): Undefine at the right place.
4658         * modules/select (Depends-on): Add sys_time.
4659         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4660         some Windows platforms.
4661         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4662
4663 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4664
4665         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4666         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4667         an integer.
4668         * lib/fcntl.c (dupfd): Likewise.
4669         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4670
4671 2012-01-28  Bruno Haible  <bruno@clisp.org>
4672
4673         fcntl: Avoid compilation error on native Windows.
4674         * modules/fcntl (Depends-on): Add 'close'.
4675
4676 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4677
4678         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4679         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4680         pointer to an integer.
4681         * lib/poll.c (IsConsoleHandle): Likewise.
4682         * lib/isatty.c (IsConsoleHandle): Likewise.
4683
4684 2012-01-28  Jim Meyering  <meyering@redhat.com>
4685
4686         doc: clarify README-release
4687         * top/README-release: Clarify: you should make a point to have
4688         the latest stable versions of build tools in your PATH, and the
4689         reference to buildreq is solely for its list of tool names, not
4690         for its minimal-functional version numbers.
4691         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4692
4693         maint.mk: use more readable (yet functionally equivalent) quoting
4694         It is common to quote a single quote in a single quoted string like
4695         this:  '...'\''...'.  Unless you know the idiom, that looks like
4696         gibberish, so prefer to double-quote the string when possible.
4697         Then you can use a more readable, lone single quote: "...'..."
4698         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4699         "don't" is more readable than the equivalent 'don'\''t'.
4700         (sc_cast_of_x_alloc_return_value): Likewise.
4701         (sc_cast_of_alloca_return_value): Likewise.
4702         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4703         rather than '\'':'\''.
4704
4705 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4706
4707         stdalign: relax _Alignof and tighten _Alignas test
4708         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4709         as it was too strict: alignof must divide offsetof, but it need
4710         not equal offsetof.  Inspired by Joseph S. Myers's comment
4711         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4712         Conversely, tighten the _Alignas test a bit, as the resulting
4713         alignment must be exactly 8.
4714
4715 2012-01-27  Bruno Haible  <bruno@clisp.org>
4716
4717         stdalign: Document the last change.
4718         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4719
4720 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4721
4722         stdalign: check that alignof and offsetof are consistent
4723         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4724         Problem reported for gnulib by Richard W.M. Jones in
4725         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4726
4727 2012-01-27  Jim Meyering  <meyering@redhat.com>
4728
4729         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4730         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4731         convert a sequence with gaps to the minimal containing range.
4732         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4733         * tests/test-update-copyright.sh: Test for this.
4734         The FSF confirmed it is ok to do this, assuming there is at
4735         least one significant change per year in the affected range:
4736         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4737
4738 2012-01-26  Bruno Haible  <bruno@clisp.org>
4739
4740         pipe2: refine doc about thread-safety
4741         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4742         multithread-safety problem.
4743         * doc/glibc-functions/accept4.texi: Likewise.
4744
4745 2012-01-26  Bruno Haible  <bruno@clisp.org>
4746
4747         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4748         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4749         In the test program, include <fcntl.h>, for O_RDONLY.
4750
4751 2012-01-26  Eric Blake  <eblake@redhat.com>
4752
4753         pipe2: document lack of thread-safety in replacement
4754         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4755         issue in replacement.
4756         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4757         Based on a report by Eric Wong.
4758
4759 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4760             Bruno Haible  <bruno@clisp.org>
4761
4762         malloca: Avoid warnings on x86_64 mingw64.
4763         * lib/malloca.c: Include <stdint.h>.
4764         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4765         * modules/malloca (Depends-on): Add stdint.
4766         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4767
4768 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4769
4770         obstack: remove __STDC__ conditionals
4771         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4772         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4773         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4774         m4/include_next.m4 as the only gnulib-maintained places that still
4775         refer to __STDC__.
4776
4777 2012-01-24  Bruno Haible  <bruno@clisp.org>
4778
4779         havelib: Modern quoting.
4780         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4781         the recent change to the GNU coding standards.
4782
4783 2012-01-24  Bruno Haible  <bruno@clisp.org>
4784
4785         stdint: Improve support for Android.
4786         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4787         Reported by Simon Josefsson <simon@josefsson.org>.
4788
4789 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4790
4791         doc: omit trailing empty lines from INSTALL etc.
4792         * doc/Makefile (INSTALL): Omit trailing empty lines.
4793         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4794         omit trailing empty lines.  This simplifies the build procedure.
4795
4796 2012-01-23  Jim Meyering  <meyering@redhat.com>
4797
4798         tests: avoid spurious warnings about gl_sockets_startup
4799         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4800         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4801         reporting a "statement with no effect".
4802         * tests/test-accept.c (main): Mark as "(void)".
4803         * tests/test-accept4.c (main): Likewise.
4804         * tests/test-bind.c (main): Likewise.
4805         * tests/test-connect.c (main): Likewise.
4806         * tests/test-getpeername.c (main): Likewise.
4807         * tests/test-getsockname.c (main): Likewise.
4808         * tests/test-getsockopt.c (main): Likewise.
4809         * tests/test-listen.c (main): Likewise.
4810         * tests/test-recv.c (main): Likewise.
4811         * tests/test-recvfrom.c (main): Likewise.
4812         * tests/test-send.c (main): Likewise.
4813         * tests/test-sendto.c (main): Likewise.
4814         * tests/test-setsockopt.c (main): Likewise.
4815         * tests/test-shutdown.c (main): Likewise.
4816
4817 2012-01-21  Bruno Haible  <bruno@clisp.org>
4818
4819         locale-fr.m4: Fix for Android.
4820         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4821         failure of the test program on Bionic libc.
4822
4823 2012-01-21  Jim Meyering  <meyering@redhat.com>
4824
4825         bootstrap: fail when bootstrap_post_import_hook fails
4826         Otherwise, it's far too easy to miss diagnostics emitted
4827         between gnulib-tool's output and that of running configure.
4828         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4829
4830 2012-01-17  Jim Meyering  <meyering@redhat.com>
4831
4832         maint: enable sc_trailing_blank
4833         * build-aux/pmccabe.css: Remove trailing blanks.
4834         * doc/acl-cygwin.txt: Likewise.
4835         * doc/gnu-oids.texi: Likewise
4836         * cfg.mk: Enable sc_trailing_blank.
4837         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4838
4839 2012-01-17  Jim Meyering  <meyering@redhat.com>
4840
4841         maint: enable sc_prohibit_openat_without_use
4842         * cfg.mk: Enable sc_prohibit_openat_without_use.
4843         Exempt lib/selinux-at.c.
4844
4845 2012-01-17  Jim Meyering  <meyering@redhat.com>
4846
4847         maint: enable sc_prohibit_cloexec_without_use
4848         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4849         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4850
4851 2012-01-17  Jim Meyering  <meyering@redhat.com>
4852
4853         maint: enable sc_prohibit_intprops_without_use
4854         * cfg.mk: Enable sc_prohibit_intprops_without_use
4855         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4856
4857 2012-01-17  Jim Meyering  <meyering@redhat.com>
4858
4859         maint: enable sc_prohibit_hash_pjw_without_use
4860         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4861         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4862         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4863         following " (".
4864
4865 2012-01-17  Jim Meyering  <meyering@redhat.com>
4866
4867         maint: enable double-word-prohibiting rule
4868         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4869         Exempt three files.
4870
4871 2012-01-17  Jim Meyering  <meyering@redhat.com>
4872
4873         maint: remove empty lines at EOF, but excluding modules/*
4874         Apply syntax rules at home as well as abroad.  Most changes
4875         were induced by running this:
4876           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4877             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4878             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4879         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4880         Exempt modules/* and two binary files.
4881         Also exempt doc/INSTALL*, per request from Bruno Haible.
4882         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4883         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4884         * doc/Copyright/request-assign.future: Likewise.
4885         * doc/Copyright/request-disclaim.changes: Likewise.
4886         * doc/INSTALL: Likewise.
4887         * doc/INSTALL.ISO: Likewise.
4888         * doc/INSTALL.UTF-8: Likewise.
4889         * doc/acl-cygwin.txt: Likewise.
4890         * doc/acl-resources.txt: Likewise.
4891         * doc/fdl-1.2.texi: Likewise.
4892         * doc/fdl-1.3.texi: Likewise.
4893         * doc/fdl.texi: Likewise.
4894         * lib/argp-pin.c: Likewise.
4895         * lib/round.c: Likewise.
4896         * lib/unicase/u16-totitle.c: Likewise.
4897         * lib/unictype/block_test.c: Likewise.
4898         * lib/uninorm/canonical-decomposition.c: Likewise.
4899         * m4/README: Likewise.
4900         * m4/relocatable-lib.m4: Likewise.
4901         * tests/test-isnand-nolibm.c: Likewise.
4902         * tests/test-isnand.c: Likewise.
4903         * tests/uninorm/NormalizationTest.txt: Likewise.
4904
4905 2012-01-17  Jim Meyering  <meyering@redhat.com>
4906
4907         maint: add framework to run syntax-check rules against gnulib sources
4908         * cfg.mk: New file, to disable all currently-failing tests.
4909         We'll enable them one by one, as they are made to pass.
4910         * Makefile (sc_maint): New rule.
4911
4912 2012-01-21  Bruno Haible  <bruno@clisp.org>
4913
4914         stdint: Add support for Android.
4915         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4916         include the system's <stdint.h>.
4917         Reported by Simon Josefsson <simon@josefsson.org>.
4918
4919 2012-01-19  Jim Meyering  <meyering@redhat.com>
4920
4921         bootstrap: add bootstrap_post_import_hook
4922         Bison does still need something like the gnulib_mk_hook whose
4923         invocation I had to remove along with slurp in commit 767ccd40.
4924         Technically, we could get along without it, but doing so would
4925         have required living with a warning and a mandatory post-bootstrap
4926         automake rerun.
4927         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4928         (bootstrap_post_import_hook): New function.
4929         Invoke it after gnulib-tool --import and before autoreconf.
4930
4931 2012-01-18  Jim Meyering  <meyering@redhat.com>
4932
4933         gitlog-to-changelog: don't use "no_"-prefixed variable name
4934         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4935         to enable both --cluster and --no-cluster.  Change variable name,
4936         s/\$no_cluster/$cluster/, and reverse usage to match.
4937
4938         gitlog-to-changelog: use "||", not "or" in expressions
4939         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4940         expressions.
4941
4942 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4943
4944         gitlog-to-changelog: new option --no-cluster
4945         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4946         clustering of adjacent commit messages.
4947
4948 2012-01-17  Jim Meyering  <meyering@redhat.com>
4949
4950         maint: spell file systems with two words, not one
4951         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4952         two words, not one.
4953
4954 2012-01-16  Jim Meyering  <meyering@redhat.com>
4955
4956         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4957         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4958
4959 2012-01-16  Eric Blake  <eblake@redhat.com>
4960
4961         bootstrap: cater to autoconf 2.59
4962         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4963         is not available.
4964
4965         bootstrap: properly check for libtool
4966         * build-aux/bootstrap (libtoolize): Also run libtool when older
4967         usage is detected.
4968
4969 2012-01-15  Bruno Haible  <bruno@clisp.org>
4970
4971         Improve support for MSVC 9.
4972         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4973         clashes on MSVC.
4974         * lib/fcntl.in.h: Likewise.
4975         * lib/stdlib.in.h: Likewise.
4976         * lib/sys_stat.in.h: Likewise.
4977
4978 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4979
4980         gnupload: we hold the master copy of this script now
4981         For motivation and more information, see:
4982         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4983         * build-aux/gnupload: Make it clear in the heading comments that the
4984         master copy of this file is maintained by gnulib.  Since we are at
4985         it, bump its copyright year and ...
4986         ($scriptversion): ... the date in its version.
4987         ($usage): Patches and bug reports should be sent to the gnulib list,
4988         not the automake one.
4989         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4990         anymore.
4991
4992 2012-01-15  Bruno Haible  <bruno@clisp.org>
4993
4994         Fix module 'random'.
4995         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4996         initstate, setstate are declared.
4997
4998 2012-01-14  Bruno Haible  <bruno@clisp.org>
4999
5000         Tests for module 'random'.
5001         * modules/random-tests: New file.
5002         * tests/test-random.c: New file, based on tests/test-random_r.c.
5003
5004         New module 'random'.
5005         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
5006         declarations.
5007         * lib/random.c: New file, based on glibc/stdlib/random.c.
5008         * m4/random.m4: New file.
5009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
5010         HAVE_RANDOM.
5011         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
5012         * modules/random: New file.
5013         * config/srclist.txt: Add an entry for random.c.
5014         * doc/posix-functions/random.texi: Mention the 'random' module.
5015         * doc/posix-functions/initstate.texi: Likewise.
5016         * doc/posix-functions/setstate.texi: Likewise.
5017         * doc/posix-functions/srandom.texi: Likewise.
5018
5019 2012-01-12  Bruno Haible  <bruno@clisp.org>
5020
5021         random_r: Use common idioms.
5022         * lib/random_r.c: Include <stdlib.h> first.
5023
5024         random_r: Override incompatible API on AIX, OSF/1.
5025         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
5026         Override the system function if REPLACE_RANDOM_R is 1.
5027         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
5028         and OSF/1, set REPLACE_RANDOM_R.
5029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
5030         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
5031         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
5032         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
5033         * doc/glibc-functions/random_r.texi: Likewise.
5034         * doc/glibc-functions/setstate_r.texi: Likewise.
5035
5036         random_r: Support for MSVC 9.
5037         * lib/random_r.c: Include stdint.h, not inttypes.h.
5038
5039 2012-01-12  Eric Blake  <eblake@redhat.com>
5040
5041         inet_ntop: guard extra work by IF_LINT
5042         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
5043         better code generation when not checking for warnings.
5044         Suggested by Paul Eggert and Jim Meyering.
5045
5046         strptime: fix regression on mingw
5047         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
5048         Fix regression.  Reported by Bruno Haible.
5049
5050 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
5051             Bruno Haible  <bruno@clisp.org>
5052
5053         copy-file: add error-code-returning variant.
5054         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
5055         (qcopy_file_preserving): New declaration.
5056         * lib/copy-file.c (qcopy_file_preserving): Renamed from
5057         copy_file_preserving. Change return type to 'int'. Don't emit an error
5058         message here.
5059         (copy_file_preserving): New function.
5060         * tests/test-copy-file.c: Include <stdlib.h>.
5061         (main): Test qcopy_file_preserving if the environment variable
5062         NO_STDERR_OUTPUT is set.
5063         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
5064         with NO_STDERR_OUTPUT
5065         * tests/test-copy-file-2.sh: Likewise.
5066
5067 2012-01-10  Bruno Haible  <bruno@clisp.org>
5068
5069         copy-file: Use 'quote' module consistently.
5070         * lib/copy-file.c (copy_file_preserving): Use quote().
5071
5072         copy-file: Refactor.
5073         * lib/copy-file.c: Include quote.h.
5074         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
5075         message here.
5076         * modules/copy-file (Depends-on): Add quote.
5077
5078         acl: Export qcopy_acl.
5079         * lib/acl.h (qcopy_acl): New declaration.
5080         * lib/copy-acl.c (qcopy_acl): Make non-static.
5081
5082         acl: Rename a local variable.
5083         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
5084
5085         acl: Align return values of copy_acl and qcopy_acl.
5086         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
5087         maybe < -1.
5088
5089 2012-01-11  Eric Blake  <eblake@redhat.com>
5090
5091         strptime: silence gcc warnings
5092         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
5093         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
5094         Reported by Daniel P. Berrange.
5095
5096         inet_ntop: silence gcc warning
5097         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
5098         Reported by Daniel P. Berrange.
5099
5100 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
5101
5102         getloadavg test: skip the test on GNU/Linux without /proc mounted
5103         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
5104         file.  When /proc is not mounted, it always fails with ENOENT.
5105         * tests/test-getloadavg.c (main): Treat ENOENT return code from
5106         getloadavg(3) the same way as ENOSYS and ENOTSUP.
5107
5108 2012-01-10  Bruno Haible  <bruno@clisp.org>
5109
5110         regex: Avoid link error on MSVC 9.
5111         * modules/regex (Depends-on): Add wctype.
5112
5113 2012-01-10  Bruno Haible  <bruno@clisp.org>
5114
5115         doc: Mention --with-tests option.
5116         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
5117         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
5118         --with-tests.
5119         Reported by Reuben Thomas.
5120
5121 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
5122
5123         users.txt: order package names lexicographically.
5124         * users.txt: Order package names lexicographically.
5125
5126 2012-01-10  Jim Meyering  <meyering@redhat.com>
5127
5128         maint.mk: fix description in comment
5129         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
5130
5131         ignore-value: remove deprecated ignore_ptr function
5132         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
5133         * NEWS: Note this.
5134
5135 2012-01-09  Jim Meyering  <meyering@redhat.com>
5136
5137         test-init.sh: avoid a subshell
5138         * tests/test-init.sh: Remove protective subshell.
5139         Suggested by Bernhard Voelker.  While a subshell is normally
5140         required to protect against older shells (Solaris, FreeBSD) that
5141         warn about a missing program before performing redirection, the
5142         shell-selection tests performed by init.sh probably exclude any
5143         offending shell.
5144
5145 2012-01-08  Bruno Haible  <bruno@clisp.org>
5146
5147         setlocale tests: Avoid test failure on Solaris 11 2011-11.
5148         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
5149         variable.
5150
5151 2012-01-08  Bruno Haible  <bruno@clisp.org>
5152
5153         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
5154         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5155         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5156         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
5157         macro.
5158         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
5159         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5160         * lib/spawn_faction_addopen.c: Add workaround implementation if
5161         HAVE_WORKING_POSIX_SPAWN.
5162         * modules/spawn (Makefile): Substitute
5163         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
5164         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
5165         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
5166         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
5167         (Depends-on): Update conditions.
5168         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
5169         the Solaris 11 bug.
5170
5171 2012-01-08  Bruno Haible  <bruno@clisp.org>
5172
5173         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
5174         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5175         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5176         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
5177         macro.
5178         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
5179         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5180         * lib/spawn_faction_adddup2.c: Add workaround implementation if
5181         HAVE_WORKING_POSIX_SPAWN.
5182         * modules/spawn (Makefile): Substitute
5183         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
5184         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
5185         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
5186         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
5187         (Depends-on): Update conditions.
5188         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
5189         the Solaris 11 bug.
5190
5191 2012-01-08  Bruno Haible  <bruno@clisp.org>
5192
5193         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
5194         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
5195         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5196         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
5197         HAVE_WORKING_POSIX_SPAWN.
5198         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
5199         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
5200         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5201         * lib/spawn_faction_addclose.c: Add workaround implementation if
5202         HAVE_WORKING_POSIX_SPAWN.
5203         * modules/spawn (Makefile): Substitute
5204         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
5205         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
5206         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
5207         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
5208         (Depends-on): Update conditions.
5209         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
5210         the Solaris 11 bug.
5211
5212 2012-01-08  Bruno Haible  <bruno@clisp.org>
5213
5214         doc: Update for Solaris 11 2011-11.
5215         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
5216         * m4/printf.m4: Update comments.
5217
5218 2012-01-08  Bruno Haible  <bruno@clisp.org>
5219
5220         mktime: Avoid compilation error on Solaris 11.
5221         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
5222
5223 2012-01-08  Bruno Haible  <bruno@clisp.org>
5224
5225         doc: Small fix.
5226         * doc/posix-headers/nl_types.texi: Correct platforms list.
5227
5228 2012-01-08  Simon Josefsson  <simon@josefsson.org>
5229
5230         Add lgpl-3.0 module.
5231         * MODULES.html.sh (Support for building documentation): Add
5232         lgpl-3.0.
5233         * modules/lgpl-3.0: New file.
5234
5235 2012-01-08  Jim Meyering  <meyering@redhat.com>
5236
5237         select.c: indent with spaces, not TABs
5238         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
5239
5240 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5241
5242         quotearg: do not use grave accent for left quote
5243         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
5244         locale_quoting_style.
5245         (quotearg_buffer_restyled): Fix example.
5246         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
5247
5248 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5249
5250         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
5251         Most programs do not have translation catalogs for English and much
5252         less separate catalogs for British and American English.  Drop the
5253         suggestion to translators about these two, and provide it
5254         automatically for Unicode locales.  Like most programs, even those
5255         using American English, we use single quotation marks.  This conflicts
5256         with the American typographic convention, but works better when you
5257         cite the entire error message within double quotes.  It also tries not
5258         to clash with established practice and with what non-gnulib programs
5259         will usually do.
5260         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
5261         using an UTF-8 or GB-18030 locale.  The list of other locales with
5262         quotes was provided by Bruno Haible.
5263         (quotearg_buffer_restyled): Adjust instructions to translators.
5264         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
5265         text, since this would be wrong when using Unicode.
5266         * modules/quotearg: Depend on c-strcaseeq.
5267
5268 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
5269
5270         quotearg: fix Wikipedia link
5271         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
5272
5273 2012-01-07  Simon Josefsson  <simon@josefsson.org>
5274
5275         Fix for mingw with MSVC9.
5276         * m4/ld-version-script.m4: Check that compiler rejects version
5277         scripts with syntax errors.  Reported by Bruno Haible
5278         <bruno@clisp.org>.
5279
5280 2012-01-06  Bruno Haible  <bruno@clisp.org>
5281
5282         Talk about "native Windows API", not "Woe32".
5283         * lib/accept4.c: Update comments to mention native Windows.
5284         * lib/execute.c: Likewise.
5285         * lib/fatal-signal.c: Likewise.
5286         * lib/localcharset.c: Likewise.
5287         * lib/nanosleep.c: Likewise.
5288         * lib/nl_langinfo.c: Likewise.
5289         * lib/pclose.c: Likewise.
5290         * lib/pipe-filter-gi.c: Likewise.
5291         * lib/pipe-filter-ii.c: Likewise.
5292         * lib/pipe.c: Likewise.
5293         * lib/pipe2.c: Likewise.
5294         * lib/popen.c: Likewise.
5295         * lib/progreloc.c: Likewise.
5296         * lib/relocatable.c: Likewise.
5297         * lib/sigaction.c: Likewise.
5298         * lib/sigprocmask.c: Likewise.
5299         * lib/spawn-pipe.h: Likewise.
5300         * lib/spawn-pipe.c: Likewise.
5301         * lib/spawni.c: Likewise.
5302         * lib/stat-time.h: Likewise.
5303         * lib/w32spawn.h: Likewise.
5304         * tests/test-isatty.c: Likewise.
5305         * lib/config.charset: More comments.
5306         * doc/gnulib-intro.texi: Mention native Windows.
5307         * doc/posix-functions/_Exit_C99.texi: Likewise.
5308         * doc/posix-headers/fcntl.texi: Likewise.
5309
5310 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
5311
5312         argp: Avoid crash if translator uses % characters in a translation.
5313         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5314         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5315
5316 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5317
5318         doc: C11 and C++11 are now official
5319         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5320         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5321         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5322         * modules/stdalign:
5323         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5324
5325 2012-01-06  Bruno Haible  <bruno@clisp.org>
5326
5327         uc-is-grapheme-break tests: Tweak.
5328         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5329         message.
5330
5331 2012-01-06  Bruno Haible  <bruno@clisp.org>
5332
5333         test-init.sh: correct the test for diff -u
5334         * tests/test-init.sh: Also redirect stdout to /dev/null.
5335
5336 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5337
5338         Use ', not `, for quoting output.
5339         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5340         (print_changelog_deltas, get_tool_versions, main program):
5341         * build-aux/git-version-gen:
5342         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5343         * build-aux/move-if-change (help):
5344         * build-aux/useless-if-before-free (usage, main program):
5345         * check-module (parse_module_file, usage)
5346         (find_included_lib_files, check_module):
5347         * lib/argmatch.c (main) [TEST]:
5348         * lib/argp-help.c (_help):
5349         * lib/getopt1.c (main) [TEST]:
5350         * lib/git-merge-changelog.c (usage):
5351         * lib/xstrtol-error.c (xstrtol_error):
5352         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5353         * m4/argz.m4 (gl_FUNC_ARGZ):
5354         * m4/bison.m4 (gl_BISON):
5355         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5356         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5357         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5358         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5359         * m4/gc-random.m4 (gl_GC_RANDOM):
5360         * m4/intl.m4 (gt_CHECK_DECL):
5361         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5362         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5363         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5364         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5365         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5366         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5367         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5368         * tests/test-dirname.c (main):
5369         * tests/test-getpass.c (main):
5370         * tests/test-iconvme.c (main):
5371         * tests/test-parse-datetime.c (LOG):
5372         * tests/test-xstrtoimax.sh:
5373         * tests/test-xstrtol.sh:
5374         * tests/test-xstrtoll.sh:
5375         * tests/test-xstrtoumax.sh:
5376         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5377         * top/GNUmakefile (abort-due-to-no-makefile):
5378         Quote 'like this', not `like this', as per the recent change to
5379         the GNU coding standards.
5380
5381 2012-01-05  Bruno Haible  <bruno@clisp.org>
5382
5383         strtoimax: Don't force a replacement on systems where intmax_t is int.
5384         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5385         'intmax_t' is not larger than 'int'.
5386         Reported by Pádraig Brady <P@draigBrady.com>.
5387
5388 2012-01-05  Bruno Haible  <bruno@clisp.org>
5389
5390         doc: Mention NetBSD bugs.
5391         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5392         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5393
5394 2012-01-05  Bruno Haible  <bruno@clisp.org>
5395
5396         strtoumax tests: Enhance tests.
5397         * tests/test-strtoumax.c (main): Add tests for large values.
5398
5399 2012-01-05  Bruno Haible  <bruno@clisp.org>
5400
5401         strtoimax: Work around AIX 5.1 bug.
5402         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5403         definition.
5404         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5405         Set HAVE_STRTOIMAX.
5406         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5407         REPLACE_STRTOIMAX.
5408         * modules/inttypes-incomplete (Makefile.am): Substitute
5409         REPLACE_STRTOIMAX.
5410         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5411         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5412         (Depends-on): Update conditions.
5413         * tests/test-strtoimax.c (main): Add tests for large values.
5414         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5415
5416 2012-01-05  Bruno Haible  <bruno@clisp.org>
5417
5418         inttypes: Modernize.
5419         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5420         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5421         (Makefile.am): Update inttypes.h rule.
5422
5423 2012-01-05  Jim Meyering  <meyering@redhat.com>
5424
5425         init.sh: don't waste a subshell just to redirect stderr
5426         * tests/init.sh: In testing for diff -u and diff -c, use a
5427         stderr-redirecting exec inside `...` rather than a subshell.
5428
5429         test-init.sh: avoid failure on HP-UX 11.00
5430         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5431         resolves to diff -c or cmp.  Reported by Bruno Haible.
5432
5433 2012-01-05  Bruno Haible  <bruno@clisp.org>
5434
5435         Tests for module 'strtoull'.
5436         * modules/strtoull-tests: New file.
5437         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5438
5439 2012-01-05  Bruno Haible  <bruno@clisp.org>
5440
5441         Tests for module 'strtoll'.
5442         * modules/strtoll-tests: New file.
5443         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5444
5445 2012-01-05  Bruno Haible  <bruno@clisp.org>
5446
5447         Tests for module 'strtoul'.
5448         * modules/strtoul-tests: New file.
5449         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5450
5451 2012-01-05  Bruno Haible  <bruno@clisp.org>
5452
5453         Tests for module 'strtol'.
5454         * modules/strtol-tests: New file.
5455         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5456
5457 2012-01-04  Jim Meyering  <meyering@redhat.com>
5458
5459         test-init.sh: accommodate Solaris 5.10's different diff -u output
5460         * tests/test-init.sh: Also exempt @@ lines from the comparison
5461         of diff output, since Solaris 5.10 and GNU diff formats differ.
5462         Reported by Stefano Lattarini.
5463
5464 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5465
5466         test-posixtm: don't assume signed integer wraparound
5467         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5468         after signed integer overflow.  Inspired by (though it may not
5469         fix) Bruno Haible's bug report in
5470         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5471
5472         Spell out "Windows 9x" and "Windows XP".
5473         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5474         "Windows 9x" and "WinXP" with "Windows XP".
5475
5476 2012-01-04  Jim Meyering  <meyering@redhat.com>
5477
5478         test-vc-list-files-cvs.sh: remove obsolete comment
5479         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5480         double exit.  Now that's all encapsulated via skip_ and Exit.
5481
5482 2012-01-04  Bruno Haible  <bruno@clisp.org>
5483
5484         Talk about "native Windows API", not "Win32".
5485         * lib/classpath.c: Update comments to mention native Windows.
5486         * lib/csharpexec.c: Likewise.
5487         * lib/dup2.c: Likewise.
5488         * lib/error.c: Likewise.
5489         * lib/fcntl.c: Likewise.
5490         * lib/filename.h: Likewise.
5491         * lib/findprog.c: Likewise.
5492         * lib/get-rusage-as.c: Likewise.
5493         * lib/get-rusage-data.c: Likewise.
5494         * lib/getpagesize.c: Likewise.
5495         * lib/javaexec.c: Likewise.
5496         * lib/msvc-inval.c: Likewise.
5497         * lib/msvc-nothrow.c: Likewise.
5498         * lib/nanosleep.c: Likewise.
5499         * lib/nonblocking.c: Likewise.
5500         * lib/printf-parse.c: Likewise.
5501         * lib/setlocale.c: Likewise.
5502         * lib/sigaction.c: Likewise.
5503         * lib/strerror_r.c: Likewise.
5504         * lib/tmpdir.c: Likewise.
5505         * lib/vasnprintf.c: Likewise.
5506         * lib/w32spawn.h: Likewise.
5507         * lib/waitpid.c: Likewise.
5508         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5509         * m4/locale-ar.m4: Likewise.
5510         * m4/locale-fr.m4: Likewise.
5511         * m4/locale-ja.m4: Likewise.
5512         * m4/locale-tr.m4: Likewise.
5513         * m4/locale-zh.m4: Likewise.
5514         * m4/printf.m4: Likewise.
5515         * tests/test-cloexec.c: Likewise.
5516         * tests/test-copy-acl.sh: Likewise.
5517         * tests/test-copy-file.sh: Likewise.
5518         * tests/test-file-has-acl.sh: Likewise.
5519         * tests/test-set-mode-acl.sh: Likewise.
5520         * tests/test-dup-safer.c: Likewise.
5521         * tests/test-dup2.c: Likewise.
5522         * tests/test-dup3.c: Likewise.
5523         * tests/test-fcntl.c: Likewise.
5524         * tests/test-nonblocking-pipe.h: Likewise.
5525         * tests/test-nonblocking-socket.h: Likewise.
5526         * tests/test-pipe.c: Likewise.
5527         * tests/test-pipe2.c: Likewise.
5528         * tests/test-spawn-pipe-child.c: Likewise.
5529         * doc/acl-resources.txt: Likewise.
5530         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5531         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5532         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5533         * lib/localcharset.c: Update comments to mention native Windows.
5534         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5535         * lib/localename.c: Likewise.
5536         * lib/progreloc.c: Likewise.
5537         * lib/relocatable.c: Likewise.
5538         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5539         (windows_compute_revents): Renamed from win32_compute_revents.
5540         (windows_compute_revents_socket): Renamed from
5541         win32_compute_revents_socket.
5542         * lib/select.c: Update comments to mention native Windows.
5543         (windows_poll_handle): Renamed from win32_poll_handle.
5544         * m4/threadlib.m4: Update comments to mention native Windows.
5545         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5546         --enable-threads=windows instead of --enable-threads=win32. Set
5547         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5548         * lib/glthread/lock.h: Update comments to mention native Windows.
5549         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5550         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5551         USE_WIN32_THREADS.
5552         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5553         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5554         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5555         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5556         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5557         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5558         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5559         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5560         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5561         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5562         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5563         * tests/test-tls.c: Likewise.
5564         Rationale:
5565         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5566         on both 32-bit and 64-bit Windows systems.
5567         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5568         line of distinction is between "native Windows" on one side and Unix/
5569         POSIX systems on the other side. More details in
5570         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5571         Suggested by Paul Eggert.
5572
5573 2012-01-03  Bruno Haible  <bruno@clisp.org>
5574
5575         isatty: Support for MSVC 9.
5576         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5577         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5578         (_isatty_nothrow): New function.
5579         (isatty): Use it instead of _isatty.
5580         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5581         * lib/poll.c (IsConsoleHandle): Likewise.
5582         * lib/select.c (IsConsoleHandle): Likewise.
5583         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5584         (gl_PREREQ_ISATTY): New macro.
5585         * modules/isatty (Depends-on): Add msvc-inval.
5586         (configure.ac): Invoke gl_PREREQ_ISATTY.
5587
5588 2012-01-03  Jim Meyering  <meyering@redhat.com>
5589
5590         maint.mk: remove temporary transition aid from over 1.5 years ago
5591         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5592         purpose was to aid in the transition (avoiding silent malfunction)
5593         from that old name to the new _sc_search_regexp.  This shim was
5594         added by commit 219c504b.
5595
5596         init.sh: do not try to accommodate compare arguments starting with "-"
5597         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5598         compare arguments that start with "-".  Besides, we do not worry
5599         about this when invoking diff or cmp; why start now with sed?
5600         Using "--" to separate options from argument would trigger sed
5601         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5602         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5603
5604 2012-01-02  Bruno Haible  <bruno@clisp.org>
5605
5606         Enhance tests for module 'isatty'.
5607         * modules/isatty-tests (Depends-on): Add pipe-posix.
5608         * tests/test-isatty.c: Include <fcntl.h>.
5609         (DEV_NULL): New macro.
5610         (main): Test the resut of isatty() also on regular files, pipes, and
5611         /dev/null.
5612
5613         New module 'isatty'.
5614         * lib/unistd.in.h (isatty): New declaration.
5615         * lib/isatty.c: New file, based on an idea of
5616         Bastien Roucariès <roucaries.bastien@gmail.com>.
5617         * m4/isatty.m4: New file.
5618         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5619         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5620         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5621         REPLACE_ISATTY.
5622         * modules/isatty: New file.
5623         * doc/posix-functions/isatty.texi: Mention the new module.
5624         Suggested by Paolo Bonzini.
5625
5626 2012-01-02  Bruno Haible  <bruno@clisp.org>
5627
5628         canonicalize: Tweak 2011-12-29 commit.
5629         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5630         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5631
5632 2012-01-02  Jim Meyering  <meyering@redhat.com>
5633
5634         gitlog-to-changelog: describe input syntax in --help output
5635         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5636
5637         gitlog-to-changelog: fix typo in --help: show backslash before email @
5638         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5639         in sources, but not in actual output.
5640
5641 2011-12-30  Jim Meyering  <meyering@redhat.com>
5642
5643         gitlog-to-changelog: don't malfunction when name contains %-directive
5644         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5645         in a name string cause trouble.  E.g., with a user name of "%s",
5646         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5647
5648 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5649
5650         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5651         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5652         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5653         the "  (tiny change)" notation that is appended to the standard
5654         ChangeLog "date  name  email" header line.
5655
5656 2012-01-01  Jim Meyering  <meyering@redhat.com>
5657
5658         test-framework-sh: init.sh: fix "make dist" failure
5659         When using gnulib-tool's --with-tests option and any module that
5660         depends on test-framework-sh, "make dist" would fail due to the
5661         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5662         in the gltests directory, and not in the gllib/ directory.
5663         One way to work around that is to move the EXTRA_DIST += init.sh
5664         from the primary module to the -tests one:
5665         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5666         * modules/test-framework-sh (Makefile.am): ...not here.
5667         Reported by Tom G. Christensen in
5668         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5669
5670         version-etc: update copyright year reported by --version
5671         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5672
5673 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5674
5675         canonicalize: only stat() if required
5676         * lib/canonicalize.c (canonicalize_filename_mode):
5677         Avoid calling l?stat() when both CAN_MISSING,
5678         and CAN_NOLINKS are set, as we neither need
5679         to resolve symlinks or test component existence.
5680
5681 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5682
5683         doc: cover st_ino issues once; add OpenVMS etc.
5684         * doc/posix-functions/stat.texi (stat):
5685         * doc/posix-functions/lstat.texi (lstat):
5686         * doc/posix-functions/fstatat.texi (fstatat):
5687         * doc/posix-functions/fstat.texi (fstat):
5688         Move general 'struct stat' stuff to sys_stat.texi,
5689         leaving behind a pointer.
5690         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5691         Merge duplicate info about 'struct stat' problems into here.
5692         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5693         and suggest partial workarounds.
5694
5695         same-inode: port to OpenVMS
5696         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5697         three st_ino values.
5698
5699 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5700
5701         canonicalize: fix references to stat() and lstat()
5702         * lib/canonicalize.c (canonicalize_filename_mode):
5703         Ensure references always resolve to a replacement
5704         function if required (even via a macro).
5705
5706 2011-12-30  Jim Meyering  <meyering@redhat.com>
5707
5708         gitlog-to-changelog: remove a little duplication
5709         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5710         rather than twice.
5711
5712 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5713
5714         canonicalize: add support for not resolving symlinks
5715         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5716         indicate we don't want to follow symlinks.  Also
5717         provide CAN_MODE_MASK to aid setting these existing
5718         mutually exclusive values.
5719         * lib/canonicalize.c (canonicalize_filename_mode):
5720         Extract the flags from can_mode parameter, which
5721         are currently just used to select between stat()
5722         and lstat().  Also ensure that mutually exclusive
5723         values are flagged immediately as invalid.
5724         * tests/test-canonicalize.c: Verify symlinks are
5725         not followed, and that invalid flag combinations
5726         are diagnosed.
5727
5728 2011-12-25  Jim Meyering  <meyering@redhat.com>
5729
5730         gitlog-to-changelog: do not clump multi-paragraph entries
5731         Identical header lines (date,name,email+coauthors) are suppressed,
5732         thus putting all entries with those same characteristics under
5733         a single header.  However, when a log entry consists of two or
5734         more paragraphs, it may not be clear where it starts and ends.
5735         This change makes it so that such an entry is always separated
5736         from others by a header line, even when that header would
5737         otherwise be suppressed.
5738         * build-aux/gitlog-to-changelog: Implement the above.
5739         Inspired by a related request from Stefano Lattarini in
5740         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5741
5742 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5743
5744         announce-gen: fix `cmd' typo in diagnostic
5745         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5746         diagnostic: a missing '$' meant that the command was not output.
5747
5748 2011-12-23  Jim Meyering  <meyering@redhat.com>
5749
5750         test-framework-sh: distribute init.sh
5751         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5752         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5753         fail due to the lack of init.sh.
5754
5755         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5756         * modules/atexit-tests: Rather than listing tests/init.sh,
5757         now that there's a module for it, simply depend on that new module.
5758         * modules/closein-tests: Likewise.
5759         * modules/exclude-tests: Likewise.
5760         * modules/getcwd-tests: Likewise.
5761         * modules/perror-tests: Likewise.
5762         * modules/pread-tests: Likewise.
5763         * modules/pwrite-tests: Likewise.
5764         * modules/vc-list-files-tests: Likewise.
5765         * modules/verify-tests: Likewise.
5766         * modules/xalloc-die-tests: Likewise.
5767         * modules/xstrtoimax-tests: Likewise.
5768         * modules/xstrtol-tests: Likewise.
5769         * modules/xstrtoll-tests: Likewise.
5770         * modules/xstrtoumax-tests: Likewise.
5771         * modules/yesno-tests: Likewise.
5772
5773 2011-12-22  Jim Meyering  <meyering@redhat.com>
5774
5775         test-framework-sh: add minimal tests of init.sh's compare function
5776         * modules/test-framework-sh-tests: New file.
5777         * tests/test-init.sh: New file.
5778
5779         test-framework-sh: new module
5780         * modules/test-framework-sh: New file.
5781         * MODULES.html.sh (Support for maintaining and releasing projects):
5782         List it.
5783
5784         init.sh: do not emit simulated diff output to stderr
5785         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5786
5787 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5788
5789         .gitignore: ignore gnulib.dvi and regex.info
5790         * doc/.gitignore:add gnulib.dvi and regex.info
5791
5792 2011-12-22  Jim Meyering  <meyering@redhat.com>
5793
5794         init.sh: correct previous change
5795         * tests/init.sh (compare): My previous change was wrong.
5796         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5797
5798         init.sh: avoid unwarranted test failure when using "set -e"
5799         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5800         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5801         a use like "compare exp out" would get evoke an unconditional failure.
5802
5803 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5804
5805         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5806         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5807         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5808         autoreconf that did not.
5809         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5810         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5811
5812 2011-12-17  Jim Meyering  <meyering@redhat.com>
5813
5814         bootstrap: remove some now-unneeded code
5815         This script arose back when gnulib-tool was young.
5816         Since then, it has seen improvements that render much of this
5817         script unnecessary.  In particular, it can now make symlinks
5818         to the files it uses.  Also, I no longer see as much value in
5819         marking files as read-only via comments.
5820         If you relied on the symlink-creation feature of the preceding
5821         version of this script, you can get most of that functionality
5822         by adding the --symlink option to the definition of
5823         gnulib_tool_option_extras in your bootstrap.conf file.
5824         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5825         Run autopoint and libtoolize *before* gnulib-tool.
5826         After it, run an abbreviated autoreconf, rather than a loop around
5827         all tools.
5828         (slirp, bt_mark_as_generated): Remove functions.
5829
5830 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5831
5832         ftoastr: fix typo
5833         * lib/ftoastr.h: Fix misspelling in comment.
5834
5835 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5836
5837         * top/README-release: fix punctuation.
5838
5839 2011-12-17  Jim Meyering  <meyering@redhat.com>
5840
5841         bootstrap: correct the recent buildreq change
5842         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5843         had no effect.
5844         * build-aux/bootstrap (buildreq): Bracket each search term with
5845         "*...*", so that the shell "case" statement works as intended.
5846         Add comments.
5847
5848 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5849
5850         build: let bootstrap resort to wget when downloading .po files
5851         * build-aux/bootstrap (download_po_files): Fallback to wget when
5852         downloading the .po files via rsync fails.  This is necessary to
5853         bootstrap from behind a strict firewall.
5854
5855 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5856
5857         stdint: don't assume C++11 when compiling with g++
5858         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5859         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5860         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5861         work also in C++ before C++11, as that improperly inhibits
5862         generating a substitute stdint.h for that case.
5863
5864 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5865
5866         alloca: protect comment from gnulib-tool
5867         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5868         that gnulib-tool doesn't think it's a license, and munge it to
5869         say "GCC version 3".
5870
5871 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5872
5873         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5874         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5875         $(abs_top_builddir) instead of $(top_builddir).
5876
5877 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5878
5879         strftime-tests: also test nanoseconds
5880         * tests/test-strftime.c (T): Add a test of %N.
5881
5882 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5883
5884         inttypes, stdint: add C++11 support
5885         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5886         when including inttypes.h and stdint.h.  Support this change to
5887         the standard.
5888         * doc/posix-headers/inttypes.texi (inttypes.h):
5889         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5890         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5891         Define if not defined already, for the benefit of pre-C++11 hosts.
5892         Define the standard format macros (e.g., PRId8) always.
5893         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5894         Likewise, if __cpluspus.  Define the standard constant and limit
5895         macros (e.g., INT8_C, INT8_MAX) always.
5896         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5897         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5898         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5899         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5900         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5901         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5902         Likewise.
5903
5904 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5905
5906         nonblocking tests: Fix test failure on Linux/PPC.
5907         Suggested by Prerna Saxena in
5908         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5909         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5910         Set to 1100000.
5911
5912 2011-12-12  Jim Meyering  <meyering@redhat.com>
5913
5914         argmatch: don't hard-code `' when listing valid option arguments
5915         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5916         use the quote function to add quotes.  Use fputs rather than
5917         fprintf for the format string with no format directive.
5918
5919 2011-12-07  Eric Blake  <eblake@redhat.com>
5920
5921         bootstrap: detect tools required by gnulib-tool
5922         * build-aux/bootstrap (buildreq): Provide minimum implicit
5923         dependencies.
5924         * DEPENDENCIES: Mention patch as a prereq.
5925
5926 2011-12-04  Bruno Haible  <bruno@clisp.org>
5927
5928         sethostname: Port to Windows platforms.
5929         * lib/sethostname.c: Provide an alternate implementation for Windows
5930         platforms.
5931         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5932         (main): Skip the test if sethostname() fails with EPERM. On Windows
5933         platforms, don't check the result of gethostname().
5934
5935 2011-12-04  Bruno Haible  <bruno@clisp.org>
5936             Jim Meyering  <meyering@redhat.com>
5937
5938         tests: Avoid spurious error message on platforms without mktemp program.
5939         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5940
5941 2011-12-04  Bruno Haible  <bruno@clisp.org>
5942
5943         sethostname: Fix documentation.
5944         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5945         "not fixed" section.
5946
5947 2011-12-03  Bruno Haible  <bruno@clisp.org>
5948
5949         gnulib-tool: Verify that the License field is present and non-empty.
5950         * gnulib-tool (func_get_license_raw): New function, extracted from
5951         func_get_license.
5952         (func_get_license): Use it. Warn if the module is not a test module and
5953         has no license.
5954         Suggested by Jim Meyering.
5955
5956 2011-12-03  Bruno Haible  <bruno@clisp.org>
5957
5958         sethostname tests: Fix link error on mingw.
5959         * tests/test-sethostname1.c: New file, extracted from
5960         tests/test-sethostname.c.
5961         * tests/test-sethostname2.c: New file, extracted from
5962         tests/test-sethostname.c.
5963         * tests/test-sethostname.c: Remove file.
5964         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5965         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5966         (Depends-on): Add gethostname.
5967         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5968         Link the latter with $(GETHOSTNAME_LIB).
5969
5970         sethostname tests: Fix compilation error on mingw.
5971         * tests/test-sethostname.c: Don't include <sys/types.h>.
5972         (geteuid): Use a dummy value without uid_t.
5973         * modules/sethostname-tests (Depends-on): Remove sys_types.
5974
5975         sethostname tests: Avoid a gcc warning.
5976         * tests/test-sethostname.c (main): Remove an unused variable.
5977
5978         Tweak last commit.
5979         * modules/sethostname-tests (Files): Sort by decreasing importance.
5980         (configure.ac): Check for geteuid.
5981         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5982         the test when there's nothing to test. Drop an unnecessary cast.
5983         Improve an error message. Verify that the final sethostname() call
5984         succeeds.
5985
5986 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5987
5988         Add a test suite for the sethostname module.
5989         * modules/sethostname-tests: New file.  A test program
5990         for the sethostname module.
5991         * tests/test-sethostname.c: Likewise.
5992
5993 2011-12-03  Bruno Haible  <bruno@clisp.org>
5994
5995         Tweak last commit.
5996         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5997         Fix preprocessor directives indentation. Fix typos.
5998         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5999         * modules/unistd (Makefile): Likewise.
6000
6001 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6002
6003         Integrate the sethostname module into unistd.
6004         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
6005         into the unistd.h header.
6006         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
6007         preprocessor directives.
6008         * modules/unistd: Setup the Makefile substitutions of the
6009         SETHOSTNAME preprocessor directives.
6010
6011 2011-12-03  Bruno Haible  <bruno@clisp.org>
6012
6013         Tweak last commit.
6014         * lib/sethostname.c: Don't include <string.h>.
6015         (sethostname): No need to copy the argument string to the stack. Don't
6016         call clearerr. Preserve errno when fprintf failed.
6017         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
6018         Don't invoke AC_REPLACE_FUNCS.
6019         * modules/sethostname (Link): Remove empty section.
6020         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
6021         failure problem.
6022
6023 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6024
6025         New module 'sethostname'.
6026         * lib/sethostname.c (sethostname): New file.  Provide sethostname
6027         for systems that lack it.
6028         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
6029         sethostname declaration and function.
6030         * modules/sethostname: New file.  Define the sethostname module.
6031
6032 2011-12-03  Bruno Haible  <bruno@clisp.org>
6033
6034         Tweak last commit.
6035         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
6036
6037 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
6038
6039         Split the HOST_NAME_MAX detection into a separate m4 macro.
6040         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
6041         macro so it can be used by the pending sethostname module.
6042
6043 2011-12-03  Bruno Haible  <bruno@clisp.org>
6044
6045         Fix module descriptions syntax.
6046         * modules/argv-iter (License): Fix syntax.
6047         * modules/di-set (License): Likewise.
6048         * modules/ino-map (License): Likewise.
6049         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
6050
6051 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
6052
6053         stdalign: port to Clang 3.0
6054         Problem reported by Simon Josefsson in
6055         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
6056         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
6057         which has <stdalign.h> but which does not define alignof.
6058         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
6059
6060 2011-12-01  Eric Blake  <eblake@redhat.com>
6061
6062         mktempd: silence dd usage
6063         * build-aux/mktempd (rand_bytes): Silence dd.
6064
6065 2011-11-30  Simon Josefsson  <simon@josefsson.org>
6066
6067         manywarnings: Don't mention gcc version in docstring.
6068         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
6069         Jim Meyering <meyering@redhat.com>.
6070
6071 2011-11-30  Jim Meyering  <meyering@redhat.com>
6072
6073         hash: mark a few floating point constants with "f" suffix
6074         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
6075         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
6076         floating point constants with "f", since they're destined to be
6077         saved/used as "float"s.
6078
6079 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
6080
6081         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
6082         * tests/test-float.c (test_long_double): Correct and re-enable the
6083         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
6084
6085 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
6086
6087         Avoid subtracting two pointers that don't point into the same block.
6088         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
6089         only pointers into the same memory block are subtracted. We cannot
6090         assume that sizeof (ptrdiff_t) == sizeof (void *).
6091
6092 2011-11-29  Eric Blake  <eblake@redhat.com>
6093
6094         maint.mk: add syntax check for use of compare from init.sh
6095         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
6096         moved here from coreutils.
6097
6098         manywarnings: drop -Wunsuffixed-float-constants
6099         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
6100         '1.0D', which is the only way to silence this warning for 'double'.
6101
6102 2011-11-29  Jim Meyering  <meyering@redhat.com>
6103
6104         hash: mark compute_bucket_size with the pure attribute
6105         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
6106
6107         quotearg, propername: correct pragma guard expression
6108         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
6109         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
6110
6111 2011-11-28  Jim Meyering  <meyering@redhat.com>
6112
6113         propername: do not mark proper_name with the const attribute
6114         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
6115         since it examines data pointed to by its parameter.
6116         * lib/propername.c (proper_name): Instead, add a pragma to suppress
6117         the suggestion from -Wsuggest-attribute=const.
6118
6119         propername: mark one more function as const
6120         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
6121
6122 2011-11-27  Jim Meyering  <meyering@redhat.com>
6123
6124         mark functions with const and pure attributes
6125
6126         Mark functions per suggestions from gcc-4.6 when using these options:
6127         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
6128         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
6129         Follow these guidelines: when possible, apply the attribute to
6130         an extern declaration, not to its definition.  Apply it to the
6131         definition only when the definition is static.
6132         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
6133         * lib/argv-iter.h (argv_iter_n_args): Likewise.
6134         * lib/base64.h (isbase64): Likewise.
6135         * lib/basename-lgpl.c (last_component, base_len): Likewise.
6136         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
6137         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
6138         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
6139         (c_tolower, c_toupper): Likewise.
6140         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
6141         * lib/chdir-long.c (find_non_slash): Likewise.
6142         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
6143         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
6144         * lib/file-type.h (file_type): Likewise.
6145         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
6146         * lib/filevercmp.c (verrevcmp): Likewise.
6147         * lib/freadahead.h (freadahead): Likewise.
6148         * lib/fts.c (fts_maxarglen): Likewise.
6149         * lib/hash-pjw.h (hash_pjw): Likewise.
6150         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
6151         * lib/hash.c (is_prime, next_prime): Likewise.
6152         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
6153         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
6154         (hash_table_ok, hash_get_first, hash_string): Likewise.
6155         (compute_bucket_size): Likewise.
6156         * lib/i-ring.h (i_ring_empty): Likewise.
6157         * lib/isnan.c (isnanl): Likewise.
6158         * lib/math.h (isnanl, rpl_isnanl): Likewise.
6159         * lib/memcasecmp.h (memcasecmp): Likewise.
6160         * lib/memchr2.h (memchr2): Likewise.
6161         * lib/memcmp2.h (memcmp2): Likewise.
6162         * lib/parse-datetime.y (lookup_zone): Likewise.
6163         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
6164         [!WINDOWS_SOCKETS]: Likewise.
6165         * lib/strnlen1.h (strnlen1): Likewise.
6166         * lib/uniwidth.in.h (uc_width): Likewise.
6167         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
6168         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
6169         (quoting_options_from_style): Add a comment.
6170         * lib/propername.h (proper_name): Add a comment.
6171
6172 2011-11-27  Bruno Haible  <bruno@clisp.org>
6173
6174         Remove unused macros from !_LIBC code in glibc-borrowed files.
6175         * lib/fnmatch.c (STRCOLL): Remove macro.
6176         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
6177         * lib/glob.c (__stat, __readdir64): Remove macros.
6178         * lib/tempname.c (__open64, __xstat64): Remove macros.
6179         Suggested by Paul Eggert.
6180
6181 2011-11-27  Bruno Haible  <bruno@clisp.org>
6182
6183         getcwd: Fix link error on MSVC 9.
6184         * modules/getcwd (Depends-on): Add readdir, rewinddir.
6185
6186 2011-11-27  Bruno Haible  <bruno@clisp.org>
6187
6188         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
6189         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
6190         HAVE_OPENDIR is 0.
6191         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
6192         HAVE_CLOSEDIR is 0.
6193         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
6194         is 0.
6195         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
6196
6197 2011-11-27  Bruno Haible  <bruno@clisp.org>
6198
6199         getcwd: Fix bug from 2011-08-17.
6200         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
6201         platforms that need it.
6202         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
6203         code of 4 to be a failure, not a success. This ensures that
6204         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
6205
6206 2011-11-27  Bruno Haible  <bruno@clisp.org>
6207
6208         binary-io tests: Avoid test failure on mingw when libtool is used.
6209         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
6210         Don't verify the size of t-bin-out1.tmp here.
6211         * tests/test-binary-io.sh: Verify it here.
6212         Reported by Simon Josefsson.
6213
6214 2011-11-26  Bruno Haible  <bruno@clisp.org>
6215
6216         Fix conflict between two instantiations of module 'unistd'.
6217         * gnulib-tool (func_emit_autoconf_snippet): Substitute
6218         ${include_guard_prefix} also in the autoconf snippet.
6219         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
6220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
6221         GNULIB_UNISTD_H_GETOPT.
6222         * modules/getopt-posix (configure.ac): Set the
6223         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
6224         * modules/getopt-gnu (configure.ac): Likewise.
6225         * modules/unistd (Makefile.am): Change the substitution value of
6226         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
6227         Reported by Simon Josefsson.
6228
6229 2011-11-25  Bruno Haible  <bruno@clisp.org>
6230
6231         pagealign_alloc: Doc and comments.
6232         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
6233         module.
6234         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
6235
6236 2011-11-25  Jim Meyering  <meyering@redhat.com>
6237
6238         test-update-copyright.sh: avoid false-positive failure
6239         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
6240         around false positive failure on Cygwin/Windows.  The latter was
6241         matching erroneously-created files with names like
6242         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
6243
6244 2011-11-25  Simon Josefsson  <simon@josefsson.org>
6245
6246         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
6247         * m4/valgrind-tests.m4: Check that the parameters that will be
6248         used works, not just a subset of them.  Reported by Bruno Haible
6249         <bruno@clisp.org>.
6250
6251 2011-11-24  Jim Meyering  <meyering@redhat.com>
6252
6253         test-stdalign.c: comment out long double tests
6254         * tests/test-stdalign.c: Don't try to reduce alignment of long double
6255         variables.  That provokes errors like this from gcc-4.7.0 20111124:
6256         error: '_Alignas' specifiers cannot reduce alignment of \
6257         'static_longdouble_alignas'.
6258
6259 2011-11-22  Jim Meyering  <meyering@redhat.com>
6260
6261         init.sh: make "compare /dev/null FILE" output more readable
6262         * tests/init.sh (compare_): Document the preferred order of arguments.
6263         (emit_diff_u_header_): New function.
6264         (compare_dev_null_): Emit a simulated diff, rather than just the
6265         contents of the unexpected file.  Suggestion from Bruno Haible.
6266
6267 2011-11-21  Jim Meyering  <meyering@redhat.com>
6268             Eric Blake  <eblake@redhat.com>
6269
6270         init.sh: work around OSF/1 5.1's mishandling of /dev/null
6271         * tests/init.sh: Make our compare function slightly more portable.
6272         Reported by Bruno Haible in
6273         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
6274
6275 2011-11-21  Simon Josefsson  <simon@josefsson.org>
6276
6277         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
6278         before using it, in code that ends up in config.h.
6279
6280 2011-11-20  Bruno Haible  <bruno@clisp.org>
6281
6282         getcwd: Work around getcwd bug on AIX 5..7.
6283         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
6284         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
6285         Use a different value for gl_cv_func_getcwd_path_max. Move the
6286         definition of HAVE_PARTLY_WORKING_GETCWD from here...
6287         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
6288         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
6289         Define HAVE_MINIMALLY_WORKING_GETCWD.
6290         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
6291         where it is not even minimally working, that is, on AIX.
6292         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
6293         m4/getcwd-path-max.m4.
6294         (main): Update exit code computation.
6295         * doc/posix-functions/getcwd.texi: Mention list of platforms where
6296         getcwd does not handle long file names.
6297
6298 2011-11-20  Bruno Haible  <bruno@clisp.org>
6299
6300         getcwd: Fix bug from 2009-09-10.
6301         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
6302         like "no".
6303
6304 2011-11-20  Simon Josefsson  <simon@josefsson.org>
6305
6306         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
6307
6308 2011-11-20  Bruno Haible  <bruno@clisp.org>
6309
6310         fma tests: Avoid shadowing local variables.
6311         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6312         expected.
6313
6314 2011-11-20  Bruno Haible  <bruno@clisp.org>
6315
6316         copysignf tests: Fix.
6317         * tests/test-copysignf.c: Fix signature check.
6318
6319 2011-11-20  Bruno Haible  <bruno@clisp.org>
6320
6321         fma: Remove unused code.
6322         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6323         unused macros.
6324
6325 2011-11-20  Bruno Haible  <bruno@clisp.org>
6326
6327         sethostname: Fix doc about AIX.
6328         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6329         sethostname; it has it.
6330
6331         sethostname: Mention more portability problems.
6332         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6333         problem.
6334         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6335
6336 2011-11-19  Bruno Haible  <bruno@clisp.org>
6337
6338         Depend on module fcntl-h when AT_FDCWD is used.
6339         * modules/utimens (Depends-on): Add fcntl-h.
6340         * modules/areadlinkat (Depends-on): Likewise.
6341         * modules/areadlinkat-with-size (Depends-on): Likewise.
6342         * modules/faccessat (Depends-on): Likewise.
6343         * modules/fchmodat (Depends-on): Likewise.
6344         * modules/fchownat (Depends-on): Likewise.
6345         * modules/getcwd (Depends-on): Likewise.
6346         * modules/mkdirat (Depends-on): Likewise.
6347         * modules/mkfifoat (Depends-on): Likewise.
6348         * modules/readlinkat (Depends-on): Likewise.
6349         * modules/symlinkat (Depends-on): Likewise.
6350         * modules/dup2-tests (Depends-on): Likewise.
6351         * modules/fdutimensat-tests (Depends-on): Likewise.
6352         * modules/futimens-tests (Depends-on): Likewise.
6353
6354 2011-11-19  Bruno Haible  <bruno@clisp.org>
6355
6356         euidaccess: Update a comment.
6357         * lib/euidaccess.c: Update comment about platforms with faccessat.
6358
6359 2011-11-19  Bruno Haible  <bruno@clisp.org>
6360
6361         openat: Fix file list.
6362         * modules/openat (Files): Remove lib/at-func.c.
6363
6364 2011-11-19  Bruno Haible  <bruno@clisp.org>
6365
6366         fstatat: Simplify.
6367         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6368         gnulib should define rpl_fstatat, there is a
6369         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6370
6371 2011-11-19  Bruno Haible  <bruno@clisp.org>
6372
6373         Ensure 'inline' can be used in tests/test-utimens-common.h.
6374         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6375         * modules/futimens-tests (configure.ac): Likewise.
6376         * modules/utimens-tests (configure.ac): Likewise.
6377         * modules/utimensat-tests (configure.ac): Likewise.
6378
6379 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6380
6381         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6382         not hash_insert0.
6383         (hash_insert_if_absent): Doc fix.
6384
6385 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6386
6387         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6388
6389 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6390
6391         test-getcwd: disambiguate exit status
6392         * tests/test-getcwd.c (test_long_name): Return 0..7.
6393         (main): Exit with an unambiguous exit status.  The old
6394         code yielded a mysterious mixture of two failure codes.
6395
6396         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6397         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6398         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6399         rpl_fstatat or fstatat.  This should fix the other problem
6400         reported by Kai Habel in
6401         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6402         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6404         and I reproduced it on a Solaris 8 host we still have in production.
6405
6406 2011-11-18  Jim Meyering  <meyering@redhat.com>
6407
6408         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6409         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6410         Add a sentence to the comment.
6411         (hash_insert0): New function that simply calls hash_insert_if_absent.
6412         * lib/hash.h (hash_insert_if_absent): Declare it.
6413         (hash_insert0): Add deprecation attribute.
6414         (_GL_ATTRIBUTE_DEPRECATED): Define.
6415         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6416         not hash_insert0.
6417         * NEWS: Mention it, even though it's not really an incompatible change.
6418
6419 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6420
6421         openat: avoid compilation failure due to lack of <errno.h> inclusion
6422         * lib/openat.c: Include <errno.h>.
6423
6424 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6425
6426         * modules/getcwd (Depends-on): Add fdopendir.
6427         This fixes one of the two problems reported by Kai Habel in
6428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6429
6430         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6431         stdalign problem reported by Ian Beckwith in
6432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6433         * modules/crypto/gc-arcfour (Depends-on):
6434         Depend conditionally on crypto/arcfour.
6435         * modules/crypto/gc-arctwo (Depends-on):
6436         Depend conditionally on crypto/arctwo.
6437         * modules/crypto/gc-des (Depends-on):
6438         Depend conditionally on crypto/des.
6439         * modules/crypto/gc-hmac-md5 (Depends-on):
6440         Depend conditionally on crypto/hmac-md5.
6441         * modules/crypto/gc-hmac-sha1 (Depends-on):
6442         Depend conditionally on crypto/hmac-sha1.
6443         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6444         * modules/crypto/gc-md4 (Depends-on):
6445         Depend conditionally on crypto/md4.
6446         * modules/crypto/gc-md5 (Depends-on):
6447         Depend conditionally on crypto/md5.
6448         * modules/crypto/gc-rijndael (Depends-on):
6449         Depend conditionally on crypto/rijndael.
6450         * modules/crypto/gc-sha1 (Depends-on):
6451         Depend conditionally on crypto/sha1.
6452         * modules/crypto/gc-arcfour:
6453         * modules/crypto/gc-arctwo:
6454         * modules/crypto/gc-des:
6455         * modules/crypto/gc-hmac-md5:
6456         * modules/crypto/gc-hmac-sha1:
6457         * modules/crypto/gc-md2:
6458         * modules/crypto/gc-md4:
6459         * modules/crypto/gc-md5:
6460         * modules/crypto/gc-rijndael:
6461         * modules/crypto/gc-sha1:
6462         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6463         now that the conditional dependencies do the work for us.
6464
6465 2011-11-17  Jim Meyering  <meyering@redhat.com>
6466
6467         tests: factor st_ctime-comparison out of two headers
6468         * tests/test-utimens-common.h (ctime_compare): Define.
6469         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6470         * tests/test-lutimens.h (test_lutimens): Likewise.
6471         * tests/test-utimens.h (test_utimens): Likewise.
6472
6473         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6474         Invoke the test program via an init.sh-using wrapper.
6475         * tests/test-getcwd.sh: New file.
6476         * modules/getcwd-tests (Files): Add it.
6477         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6478
6479 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6480
6481         gitlog-to-changelog: support multi-author commits.
6482         The FSF cares about keeping track of all authors of patches to its
6483         projects, but Git doesn't provide obvious support for multi-author
6484         changesets. Consensus seems to be forming around the use of extra
6485         Signed-off-by inspired lines in the log message formatted as
6486         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6487         multi-author commits between version control systems.
6488         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6489         log message and output in standard ChangeLog multi-author format.
6490         Reported by Peter Rosin <peda@lysator.liu.se>
6491
6492 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6493             Bruno Haible  <bruno@clisp.org>
6494
6495         Fix some modules' file list.
6496         * modules/fstatat (Files): Add m4/lstat.m4.
6497         * modules/openat (Files): Likewise.
6498         * modules/unlinkat (Files): Likewise.
6499
6500 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6501
6502         maint.mk: fix tight-scope.mk generation in VPATH builds.
6503         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6504         reference with $(srcdir) so that the file is found correctly even
6505         when running `make syntax-check' in a VPATH build.
6506
6507 2011-11-13  Bruno Haible  <bruno@clisp.org>
6508             Jim Meyering  <meyering@redhat.com>
6509
6510         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6511         * tests/init.sh (compare): Remove "No differences encountered" or
6512         synonymous output from the 'diff' program.
6513
6514 2011-11-13  Bruno Haible  <bruno@clisp.org>
6515
6516         Makefile: Tweak indentation.
6517         * Makefile: Use tab as first character in every line that contains rule
6518         commands.
6519
6520 2011-11-13  Bruno Haible  <bruno@clisp.org>
6521
6522         Syntax check for copyright statements.
6523         * check-copyright: New file.
6524         * Makefile (sc_check_copyright): New rule.
6525
6526 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6527
6528         * build-aux/git-version-gen: Add --prefix to configure the tag
6529         match string.
6530
6531 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6532
6533         * build-aux/git-version-gen: Add --help and --version.
6534
6535 2011-11-12  Jim Meyering  <meyering@redhat.com>
6536
6537         revamp the other test-exclude?.sh scripts to use init.sh, too
6538         * tests/test-exclude1.sh: Use init.sh.
6539         * tests/test-exclude2.sh: Likewise.
6540         * tests/test-exclude3.sh: Likewise.
6541         * tests/test-exclude4.sh: Likewise.
6542         * tests/test-exclude5.sh: Likewise.
6543         * tests/test-exclude6.sh: Likewise.
6544         * tests/test-exclude7.sh: Likewise.
6545         * tests/test-exclude8.sh: Likewise.
6546         * modules/exclude-tests (Files): List init.sh.
6547
6548         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6549         These shell scripts ignored failure of the binary test-exclude,
6550         so making the latter return 77 didn't cause them to be skipped.
6551         * tests/test-exclude5.sh: Exit with test-exclude's error status
6552         when that program fails.  Revamp to use init.sh.
6553         * tests/test-exclude2.sh: Likewise.
6554
6555         test-exclude: fix a typo
6556         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6557
6558 2011-11-11  Bruno Haible  <bruno@clisp.org>
6559
6560         obstack: Fix compilation error on MSVC 9.
6561         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6562
6563 2011-11-11  Jim Meyering  <meyering@redhat.com>
6564
6565         test-exclude: skip tests rather than failing on deficient systems
6566         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6567         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6568         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6569         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6570
6571 2011-11-10  Bruno Haible  <bruno@clisp.org>
6572
6573         ptsname_r test: Avoid gcc warning on glibc systems.
6574         * tests/test-ptsname_r.c (null_ptr): New function.
6575         (test_errors): Use it.
6576
6577 2011-11-10  Bruno Haible  <bruno@clisp.org>
6578
6579         ptsname_r: Avoid compilation error on OSF/1 5.1.
6580         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6581         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6582         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6583         function is not declared or incompatibly declared.
6584         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6585         * modules/ptsname_r (Depends-on, configure.ac): Update.
6586         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6587
6588 2011-11-10  Bruno Haible  <bruno@clisp.org>
6589
6590         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6591         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6592         When cross-compiling, guess yes on all platforms except AIX.
6593         Reported by Ludovic Courtès <ludo@gnu.org>.
6594
6595 2011-11-09  Bruno Haible  <bruno@clisp.org>
6596
6597         ptsname_r tests: Fix bugs.
6598         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6599         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6600
6601 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6602
6603         fstatat: work with cross-compilation
6604         Problem reported by Ludovic Courtès in
6605         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6606         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6607         "cross-compiling" and assume the bug is present.  Replace
6608         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6609         an inverted sense, to be more conservative about our assumptions.
6610         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6611
6612 2011-11-09  Bruno Haible  <bruno@clisp.org>
6613
6614         Improve MODULES.html output.
6615         * modules/mkfifoat (Description): Use the word "function".
6616         * modules/readlinkat (Description): Likewise.
6617         * modules/symlinkat (Description): Likewise.
6618
6619 2011-11-09  Eric Blake  <eblake@redhat.com>
6620
6621         ptsname_r-tests: new test module
6622         * modules/ptsname_r-tests: New module.
6623         * tests/test-ptsname_r.c: New file.
6624
6625         ptsname_r: new module
6626         * modules/ptsname_r: New module.
6627         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6628         * lib/ptsname.c (__ptsname_r): Split...
6629         * lib/ptsname_r.c: ...into new file.
6630         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6631         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6632         * modules/stdlib (Makefile.am): Substitute witnesses.
6633         * lib/stdlib.in.h (ptsname_r): Declare it.
6634         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6635         * MODULES.html.sh (Misc): Likewise.
6636         * modules/ptsname (Depends-on): Alter dependency.
6637         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6638
6639 2011-11-09  Jim Meyering  <meyering@redhat.com>
6640
6641         announce-gen: be more concise when there's only one URL+tarball
6642         * build-aux/announce-gen (get_tool_versions): When you distribute
6643         only one type of tarball, combine the first two "Here are..."
6644         sections and make the key-checking grammar independent of
6645         how many tarballs there are.
6646
6647 2011-11-09  Eric Blake  <eblake@redhat.com>
6648
6649         openpty: provide a stub on mingw
6650         * lib/pty.in.h (includes): Provide forward declarations.
6651         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6652
6653         raise: fix mingw handling of SIGPIPE
6654         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6655
6656 2011-11-08  Bruno Haible  <bruno@clisp.org>
6657
6658         More conditional dependencies.
6659         * modules/faccessat (Depends-on): Add conditions.
6660         * modules/fchmodat (Depends-on): Likewise.
6661         * modules/fchownat (Depends-on): Likewise.
6662         * modules/fstatat (Depends-on): Likewise.
6663         * modules/mkfifoat (Depends-on): Likewise.
6664         * modules/readlinkat (Depends-on): Likewise.
6665         * modules/symlinkat (Depends-on): Likewise.
6666         * modules/unlinkat (Depends-on): Likewise.
6667         * modules/utimensat (Depends-on): Likewise.
6668         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6669         * modules/linkat (Depends-on): Refine the conditions.
6670         * modules/renameat (Depends-on): Likewise.
6671
6672 2011-11-08  Bruno Haible  <bruno@clisp.org>
6673
6674         faccessat: Move AC_LIBOBJ invocation to module description.
6675         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6676         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6677         invocation from here...
6678         * modules/faccessat (configure.ac): ... to here. Invoke
6679         gl_PREREQ_FACCESSAT.
6680
6681 2011-11-08  Bruno Haible  <bruno@clisp.org>
6682
6683         faccessat: Simplify autoconf macro.
6684         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6685         gl_FUNC_EUIDACCESS.
6686
6687 2011-11-08  Bruno Haible  <bruno@clisp.org>
6688
6689         renameat: Fix dependencies.
6690         * modules/renameat (Depends-on): Add stdbool.
6691
6692 2011-11-08  Bruno Haible  <bruno@clisp.org>
6693
6694         mkfifoat: Fix module description.
6695         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6696         not gl_UNISTD_MODULE_INDICATOR.
6697
6698 2011-11-08  Bruno Haible  <bruno@clisp.org>
6699
6700         fstatat: Remove unused dependency.
6701         * modules/fstatat (Depends-on): Remove fstat.
6702
6703 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6704
6705         GNUmakefile: behave when Makefile is missing.
6706         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6707
6708 2011-11-08  Bruno Haible  <bruno@clisp.org>
6709
6710         openat: Conditionalize dependencies.
6711         * lib/openat.c: Reduce the scope of some #includes.
6712         * modules/openat (Depends-on): Add conditions.
6713
6714 2011-11-07  Jim Meyering  <meyering@redhat.com>
6715
6716         maint.mk: extract GPG key ID without using a temporary file
6717         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6718         without using a temporary file.  Based on a suggestion from Werner Koch
6719         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6720
6721 2011-11-07  Eric Blake  <eblake@redhat.com>
6722
6723         grantpt: fix typo
6724         * lib/stdlib.in.h (grantpt): Check correct function.
6725
6726         maint.mk: silence new syntax check
6727         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6728
6729 2011-11-06  Bruno Haible  <bruno@clisp.org>
6730
6731         Doc about floating-point and math API.
6732         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6733         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6734
6735 2011-11-06  Bruno Haible  <bruno@clisp.org>
6736
6737         stdalign tests: Skip the test when compiled by Sun C.
6738         * tests/test-stdalign.c (main): Skip the test on Sun C.
6739
6740 2011-11-06  Bruno Haible  <bruno@clisp.org>
6741
6742         ansi-c++-opt: Complete the 2011-06-05 change.
6743         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6744         does not support namespaces, set the variable to "no", not to ":".
6745
6746 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6747
6748         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6749
6750 2011-11-06  Bruno Haible  <bruno@clisp.org>
6751
6752         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6753         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6754         (minus_zerol) [HP-UX]: New macro.
6755         (unary_minus) [HP-UX]: New function.
6756         (copysignl) [HP-UX]: Use unary_minus function.
6757
6758 2011-11-06  Bruno Haible  <bruno@clisp.org>
6759
6760         ldexp, ldexpf, ldexpl: Enhance tests.
6761         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6762         and tests/test-ldexpl.c.
6763         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6764         LDEXP, MIN_EXP, MAX_EXP): New macros.
6765         Include test-ldexp.h.
6766         (main): Just call test_function.
6767         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6768         infinity.h, nan.h.
6769         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6770         MAX_EXP): New macros.
6771         Include test-ldexp.h.
6772         (x, y): Remove variables.
6773         (main): Just call test_function.
6774         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6775         infinity.h, nan.h.
6776         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6777         MAX_EXP): New macros.
6778         Include test-ldexp.h.
6779         (x, y): Remove variables.
6780         (main): Just call test_function.
6781         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6782         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6783         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6784         (Depends-on): Add isnand-nolibm, signbit, float.
6785         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6786         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6787         (Depends-on): Add isnanf-nolibm, signbit, float.
6788
6789 2011-11-06  Bruno Haible  <bruno@clisp.org>
6790
6791         math tests: Cosmetics.
6792         * tests/test-math-c++.cc: Reorder declarations.
6793
6794 2011-11-05  Bruno Haible  <bruno@clisp.org>
6795
6796         fma*: Simplify test.
6797         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6798         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6799
6800         Tests for module 'fmal'.
6801         * modules/fmal-tests: New file.
6802         * tests/test-fmal1.c: New file.
6803         * tests/test-fmal2.c: New file.
6804
6805         New module 'fmal'.
6806         * lib/math.in.h (fmal): New declaration.
6807         * lib/fmal.c: New file.
6808         * m4/fmal.m4: New file.
6809         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6811         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6812         REPLACE_FMAL.
6813         * modules/fmal: New file.
6814         * doc/posix-functions/fmal.texi: Mention the new module and the various
6815         bugs.
6816
6817         Tests for module 'fmaf'.
6818         * modules/fmaf-tests: New file.
6819         * tests/test-fmaf1.c: New file.
6820         * tests/test-fmaf2.c: New file.
6821
6822         New module 'fmaf'.
6823         * lib/math.in.h (fmaf): New declaration.
6824         * lib/fmaf.c: New file.
6825         * m4/fmaf.m4: New file.
6826         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6827         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6828         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6829         REPLACE_FMAF.
6830         * modules/fmaf: New file.
6831         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6832         bugs.
6833
6834         Tests for module 'fma'.
6835         * modules/fma-tests: New file.
6836         * tests/test-fma1.c: New file.
6837         * tests/test-fma1.h: New file.
6838         * tests/test-fma2.c: New file.
6839         * tests/test-fma2.h: New file.
6840
6841         New module 'fma'.
6842         * lib/math.in.h (fma): New declaration.
6843         * lib/fma.c: New file.
6844         * m4/fma.m4: New file.
6845         * m4/fegetround.m4: New file.
6846         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6848         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6849         REPLACE_FMA.
6850         * modules/fma: New file.
6851         * doc/posix-functions/fma.texi: Mention the new module and the various
6852         bugs.
6853
6854         Extend gl_MATHFUNC.
6855         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6856         Support 'void' as argument type.
6857         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6858
6859 2011-11-05  Jim Meyering  <meyering@redhat.com>
6860
6861         maint.mk: also prohibit inclusion of dirent.h without use
6862         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6863
6864 2011-11-05  Bruno Haible  <bruno@clisp.org>
6865
6866         ldexpl tests: Avoid test failure on MSVC 9.
6867         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6868         value. Needed in order to enforce the conversion from a value greater
6869         than LDBL_MAX to Infinity.
6870
6871 2011-11-05  Bruno Haible  <bruno@clisp.org>
6872
6873         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6874         * modules/at-internal: New file, extracted from modules/openat.
6875         * modules/openat-h: New file.
6876         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6877         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6878         * modules/openat (Description): Add reference to POSIX function.
6879         (Files): Remove lib/openat.h, lib/openat-proc.c.
6880         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6881         intprops, unistd.
6882         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6883         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6884         gl_FCNTL_MODULE_INDICATOR.
6885         (Include): Remove unistd.h, openat.h.
6886         * modules/areadlinkat (Files): Add lib/at-func.c.
6887         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6888         openat-die, openat-h, save-cwd.
6889         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6890         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6891         openat-die, openat-h, save-cwd, unistd.
6892         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6893         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6894         openat-h, save-cwd. Remove fcntl-h, openat.
6895         * modules/fchmodat (Files): Remove lib/openat.h.
6896         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6897         openat, stdbool, unistd.
6898         * modules/fchownat (Files): Remove lib/openat.h.
6899         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6900         openat, stdbool, sys_stat.
6901         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6902         lib/openat-proc.c.
6903         (Depends-on): Add at-internal.
6904         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6905         * modules/fstatat (Files): Remove lib/openat.h.
6906         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6907         stdbool, unistd.
6908         * modules/fts (Depends-on): Add openat-h.
6909         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6910         openat.
6911         * modules/mkdirat (Files): Remove lib/openat.h.
6912         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6913         openat, stdbool, sys_stat.
6914         * modules/mkfifoat (Files): Add lib/at-func.c.
6915         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6916         openat-h, save-cwd. Remove fcntl-h, openat.
6917         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6918         * modules/readlinkat (Files): Add lib/at-func.c.
6919         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6920         openat-h, save-cwd. Remove fcntl-h, openat.
6921         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6922         openat.
6923         * modules/selinux-at (Files): Add lib/at-func.c.
6924         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6925         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6926         * modules/symlinkat (Files): Add lib/at-func.c.
6927         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6928         openat-h, save-cwd. Remove fcntl-h, openat.
6929         * modules/unlinkat (Files): Remove lib/openat.h.
6930         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6931         stdbool.
6932         * modules/utimensat (Files): Add lib/at-func.c.
6933         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6934         openat-die, openat-h, save-cwd.
6935         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6936         * modules/fdutimensat-tests (Depends-on): Add openat.
6937         * modules/fstatat-tests (Depends-on): Add openat-h.
6938         * modules/readlinkat-tests (Depends-on): Add openat.
6939         * modules/symlinkat-tests (Depends-on): Add openat.
6940
6941 2011-11-05  Bruno Haible  <bruno@clisp.org>
6942
6943         openat: Include <stdbool.h>.
6944         * lib/openat.c: Include <stdbool.h>.
6945
6946 2011-11-04  Bruno Haible  <bruno@clisp.org>
6947
6948         fchownat, renameat, unlinkat: Fix dependencies.
6949         * modules/fchownat (Depends-on): Add fstatat.
6950         * modules/renameat (Depends-on): Likewise.
6951         * modules/unlinkat (Depends-on): Likewise.
6952
6953 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6954
6955         openat: remove direct dependency on dirent
6956         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6957         and hasn't been needed ever since fdopendir was split into its own
6958         module on 2009-08-31.
6959         * modules/openat (Depends-on): Remove dirent.
6960
6961 2011-11-04  Bruno Haible  <bruno@clisp.org>
6962
6963         renameat: Optimize code size.
6964         * modules/renameat (configure.ac): Don't compile at-func2.c if
6965         REPLACE_RENAMEAT is 1.
6966
6967 2011-11-04  Bruno Haible  <bruno@clisp.org>
6968
6969         openat tests: Fix file list.
6970         * modules/openat-tests (Files): Add tests/test-open.h.
6971
6972 2011-11-04  Bruno Haible  <bruno@clisp.org>
6973
6974         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6975         * modules/fchmodat (Depends-on): Add openat-die.
6976         * modules/fchownat (Depends-on): Likewise.
6977         * modules/linkat (Depends-on): Likewise.
6978         * modules/renameat (Depends-on): Likewise.
6979         * modules/openat (Depends-on): Add dirent.
6980
6981 2011-11-04  Jim Meyering  <meyering@redhat.com>
6982
6983         at-func*.c: fix comments
6984         * lib/at-func2.c: Correct/improve first-line comment.
6985         * lib/at-func.c: Correct grammar in first-line comment.
6986
6987 2011-11-04  Bruno Haible  <bruno@clisp.org>
6988
6989         New module 'mkdirat', split off from module 'openat'.
6990         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6991         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6992         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6993         * modules/mkdirat: New file, extracted from modules/openat.
6994         * modules/openat (Files): Remove lib/mkdirat.c.
6995         (Depends-on): Remove mkdir.
6996         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6997         (Include): Remove <sys/stat.h>.
6998         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6999         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
7000         tests/test-mkdir.h.
7001         (Depends-on): Remove ignore-value.
7002         (Makefile.am): Remove rules for test-mkdirat.
7003         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
7004         of module 'openat'.
7005         * NEWS: Mention the change.
7006
7007 2011-11-04  Bruno Haible  <bruno@clisp.org>
7008
7009         closedir: Avoid warning on mingw.
7010         * lib/closedir.c: Include <unistd.h>.
7011
7012 2011-11-04  Bruno Haible  <bruno@clisp.org>
7013
7014         New module 'fstatat', split off from module 'openat'.
7015         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
7016         defined.
7017         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
7018         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
7019         gl_FUNC_FSTATAT.
7020         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
7021         * modules/fstatat: New file, extracted from modules/openat.
7022         * modules/openat (Files): Remove lib/fstatat.c.
7023         (Depends-on): Remove lstat.
7024         (configure.ac): Remove AC_LIBOBJ of fstatat.
7025         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
7026         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
7027         tests/test-lstat.h, tests/test-stat.h.
7028         (Depends-on): Remove getcwd-lgpl.
7029         (Makefile.am): Remove rules for test-fstatat.
7030         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
7031         of module 'openat'.
7032         * NEWS: Mention the change.
7033         * modules/getcwd (Depends-on): Add fstatat.
7034         * modules/linkat (Depends-on): Likewise.
7035         * modules/mkfifoat-tests (Depends-on): Likewise.
7036         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
7037
7038 2011-11-03  Bruno Haible  <bruno@clisp.org>
7039
7040         New module 'unlinkat', split off from module 'openat'.
7041         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
7042         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
7043         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
7044         * modules/unlinkat: New file, extracted from modules/openat. Correct
7045         the dependency conditions.
7046         * modules/openat (Files): Remove lib/unlinkat.c.
7047         (Depends-on): Remove rmdir, unlink.
7048         (configure.ac): Remove AC_LIBOBJ of unlinkat.
7049         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
7050         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
7051         tests/test-rmdir.h, tests/test-unlink.h.
7052         (Depends-on): Remove unlinkdir.
7053         (Makefile.am): Remove rules for test-unlinkat.
7054         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
7055         of module 'openat'.
7056         * NEWS: Mention the change.
7057         * modules/linkat-tests (Depends-on): Add unlinkat.
7058         * modules/mkfifoat-tests (Depends-on): Likewise.
7059         * modules/readlinkat-tests (Depends-on): Likewise.
7060
7061 2011-11-02  Bruno Haible  <bruno@clisp.org>
7062
7063         New module 'fchmodat', split off from module 'openat'.
7064         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
7065         defined.
7066         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
7067         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
7068         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
7069         * modules/fchmodat: New file, extracted from modules/openat.
7070         * modules/openat (Files): Remove lib/fchmodat.c.
7071         (configure.ac): Remove AC_LIBOBJ of fchmodat.
7072         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
7073         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
7074         (Makefile.am): Remove rules for test-fchmodat.
7075         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
7076         of module 'openat'.
7077         * NEWS: Mention the change.
7078
7079 2011-11-02  Jim Meyering  <meyering@redhat.com>
7080
7081         putenv: indent #definition of "environ" to placate cppi
7082         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
7083
7084         gitlog-to-changelog: provide a ChangeLog-repair mechanism
7085         Git logs are often treated as immutable, because editing them
7086         changes the SHA1 checksums of all descendants.  Thus, errors in
7087         git logs tend to stay there forever.  However, when we generate
7088         a ChangeLog file -- typically for distribution -- from that git log,
7089         we can actually make corrections in the generated file.  The key
7090         lies in recording in machine-readable/applicable form the desired
7091         corrections.  See --help for description and an example.
7092         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
7093         (usage): Describe it; alphabetize option descriptions.
7094         (main): Honor the new option, carefully.
7095
7096 2011-11-01  Jim Meyering  <meyering@redhat.com>
7097
7098         gitlog-to-changelog: avoid an infloop
7099         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
7100         that ends up being empty.
7101
7102 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7103
7104         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
7105         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
7106         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
7107         contains (possibly-quoted) backslashes.  This should avoid
7108         all-too-common shell bugs if COMPLICATED contains backslashes in
7109         the "wrong" places.  Reported by David Evans in
7110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
7111         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
7112         because we want ASCII ranges.  Is there some reason we don't use
7113         the C locale everywhere in this script?
7114         (func_module, top level): Avoid unwanted pathname expansion when
7115         $repo_url_prefix or $repo_url_suffix_repl contain shell
7116         metacharacters like '?' and '*'.
7117
7118 2011-11-01  Bruno Haible  <bruno@clisp.org>
7119
7120         fchownat: Improve description.
7121         * modules/fchownat (Description): Add link to function.
7122
7123 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
7124
7125         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
7126         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
7127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
7128         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
7129
7130 2011-11-01  Bruno Haible  <bruno@clisp.org>
7131
7132         alignof: Avoid collision with stdalign module.
7133         * lib/alignof.h (alignof): Remove macro.
7134         * NEWS: Mention the change.
7135         Reported by Paul Eggert.
7136
7137 2011-11-01  Bruno Haible  <bruno@clisp.org>
7138
7139         New module 'fchownat', split off from module 'openat'.
7140         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
7141         defined.
7142         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
7143         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
7144         invoke gl_FUNC_FCHOWNAT.
7145         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
7146         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
7147         * modules/fchownat: New file, extracted from modules/openat.
7148         * modules/openat (Files): Remove lib/fchownat.c.
7149         (Depends-on): Remove lchown.
7150         (configure.ac): Remove AC_LIBOBJ of fchownat.
7151         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
7152         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
7153         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
7154         (Depends-on): Remove mgetgroups, usleep, stat-time.
7155         (configure.ac): Remove test for getegid.
7156         (Makefile.am): Remove rules for test-fchownat.
7157         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
7158         of module 'openat'.
7159         * NEWS: Mention the change.
7160
7161 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
7162
7163         stdalign: port better to MSVC and to Sun C 5.11
7164         This fixes some of the problems reported by Bruno Haible in
7165         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
7166         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
7167         shortcomings of MSVC and of Sun C 5.11.
7168         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
7169         around __declspec arg.
7170         * modules/stdalign-tests (Files): Add tests/macros.h.
7171         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
7172         Include macros.h, for ASSERT.
7173         (DECLARE_ALIGNED): Remove.
7174         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
7175         to catch bug), and to 1 if not (simplifies the rest of the code).
7176         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
7177         (CHECK_AUTO): Remove.
7178         (CHECK_ALIGNED): Check only the alignment of the static vars,
7179         since auto var alignment isn't supported by Sun C 5.11.
7180         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
7181         ASSERT failures are easier to diagnose.
7182
7183 2011-10-31  Bruno Haible  <bruno@clisp.org>
7184
7185         doc about some IRIX 5.3 problems.
7186         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
7187         on IRIX 5.3.
7188         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
7189         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
7190         5.3.
7191         * doc/posix-functions/grantpt.texi: Likewise.
7192         * doc/posix-functions/unlockpt.texi: Likewise.
7193         * doc/posix-functions/lgamma.texi: Likewise.
7194         * doc/posix-functions/nextafter.texi: Likewise.
7195         * doc/posix-functions/remainder.texi: Likewise.
7196         * doc/posix-functions/select.texi: Mention misplaced declaration on
7197         IRIX 5.3.
7198         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7199
7200 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
7201
7202         gitlog-to-changelog: fix git-log invocation.
7203         git-log mishandles date strings before 1970-01-01 UTC, and there is
7204         no use to specify --since=1970-01-01 by default anyway.
7205         * build-aux/gitlog-to-changelog: By default, when no --since option
7206         was given, do not specify explicit --since option to git-log.
7207
7208 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
7209
7210         gitlog-to-changelog: new option --append-dot.
7211         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
7212         first non-blank line of each commit message terminated with a dot.
7213
7214 2011-10-30  Bruno Haible  <bruno@clisp.org>
7215
7216         ffsl, ffsll: Avoid compilation error due to 'restrict'.
7217         * lib/ffsl.h: Include <config.h>.
7218         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
7219
7220 2011-10-30  Jim Meyering  <meyering@redhat.com>
7221
7222         GNUmakefile: reenable "make syntax-check" for most projects
7223         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
7224         build-aux variable", "syntax-check" would do nothing but succeed with
7225         the "No version control files detected..." diagnostic (unless you
7226         happened to override _build-aux via cfg.mk).
7227         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
7228         to precede inclusion of maint.mk.  Otherwise, these variables would
7229         be used undefined in any project that does not override the default.
7230
7231 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
7232
7233         gitlog-to-changelog: treat a message with only blank lines as empty.
7234         * build-aux/gitlog-to-changelog: Move the code that removes leading and
7235         trailing blank lines before the code that issues a warning about an
7236         empty commit message.
7237
7238 2011-10-30  Jim Meyering  <meyering@redhat.com>
7239
7240         test-parse-datetime.c: avoid new DST-related false positive test failure
7241         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
7242         based on the time/date we'll convert, not the current time.
7243         Otherwise, the moment we cross a DST boundary like today's in
7244         Europe, (CEST to CET), that offset ends up being one hour off.
7245
7246 2011-10-27  Bruno Haible  <bruno@clisp.org>
7247
7248         fstat: Tweak documentation.
7249         * modules/fstat (Description): More precise description.
7250
7251 2011-10-27  Bruno Haible  <bruno@clisp.org>
7252
7253         Update documentation regarding 'largefile' module.
7254         * doc/posix-functions/fstat.texi: Tweak wording.
7255         * doc/posix-functions/opendir.texi: Mention that the module fixes the
7256         problems with huge directories and/or small ino_t types.
7257         * doc/posix-functions/readdir.texi: Likewise.
7258         * doc/posix-functions/rewinddir.texi: Likewise.
7259
7260 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
7261
7262         maint.mk: don't maintain a second build-aux variable.
7263         * maint.mk (build_aux): Removed.  The maintainer-makefile module
7264         depends on GNUmakefile, which already maintains a cfg.mk
7265         overridable $(_build-aux) for projects with a non-standard
7266         build-aux directory location, although without the $(srcdir)
7267         prefix.  Use that variable consistently instead of introducing a
7268         second one.  Adjust all call sites.
7269
7270 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
7271
7272         Add stdalign module and use it in other modules.
7273         This is based on a previous proposal by Bruno Haible
7274         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
7275
7276         stdalign: new module
7277         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
7278         * modules/stdalign: New files.
7279         * MODULES.html.sh (c1x_core_properties): Add stdalign.
7280         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
7281
7282         stdalign-tests: new module
7283         * modules/stdalign-tests, tests/test-stdalign.c: New files.
7284
7285         argp: use stdalign
7286         * lib/argp-parse.c: Include <stdalign.h>.
7287         (alignof): Remove.
7288         * modules/argp (Depends-on): Add stdalign.
7289
7290         crypto libraries: use stdalign
7291         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
7292         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
7293         Do not include <stdlib.h> twice, in md4.c.
7294         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
7295         because we are accessing a pointer's bit-pattern, not a size.
7296         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
7297         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
7298         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
7299         * modules/crypto/sha512: Likewise.
7300
7301         sys_socket: use stdalign, not alignof
7302         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
7303         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
7304
7305 2011-10-27  Bruno Haible  <bruno@clisp.org>
7306
7307         raise test: Avoid a test failure on Linux/MIPS.
7308         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
7309         because 99 is a valid signal on Linux/MIPS.
7310
7311 2011-10-27  Bruno Haible  <bruno@clisp.org>
7312
7313         nonblocking tests: Fix test failure on Linux/MIPS.
7314         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7315         Set to 270000.
7316
7317 2011-10-27  Bruno Haible  <bruno@clisp.org>
7318
7319         utimensat: Work around problem on Linux/hppa.
7320         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7321         values.
7322         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7323
7324 2011-10-25  Jim Meyering  <meyering@redhat.com>
7325
7326         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7327         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7328         after symbols like NULL, size_t, etc.
7329         Reported by Alfred M. Szmidt.
7330
7331         maint.mk: exempt ENODATA from a syntax-check rule
7332         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7333         from the sc_prohibit_always-defined_macros syntax-check rule.
7334         Add a comment.  See this for more details:
7335         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7336
7337 2011-10-23  Jim Meyering  <meyering@redhat.com>
7338
7339         fts: close parent dir FD before returning from post-traversal fts_read
7340         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7341         unlink A, even though an FD open on A remained.  This is suboptimal
7342         (holding a file descriptor open longer than needed), but otherwise not
7343         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7344         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7345         that represents a real problem: it causes the removal of A to fail
7346         with e.g., "rm: cannot remove `A': Device or resource busy"
7347
7348         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7349         directory file descriptors.  After completing the final, FTS_DP,
7350         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7351         cache, but then proceeded to add a new FD to it via the subsequent
7352         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7353         final file descriptor would be closed only via fts_close's call to
7354         fd_ring_clear.  Now, it is usually closed earlier, via the final
7355         FTS_DP-returning fts_read call.
7356         * lib/fts.c (restore_initial_cwd): New function, converted from
7357         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7358         Update callers.
7359         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7360         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7361
7362 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7363             Bruno Haible  <bruno@clisp.org>
7364             Jim Meyering  <jim@meyering.net>
7365
7366         readme-release: improve safety of release prep instructions.
7367         * README-release: Don't git pull all branches when only master
7368         is needed for the release process.
7369         Run make maintainer-clean before changing trees and merging.
7370         Don't try to run ./configure right after git pull in case files
7371         that influence the bootstrap process have changed, move the
7372         ./configure step to after running ./bootstrap.
7373         Don't bootstrap "one last time"... it's the first time!
7374
7375 2011-10-22  Bruno Haible  <bruno@clisp.org>
7376
7377         errno, strerror-override: Support for MSVC 10.
7378         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7379         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7380         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7381         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7382         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7383         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7384         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7385         Assign values compatible with MSVC 10.
7386         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7387         New macros.
7388         (GNULIB_defined_EWINSOCK): New macro.
7389         * lib/strerror-override.c (strerror_override): Update accordingly.
7390         * lib/strerror-override.h: Likewise.
7391         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7392         longer equal to the corresponding errno value.
7393         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7394
7395 2011-10-22  Bruno Haible  <bruno@clisp.org>
7396
7397         perror: Recognize when test program crashes.
7398         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7399         strerror, set gl_cv_func_perror_works to no.
7400         Reported by Daniel Richard G. <skunk@iskunk.org>.
7401
7402         perror: Fix indentation.
7403         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7404
7405 2011-10-22  Bruno Haible  <bruno@clisp.org>
7406
7407         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7408         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7409         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7410         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7411         functions, not as a macro.
7412         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7413         macros.
7414         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7415         absence of macro.
7416         Suggested by Eric Blake.
7417         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7418
7419 2011-10-21  Bruno Haible  <bruno@clisp.org>
7420
7421         relocatable-prog-wrapper: Don't leave object files behind.
7422         * build-aux/install-reloc: Re-synchronize list of .o files to be
7423         removed with list of compilation units.
7424
7425 2011-10-20  Bruno Haible  <bruno@clisp.org>
7426
7427         openpty, posix_openpt: Remove code duplication.
7428         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7429         * lib/openpty.c: Include <stdlib.h>.
7430         (openpty): Use posix_openpt on all platforms except IRIX.
7431         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7432
7433 2011-10-20  Bruno Haible  <bruno@clisp.org>
7434
7435         unlockpt: Detect invalid argument.
7436         * lib/unlockpt.c: Include <fcntl.h>.
7437         (unlockpt): Check whether fd is valid, using fcntl().
7438         * modules/unlockpt (Depends-on): Add fcntl-h.
7439
7440 2011-10-20  Bruno Haible  <bruno@clisp.org>
7441
7442         openpty: Avoid compilation error on AIX 6.1.
7443         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7444
7445 2011-10-20  Bruno Haible  <bruno@clisp.org>
7446
7447         posix_openpt: Support for OpenBSD.
7448         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7449         (posix_openpt) [OpenBSD]: New code.
7450         * lib/grantpt.c: Include <fcntl.h>.
7451         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7452         * modules/grantpt (Depends-on): Add fcntl-h.
7453
7454 2011-10-20  Bruno Haible  <bruno@clisp.org>
7455
7456         posix_openpt test: Coding style.
7457         * tests/test-posix_openpt.c: Use GNU coding style.
7458
7459 2011-10-20  Bruno Haible  <bruno@clisp.org>
7460
7461         grantpt: Support --avoid=pt_chown.
7462         * modules/grantpt (Files): Add lib/pty-private.h.
7463
7464 2011-10-20  Bruno Haible  <bruno@clisp.org>
7465
7466         posix_openpt: Fix autoconf macro.
7467         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7468         unneeded check for _getpty.
7469
7470 2011-10-20  Bruno Haible  <bruno@clisp.org>
7471
7472         openpty: Update comments.
7473         * lib/openpty.c: Add comments about Minix.
7474
7475 2011-10-19  Eric Blake  <eblake@redhat.com>
7476
7477         openpty: relax license
7478         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7479
7480         pt_chown: use configmake to simplify build
7481         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7482
7483         ptsname and others: relax license
7484         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7485         * modules/unlockpt (License): Likewise.
7486         * modules/pt_chown (License): Likewise.
7487         * modules/ptsname (License): Likewise.
7488         * modules/ttyname_r (License): Likewise.
7489
7490 2011-10-19  Jim Meyering  <meyering@redhat.com>
7491
7492         posix_openpt: remove spurious #endif
7493         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7494
7495 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7496
7497         maint.mk: Respect $(build_aux) in web-manual rule.
7498         * top/maint.mk (web-manual): Find gen-announce script in user's
7499         $(build_aux) directory instead of hard-coding 'build-aux'.
7500
7501 2011-10-19  Bruno Haible  <bruno@clisp.org>
7502
7503         posix_openpt: Fix compilation error.
7504         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7505         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7506         Mention the openpty module as an alternative.
7507
7508 2011-10-19  Bruno Haible  <bruno@clisp.org>
7509
7510         Support for old NeXTstep 3.3 frexp().
7511         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7512         execution time of the test to 5 seconds.
7513         Reported by Daniel Richard G. <skunk@iskunk.org>.
7514
7515 2011-10-19  Bruno Haible  <bruno@clisp.org>
7516
7517         Support for old NeXTstep 3.3 sed.
7518         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7519         part, use /.../, not \|...|. Escape periods in the header file name.
7520         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7521         Reported by Daniel Richard G. <skunk@iskunk.org>.
7522
7523 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7524
7525         Support for old NeXTstep 3.3 gcc.
7526         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7527         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7528         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7529         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7530         * lib/regex.h (_Restrict_arr_): Likewise.
7531         * lib/regex_internal.h (re_token_t): Likewise.
7532         * lib/regexec.c (check_node_accept_bytes): Likewise.
7533         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7534
7535 2011-10-18  Eric Blake  <eblake@redhat.com>
7536
7537         posix_openpt: new module
7538         * modules/posix_openpt: New module.
7539         * m4/posix_openpt.m4: New file.
7540         * lib/posix_openpt.c: Likewise.
7541         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7542         (gl_STDLIB_H_DEFAULTS): Set defaults.
7543         * modules/stdlib (Makefile.am): Substitute macros.
7544         * lib/stdlib.in.h (posix_openpt): Declare.
7545         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7546         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7547         * modules/posix_openpt-tests: New test module.
7548         * tests/test-posix_openpt.c: New test.
7549
7550 2011-10-15  Bruno Haible  <bruno@clisp.org>
7551
7552         xstrtoll: Fix compilation failure.
7553         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7554         from lib/strtol.c.
7555         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7556         some platforms.
7557         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7558
7559 2011-10-15  Bruno Haible  <bruno@clisp.org>
7560
7561         vasnprintf: Optimize bit search operation.
7562         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7563         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7564         gl_DOUBLE_EXPONENT_LOCATION.
7565         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7566         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7567         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7568         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7569         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7570         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7571         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7572         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7573         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7574
7575 2011-10-15  Bruno Haible  <bruno@clisp.org>
7576
7577         vasnprintf: Fix comments.
7578         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7579
7580 2011-10-14  Bruno Haible  <bruno@clisp.org>
7581
7582         Tests for module 'integer_length_ll'.
7583         * modules/integer_length_ll-tests: New file.
7584         * tests/test-integer_length_ll.c: New file.
7585
7586         New module 'integer_length_ll'.
7587         * lib/integer_length_ll.c: New file.
7588         * modules/integer_length_ll: New file.
7589
7590 2011-10-14  Bruno Haible  <bruno@clisp.org>
7591
7592         Tests for module 'integer_length_l'.
7593         * modules/integer_length_l-tests: New file.
7594         * tests/test-integer_length_l.c: New file.
7595
7596         New module 'integer_length_l'.
7597         * lib/integer_length_l.c: New file.
7598         * modules/integer_length_l: New file.
7599
7600 2011-10-14  Bruno Haible  <bruno@clisp.org>
7601
7602         Tests for module 'integer_length'.
7603         * modules/integer_length-tests: New file.
7604         * tests/test-integer_length.c: New file.
7605
7606         New module 'integer_length'.
7607         * lib/integer_length.h: New file.
7608         * lib/integer_length.c: New file.
7609         * modules/integer_length: New file.
7610
7611 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7612
7613         popen: Fix dependency conditions.
7614         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7615
7616 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7617
7618         perror: Fix autoconf test.
7619         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7620         <stdlib.h> and <string.h>.
7621
7622 2011-10-14  Bruno Haible  <bruno@clisp.org>
7623
7624         ffsl: Optimize on 64-bit platforms.
7625         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7626         unrolling.
7627
7628 2011-10-13  Bruno Haible  <bruno@clisp.org>
7629
7630         ffsl: Optimize on 32-bit platforms.
7631         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7632         use ffs() without a loop.
7633
7634         ffsl, ffsll: Optimize for GCC.
7635         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7636         * lib/ffsl.c (GCC_BUILTIN): New macro.
7637         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7638
7639 2011-10-13  Bruno Haible  <bruno@clisp.org>
7640
7641         ffs, bcopy, memset: Support symbol renaming via config.h.
7642         * lib/ffs.c: Include <config.h>.
7643         * lib/bcopy.c: Likewise.
7644         * lib/memset.c: Likewise.
7645
7646 2011-10-10  Bruno Haible  <bruno@clisp.org>
7647
7648         atanl: Simplify for platforms where 'long double' == 'double'.
7649         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7650         alternative implementation.
7651         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7652         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7653         * modules/atanl (Depends-on): Add atan. Update conditions.
7654
7655 2011-10-10  Bruno Haible  <bruno@clisp.org>
7656
7657         acosl: Simplify for platforms where 'long double' == 'double'.
7658         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7659         alternative implementation.
7660         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7661         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7662         * modules/acosl (Depends-on): Add acos. Update conditions.
7663
7664 2011-10-10  Bruno Haible  <bruno@clisp.org>
7665
7666         asinl: Simplify for platforms where 'long double' == 'double'.
7667         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7668         alternative implementation.
7669         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7670         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7671         * modules/asinl (Depends-on): Add asin. Update conditions.
7672
7673 2011-10-10  Bruno Haible  <bruno@clisp.org>
7674
7675         tanl: Simplify for platforms where 'long double' == 'double'.
7676         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7677         implementation.
7678         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7679         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7680         * modules/tanl (Depends-on): Add tan. Update conditions.
7681         (configure.ac): Don't compile trigl.c if
7682         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7683
7684 2011-10-10  Bruno Haible  <bruno@clisp.org>
7685
7686         cosl: Simplify for platforms where 'long double' == 'double'.
7687         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7688         implementation.
7689         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7690         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7691         * modules/cosl (Depends-on): Add cos. Update conditions.
7692         (configure.ac): Don't compile sincosl.c and trigl.c if
7693         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7694
7695 2011-10-10  Bruno Haible  <bruno@clisp.org>
7696
7697         sinl: Simplify for platforms where 'long double' == 'double'.
7698         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7699         implementation.
7700         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7701         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7702         * modules/sinl (Depends-on): Add sin. Update conditions.
7703         (configure.ac): Don't compile sincosl.c and trigl.c if
7704         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7705
7706 2011-10-10  Bruno Haible  <bruno@clisp.org>
7707
7708         logl: Simplify for platforms where 'long double' == 'double'.
7709         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7710         implementation.
7711         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7712         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7713         * modules/logl (Depends-on): Add log. Update conditions.
7714
7715 2011-10-10  Bruno Haible  <bruno@clisp.org>
7716
7717         expl: Simplify for platforms where 'long double' == 'double'.
7718         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7719         implementation.
7720         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7721         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7722         * modules/expl (Depends-on): Add exp. Update conditions.
7723
7724 2011-10-10  Bruno Haible  <bruno@clisp.org>
7725
7726         sqrtl: Simplify for platforms where 'long double' == 'double'.
7727         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7728         alternative implementation.
7729         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7730         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7731         * modules/sqrtl (Depends-on): Update conditions.
7732
7733 2011-10-10  Bruno Haible  <bruno@clisp.org>
7734
7735         ldexpl: Simplify for platforms where 'long double' == 'double'.
7736         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7737         alternative implementation.
7738         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7739         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7740         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7741
7742 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7743
7744         ffsll: set correct witness
7745         * modules/ffsll (configure.ac): Fix typo.
7746
7747 2011-10-10  Bruno Haible  <bruno@clisp.org>
7748
7749         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7750         * lib/printf-frexpl.c: Include <config.h>.
7751         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7752         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7753         second time.
7754         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7755         gl_LONG_DOUBLE_VS_DOUBLE.
7756         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7757         conditions.
7758
7759 2011-10-10  Bruno Haible  <bruno@clisp.org>
7760
7761         frexpl: Simplify for platforms where 'long double' == 'double'.
7762         * lib/frexpl.c: Include <config.h>.
7763         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7764         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7765         time.
7766         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7767         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7768         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7769         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7770         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7771         conditions.
7772
7773 2011-10-10  Jim Meyering  <meyering@redhat.com>
7774
7775         test-renameat: don't leave behind a temporary file
7776         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7777           ERROR: files left in build directory after distclean:
7778           ./gltests/test-renameat.too
7779           make[1]: *** [distcleancheck] Error 1
7780         Reported by Tom G. Christensen.
7781
7782 2011-10-09  Bruno Haible  <bruno@clisp.org>
7783
7784         rint: Determine RINT_LIBM correctly on AIX 7.
7785         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7786         directly, not only through a function pointer. Also accept an optional
7787         4th argument with extra code.
7788         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7789         rintf() call by gcc when optimizing.
7790
7791         mathfunc.m4: Refactor.
7792         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7793         m4 variable.
7794
7795 2011-10-09  Bruno Haible  <bruno@clisp.org>
7796
7797         rintl: Simplify for platforms where 'long double' == 'double'.
7798         * lib/rintl.c: Include <config.h>.
7799         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7800         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7801         time.
7802         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7803         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7804         * modules/rintl (Depends-on): Add rint. Update conditions.
7805
7806 2011-10-09  Bruno Haible  <bruno@clisp.org>
7807
7808         roundl: Simplify for platforms where 'long double' == 'double'.
7809         * lib/roundl.c: Include <config.h>.
7810         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7811         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7812         time.
7813         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7814         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7815         * modules/roundl (Depends-on): Add round. Update conditions.
7816
7817 2011-10-09  Bruno Haible  <bruno@clisp.org>
7818
7819         truncl: Simplify for platforms where 'long double' == 'double'.
7820         * lib/truncl.c: Include <config.h>.
7821         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7822         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7823         time.
7824         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7825         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7826         * modules/truncl (Depends-on): Add trunc. Update conditions.
7827
7828 2011-10-09  Bruno Haible  <bruno@clisp.org>
7829
7830         ceill: Simplify for platforms where 'long double' == 'double'.
7831         * lib/ceill.c: Include <config.h>.
7832         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7833         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7834         time.
7835         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7836         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7837         * modules/ceill (Depends-on): Add ceil. Update conditions.
7838
7839 2011-10-09  Bruno Haible  <bruno@clisp.org>
7840
7841         floorl: Simplify for platforms where 'long double' == 'double'.
7842         * lib/floorl.c: Include <config.h>.
7843         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7844         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7845         time.
7846         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7847         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7848         * modules/floorl (Depends-on): Add floor. Update conditions.
7849
7850 2011-10-09  Bruno Haible  <bruno@clisp.org>
7851
7852         rint: Fix ordering constraints.
7853         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7854         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7855         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7856
7857 2011-10-09  Bruno Haible  <bruno@clisp.org>
7858
7859         copysignl: Simplify for platforms where 'long double' == 'double'.
7860         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7861         alternative.
7862         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7863         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7864         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7865
7866 2011-10-09  Bruno Haible  <bruno@clisp.org>
7867
7868         Tests for module 'rintl'.
7869         * modules/rintl-tests: New file.
7870         * tests/test-rintl.c: New file.
7871
7872         New module 'rintl'.
7873         * lib/math.in.h (rintl): New declaration.
7874         * lib/rintl.c: New file.
7875         * m4/rintl.m4: New file.
7876         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7878         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7879         * modules/rintl: New file.
7880         * tests/test-math-c++.cc: Check the declaration of rintl.
7881         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7882         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7883         * doc/posix-functions/rintl.texi: Mention the new module.
7884
7885 2011-10-09  Bruno Haible  <bruno@clisp.org>
7886
7887         Tests for module 'rintf'.
7888         * modules/rintf-tests: New file.
7889         * tests/test-rintf.c: New file.
7890
7891         New module 'rintf'.
7892         * lib/math.in.h (rintf): New declaration.
7893         * lib/rintf.c: New file.
7894         * m4/rintf.m4: New file.
7895         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7897         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7898         * modules/rintf: New file.
7899         * tests/test-math-c++.cc: Check the declaration of rintf.
7900         * doc/posix-functions/rintf.texi: Mention the new module.
7901
7902 2011-10-09  Bruno Haible  <bruno@clisp.org>
7903
7904         rint: Support for MSVC.
7905         * lib/math.in.h (rint): New declaration.
7906         * lib/rint.c: New file.
7907         * m4/rint.m4: New file.
7908         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7910         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7911         * modules/rint (Description): Fix.
7912         (Files): Add lib/rint.c, m4/rint.m4.
7913         (Depends-on): Add math.
7914         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7915         gl_MATH_MODULE_INDICATOR.
7916         * tests/test-math-c++.cc: Check the declaration of rint.
7917         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7918         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7919         * doc/posix-functions/rint.texi: Mention the replacement provided by
7920         the module.
7921
7922         rint tests: More tests.
7923         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7924         minus-zero.h, infinity.h, nan.h.
7925         (main): Skip the test if the current rounding mode is not standard. Add
7926         tests for negative numbers, minus zero, infinity, NaN.
7927         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7928         tests/nan.h.
7929         (Depends-on): Add isnand-nolibm.
7930
7931 2011-10-09  Bruno Haible  <bruno@clisp.org>
7932
7933         Tests for module 'copysignl'.
7934         * modules/copysignl-tests: New file.
7935         * tests/test-copysignl.c: New file.
7936
7937         New module 'copysignl'.
7938         * lib/math.in.h (copysignl): New declaration.
7939         * lib/copysignl.c: New file.
7940         * m4/copysignl.m4: New file.
7941         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7943         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7944         HAVE_COPYSIGNL.
7945         * modules/copysignl: New file.
7946         * tests/test-math-c++.cc: Check the declaration of copysignl.
7947         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7948         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7949         * doc/posix-functions/copysignl.texi: Mention the new module.
7950
7951 2011-10-09  Bruno Haible  <bruno@clisp.org>
7952
7953         Tests for module 'copysignf'.
7954         * modules/copysignf-tests: New file.
7955         * tests/test-copysignf.c: New file.
7956
7957         New module 'copysignf'.
7958         * lib/math.in.h (copysignf): New declaration.
7959         * lib/copysignf.c: New file.
7960         * m4/copysignf.m4: New file.
7961         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7963         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7964         HAVE_COPYSIGNF.
7965         * modules/copysignf: New file.
7966         * tests/test-math-c++.cc: Check the declaration of copysignf.
7967         * doc/posix-functions/copysignf.texi: Mention the new module.
7968
7969 2011-10-09  Bruno Haible  <bruno@clisp.org>
7970
7971         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7972         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7973         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7974         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7975         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7976         gl_SIGNAL_H_DEFAULTS.
7977
7978 2011-10-09  Bruno Haible  <bruno@clisp.org>
7979
7980         poll: Make macro safer.
7981         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7982         ac_cv_header_poll_h is not set.
7983
7984 2011-10-09  Bruno Haible  <bruno@clisp.org>
7985
7986         copysign: Provide replacement.
7987         * lib/math.in.h (copysign): New declaration.
7988         * lib/copysign.c: New file.
7989         * m4/copysign.m4: New file.
7990         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7992         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7993         HAVE_COPYSIGN.
7994         * modules/copysign (Description): Clarify.
7995         (Files): Add lib/copysign.c, m4/copysign.m4.
7996         (Depends-on): Add math, signbit.
7997         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7998         gl_MATH_MODULE_INDICATOR.
7999         * tests/test-math-c++.cc: Check the declaration of copysign.
8000         * doc/posix-functions/copysign.texi: Mention the effects of the module
8001         on Minix and MSVC.
8002
8003 2011-10-09  Bruno Haible  <bruno@clisp.org>
8004
8005         isinf: Ensure macro on AIX 5.1.
8006         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
8007         macro.
8008         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
8009
8010 2011-10-09  Bruno Haible  <bruno@clisp.org>
8011
8012         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
8013         * modules/snprintf-posix-tests (configure.ac): Require
8014         gl_LONG_DOUBLE_VS_DOUBLE.
8015         * modules/sprintf-posix-tests (configure.ac): Likewise.
8016         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
8017         * modules/vasprintf-posix-tests (configure.ac): Likewise.
8018         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
8019         * modules/vsprintf-posix-tests (configure.ac): Likewise.
8020         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
8021         tests on platforms where 'long double' is the same as 'double'.
8022         * tests/test-sprintf-posix.h (test_function): Likewise.
8023         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8024         * tests/test-vasprintf-posix.c (test_function): Likewise.
8025
8026         *printf: Fix for platforms where 'long double' == 'double'.
8027         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
8028         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
8029         * modules/dprintf-posix (Files): Add m4/math_h.m4.
8030         * modules/fprintf-posix (Files): Likewise.
8031         * modules/obstack-printf-posix (Files): Likewise.
8032         * modules/snprintf-posix (Files): Likewise.
8033         * modules/sprintf-posix (Files): Likewise.
8034         * modules/vasnprintf (Files): Likewise.
8035         * modules/vasnprintf-posix (Files): Likewise.
8036         * modules/vasprintf-posix (Files): Likewise.
8037         * modules/vdprintf-posix (Files): Likewise.
8038         * modules/vfprintf-posix (Files): Likewise.
8039         * modules/vsnprintf-posix (Files): Likewise.
8040         * modules/vsprintf-posix (Files): Likewise.
8041         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8042         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8043         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8044         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8045         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8046         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8047         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8048
8049         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
8050         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
8051         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8052         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
8053         'long double'.
8054         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
8055
8056         isinf: Fix for platforms where 'long double' == 'double'.
8057         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8058         Don't blindly assume 80-bit 'long double'.
8059
8060         isfinite: Fix for platforms where 'long double' == 'double'.
8061         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
8062         Don't blindly assume 80-bit 'long double'.
8063
8064         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
8065         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
8066         * modules/isfinite-tests (configure.ac): Require
8067         gl_LONG_DOUBLE_VS_DOUBLE.
8068         * modules/isinf-tests (configure.ac): Likewise.
8069         * modules/isnan-tests (configure.ac): Likewise.
8070         * modules/isnanl-tests (configure.ac): Likewise.
8071         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
8072         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
8073         tests on platforms where 'long double' is the same as 'double'.
8074         * tests/test-isinf.c (test_isinfl): Likewise.
8075         * tests/test-isnan.c (test_long_double): Likewise.
8076         * tests/test-isnanl.h (main): Likewise.
8077
8078 2011-10-08  Bruno Haible  <bruno@clisp.org>
8079
8080         Tests for module 'tanhf'.
8081         * modules/tanhf-tests: New file.
8082         * tests/test-tanhf.c: New file.
8083
8084         New module 'tanhf'.
8085         * lib/math.in.h (tanhf): New declaration.
8086         * lib/tanhf.c: New file.
8087         * m4/tanhf.m4: New file.
8088         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
8089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
8090         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
8091         * modules/tanhf: New file.
8092         * tests/test-math-c++.cc: Check the declaration of tanhf.
8093         * doc/posix-functions/tanhf.texi: Mention the new module.
8094
8095         tanh: Use a .m4 file.
8096         * m4/tanh.m4: New file.
8097         * modules/tanh (Files): Add it.
8098         (configure.ac): Just invoke gl_FUNC_TANH.
8099
8100 2011-10-08  Bruno Haible  <bruno@clisp.org>
8101
8102         Tests for module 'coshf'.
8103         * modules/coshf-tests: New file.
8104         * tests/test-coshf.c: New file.
8105
8106         New module 'coshf'.
8107         * lib/math.in.h (coshf): New declaration.
8108         * lib/coshf.c: New file.
8109         * m4/coshf.m4: New file.
8110         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
8111         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
8112         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
8113         * modules/coshf: New file.
8114         * tests/test-math-c++.cc: Check the declaration of coshf.
8115         * doc/posix-functions/coshf.texi: Mention the new module.
8116
8117         cosh: Use a .m4 file.
8118         * m4/cosh.m4: New file.
8119         * modules/cosh (Files): Add it.
8120         (configure.ac): Just invoke gl_FUNC_COSH.
8121
8122 2011-10-08  Bruno Haible  <bruno@clisp.org>
8123
8124         Tests for module 'sinhf'.
8125         * modules/sinhf-tests: New file.
8126         * tests/test-sinhf.c: New file.
8127
8128         New module 'sinhf'.
8129         * lib/math.in.h (sinhf): New declaration.
8130         * lib/sinhf.c: New file.
8131         * m4/sinhf.m4: New file.
8132         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
8133         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
8134         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
8135         * modules/sinhf: New file.
8136         * tests/test-math-c++.cc: Check the declaration of sinhf.
8137         * doc/posix-functions/sinhf.texi: Mention the new module.
8138
8139         sinh: Use a .m4 file.
8140         * m4/sinh.m4: New file.
8141         * modules/sinh (Files): Add it.
8142         (configure.ac): Just invoke gl_FUNC_SINH.
8143
8144 2011-10-08  Bruno Haible  <bruno@clisp.org>
8145
8146         Tests for module 'atan2f'.
8147         * modules/atan2f-tests: New file.
8148         * tests/test-atan2f.c: New file.
8149
8150         New module 'atan2f'.
8151         * lib/math.in.h (atan2f): New declaration.
8152         * lib/atan2f.c: New file.
8153         * m4/atan2f.m4: New file.
8154         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
8155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
8156         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
8157         * modules/atan2f: New file.
8158         * tests/test-math-c++.cc: Check the declaration of atan2f.
8159         * doc/posix-functions/atan2f.texi: Mention the new module.
8160
8161         atan2: Use a .m4 file.
8162         * m4/atan2.m4: New file.
8163         * modules/atan2 (Files): Add it.
8164         (configure.ac): Just invoke gl_FUNC_ATAN2.
8165
8166 2011-10-08  Bruno Haible  <bruno@clisp.org>
8167
8168         Tests for module 'atanf'.
8169         * modules/atanf-tests: New file.
8170         * tests/test-atanf.c: New file.
8171
8172         New module 'atanf'.
8173         * lib/math.in.h (atanf): New declaration.
8174         * lib/atanf.c: New file.
8175         * m4/atanf.m4: New file.
8176         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
8177         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
8178         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
8179         * modules/atanf: New file.
8180         * tests/test-math-c++.cc: Check the declaration of atanf.
8181         * doc/posix-functions/atanf.texi: Mention the new module.
8182
8183         atan: Use a .m4 file.
8184         * m4/atan.m4: New file.
8185         * modules/atan (Files): Add it.
8186         (configure.ac): Just invoke gl_FUNC_ATAN.
8187
8188 2011-10-08  Bruno Haible  <bruno@clisp.org>
8189
8190         Tests for module 'acosf'.
8191         * modules/acosf-tests: New file.
8192         * tests/test-acosf.c: New file.
8193
8194         New module 'acosf'.
8195         * lib/math.in.h (acosf): New declaration.
8196         * lib/acosf.c: New file.
8197         * m4/acosf.m4: New file.
8198         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
8199         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
8200         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
8201         * modules/acosf: New file.
8202         * tests/test-math-c++.cc: Check the declaration of acosf.
8203         * doc/posix-functions/acosf.texi: Mention the new module.
8204
8205         acos: Use a .m4 file.
8206         * m4/acos.m4: New file.
8207         * modules/acos (Files): Add it.
8208         (configure.ac): Just invoke gl_FUNC_ACOS.
8209
8210 2011-10-08  Bruno Haible  <bruno@clisp.org>
8211
8212         Tests for module 'asinf'.
8213         * modules/asinf-tests: New file.
8214         * tests/test-asinf.c: New file.
8215
8216         New module 'asinf'.
8217         * lib/math.in.h (asinf): New declaration.
8218         * lib/asinf.c: New file.
8219         * m4/asinf.m4: New file.
8220         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
8221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
8222         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
8223         * modules/asinf: New file.
8224         * tests/test-math-c++.cc: Check the declaration of asinf.
8225         * doc/posix-functions/asinf.texi: Mention the new module.
8226
8227         asin: Use a .m4 file.
8228         * m4/asin.m4: New file.
8229         * modules/asin (Files): Add it.
8230         (configure.ac): Just invoke gl_FUNC_ASIN.
8231
8232 2011-10-08  Bruno Haible  <bruno@clisp.org>
8233
8234         Tests for module 'tanf'.
8235         * modules/tanf-tests: New file.
8236         * tests/test-tanf.c: New file.
8237
8238         New module 'tanf'.
8239         * lib/math.in.h (tanf): New declaration.
8240         * lib/tanf.c: New file.
8241         * m4/tanf.m4: New file.
8242         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
8243         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
8244         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
8245         * modules/tanf: New file.
8246         * tests/test-math-c++.cc: Check the declaration of tanf.
8247         * doc/posix-functions/tanf.texi: Mention the new module.
8248
8249         tan: Use a .m4 file.
8250         * m4/tan.m4: New file.
8251         * modules/tan (Files): Add it.
8252         (configure.ac): Just invoke gl_FUNC_TAN.
8253
8254 2011-10-08  Bruno Haible  <bruno@clisp.org>
8255
8256         Tests for module 'cosf'.
8257         * modules/cosf-tests: New file.
8258         * tests/test-cosf.c: New file.
8259
8260         New module 'cosf'.
8261         * lib/math.in.h (cosf): New declaration.
8262         * lib/cosf.c: New file.
8263         * m4/cosf.m4: New file.
8264         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
8265         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
8266         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
8267         * modules/cosf: New file.
8268         * tests/test-math-c++.cc: Check the declaration of cosf.
8269         * doc/posix-functions/cosf.texi: Mention the new module.
8270
8271         cos: Use a .m4 file.
8272         * m4/cos.m4: New file.
8273         * modules/cos (Files): Add it.
8274         (configure.ac): Just invoke gl_FUNC_COS.
8275
8276 2011-10-08  Bruno Haible  <bruno@clisp.org>
8277
8278         Tests for module 'sinf'.
8279         * modules/sinf-tests: New file.
8280         * tests/test-sinf.c: New file.
8281
8282         New module 'sinf'.
8283         * lib/math.in.h (sinf): New declaration.
8284         * lib/sinf.c: New file.
8285         * m4/sinf.m4: New file.
8286         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
8287         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
8288         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
8289         * modules/sinf: New file.
8290         * tests/test-math-c++.cc: Check the declaration of sinf.
8291         * doc/posix-functions/sinf.texi: Mention the new module.
8292
8293         sin: Use a .m4 file.
8294         * m4/sin.m4: New file.
8295         * modules/sin (Files): Add it.
8296         (configure.ac): Just invoke gl_FUNC_SIN.
8297
8298 2011-10-08  Bruno Haible  <bruno@clisp.org>
8299
8300         Tests for module 'powf'.
8301         * modules/powf-tests: New file.
8302         * tests/test-powf.c: New file.
8303
8304         New module 'powf'.
8305         * lib/math.in.h (powf): New declaration.
8306         * lib/powf.c: New file.
8307         * m4/powf.m4: New file.
8308         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
8309         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
8310         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
8311         * modules/powf: New file.
8312         * tests/test-math-c++.cc: Check the declaration of powf.
8313         * doc/posix-functions/powf.texi: Mention the new module.
8314
8315         pow: Use a .m4 file.
8316         * m4/pow.m4: New file.
8317         * modules/pow (Files): Add it.
8318         (configure.ac): Just invoke gl_FUNC_POW.
8319
8320 2011-10-08  Bruno Haible  <bruno@clisp.org>
8321
8322         Tests for module 'log10f'.
8323         * modules/log10f-tests: New file.
8324         * tests/test-log10f.c: New file.
8325
8326         New module 'log10f'.
8327         * lib/math.in.h (log10f): New declaration.
8328         * lib/log10f.c: New file.
8329         * m4/log10f.m4: New file.
8330         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8331         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8332         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8333         * modules/log10f: New file.
8334         * tests/test-math-c++.cc: Check the declaration of log10f.
8335         * doc/posix-functions/log10f.texi: Mention the new module.
8336
8337         log10: Use a .m4 file.
8338         * m4/log10.m4: New file.
8339         * modules/log10 (Files): Add it.
8340         (configure.ac): Just invoke gl_FUNC_LOG10.
8341
8342 2011-10-08  Bruno Haible  <bruno@clisp.org>
8343
8344         Tests for module 'logf'.
8345         * modules/logf-tests: New file.
8346         * tests/test-logf.c: New file.
8347
8348         New module 'logf'.
8349         * lib/math.in.h (logf): New declaration.
8350         * lib/logf.c: New file.
8351         * m4/logf.m4: New file.
8352         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8353         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8354         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8355         * modules/logf: New file.
8356         * tests/test-math-c++.cc: Check the declaration of logf.
8357         * doc/posix-functions/logf.texi: Mention the new module.
8358
8359         log: Use a .m4 file.
8360         * m4/log.m4: New file.
8361         * modules/log (Files): Add it.
8362         (configure.ac): Just invoke gl_FUNC_LOG.
8363
8364 2011-10-08  Bruno Haible  <bruno@clisp.org>
8365
8366         Tests for module 'expf'.
8367         * modules/expf-tests: New file.
8368         * tests/test-expf.c: New file.
8369
8370         New module 'expf'.
8371         * lib/math.in.h (expf): New declaration.
8372         * lib/expf.c: New file.
8373         * m4/expf.m4: New file.
8374         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8375         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8376         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8377         * modules/expf: New file.
8378         * tests/test-math-c++.cc: Check the declaration of expf.
8379         * doc/posix-functions/expf.texi: Mention the new module.
8380
8381         exp: Use a .m4 file.
8382         * m4/exp.m4: New file.
8383         * modules/exp (Files): Add it.
8384         (configure.ac): Just invoke gl_FUNC_EXP.
8385
8386 2011-10-08  Bruno Haible  <bruno@clisp.org>
8387
8388         Tests for module 'sqrtf'.
8389         * modules/sqrtf-tests: New file.
8390         * tests/test-sqrtf.c: New file.
8391
8392         New module 'sqrtf'.
8393         * lib/math.in.h (sqrtf): New declaration.
8394         * lib/sqrtf.c: New file.
8395         * m4/sqrtf.m4: New file.
8396         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8397         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8398         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8399         * modules/sqrtf: New file.
8400         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8401         * doc/posix-functions/sqrtf.texi: Mention the new module.
8402
8403 2011-10-08  Bruno Haible  <bruno@clisp.org>
8404
8405         Tests: Avoid link failures w.r.t. libintl.
8406         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8407         $(LIBINTL).
8408         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8409         $(LIBINTL).
8410         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8411         against $(LIBINTL).
8412         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8413         $(LIBINTL).
8414         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8415         $(LIBINTL).
8416         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8417
8418 2011-10-08  Bruno Haible  <bruno@clisp.org>
8419
8420         pow tests: Defeat compiler optimizations.
8421         * tests/test-pow.c (main): Assign arguments to x and y before use.
8422
8423 2011-10-08  Bruno Haible  <bruno@clisp.org>
8424
8425         gnulib-tool: Improve last commit.
8426         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8427         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8428         ignore dependencies that are not among the modules list.
8429
8430 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8431
8432         gnulib-tool: don't follow dependencies to avoided modules
8433         This fixes a bug that is related to the previous one.
8434         * gnulib-tool (func_modules_transitive_closure)
8435         (func_emit_autoconf_snippets):
8436         Check whether a dependency is acceptable before using it.
8437         (--extract-dependencies): Report an error if --avoid is also used,
8438         since this combination of options is not yet supported.
8439
8440         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8441         Problem reported by Peter Dyballa in
8442         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8443         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8444         when echoing "$condition".
8445
8446 2011-10-07  Bruno Haible  <bruno@clisp.org>
8447
8448         Fix documentation about math functions on MacOS X.
8449         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8450         MacOS X 10.5.
8451         * doc/posix-functions/fdim.texi: Likewise.
8452         * doc/posix-functions/feclearexcept.texi: Likewise.
8453         * doc/posix-functions/fegetenv.texi: Likewise.
8454         * doc/posix-functions/fegetround.texi: Likewise.
8455         * doc/posix-functions/feholdexcept.texi: Likewise.
8456         * doc/posix-functions/feraiseexcept.texi: Likewise.
8457         * doc/posix-functions/fesetenv.texi: Likewise.
8458         * doc/posix-functions/fesetround.texi: Likewise.
8459         * doc/posix-functions/fetestexcept.texi: Likewise.
8460         * doc/posix-functions/feupdateenv.texi: Likewise.
8461         * doc/posix-functions/fmax.texi: Likewise.
8462         * doc/posix-functions/fmin.texi: Likewise.
8463         * doc/posix-functions/log2.texi: Likewise.
8464         * doc/posix-functions/modff.texi: Likewise.
8465         * doc/posix-functions/nan.texi: Likewise.
8466         * doc/posix-functions/nanf.texi: Likewise.
8467         * doc/posix-functions/nextafterf.texi: Likewise.
8468         * doc/posix-functions/remquo.texi: Likewise.
8469
8470 2011-10-07  Bruno Haible  <bruno@clisp.org>
8471
8472         modff: Drop assumption about library that defines modff.
8473         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8474         AC_CHECK_FUNCS.
8475         * modules/modff (Files): Add m4/mathfunc.m4.
8476
8477 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8478
8479         raise tests: Avoid a GCC warning.
8480         * tests/test-raise.c (handler): Use _Noreturn.
8481
8482 2011-10-07  Bruno Haible  <bruno@clisp.org>
8483
8484         Tests for module 'ldexpf'.
8485         * modules/ldexpf-tests: New file.
8486         * tests/test-ldexpf.c: New file.
8487
8488         New module 'ldexpf'.
8489         * lib/math.in.h (ldexpf): New declaration.
8490         * lib/ldexpf.c: New file.
8491         * m4/ldexpf.m4: New file.
8492         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8493         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8494         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8495         * modules/ldexpf: New file.
8496         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8497         * doc/posix-functions/ldexpf.texi: Mention the new module.
8498
8499 2011-10-06  Bruno Haible  <bruno@clisp.org>
8500
8501         frexpf: Work around problems on IRIX and mingw.
8502         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8504         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8505         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8506         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8507         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8508         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8509
8510 2011-10-06  Bruno Haible  <bruno@clisp.org>
8511
8512         fabsf: Drop assumption about library that defines fabsf.
8513         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8514         AC_CHECK_FUNCS.
8515         * modules/fabsf (Files): Add m4/mathfunc.m4.
8516
8517 2011-10-06  Bruno Haible  <bruno@clisp.org>
8518
8519         frexpf: Drop assumption about library that defines frexpf.
8520         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8521         'int *', 'float *', 'long double *', 'float', 'long double'.
8522         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8523         AC_CHECK_FUNCS.
8524         * modules/frexpf (Files): Add m4/mathfunc.m4.
8525
8526         Tests for module 'frexpf'.
8527         * modules/frexpf-tests: New file.
8528         * tests/test-frexpf.c: New file.
8529
8530         New module 'frexpf'.
8531         * lib/math.in.h (frexpf): New declaration.
8532         * lib/frexpf.c: New file.
8533         * m4/frexpf.m4: New file.
8534         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8536         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8537         * modules/frexpf: New file.
8538         * tests/test-math-c++.cc: Check the declaration of frexpf.
8539         * doc/posix-functions/frexpf.texi: Mention the new module.
8540
8541 2011-10-06  Bruno Haible  <bruno@clisp.org>
8542
8543         math: Sort function declarations of math.in.h.
8544         * lib/math.in.h (frexp, logb): Move declarations.
8545
8546 2011-10-05  Bruno Haible  <bruno@clisp.org>
8547
8548         Tests for module 'modff'.
8549         * modules/modff-tests: New file.
8550         * tests/test-modff.c: New file.
8551
8552         New module 'modff'.
8553         * lib/math.in.h (modff): New declaration.
8554         * lib/modff.c: New file.
8555         * m4/modff.m4: New file.
8556         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8557         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8558         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8559         * modules/modff: New file.
8560         * tests/test-math-c++.cc: Check the declaration of modff.
8561         * doc/posix-functions/modff.texi: Mention the new module.
8562
8563         modf tests: Make test sharper.
8564         * tests/test-modf.c (main): Strengthen upper bound.
8565
8566         modf: Use a .m4 file.
8567         * m4/modf.m4: New file.
8568         * modules/modf (Files): Add it.
8569         (configure.ac): Just invoke gl_FUNC_MODF.
8570
8571 2011-10-05  Bruno Haible  <bruno@clisp.org>
8572
8573         Tests for module 'fmodf'.
8574         * modules/fmodf-tests: New file.
8575         * tests/test-fmodf.c: New file.
8576
8577         New module 'fmodf'.
8578         * lib/math.in.h (fmodf): New declaration.
8579         * lib/fmodf.c: New file.
8580         * m4/fmodf.m4: New file.
8581         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8582         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8583         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8584         * modules/fmodf: New file.
8585         * tests/test-math-c++.cc: Check the declaration of fmodf.
8586         * doc/posix-functions/fmodf.texi: Mention the new module.
8587
8588         fmod: Use a .m4 file.
8589         * m4/fmod.m4: New file.
8590         * modules/fmod (Files): Add it.
8591         (configure.ac): Just invoke gl_FUNC_FMOD.
8592
8593 2011-10-05  Bruno Haible  <bruno@clisp.org>
8594
8595         Tests for module 'fabsf'.
8596         * modules/fabsf-tests: New file.
8597         * tests/test-fabsf.c: New file.
8598
8599         New module 'fabsf'.
8600         * lib/math.in.h (fabsf): New declaration.
8601         * lib/fabsf.c: New file.
8602         * m4/fabsf.m4: New file.
8603         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8604         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8605         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8606         * modules/fabsf: New file.
8607         * tests/test-math-c++.cc: Check the declaration of fabsf.
8608         * doc/posix-functions/fabsf.texi: Mention the new module.
8609
8610         fabs: Use a .m4 file.
8611         * m4/fabs.m4: New file.
8612         * modules/fabs (Files): Add it.
8613         (configure.ac): Just invoke gl_FUNC_FABS.
8614
8615 2011-10-05  Jim Meyering  <meyering@redhat.com>
8616
8617         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8618         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8619         ls -lL regression introduced in coreutils-8.12, it does so at the
8620         cost of an additional stat call in the common case.  Besides, now
8621         that the kernel change that prompted commit 95f7c57f has been reverted
8622         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8623         we have no use for commit 95f7c57f, "file-has-acl: use
8624         acl_extended_file_nofollow if available".
8625
8626 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8627
8628         file-has-acl: revert unintended change in behavior of ls -L
8629         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8630         derived from...
8631         (file_has_acl): ...code here.  Call it.
8632         This problem was introduced with 2011-07-22 commit 95f7c57f,
8633         "file-has-acl: use acl_extended_file_nofollow if available".
8634         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8635
8636 2011-10-03  Bruno Haible  <bruno@clisp.org>
8637
8638         poll: Avoid link errors on MSVC.
8639         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8640         * modules/poll (Depends-on): Add sockets.
8641         (Link): New section.
8642         * NEWS: Mention the change.
8643         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8644         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8645         $(LIB_POLL) instead of $(LIBSOCKET).
8646
8647 2011-10-03  Bruno Haible  <bruno@clisp.org>
8648
8649         sys_select tests: Fix link error on MSVC 9.
8650         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8651         with $(LIB_SELECT) instead of $(LIBSOCKET).
8652
8653 2011-10-03  Bruno Haible  <bruno@clisp.org>
8654
8655         sys_select: Fix compilation error on mingw.
8656         * lib/sys_select.in.h: On native Windows, include <io.h>.
8657
8658 2011-10-03  Bruno Haible  <bruno@clisp.org>
8659
8660         wmemset: Support for MSVC.
8661         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8662         whether wmemset() exists.
8663
8664 2011-10-03  Bruno Haible  <bruno@clisp.org>
8665
8666         wmemmove: Support for MSVC.
8667         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8668         whether wmemmove() exists.
8669
8670 2011-10-03  Bruno Haible  <bruno@clisp.org>
8671
8672         wmemcpy: Support for MSVC.
8673         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8674         whether wmemcpy() exists.
8675
8676 2011-10-03  Bruno Haible  <bruno@clisp.org>
8677
8678         wmemcmp: Support for MSVC.
8679         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8680         whether wmemcmp() exists.
8681
8682 2011-10-03  Bruno Haible  <bruno@clisp.org>
8683
8684         wmemchr: Support for MSVC.
8685         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8686         whether wmemchr() exists.
8687
8688 2011-10-03  Bruno Haible  <bruno@clisp.org>
8689
8690         glthread/*, strsignal: Support for MSVC.
8691         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8692         including <winsock.h> on MSVC 9.
8693         * lib/glthread/lock.h: Likewise.
8694         * lib/glthread/thread.h: Likewise.
8695         * lib/glthread/tls.h: Likewise.
8696         * lib/glthread/yield.h: Likewise.
8697         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8698         if HAVE_UNISTD_H is false.
8699         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8700
8701 2011-10-03  Bruno Haible  <bruno@clisp.org>
8702
8703         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8704         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8705         Set to 100000.
8706
8707 2011-10-03  Bruno Haible  <bruno@clisp.org>
8708
8709         acl: Fix specification.
8710         * lib/file-has-acl.c (file_has_acl): Fix specification.
8711
8712 2011-10-03  Bruno Haible  <bruno@clisp.org>
8713
8714         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8715         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8716         (compute_curr_prefix, shared_library_fullname,
8717         find_shared_library_fullname, get_shared_library_fullname, relocate):
8718         Use it together with PIC && INSTALLDIR.
8719         Reported by <jojelino@gmail.com>
8720         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8721
8722 2011-10-01  Jim Meyering  <meyering@redhat.com>
8723
8724         maint.mk: adjust a release-related rule not to require use of gzip
8725         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8726         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8727         projects that build only .tar.xz files.  Also fix an erroneous test.
8728
8729         test-linkat: don't leave behind a temporary file
8730         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8731         Otherwise, coreutils' "make distcheck" would fail with this:
8732           Only in /c/cu/tests/torture/coreutils/test/\
8733             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8734           make[2]: *** [my-distcheck] Error 1
8735
8736         float, math: add omitted file
8737         * lib/itold.c: Add file, required for yesterday's float change.
8738
8739 2011-10-01  Bruno Haible  <bruno@clisp.org>
8740
8741         isinf: Fix for OpenBSD/x86.
8742         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8743         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8744         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8745
8746 2011-10-01  Bruno Haible  <bruno@clisp.org>
8747
8748         isfinite: Fix syntax error in configure test.
8749         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8750
8751         isfinite: Fix typo.
8752         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8753         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8754
8755 2011-10-01  Bruno Haible  <bruno@clisp.org>
8756
8757         nonblocking tests: Fix test failure on Linux/IA-64.
8758         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8759         Set to 270000.
8760
8761 2011-10-01  Bruno Haible  <bruno@clisp.org>
8762
8763         mkfifoat tests: Fix a test failure on mingw.
8764         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8765         with error ENOSYS.
8766
8767 2011-09-30  Bruno Haible  <bruno@clisp.org>
8768
8769         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8770         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8771         'long double'. Set REPLACE_ITOLD.
8772         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8773         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8774         * lib/itold.c: New file.
8775         * modules/float (Files): Add lib/itold.c.
8776         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8777         (Makefile.am): Substitute REPLACE_ITOLD.
8778         * modules/math (Depends-on): Add float.
8779         (Makefile.am): Substitute REPLACE_ITOLD.
8780         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8781         * doc/posix-headers/math.texi: Likewise.
8782         * doc/posix-functions/logl.texi: Likewise.
8783
8784 2011-09-30  Bruno Haible  <bruno@clisp.org>
8785
8786         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8787         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8788         Set to 140000.
8789
8790 2011-09-30  Bruno Haible  <bruno@clisp.org>
8791
8792         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8793         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8794         invocation, say "right after AC_PROG_CC_STDC", not "right after
8795         AC_PROG_CC".
8796         Reported by Gary V. Vaughan <gary@gnu.org>.
8797
8798 2011-09-30  Bruno Haible  <bruno@clisp.org>
8799
8800         Centralize C99 requirement.
8801         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8802         * modules/stdarg (configure.ac-early): Invoke it instead of
8803         AC_PROG_CC_STDC.
8804         Reported by Gary V. Vaughan and Paul Eggert.
8805
8806 2011-09-29  Bruno Haible  <bruno@clisp.org>
8807
8808         float: Fix LDBL_MAX value on Linux/PowerPC.
8809         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8810         on Linux/PowerPC.
8811         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8812         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8813         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8814         platform.
8815         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8816
8817 2011-09-29  Bruno Haible  <bruno@clisp.org>
8818
8819         doc: Improve doc about gl_EARLY.
8820         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8821         AC_PROG_CC_STDC invocation.
8822         Reported by Gary V. Vaughan <gary@gnu.org>.
8823
8824 2011-09-28  Bruno Haible  <bruno@clisp.org>
8825
8826         fgetc, fputc, fread, fwrite tests: Fix link error.
8827         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8828         on non-MSVC platforms.
8829         * tests/test-fputc.c (main): Likewise.
8830         * tests/test-fread.c (main): Likewise.
8831         * tests/test-fwrite.c (main): Likewise.
8832         Reported by Jim Meyering.
8833
8834 2011-09-27  Bruno Haible  <bruno@clisp.org>
8835
8836         fputc, fwrite tests: Avoid test failure on MSVC.
8837         * tests/test-fgetc.c: Include msvc-inval.h.
8838         (main): Invoke gl_msvc_inval_ensure_handler.
8839         * tests/test-fputc.c: Include msvc-inval.h.
8840         (main): Invoke gl_msvc_inval_ensure_handler.
8841         * tests/test-fread.c: Include msvc-inval.h.
8842         (main): Invoke gl_msvc_inval_ensure_handler.
8843         * tests/test-fwrite.c: Include msvc-inval.h.
8844         (main): Invoke gl_msvc_inval_ensure_handler.
8845         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8846         * modules/fputc-tests (Depends-on): Likewise.
8847         * modules/fread-tests (Depends-on): Likewise.
8848         * modules/fwrite-tests (Depends-on): Likewise.
8849
8850 2011-09-27  Bruno Haible  <bruno@clisp.org>
8851
8852         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8853         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8854         (raise): Remove older, duplicated declaration.
8855         (_gl_raise_SIGPIPE): New declaration.
8856         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8857         (rpl_raise): Remove function.
8858         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8859         a gnulib-defined SIGPIPE here.
8860         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8861         'sigprocmask' has detected missing signal-blocking and the module
8862         'sigpipe' is enabled.
8863         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8864
8865 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8866
8867         base64-tests: avoid memory leak
8868         * tests/test-base64.c (main): Plug memory leak.
8869
8870         base32: new module
8871         * modules/base32: New module.
8872         * lib/base32.c: New file.
8873         * lib/base32.h: Likewise.
8874         * m4/base32.m4: Likewise.
8875         * modules/base32-tests: New test.
8876         * tests/test-base32.c: Likewise.
8877         * MODULES.html.sh (Misc): Mention it.
8878
8879 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8880
8881         gnulib: use more-standard license notice wording
8882         * gnulib-tool (func_emit_copyright_notice): When emitting a
8883         license notice into a file, use the standard wording as suggested
8884         by the current information for GNU maintainers, except say "file"
8885         rather than "program".  The new wording gives a license version
8886         number, which addresses an issue raised by Glenn Morris in
8887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8888         * m4/onceonly.m4: Use that same wording here, too.
8889
8890         dup2: minor simplification
8891         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8892         as lib/dup2.c no longer uses 'inline'.
8893
8894 2011-09-25  Bruno Haible  <bruno@clisp.org>
8895
8896         strings: Fix compilation error on MSVC.
8897         * lib/strings.in.h: Include <stddef.h> for size_t.
8898
8899 2011-09-25  Bruno Haible  <bruno@clisp.org>
8900
8901         fflush et al.: Document limitation on MSVC.
8902         * doc/posix-functions/fflush.texi: Document possible crash in handling
8903         mode other than DEFAULT_HANDLING.
8904         * doc/posix-functions/fgetc.texi: Likewise.
8905         * doc/posix-functions/fputc.texi: Likewise.
8906         * doc/posix-functions/fread.texi: Likewise.
8907         * doc/posix-functions/fwrite.texi: Likewise.
8908
8909 2011-09-25  Bruno Haible  <bruno@clisp.org>
8910
8911         msvc-inval: Allow three invalid parameter handling modes.
8912         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8913         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8914         macros.
8915         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8916         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8917         SANE_LIBRARY_HANDLING as a no-op.
8918         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8919         <stdlib.h>.
8920         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8921
8922 2011-09-25  Bruno Haible  <bruno@clisp.org>
8923
8924         msvc-inval: Make handler multithread-safe.
8925         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8926         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8927         declarations.
8928         (gl_msvc_inval_current): New declaration.
8929         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8930         Operate on the structure returned by gl_msvc_inval_current().
8931         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8932         Remove varaiables.
8933         (tls_index, tls_initialized): New variables.
8934         (not_per_thread): New variable.
8935         (gl_msvc_inval_current): New function.
8936         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8937         returned by gl_msvc_inval_current().
8938
8939 2011-09-25  Bruno Haible  <bruno@clisp.org>
8940
8941         msvc-inval: Install handler globally.
8942         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8943         !_MSC_VER.
8944         (gl_msvc_invalid_parameter_handler): Remove declaration.
8945         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8946         declarations.
8947         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8948         Install the handler globally, don't uninstall it.
8949         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8950         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8951         currently valid, call RaiseException instead.
8952         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8953         for !_MSC_VER.
8954
8955 2011-09-25  Bruno Haible  <bruno@clisp.org>
8956
8957         strerror_r-posix: Fix for MSVC 9.
8958         * lib/strerror_r.c (local_snprintf): New function.
8959         (snprintf): Define to local_snprintf, not to _snprintf.
8960
8961 2011-09-25  Bruno Haible  <bruno@clisp.org>
8962
8963         ftruncate: Support for MSVC 9.
8964         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8965         (chsize_nothrow): New function.
8966         (chsize): Redefine as a macro.
8967         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8968         * modules/ftruncate (Depends-on): Add msvc-inval.
8969
8970 2011-09-25  Bruno Haible  <bruno@clisp.org>
8971
8972         New module 'fstat'.
8973         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8974         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8975         * lib/fchdir.c (rpl_fstat): Remove function.
8976         * m4/fstat.m4: New file.
8977         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8978         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8979         declared.
8980         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8981         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8982         * modules/fstat: New file.
8983         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8984         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8985         is set.
8986         * doc/posix-functions/fstat.texi: Mention the new module and the
8987         problem on MSVC.
8988         * NEWS: Mention the change.
8989         * modules/acl (Depends-on): Add fstat.
8990         * modules/chdir-safer (Depends-on): Likewise.
8991         * modules/chown (Depends-on): Likewise.
8992         * modules/copy-file (Depends-on): Likewise.
8993         * modules/fchdir (Depends-on): Likewise.
8994         * modules/fdopendir (Depends-on): Likewise.
8995         * modules/fopen (Depends-on): Likewise.
8996         * modules/fts (Depends-on): Likewise.
8997         * modules/getcwd (Depends-on): Likewise.
8998         * modules/isapipe (Depends-on): Likewise.
8999         * modules/linkat (Depends-on): Likewise.
9000         * modules/lseek (Depends-on): Likewise.
9001         * modules/mkdir-p (Depends-on): Likewise.
9002         * modules/open (Depends-on): Likewise.
9003         * modules/openat (Depends-on): Likewise.
9004         * modules/read-file (Depends-on): Likewise.
9005         * modules/renameat (Depends-on): Likewise.
9006         * modules/utimens (Depends-on): Likewise.
9007
9008 2011-09-25  Bruno Haible  <bruno@clisp.org>
9009
9010         linkat: Fix compilation on MSVC 9.
9011         * lib/linkat.c: Don't include <stdint.h>.
9012
9013 2011-09-25  Bruno Haible  <bruno@clisp.org>
9014
9015         fclose: Support for MSVC 9.
9016         * lib/fclose.c: Include msvc-inval.h.
9017         (fclose_nothrow): New function.
9018         (rpl_fclose): Use it.
9019         * modules/fclose (Depends-on): Add msvc-inval.
9020         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
9021
9022 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
9023
9024         dup2: minor simplifications
9025         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
9026         that it's a performance win.
9027         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
9028         ! defined __CYGWIN__)" to "ifdef F_GETFL".
9029
9030 2011-09-24  Jim Meyering  <meyering@redhat.com>
9031
9032         test-futimens: avoid a warning from gcc -Wshadow
9033         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
9034         to avoid a shadowing warning.
9035
9036 2011-09-24  Bruno Haible  <bruno@clisp.org>
9037
9038         fdopen: Support for MSVC 9.
9039         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
9040         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
9041         * lib/fdopen.c: Include msvc-inval.h.
9042         (fdopen_nothrow): New function.
9043         (rpl_fdopen): Use it.
9044         * modules/fdopen (Depends-on): Add msvc-inval.
9045         * modules/fclose-tests (Depends-on): Add fdopen.
9046         * modules/fflush-tests (Depends-on): Likewise.
9047         * modules/fgetc-tests (Depends-on): Likewise.
9048         * modules/fputc-tests (Depends-on): Likewise.
9049         * modules/fread-tests (Depends-on): Likewise.
9050         * modules/freopen-tests (Depends-on): Likewise.
9051         * modules/fseeko-tests (Depends-on): Likewise.
9052         * modules/ftello-tests (Depends-on): Likewise.
9053         * modules/fwrite-tests  (Depends-on): Likewise.
9054         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
9055
9056 2011-09-24  Bruno Haible  <bruno@clisp.org>
9057
9058         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
9059         * modules/fgetc-tests (Depends-on): Add unistd.
9060         * modules/fputc-tests (Depends-on): Likewise.
9061         * modules/fread-tests (Depends-on): Likewise.
9062         * modules/fwrite-tests (Depends-on): Likewise.
9063
9064 2011-09-24  Bruno Haible  <bruno@clisp.org>
9065
9066         dup: Simplify autoconf test.
9067         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
9068         on gl_MSVC_INVAL's result.
9069
9070 2011-09-24  Bruno Haible  <bruno@clisp.org>
9071
9072         Tests for function fwrite().
9073         * modules/fwrite-tests: New file.
9074         * tests/test-fwrite.c: New file.
9075         * modules/stdio-tests (Depends-on): Add fwrite-tests.
9076
9077         Tests for function fread().
9078         * modules/fread-tests: New file.
9079         * tests/test-fread.c: New file.
9080         * modules/stdio-tests (Depends-on): Add fread-tests.
9081
9082         Activate fputc tests.
9083         * modules/stdio-tests (Depends-on): Add fputc-tests.
9084
9085         Enhance fgetc, fputc tests.
9086         * tests/test-fgetc.c (main): Also test the stream's error indicator.
9087         * tests/test-fputc.c (main): Likewise.
9088
9089 2011-09-24  Bruno Haible  <bruno@clisp.org>
9090
9091         write: Support for MSVC 9.
9092         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9093         is not 1.
9094         * lib/write.c (write_nothrow): New function.
9095         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
9096         not 1. Use write_nothrow.
9097         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
9098         invalid parameter handler.
9099         (gl_PREREQ_WRITE): New macro.
9100         * modules/write (Depends-on): Add msvc-inval.
9101         (configure.ac): Invoke gl_PREREQ_WRITE.
9102         * doc/posix-functions/write.texi: Mention the problem on MSVC.
9103
9104 2011-09-24  Bruno Haible  <bruno@clisp.org>
9105
9106         read: Fix last commit.
9107         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
9108
9109 2011-09-24  Bruno Haible  <bruno@clisp.org>
9110
9111         dup2: Fix last commit.
9112         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
9113         (rpl_dup2): Disable fcntl workaround on native Windows.
9114
9115         sigprocmask: Make code safer.
9116         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
9117         section that changes macro definitions for this compilation unit.
9118
9119 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
9120
9121         dup2: clarify by coalescing Windows-specific material
9122         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
9123         "msvc-nothrow.h"' to the Windows-specific section, so that the
9124         Emacs source need not contain these include files.
9125         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
9126         Windows-specific fixes into this function rather than just the
9127         nothrow fix, as this shortens and clarifies the code.  Always
9128         define as a function, as that's a bit cleaner than having it be
9129         sometimes a function and sometimes a macro.
9130         (rpl_dup2): Move the Windows-specific stuff out of here and into
9131         ms_windows_dup2.  Don't protect the Haiku-related fix with
9132         "#if !defined __linux__", as the same code also works around
9133         a Linux kernel bug, and it doesn't add any system calls on any
9134         platform.  Add comment about FreeBSD 6.1.
9135
9136         sigprocmask: move #include directive
9137         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
9138         Windows-specific section, so that the Emacs source need not
9139         contain msvc-inval.h.
9140
9141 2011-09-23  Bruno Haible  <bruno@clisp.org>
9142
9143         read: Support for MSVC 9.
9144         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
9145         is not 1.
9146         * lib/read.c (read_nothrow): New function.
9147         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
9148         read_nothrow.
9149         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
9150         invalid parameter handler.
9151         (gl_PREREQ_READ): New macro.
9152         * modules/read (Depends-on): Add msvc-inval.
9153         (configure.ac): Invoke gl_PREREQ_READ.
9154         * doc/posix-functions/read.texi: Mention the problem on MSVC.
9155
9156 2011-09-23  Bruno Haible  <bruno@clisp.org>
9157
9158         close: Support for MSVC 9.
9159         * lib/close.c: Include <errno.h>, msvc-inval.h.
9160         (close_nothrow): New function.
9161         (rpl_close): Use it.
9162         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
9163         invalid parameter handler.
9164         * modules/close (Depends-on): Add msvc-inval.
9165         * modules/dup2-tests (Depends-on): Add close.
9166         * modules/dup3-tests (Depends-on): Likewise.
9167         * modules/fcntl-tests (Depends-on): Likewise.
9168         * modules/spawn-pipe-tests (Depends-on): Likewise.
9169         * modules/unistd-safer-tests (Depends-on): Likewise.
9170         * doc/posix-functions/close.texi: Mention the problem on MSVC.
9171
9172 2011-09-23  Bruno Haible  <bruno@clisp.org>
9173
9174         New module 'dup'.
9175         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
9176         Allow replacement.
9177         * lib/dup.c: New file.
9178         * lib/fchdir.c (rpl_dup): Remove function.
9179         * m4/dup.m4: New file.
9180         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
9181         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
9182         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
9183         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
9184         * modules/dup: New file.
9185         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
9186         'dup' module is in use.
9187         * modules/fdopendir (Depends-on): Add dup.
9188         * modules/fdutimensat-tests (Depends-on): Likewise.
9189         * modules/fts (Depends-on): Likewise.
9190         * modules/futimens-tests (Depends-on): Likewise.
9191         * modules/posix_spawnp-tests (Depends-on): Likewise.
9192         * modules/unistd-safer-tests (Depends-on): Likewise.
9193         * modules/utimens-tests (Depends-on): Likewise.
9194         * doc/posix-functions/dup.texi: Mention the new module and the problem
9195         on MSVC.
9196
9197 2011-09-23  Bruno Haible  <bruno@clisp.org>
9198
9199         getdtablesize: Support for MSVC 9.
9200         * lib/getdtablesize.c: Include msvc-inval.h.
9201         (_setmaxstdio_nothrow): New function.
9202         (_setmaxstdio): Redefine it.
9203         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
9204         * modules/getdtablesize (Depends-on): Add msvc-inval.
9205         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
9206
9207 2011-09-23  Bruno Haible  <bruno@clisp.org>
9208
9209         signal-h: Rename from signal.
9210         * modules/signal-h: Renamed from modules/signal.
9211         * modules/pthread_sigmask (Depends-on): Update.
9212         * modules/raise (Depends-on): Likewise.
9213         * modules/sigaction (Depends-on): Likewise.
9214         * modules/sigpipe (Depends-on): Likewise.
9215         * modules/sigprocmask (Depends-on): Likewise.
9216         * modules/sys_select (Depends-on): Likewise.
9217         * modules/signal-h-tests: Renamed from modules/signal-tests.
9218         (Files, Depends-on, Makefile.am): Update.
9219         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
9220         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
9221         (Files, Makefile.am): Update.
9222         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
9223         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
9224         * modules/signal: New placeholder file.
9225         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
9226         * doc/posix-headers/signal.texi: Update.
9227         * NEWS: Mention the change.
9228
9229 2011-09-23  Bruno Haible  <bruno@clisp.org>
9230
9231         sigprocmask: Avoid crashes through signal() on MSVC 9.
9232         * lib/sigprocmask.c: Include msvc-inval.h.
9233         (signal_nothrow): New function.
9234         (signal): Redefine it.
9235         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
9236         * modules/sigprocmask (Depends-on): Add msvc-inval.
9237         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
9238
9239 2011-09-23  Bruno Haible  <bruno@clisp.org>
9240
9241         Tests for module 'raise'.
9242         * modules/raise-tests: New file.
9243         * tests/test-raise.c: New file.
9244
9245         raise: Support for MSVC.
9246         * lib/signal.in.h (raise): New declaration.
9247         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
9248         for native Windows platforms.
9249         * m4/raise.m4: New file.
9250         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
9251         HAVE_RAISE, REPLACE_RAISE.
9252         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
9253         REPLACE_RAISE.
9254         * modules/raise (Status, Notice): Remove fields.
9255         (Files): Add m4/raise.m4.
9256         (Depends-on): Add signal, msvc-inval.
9257         (configure.ac): Use the common idioms.
9258         (Maintainer): Add me.
9259         * tests/test-signal-c++.cc: Check the signature of raise.
9260         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
9261
9262 2011-09-23  Bruno Haible  <bruno@clisp.org>
9263
9264         pipe2: Fix compilation on pre-C99 compilers.
9265         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
9266
9267 2011-09-23  Bruno Haible  <bruno@clisp.org>
9268
9269         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
9270         * lib/msvc-nothrow.h: New file.
9271         * lib/msvc-nothrow.c: New file.
9272         * m4/msvc-nothrow.m4: New file.
9273         * modules/msvc-nothrow: New file.
9274         * lib/dup2.c: Include msvc-nothrow.h.
9275         (rpl_dup2): No need to protect _get_osfhandle call here.
9276         * lib/accept4.c: Include msvc-nothrow.h.
9277         * lib/error.c: Likewise.
9278         * lib/fcntl.c: Likewise.
9279         * lib/lseek.c: Likewise.
9280         * lib/nonblocking.c: Likewise.
9281         * lib/poll.c: Likewise.
9282         * lib/read.c: Likewise.
9283         * lib/select.c: Likewise.
9284         * lib/sockets.h: Likewise.
9285         * lib/sockets.c: Likewise.
9286         * lib/stdio-read.c: Likewise.
9287         * lib/stdio-write.c: Likewise.
9288         * lib/write.c: Likewise.
9289         * lib/w32sock.h: Likewise.
9290         * lib/w32spawn.h: Likewise.
9291         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
9292         * lib/fsync.c: Likewise.
9293         * lib/isapipe.c: Likewise.
9294         * modules/dup2 (Depends-on): Add msvc-nothrow.
9295         * modules/accept4 (Depends-on): Likewise.
9296         * modules/error (Depends-on): Likewise.
9297         * modules/fcntl (Depends-on): Likewise.
9298         * modules/lseek (Depends-on): Likewise.
9299         * modules/nonblocking (Depends-on): Likewise.
9300         * modules/poll (Depends-on): Likewise.
9301         * modules/read (Depends-on): Likewise.
9302         * modules/select (Depends-on): Likewise.
9303         * modules/sockets (Depends-on): Likewise.
9304         * modules/sigpipe (Depends-on): Likewise.
9305         * modules/write (Depends-on): Likewise.
9306         * modules/accept (Depends-on): Likewise.
9307         * modules/bind (Depends-on): Likewise.
9308         * modules/connect (Depends-on): Likewise.
9309         * modules/gethostname (Depends-on): Likewise.
9310         * modules/getpeername (Depends-on): Likewise.
9311         * modules/getsockname (Depends-on): Likewise.
9312         * modules/getsockopt (Depends-on): Likewise.
9313         * modules/ioctl (Depends-on): Likewise.
9314         * modules/listen (Depends-on): Likewise.
9315         * modules/recv (Depends-on): Likewise.
9316         * modules/recvfrom (Depends-on): Likewise.
9317         * modules/send (Depends-on): Likewise.
9318         * modules/sendto (Depends-on): Likewise.
9319         * modules/setsockopt (Depends-on): Likewise.
9320         * modules/shutdown (Depends-on): Likewise.
9321         * modules/socket (Depends-on): Likewise.
9322         * modules/execute (Depends-on): Likewise.
9323         * modules/spawn-pipe (Depends-on): Likewise.
9324         * modules/flock (Depends-on): Likewise.
9325         * modules/fsync (Depends-on): Likewise.
9326         * modules/isapipe (Depends-on): Likewise.
9327         * tests/test-cloexec.c: Include msvc-nothrow.h.
9328         * tests/test-dup-safer.c: Likewise.
9329         * tests/test-dup2.c: Likewise.
9330         * tests/test-dup3.c: Likewise.
9331         * tests/test-fcntl.c: Likewise.
9332         * tests/test-pipe.c: Likewise.
9333         * tests/test-pipe2.c: Likewise.
9334         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9335         * modules/unistd-safer-tests (Depends-on): Likewise.
9336         * modules/dup2-tests (Depends-on): Likewise.
9337         * modules/dup3-tests (Depends-on): Likewise.
9338         * modules/fcntl-tests (Depends-on): Likewise.
9339         * modules/pipe-posix-tests (Depends-on): Likewise.
9340         * modules/pipe2-tests (Depends-on): Likewise.
9341
9342 2011-09-23  Bruno Haible  <bruno@clisp.org>
9343
9344         dup2: Make code more maintainable.
9345         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9346         (rpl_dup2): Use it.
9347         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9348         * modules/dup2 (configure.ac): Invoke it.
9349         Reported by Paul Eggert.
9350
9351 2011-09-23  Bruno Haible  <bruno@clisp.org>
9352
9353         msvc-inval: Fix compilation error.
9354         * lib/msvc-inval.h: Include <excpt.h>.
9355
9356 2011-09-23  Bruno Haible  <bruno@clisp.org>
9357
9358         mkdir: Tweak for MSVC 9.
9359         * lib/sys_stat.in.h: Update comments.
9360         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9361
9362         Tests for module 'chdir'.
9363         * modules/chdir-tests: New file.
9364         * tests/test-chdir.c: New file.
9365
9366         New module 'chdir'.
9367         * modules/chdir: New file.
9368         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9369         (chdir): New declaration.
9370         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9371         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9372         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9373         * tests/test-unistd-c++.cc: Check signature of chdir.
9374         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9375         * modules/chdir-long (Depends-on): Add chdir.
9376         * modules/fchdir (Depends-on): Likewise.
9377         * modules/rename (Depends-on): Likewise.
9378         * modules/savewd (Depends-on): Likewise.
9379
9380         rmdir: Support for mingw, MSVC 9.
9381         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9382         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9383
9384         getcwd: Tweak for MSVC 9.
9385         * lib/unistd.in.h: Update comments.
9386         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9387
9388 2011-09-22  Bruno Haible  <bruno@clisp.org>
9389
9390         strerror_r-posix: Avoid a link error on MSVC.
9391         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9392         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9393
9394 2011-09-22  Bruno Haible  <bruno@clisp.org>
9395
9396         select: Avoid link errors on MSVC.
9397         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9398         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9399         * modules/pselect (Link): Likewise.
9400         * NEWS: Mention the change.
9401         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9402         test-select-stdin against $(LIB_SELECT).
9403         * modules/pselect-tests (Makefile.am): Link test-pselect against
9404         $(LIB_SELECT).
9405
9406 2011-09-22  Bruno Haible  <bruno@clisp.org>
9407
9408         select: Avoid compilation error on MSVC.
9409         * lib/select.c: Don't include <stdbool.h>.
9410
9411 2011-09-21  Bruno Haible  <bruno@clisp.org>
9412
9413         Consolidate all uses of PATH_MAX in *.m4 files.
9414         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9415         macros.
9416         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9417         and gl_PATHMAX_SNIPPET.
9418         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9419         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9420         * modules/chdir-long (Files): Add m4/pathmax.m4.
9421         * modules/getcwd (Files): Likewise.
9422
9423 2011-09-21  Bruno Haible  <bruno@clisp.org>
9424
9425         ftruncate: Un-deprecate, concentrate on Win32 support.
9426         * modules/ftruncate (Status, Notice): Remove sections.
9427         (Depends-on): Add largefile.
9428         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9429         non-mingw platforms.
9430         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9431         include <io.h>.
9432         * modules/perror-tests (Depends-on): Add ftruncate.
9433         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9434         'ftruncate' module.
9435
9436 2011-09-21  Bruno Haible  <bruno@clisp.org>
9437
9438         Add dependencies to new dirent related modules.
9439         * modules/opendir (Depends-on): Add closedir.
9440         * modules/getcwd (Depends-on): Add opendir, closedir.
9441         * modules/dirent-safer-tests (Depends-on): Likewise.
9442         * modules/fdopendir-tests (Depends-on): Likewise.
9443         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9444         * modules/renameat-tests (Depends-on): Likewise.
9445
9446 2011-09-21  Bruno Haible  <bruno@clisp.org>
9447
9448         opendir: Avoid compilation error on mingw.
9449         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9450         * modules/opendir (Depends-on): Add unistd.
9451
9452 2011-09-21  Bruno Haible  <bruno@clisp.org>
9453
9454         ftruncate tests: Avoid a test failure on mingw.
9455         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9456
9457 2011-09-21  Bruno Haible  <bruno@clisp.org>
9458
9459         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9460         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9461         native Windows.
9462
9463 2011-09-21  Bruno Haible  <bruno@clisp.org>
9464
9465         New module 'fdopen'.
9466         * lib/stdio.in.h (fdopen): New declaration.
9467         * lib/fdopen.c: New file.
9468         * m4/fdopen.m4: New file.
9469         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9470         REPLACE_FDOPEN.
9471         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9472         REPLACE_FDOPEN.
9473         * modules/fdopen: New file.
9474         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9475         * tests/test-stdio-c++.cc: Check signature of fdopen.
9476         * doc/posix-functions/fdopen.texi: Mention the new module.
9477
9478 2011-09-21  Bruno Haible  <bruno@clisp.org>
9479
9480         unlockpt tests: Avoid test failure on NetBSD 5.1.
9481         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9482         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9483
9484 2011-09-21  Bruno Haible  <bruno@clisp.org>
9485
9486         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9487         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9488         * tests/test-getlogin_r.c (main): Likewise.
9489
9490 2011-09-20  Bruno Haible  <bruno@clisp.org>
9491
9492         time tests: Don't require pid_t.
9493         * doc/posix-headers/time.texi: Revert last change.
9494         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9495         * tests/test-time.c: Comment out the check for pid_t.
9496
9497 2011-09-20  Bruno Haible  <bruno@clisp.org>
9498
9499         fsync tests: Avoid a test failure on mingw.
9500         * tests/test-fsync.c (main): Allow a failure with EIO.
9501
9502 2011-09-20  Bruno Haible  <bruno@clisp.org>
9503
9504         euidaccess: Update comments.
9505         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9506
9507 2011-09-20  Bruno Haible  <bruno@clisp.org>
9508
9509         Ensure EBADF returns for socket functions on mingw.
9510         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9511         descriptor is invalid.
9512         * lib/bind.c (rpl_bind): Likewise.
9513         * lib/connect.c (rpl_connect): Likewise.
9514         * lib/getpeername.c (rpl_getpeername): Likewise.
9515         * lib/getsockname.c (rpl_getsockname): Likewise.
9516         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9517         * lib/listen.c (rpl_listen): Likewise.
9518         * lib/recv.c (rpl_recv): Likewise.
9519         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9520         * lib/send.c (rpl_send): Likewise.
9521         * lib/sendto.c (rpl_sendto): Likewise.
9522         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9523         * lib/shutdown.c (rpl_shutdown): Likewise.
9524
9525 2011-09-20  Bruno Haible  <bruno@clisp.org>
9526
9527         select tests: EBADF tests.
9528         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9529         test_bad_fd): New functions.
9530         (test_function): Invoke also test_bad_fd.
9531
9532 2011-09-20  Bruno Haible  <bruno@clisp.org>
9533
9534         Tests for module 'posix_spawn_file_actions_addopen.
9535         * modules/posix_spawn_file_actions_addopen-tests: New file.
9536         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9537
9538         Tests for module 'posix_spawn_file_actions_adddup2'.
9539         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9540         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9541
9542         Tests for module 'posix_spawn_file_actions_addclose'.
9543         * modules/posix_spawn_file_actions_addclose-tests: New file.
9544         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9545
9546 2011-09-20  Bruno Haible  <bruno@clisp.org>
9547
9548         Tests for module 'unlockpt'.
9549         * modules/unlockpt-tests: New file.
9550         * tests/test-unlockpt.c: New file.
9551         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9552
9553         Tests for module 'grantpt'.
9554         * modules/grantpt-tests: New file.
9555         * tests/test-grantpt.c: New file.
9556         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9557
9558 2011-09-20  Bruno Haible  <bruno@clisp.org>
9559
9560         freopen tests: EBADF tests.
9561         * tests/test-freopen.c: Include errno.h, unistd.h.
9562         (main): Add tests for EBADF, commented out for the moment.
9563
9564         fclose tests: EBADF tests.
9565         * tests/test-fclose.c (main): Add tests for EBADF.
9566
9567         fflush tests: EBADF tests.
9568         * tests/test-fflush.c: Include errno.h, macros.h.
9569         (main): Add tests for EBADF.
9570
9571         ftello tests: EBADF tests.
9572         * tests/test-ftello4.sh: New file.
9573         * tests/test-ftello4.c: New file.
9574         * modules/ftello-tests (Files): Add them.
9575         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9576
9577         fseeko tests: EBADF tests.
9578         * tests/test-fseeko4.sh: New file.
9579         * tests/test-fseeko4.c: New file.
9580         * modules/fseeko-tests (Files): Add them.
9581         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9582
9583         Tests for function fputc().
9584         * modules/fputc-tests: New file.
9585         * tests/test-fputc.c: New file.
9586         * modules/stdio-tests (Depends-on): Add fputc-tests.
9587
9588         Tests for function fgetc().
9589         * modules/fgetc-tests: New file.
9590         * tests/test-fgetc.c: New file.
9591         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9592
9593         Tests for function fdopen().
9594         * modules/fdopen-tests: New file.
9595         * tests/test-fdopen.c: New file.
9596         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9597
9598         Tests for module 'vdprintf'.
9599         * modules/vdprintf-tests: New file.
9600         * tests/test-vdprintf.c: New file.
9601
9602         Tests for module 'dprintf'.
9603         * modules/dprintf-tests: New file.
9604         * tests/test-dprintf.c: New file.
9605
9606 2011-09-20  Bruno Haible  <bruno@clisp.org>
9607
9608         Tests for module 'ioctl'.
9609         * modules/ioctl-tests: New file.
9610         * tests/test-ioctl.c: New file.
9611
9612 2011-09-20  Bruno Haible  <bruno@clisp.org>
9613
9614         fcntl tests: EBADF tests.
9615         * tests/test-fcntl.c (main): Add more tests for EBADF.
9616
9617 2011-09-20  Bruno Haible  <bruno@clisp.org>
9618
9619         utimensat tests: EBADF tests.
9620         * tests/test-utimensat.c (main): Add tests for EBADF.
9621
9622         renameat tests: EBADF tests.
9623         * tests/test-renameat.c (main): Add tests for EBADF.
9624
9625         mkfifoat tests: EBADF tests.
9626         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9627
9628         readlinkat tests: EBADF tests.
9629         * tests/test-readlinkat.c (main): Add tests for EBADF.
9630
9631         symlinkat tests: EBADF tests.
9632         * tests/test-symlinkat.c (main): Add tests for EBADF.
9633
9634         linkat tests: EBADF tests.
9635         * tests/test-linkat.c (main): Add tests for EBADF.
9636
9637         Tests for module 'faccessat'.
9638         * modules/faccessat-tests: New file.
9639         * tests/test-faccessat.c: New file.
9640
9641         fdopendir tests: EBADF tests.
9642         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9643
9644         openat tests: EBADF tests.
9645         * tests/test-fchownat.c (main): Add tests for EBADF.
9646         * tests/test-fstatat.c (main): Likewise.
9647         * tests/test-mkdirat.c (main): Likewise.
9648         * tests/test-openat.c (main): Likewise.
9649         * tests/test-unlinkat.c (main): Likewise.
9650         * tests/test-fchmodat.c: New file.
9651         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9652         (Makefile.am): Also run 'test-fchmodat'.
9653
9654 2011-09-20  Bruno Haible  <bruno@clisp.org>
9655
9656         utimens, futimens, fdutimensat tests: EBADF tests.
9657         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9658
9659         Tests for function fstat().
9660         * modules/fstat-tests: New file.
9661         * tests/test-fstat.c: New file.
9662         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9663
9664 2011-09-20  Bruno Haible  <bruno@clisp.org>
9665
9666         test-ttyname_r tests: EBADF tests.
9667         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9668
9669         Tests for module 'isatty'.
9670         * modules/isatty-tests: New file.
9671         * tests/test-isatty.c: New file.
9672
9673         Tests for module 'write'.
9674         * modules/write-tests: New file.
9675         * tests/test-write.c: New file.
9676
9677         Tests for module 'read'.
9678         * modules/read-tests: New file.
9679         * tests/test-read.c: New file.
9680
9681         pwrite tests: EBADF tests.
9682         * tests/test-pwrite.c (main): Add tests for EBADF.
9683
9684         pread tests: EBADF tests.
9685         * tests/test-pread.c (main): Add tests for EBADF.
9686
9687         lseek tests: EBADF tests.
9688         * tests/test-lseek.c (main): Add more tests for EBADF.
9689
9690         Tests for module 'ftruncate'.
9691         * modules/ftruncate-tests: New file.
9692         * tests/test-ftruncate.sh: New file.
9693         * tests/test-ftruncate.c: New file.
9694
9695         fsync tests: EBADF tests.
9696         * tests/test-fsync.c (main): Add more tests for EBADF.
9697
9698         fdatasync tests: EBADF tests.
9699         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9700
9701         Tests for module 'fchown'.
9702         * modules/fchown-tests: New file.
9703         * tests/test-fchown.c: New file.
9704
9705         Tests for module 'fchmod'.
9706         * modules/fchmod-tests: New file.
9707         * tests/test-fchmod.c: New file.
9708
9709         fchdir tests: EBADF tests.
9710         * tests/test-fchdir.c (main): Add more tests for EBADF.
9711
9712         dup2 tests: EBADF tests.
9713         * tests/test-dup2.c (main): Add more tests for EBADF.
9714
9715         Tests for module 'dup'.
9716         * modules/dup-tests: New file.
9717         * tests/test-dup.c: New file.
9718
9719         Tests for module 'close'.
9720         * modules/close-tests: New file.
9721         * tests/test-close.c: New file.
9722
9723 2011-09-20  Bruno Haible  <bruno@clisp.org>
9724
9725         Tests for module 'shutdown'.
9726         * modules/shutdown-tests: New file.
9727         * tests/test-shutdown.c: New file.
9728
9729         Tests for module 'setsockopt'.
9730         * modules/setsockopt-tests: New file.
9731         * tests/test-setsockopt.c: New file.
9732
9733         Tests for module 'sendto'.
9734         * modules/sendto-tests: New file.
9735         * tests/test-sendto.c: New file.
9736
9737         Tests for module 'send'.
9738         * modules/send-tests: New file.
9739         * tests/test-send.c: New file.
9740
9741         Tests for module 'recvfrom'.
9742         * modules/recvfrom-tests: New file.
9743         * tests/test-recvfrom.c: New file.
9744
9745         Tests for module 'recv'.
9746         * modules/recv-tests: New file.
9747         * tests/test-recv.c: New file.
9748
9749         Tests for module 'listen'.
9750         * modules/listen-tests: New file.
9751         * tests/test-listen.c: New file.
9752
9753         Tests for module 'getsockopt'.
9754         * modules/getsockopt-tests: New file.
9755         * tests/test-getsockopt.c: New file.
9756
9757         Tests for module 'getsockname'.
9758         * modules/getsockname-tests: New file.
9759         * tests/test-getsockname.c: New file.
9760
9761         Tests for module 'getpeername'.
9762         * modules/getpeername-tests: New file.
9763         * tests/test-getpeername.c: New file.
9764
9765         Tests for module 'connect'.
9766         * modules/connect-tests: New file.
9767         * tests/test-connect.c: New file.
9768
9769         Tests for module 'bind'.
9770         * modules/bind-tests: New file.
9771         * tests/test-bind.c: New file.
9772
9773         accept4 tests: Fix for native Windows.
9774         * tests/test-accept4.c: Include sockets.h.
9775         (main): Invoke gl_sockets_startup.
9776         * modules/accept4-tests (Depends-on): Add sockets.
9777
9778         accept tests: Fix for native Windows.
9779         * tests/test-accept.c: Include sockets.h.
9780         (main): Invoke gl_sockets_startup.
9781         * modules/accept-tests (Depends-on): Add sockets.
9782
9783 2011-09-19  Bruno Haible  <bruno@clisp.org>
9784
9785         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9786         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9787         do...while(0).
9788         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9789         Suggested by Paul Eggert.
9790
9791 2011-09-19  Bruno Haible  <bruno@clisp.org>
9792
9793         sched: Ensure pid_t is defined.
9794         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9795         not define pid_t.
9796         * lib/sched.in.h: Include <sys/types.h>.
9797         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9798         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9799
9800 2011-09-19  Bruno Haible  <bruno@clisp.org>
9801
9802         msvc-inval: Ensure the entire expansion is a single statement.
9803         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9804         of braces.
9805
9806 2011-09-19  Jim Meyering  <meyering@redhat.com>
9807
9808         tests: use printf, not echo in init.sh's warn_ function
9809         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9810         misbehave when given strings containing a backslash or starting
9811         with e.g., -n.  James Youngman suggested setting IFS.
9812
9813 2011-09-19  Eric Blake  <eblake@redhat.com>
9814
9815         futimens: enhance test
9816         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9817         closed non-negative fd.
9818
9819         date: accept 'hence' as opposite of 'ago'
9820         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9821         * tests/test-parse-datetime.c (main): Enhance test.
9822         Suggested by Jesse Wilson.
9823
9824 2011-09-19  Jim Meyering  <meyering@redhat.com>
9825
9826         getcwd: don't fail in a deep directory on a system without openat
9827         Before this change, getcwd would fail when called from a directory
9828         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9829         the non-openat implementation used "..", "../..", "../../..", etc.
9830         to access ancestor directories.  With too many, that string would
9831         be longer than PATH_MAX.
9832         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9833         using gnulib's openat replacement.
9834         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9835         we're using the replacement function.
9836
9837 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9838
9839         maint.mk: avoid warnings from perl about missing files
9840         * top/maint.mk (def_sym_regex): Ignore files listed in
9841         $(gl_other_headers_) that do not exist, say because a project
9842         does not use a corresponding module.
9843
9844 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9845
9846         stat: use pathmax.h only if needed
9847         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9848         This is better for Emacs, which does not have a mingw port and
9849         therefore can avoid the pathmax module.
9850
9851         utimens: remove dependency on dup2
9852         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9853         to work around the Linux kernel bug.
9854         * modules/utimens (Depends-on): Remove dup2.
9855
9856 2011-09-18  Bruno Haible  <bruno@clisp.org>
9857
9858         inet_ntop, inet_pton: Look for it also in libresolv.
9859         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9860         libnsl, search for it in libresolv.
9861         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9862         Needed on Solaris 7.
9863
9864 2011-09-18  Bruno Haible  <bruno@clisp.org>
9865
9866         accept, accept4 tests: Avoid link error on Solaris.
9867         * modules/accept-tests (Makefile.am): Link test-accept against
9868         $(LIBSOCKET).
9869         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9870         $(LIBSOCKET).
9871
9872         accept4: Avoid link error on Solaris.
9873         * modules/accept4 (Link): New section.
9874
9875         socket functions: Avoid link errors on Solaris.
9876         * modules/accept (Depends-on): Add socketlib.
9877         (Link): New section.
9878         * modules/bind (Depends-on): Add socketlib.
9879         (Link): New section.
9880         * modules/connect (Depends-on): Add socketlib.
9881         (Link): New section.
9882         * modules/getpeername (Depends-on): Add socketlib.
9883         (Link): New section.
9884         * modules/getsockname (Depends-on): Add socketlib.
9885         (Link): New section.
9886         * modules/getsockopt (Depends-on): Add socketlib.
9887         (Link): New section.
9888         * modules/listen (Depends-on): Add socketlib.
9889         (Link): New section.
9890         * modules/recv (Depends-on): Add socketlib.
9891         (Link): New section.
9892         * modules/recvfrom (Depends-on): Add socketlib.
9893         (Link): New section.
9894         * modules/send (Depends-on): Add socketlib.
9895         (Link): New section.
9896         * modules/sendto (Depends-on): Add socketlib.
9897         (Link): New section.
9898         * modules/setsockopt (Depends-on): Add socketlib.
9899         (Link): New section.
9900         * modules/shutdown (Depends-on): Add socketlib.
9901         (Link): New section.
9902         * modules/socket (Depends-on): Add socketlib.
9903         (Link): New section.
9904
9905 2011-09-18  Bruno Haible  <bruno@clisp.org>
9906
9907         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9908         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9909         than 5 seconds.
9910         * modules/ptsname-tests (configure.ac): Test for alarm.
9911
9912 2011-09-18  Bruno Haible  <bruno@clisp.org>
9913
9914         posix_spawn_file_actions_add*: Fix module dependencies.
9915         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9916         posix_spawn_file_actions_init.
9917         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9918         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9919
9920 2011-09-18  Bruno Haible  <bruno@clisp.org>
9921
9922         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9923         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9924         * tests/test-renameat.c (main): Likewise.
9925
9926 2011-09-18  Bruno Haible  <bruno@clisp.org>
9927
9928         Tests for module 'accept4'.
9929         * modules/accept4-tests: New file.
9930         * tests/test-accept4.c: New file.
9931
9932 2011-09-18  Bruno Haible  <bruno@clisp.org>
9933
9934         Tests for module 'accept'.
9935         * modules/accept-tests: New file.
9936         * tests/test-accept.c: New file.
9937
9938 2011-09-18  Bruno Haible  <bruno@clisp.org>
9939
9940         dup2: Support for MSVC.
9941         * lib/dup2.c: Include msvc-inval.h.
9942         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9943         _get_osfhandle calls.
9944         * modules/dup2 (Depends-on): Add msvc-inval.
9945         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9946
9947         New module 'msvc-inval'.
9948         * lib/msvc-inval.h: New file.
9949         * lib/msvc-inval.c: New file.
9950         * m4/msvc-inval.m4: New file.
9951         * modules/msvc-inval: New file.
9952
9953 2011-09-17  Bruno Haible  <bruno@clisp.org>
9954
9955         Tests for module 'pclose'.
9956         * modules/pclose-tests: New file.
9957
9958         New module 'pclose'.
9959         * lib/stdio.in.h (pclose): New declaration.
9960         * lib/pclose.c: New file.
9961         * m4/pclose.m4: New file.
9962         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9963         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9964         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9965         * modules/pclose: New file.
9966         * modules/popen-tests (Depends-on): Add pclose.
9967         * modules/popen-safer-tests (Depends-on): Likewise.
9968         * doc/posix-functions/pclose.texi: Mention the new module.
9969
9970 2011-09-17  Bruno Haible  <bruno@clisp.org>
9971
9972         popen: Support for MSVC.
9973         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9974         * lib/popen.c (popen): Provide alternate definition for native Windows.
9975         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9976         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9977         * modules/popen (Depends-on, configure.ac): Update condition.
9978         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9979         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9980         fixed.
9981
9982 2011-09-17  Bruno Haible  <bruno@clisp.org>
9983
9984         isnanl, isnand, isnanf: Work around MSVC bug.
9985         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9986
9987 2011-09-17  Bruno Haible  <bruno@clisp.org>
9988
9989         sys_socket tests: Fix recent mistake.
9990         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9991
9992 2011-09-17  Bruno Haible  <bruno@clisp.org>
9993
9994         putenv: Support for MSVC.
9995         * modules/putenv (Depends-on): Add environ.
9996         * lib/putenv.c (environ): Disable declaration.
9997         * lib/unistd.in.h: Update comment.
9998
9999 2011-09-17  Bruno Haible  <bruno@clisp.org>
10000
10001         math: Avoid macro redefinition warnings on MSVC.
10002         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
10003         Undefine before redefining.
10004
10005 2011-09-17  Bruno Haible  <bruno@clisp.org>
10006
10007         doc: Mention functions which are declared as macros.
10008         * doc/posix-functions/*[fl].texi: Mention that some functions are
10009         defined as macros with arguments only.
10010
10011 2011-09-17  Bruno Haible  <bruno@clisp.org>
10012
10013         Add dependencies to new dirent related modules.
10014         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
10015         * modules/fts (Depends-on): Likewise.
10016         * modules/glob (Depends-on): Likewise.
10017         * modules/savedir (Depends-on): Likewise.
10018         * modules/scandir (Depends-on): Likewise.
10019         * modules/dirent-safer (Depends-on): Add opendir, closedir.
10020         * modules/fdopendir (Depends-on): Add opendir.
10021
10022 2011-09-17  Bruno Haible  <bruno@clisp.org>
10023
10024         inet_pton: Support for MSVC on Windows Vista or newer.
10025         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
10026         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
10027         HAVE_DECL_INET_PTON is defined.
10028         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10029         On platforms with <winsock2.h>, test whether inet_pton is declared in
10030         <ws2tcpip.h>. If so, arrange to replace it.
10031         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10032         REPLACE_INET_PTON.
10033         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
10034         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
10035         (Depends-on, configure.ac): Update condition.
10036         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
10037
10038 2011-09-17  Bruno Haible  <bruno@clisp.org>
10039
10040         inet_ntop: Support for MSVC on Windows Vista or newer.
10041         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
10042         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
10043         HAVE_DECL_INET_NTOP is defined.
10044         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
10045         On platforms with <winsock2.h>, test whether inet_ntop is declared in
10046         <ws2tcpip.h>. If so, arrange to replace it.
10047         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
10048         REPLACE_INET_NTOP.
10049         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
10050         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
10051         (Depends-on, configure.ac): Update condition.
10052         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
10053
10054 2011-09-16  Eric Blake  <eblake@redhat.com>
10055
10056         test-fsync: yet another enhancement
10057         * tests/test-fsync.c (main): Also test behavior on read-only text
10058         file.
10059
10060 2011-09-16  Bruno Haible  <bruno@clisp.org>
10061
10062         Enhance fsync, fdatasync tests.
10063         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
10064         * tests/test-fdatasync.c (main): Likewise.
10065
10066 2011-09-16  Bruno Haible  <bruno@clisp.org>
10067
10068         Support for MSVC compiler: Ensure mode_t gets defined.
10069         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
10070         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10071         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10072         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
10073         * tests/test-fcntl-h.c: Check that mode_t is defined.
10074         * tests/test-sys_stat.c: Likewise.
10075         * tests/test-sys_types.c: Likewise.
10076         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
10077         * doc/posix-headers/sys_stat.texi: Likewise.
10078         * doc/posix-headers/sys_types.texi: Likewise.
10079
10080 2011-09-16  Bruno Haible  <bruno@clisp.org>
10081
10082         sys_stat: Support for MSVC.
10083         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
10084         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
10085         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
10086         MSVC.
10087
10088 2011-09-16  Bruno Haible  <bruno@clisp.org>
10089
10090         Support for MSVC compiler: Ensure off_t gets defined.
10091         * lib/unistd.in.h: Include <sys/types.h>.
10092         * tests/test-fcntl-h.c: Check that off_t is defined.
10093         * tests/test-sys_stat.c: Likewise.
10094         * tests/test-sys_types.c: Likewise.
10095
10096 2011-09-16  Eric Blake  <eblake@redhat.com>
10097
10098         fdatasync: port to Solaris
10099         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
10100         * modules/fdatasync (Link): Document it.
10101         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
10102
10103         fdatasync: port to MacOS X 10.7
10104         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
10105         declared.
10106         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
10107         * modules/unistd (Makefile.am): Substitute it.
10108         * lib/unistd.in.h (fdatasync): Declare on MacOS.
10109         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
10110
10111         fdatasync: minor improvements
10112         * modules/fdatasync (Depends-on): Add condition for fsync.
10113         * lib/fdatasync.c (fdatasync): Add comment.
10114         * tests/test-unistd-c++.cc: Test fdatasync.
10115
10116         unistd: update refs to newer POSIX
10117         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
10118         Suggested by Bruno Haible.
10119
10120         fdatasync: new module
10121         * modules/fsync (Description): Document difference to fdatasync.
10122         * modules/fdatasync: New module.
10123         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
10124         * lib/fdatasync.c (fdatasync): Likewise.
10125         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
10126         defaults.
10127         * modules/unistd (Makefile.am): Set witnesses.
10128         * lib/unistd.in.h (fdatasync): Declare.
10129         * MODULES.html.sh: Document it.
10130         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
10131         * modules/fdatasync-tests: New test.
10132         * tests/test-fdatasync.c: Likewise.
10133
10134 2011-09-16  Eric Blake  <eblake@redhat.com>
10135
10136         test-fsync: enhance tests
10137         * modules/fsync-tests (Depends-on): Add errno, for mingw.
10138         * tests/test-fsync.c (main): Enhance test.
10139
10140 2011-09-15  Bruno Haible  <bruno@clisp.org>
10141
10142         Support for MSVC compiler: Ensure ssize_t gets defined.
10143         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
10144         * doc/posix-headers/stdio.texi: Likewise.
10145         * modules/stdio (Depends-on): Add ssize_t.
10146         * modules/sys_socket (Depends-on): Likewise.
10147         * modules/sys_types (Depends-on): Likewise.
10148         * modules/sys_uio (Depends-on): Likewise.
10149         * modules/unistd (Depends-on): Likewise.
10150         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
10151         * tests/test-sys_types.c: Check that ssize_t is defined.
10152
10153 2011-09-14  Bruno Haible  <bruno@clisp.org>
10154
10155         Avoid using #, the m4 comment starter character, near brackets.
10156         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
10157         delimiter character in sed expressions.
10158         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10159         Suggested by Eric Blake.
10160
10161         Properly quote AC_CHECK_DECLS' 4th argument.
10162         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
10163         argument.
10164         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10165         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10166         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
10167         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
10168         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10169         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
10170         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
10171         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
10172         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
10173         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
10174         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
10175         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10176         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10177         * m4/isinf.m4 (gl_ISINF): Likewise.
10178         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
10179         * m4/readutmp.m4 (gl_READUTMP): Likewise.
10180         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10181         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10182         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10183         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10184         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
10185         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
10186         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
10187         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10188         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10189         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10190         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
10191         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
10192         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
10193         Reported by Eric Blake.
10194
10195         Properly quote AC_CHECK_DECL's 4th argument.
10196         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
10197         argument.
10198         * m4/argp.m4 (gl_ARGP): Likewise.
10199         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
10200         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10201         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
10202         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
10203         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
10204         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10205         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
10206         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
10207         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
10208         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
10209         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
10210         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
10211         Reported by Eric Blake.
10212
10213 2011-09-14  Eric Blake  <eblake@redhat.com>
10214
10215         opendir: avoid compile warning
10216         * lib/opendir.c (includes): Always include errno.h.
10217         Reported by Tatsuro MATSUOKA.
10218
10219 2011-09-14  Jim Meyering  <meyering@redhat.com>
10220
10221         maint.mk: sc_tight_scope: propagate failure from sub-make
10222         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
10223         Reported by Martin von Gagern.
10224
10225 2011-09-13  Bruno Haible  <bruno@clisp.org>
10226
10227         tempname: Support for MSVC.
10228         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
10229         MSVC.
10230         * modules/tempname (Depends-on): Add fcntl-h.
10231
10232 2011-09-13  Bruno Haible  <bruno@clisp.org>
10233
10234         sys_time: Support for MSVC.
10235         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
10236         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
10237         include <winsock2.h>.
10238         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
10239         function declarations that collide with POSIX.
10240         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
10241         (Makefile.am): Substitute HAVE_WINSOCK2_H.
10242
10243 2011-09-13  Bruno Haible  <bruno@clisp.org>
10244
10245         stat: Support for MSVC.
10246         * lib/stat.c: Include pathmax.h.
10247         * modules/stat (Depends-on): Add pathmax.
10248
10249         pathmax: Support for native Windows.
10250         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
10251
10252 2011-09-12  Bruno Haible  <bruno@clisp.org>
10253
10254         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
10255         * lib/dirent.in.h (struct dirent): New type.
10256         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
10257         DT_WHT): New macros.
10258         (DIR): New type.
10259         (opendir, closedir): Declare only if the module 'opendir' is enabled.
10260         (readdir, rewinddir): New declarations.
10261         * lib/dirent-private.h: New file.
10262         * lib/opendir.c: New file.
10263         * lib/readdir.c: New file.
10264         * lib/rewinddir.c: New file.
10265         * lib/closedir.c: New file.
10266         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
10267         * m4/opendir.m4: New file.
10268         * m4/readdir.m4: New file.
10269         * m4/rewinddir.m4: New file.
10270         * m4/closedir.m4: New file.
10271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
10272         REPLACE_CLOSEDIR here.
10273         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
10274         readdir, rewinddir are declared.
10275         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
10276         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
10277         HAVE_REWINDDIR, HAVE_CLOSEDIR.
10278         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
10279         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
10280         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
10281         * modules/opendir: New file.
10282         * modules/readdir: New file.
10283         * modules/rewinddir: New file.
10284         * modules/closedir: New file.
10285         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
10286         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
10287         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
10288         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
10289         * NEWS: Mention the 'fchdir' change.
10290
10291 2011-09-11  Bruno Haible  <bruno@clisp.org>
10292
10293         asm-underscore.m4: Support for MSVC.
10294         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
10295         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
10296
10297 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
10298
10299         Doc about crypt functions.
10300         * doc/posix-functions/crypt.texi: Expand range of glibc versions
10301         needing for _GNU_SOURCE to get crypt.
10302         * doc/posix-functions/encrypt.texi: Likewise.
10303         * doc/posix-functions/setkey.texi: Likewise.
10304
10305 2011-09-11  Bruno Haible  <bruno@clisp.org>
10306
10307         doc: Update regarding MSVC 9.
10308         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
10309         tested".
10310         * doc/posix-functions/*.texi: Update with info about MSVC 9.
10311         * doc/posix-headers/*.texi: Likewise.
10312         * doc/pastposix-functions/*.texi: Likewise.
10313         * doc/glibc-functions/*.texi: Likewise.
10314         * doc/glibc-headers/*.texi: Likewise.
10315
10316 2011-09-11  Bruno Haible  <bruno@clisp.org>
10317
10318         unistd et al.: Don't assume <unistd.h> exists.
10319         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10320         does not exist.
10321         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10322         exist. But include <stdlib.h>.
10323         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10324         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10325         symlink() does not exist.
10326         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10327         include <io.h> instead.
10328         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10329         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10330         include <direct.h> instead.
10331         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10332         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10333         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10334         <io.h> instead.
10335         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10336         correctly if the system does not have hard links.
10337         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10338         <direct.h> instead.
10339         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10340         it when looking for function declarations.
10341         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10342         <direct.h> and <io.h> instead.
10343         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10344
10345 2011-09-11  Bruno Haible  <bruno@clisp.org>
10346
10347         strcase: Support for MSVC.
10348         * modules/strcase (Status, Notice): Remove obsoletion mark.
10349         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10350         * doc/posix-functions/strncasecmp.texi: Likewise.
10351
10352         strings: Don't assume <strings.h> exists.
10353         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10354         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10355         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10356         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10357
10358 2011-09-11  Bruno Haible  <bruno@clisp.org>
10359
10360         dirent: Don't assume <dirent.h> exists.
10361         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10362         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10363         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10364         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10365
10366 2011-09-11  Bruno Haible  <bruno@clisp.org>
10367
10368         Fix wint_t on MSVC.
10369         * lib/wchar.in.h (wint_t): On MSVC, override it.
10370         * lib/wctype.in.h (wint_t): Likewise.
10371         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10372         MSVC.
10373         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10374         * doc/posix-headers/wctype.texi: Likewise.
10375
10376 2011-09-11  Bruno Haible  <bruno@clisp.org>
10377
10378         sys_types: Fix typo.
10379         * lib/sys_types.in.h: Fix typo in comment.
10380         Reported by Paul Eggert.
10381
10382         Support for MSVC compiler: Ensure size_t gets defined.
10383         * modules/strings (Depends-on): Add 'sys_types'.
10384         * modules/sys_uio (Depends-on): Likewise.
10385         * lib/sys_uio.in.h: Update comment.
10386
10387         C++ tests for module 'sys_types'.
10388         * modules/sys_types-c++-tests: New file.
10389         * tests/test-sys_types-c++.cc: New file.
10390
10391         Tests for module 'sys_types'.
10392         * modules/sys_types-tests: New file.
10393         * tests/test-sys_types.c: New file.
10394
10395         New module 'sys_types'.
10396         * lib/sys_types.in.h: New file.
10397         * m4/sys_types_h.m4: New file.
10398         * modules/sys_types: New file.
10399         * doc/posix-headers/sys_types.texi: Mention the new module and the
10400         size_t problem on MSVC 9.
10401
10402 2011-09-11  Bruno Haible  <bruno@clisp.org>
10403
10404         Support for MSVC compiler: Avoid division by a literal 0.
10405         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10406         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10407         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10408         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10409         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10410         * tests/infinity.h: New file.
10411         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10412         on MSVC.
10413         * tests/test-ceilf1.c: Include infinity.h.
10414         (main): Use Infinityf.
10415         * tests/test-ceil1.c: Include infinity.h.
10416         (main): Use Infinityd.
10417         * tests/test-ceill.c: Include infinity.h.
10418         (main): Use Infinityl.
10419         * tests/test-dprintf-posix.c: Include infinity.h.
10420         (test_function): Use Infinityd.
10421         * tests/test-floorf1.c: Include infinity.h.
10422         (main): Use Infinityf.
10423         * tests/test-floor1.c: Include infinity.h.
10424         (main): Use Infinityd.
10425         * tests/test-floorl.c: Include infinity.h.
10426         (main): Use Infinityl.
10427         * tests/test-fprintf-posix.c: Include infinity.h.
10428         (test_function): Use Infinityd.
10429         * tests/test-frexp.c: Include infinity.h.
10430         (main): Use Infinityd.
10431         * tests/test-frexpl.c: Include infinity.h.
10432         (main): Use Infinityl.
10433         * tests/test-isfinite.c: Include infinity.h.
10434         (test_isfinitef): Use Infinityf.
10435         (test_isfinited): Use Infinityd.
10436         (test_isfinitel): Use Infinityl.
10437         * tests/test-isinf.c: Include infinity.h.
10438         (test_isinff): Use Infinityf.
10439         (test_isinfd): Use Infinityd.
10440         (test_isinfl): Use Infinityl.
10441         * tests/test-isnan.c: Include infinity.h.
10442         (test_float): Use Infinityf.
10443         (test_double): Use Infinityd.
10444         (test_long_double): Use Infinityl.
10445         * tests/test-isnanf.h: Include infinity.h.
10446         (main): Use Infinityf.
10447         * tests/test-isnand.h: Include infinity.h.
10448         (main): Use Infinityd.
10449         * tests/test-isnanl.h: Include infinity.h.
10450         (main): Use Infinityl.
10451         * tests/test-ldexpl.c: Include infinity.h.
10452         (main): Use Infinityl.
10453         * tests/test-printf-posix.h: Include infinity.h.
10454         (test_function): Use Infinityd.
10455         * tests/test-roundf1.c: Include infinity.h.
10456         (main): Use Infinityf.
10457         * tests/test-round1.c: Include infinity.h.
10458         (main): Use Infinityd.
10459         * tests/test-roundl.c: Include infinity.h.
10460         (main): Use Infinityl.
10461         * tests/test-signbit.c: Include infinity.h.
10462         (test_signbitf): Use Infinityf.
10463         (test_signbitd): Use Infinityd.
10464         (test_signbitl): Use Infinityl.
10465         * tests/test-snprintf-posix.h: Include infinity.h.
10466         (test_function): Use Infinityd, Infinityl.
10467         * tests/test-sprintf-posix.h: Include infinity.h.
10468         (test_function): Use Infinityd, Infinityl.
10469         * tests/test-truncf1.c: Include infinity.h.
10470         (main): Use Infinityf.
10471         * tests/test-trunc1.c: Include infinity.h.
10472         (main): Use Infinityd.
10473         * tests/test-truncl.c: Include infinity.h.
10474         (main): Use Infinityl.
10475         * tests/test-vasnprintf-posix.c: Include infinity.h.
10476         (test_function): Use Infinityd, Infinityl.
10477         * tests/test-vasprintf-posix.c: Include infinity.h.
10478         (test_function): Use Infinityd, Infinityl.
10479         * modules/ceilf-tests (Files): Add tests/infinity.h.
10480         * modules/ceil-tests (Files): Likewise.
10481         * modules/ceill-tests (Files): Likewise.
10482         * modules/dprintf-posix-tests (Files): Likewise.
10483         * modules/floorf-tests (Files): Likewise.
10484         * modules/floor-tests (Files): Likewise.
10485         * modules/floorl-tests (Files): Likewise.
10486         * modules/fprintf-posix-tests (Files): Likewise.
10487         * modules/frexp-tests (Files): Likewise.
10488         * modules/frexp-nolibm-tests (Files): Likewise.
10489         * modules/frexpl-tests (Files): Likewise.
10490         * modules/frexpl-nolibm-tests (Files): Likewise.
10491         * modules/isfinite-tests (Files): Likewise.
10492         * modules/isinf-tests (Files): Likewise.
10493         * modules/isnan-tests (Files): Likewise.
10494         * modules/isnanf-tests (Files): Likewise.
10495         * modules/isnanf-nolibm-tests (Files): Likewise.
10496         * modules/isnand-tests (Files): Likewise.
10497         * modules/isnand-nolibm-tests (Files): Likewise.
10498         * modules/isnanl-tests (Files): Likewise.
10499         * modules/isnanl-nolibm-tests (Files): Likewise.
10500         * modules/ldexpl-tests (Files): Likewise.
10501         * modules/printf-posix-tests (Files): Likewise.
10502         * modules/roundf-tests (Files): Likewise.
10503         * modules/round-tests (Files): Likewise.
10504         * modules/roundl-tests (Files): Likewise.
10505         * modules/signbit-tests (Files): Likewise.
10506         * modules/snprintf-posix-tests (Files): Likewise.
10507         * modules/sprintf-posix-tests (Files): Likewise.
10508         * modules/truncf-tests (Files): Likewise.
10509         * modules/trunc-tests (Files): Likewise.
10510         * modules/truncl-tests (Files): Likewise.
10511         * modules/vasnprintf-posix-tests (Files): Likewise.
10512         * modules/vasprintf-posix-tests (Files): Likewise.
10513         * modules/vdprintf-posix-tests (Files): Likewise.
10514         * modules/vfprintf-posix-tests (Files): Likewise.
10515         * modules/vprintf-posix-tests (Files): Likewise.
10516         * modules/vsnprintf-posix-tests (Files): Likewise.
10517         * modules/vsprintf-posix-tests (Files): Likewise.
10518         * modules/xprintf-posix-tests (Files): Likewise.
10519
10520 2011-09-11  Bruno Haible  <bruno@clisp.org>
10521
10522         Ensure pid_t gets defined.
10523         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10524         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10525         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10526         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10527         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10528         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10529         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10530         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10531         * tests/test-fcntl-h.c: Check that pid_t is defined.
10532         * tests/test-sched.c: Likewise.
10533         * tests/test-termios.c: Likewise.
10534         * tests/test-time.c: Likewise.
10535         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10536         * doc/posix-headers/signal.texi: Likewise.
10537         * doc/posix-headers/sys_types.texi: Likewise.
10538         * doc/posix-headers/time.texi: Likewise.
10539
10540 2011-09-11  Bruno Haible  <bruno@clisp.org>
10541
10542         acl: Fix compilation on Solaris 10 (older version).
10543         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10544         of ACE_EVERYONE.
10545         * lib/set-mode-acl.c (qset_acl): Likewise.
10546         Reported by Christian Jullien <eligis@orange.fr>.
10547
10548 2011-09-10  Bruno Haible  <bruno@clisp.org>
10549
10550         iconv, unsetenv: Add support for MSVC compiler.
10551         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10552         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10553
10554 2011-09-10  Bruno Haible  <bruno@clisp.org>
10555
10556         *printf: Add support for MSVC compiler.
10557         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10558         handles the exception caused by the %n directive. When cross-compiling,
10559         guess no on native Windows.
10560         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10561         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10562         emulate it through vsnprintf.
10563         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10564         * doc/posix-functions/dprintf.texi: Update documentation regarding
10565         MSVC 9.
10566         * doc/posix-functions/fprintf.texi: Likewise.
10567         * doc/posix-functions/printf.texi: Likewise.
10568         * doc/posix-functions/snprintf.texi: Likewise.
10569         * doc/posix-functions/sprintf.texi: Likewise.
10570         * doc/posix-functions/swprintf.texi: Likewise.
10571         * doc/posix-functions/vdprintf.texi: Likewise.
10572         * doc/posix-functions/vfprintf.texi: Likewise.
10573         * doc/posix-functions/vprintf.texi: Likewise.
10574         * doc/posix-functions/vsnprintf.texi: Likewise.
10575         * doc/posix-functions/vsprintf.texi: Likewise.
10576         * doc/glibc-functions/asprintf.texi: Likewise.
10577         * doc/glibc-functions/obstack_printf.texi: Likewise.
10578         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10579         * doc/glibc-functions/vasprintf.texi: Likewise.
10580
10581 2011-09-10  Bruno Haible  <bruno@clisp.org>
10582
10583         nocrash: Add support for native Windows.
10584         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10585
10586 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10587             Bruno Haible  <bruno@clisp.org>
10588
10589         absolute-header, include-next: Add support for MSVC compiler.
10590         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10591         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10592         directory separator in #line directives.
10593         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10594         recognize also backslash as directory separator in #line directives.
10595
10596 2011-09-08  Jim Meyering  <meyering@redhat.com>
10597
10598         maint.mk: mark the post-release commit log with "maint: " prefix
10599         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10600         one-line commit-log summary.
10601
10602 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10603             Bruno Haible  <bruno@clisp.org>
10604
10605         Doc about crypt functions.
10606         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10607         systems.
10608         * doc/posix-functions/encrypt.texi: Likewise.
10609         * doc/posix-functions/setkey.texi: Likewise.
10610
10611 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10612
10613         * lib/gc.h: Fix copyright header.
10614
10615 2011-09-07  Bruno Haible  <bruno@clisp.org>
10616
10617         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10618         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10619         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10620
10621 2011-09-07  Bruno Haible  <bruno@clisp.org>
10622
10623         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10624         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10625         * lib/freopen.c: Likewise.
10626         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10627         * lib/lstat.c: Likewise.
10628         * lib/stat.c: Likewise.
10629         * lib/open.c: Use different syntax for include of <fcntl.h>.
10630         * lib/openat.c: Include fcntl.h again, explicitly.
10631
10632 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10633
10634         parse-datetime: document the newly accepted format
10635         * doc/parse-datetime.texi (Combined date and time of day items):
10636         New section.
10637
10638 2011-09-06  Bruno Haible  <bruno@clisp.org>
10639
10640         acl: Fix a test failure on newer Solaris 10 with ZFS.
10641         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10642         ENOSYS as no ACL.
10643         Reported by Jim Meyering.
10644
10645 2011-09-06  Bruno Haible  <bruno@clisp.org>
10646
10647         acl: Update for AIX >= 5.3 with NFS.
10648         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10649         ENOSYS as no ACL.
10650
10651         acl: Fix a test failure on AIX >= 5.3 with NFS.
10652         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10653         as no ACL.
10654
10655 2011-09-06  Bruno Haible  <bruno@clisp.org>
10656
10657         acl: Fix a test failure on IRIX 6.5 with NFS.
10658         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10659         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10660         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10661         * lib/copy-acl.c (qcopy_acl): Likewise.
10662
10663 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10664
10665         openat: port to AIX 7.1 with large files
10666         AIX 7.1 does a "#define openat open64at" if large files are in use,
10667         so we can't simply #undef openat.  Use the orig_openat trick (similar
10668         to orig_open in lib/open.c) to work around the problem.  Problem
10669         reported by Kevin Brott for GNU tar, in the thread containing
10670         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10671         * lib/openat.c (__need_system_fcntl_h): Define first.
10672         Include <fcntl.h> and <sys/types.h> before undefining.
10673         (orig_openat) [HAVE_OPENAT]: New inline function.
10674         (openat) [HAVE_OPENAT]: Do not undef.
10675         (rpl_openat): Use orig_openat, not openat.
10676
10677 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10678             Bruno Haible  <bruno@clisp.org>
10679
10680         acl: Avoid errors on NonStop Kernel.
10681         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10682         ENOTSUP errors.
10683
10684 2011-09-05  Bruno Haible  <bruno@clisp.org>
10685
10686         acl: Clean up Solaris code.
10687         * lib/acl-internal.h: Remove no-op #if.
10688         * lib/file-has-acl.c: Likewise.
10689         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10690         * lib/copy-acl.c (qcopy_acl): Likewise.
10691
10692 2011-09-05  Bruno Haible  <bruno@clisp.org>
10693
10694         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10695         binaries built on the original Solaris 10.
10696         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10697         trivial.
10698
10699 2011-09-05  Bruno Haible  <bruno@clisp.org>
10700
10701         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10702         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10703         10.
10704         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10705         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10706         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10707         instead of acl_get, facl_get, acl_set, facl_set.
10708
10709 2011-09-05  Bruno Haible  <bruno@clisp.org>
10710
10711         copy-file: Try unit tests on more file systems.
10712         * tests/test-copy-file-1.sh: New file.
10713         * tests/test-copy-file-2.sh: New file.
10714         * modules/copy-file-tests (Files): Add them.
10715         (Makefile.am): Add them to TESTS.
10716
10717         acl: Try unit tests on more file systems.
10718         * tests/test-file-has-acl-1.sh: New file.
10719         * tests/test-file-has-acl-2.sh: New file.
10720         * tests/test-set-mode-acl-1.sh: New file.
10721         * tests/test-set-mode-acl-2.sh: New file.
10722         * tests/test-copy-acl-1.sh: New file.
10723         * tests/test-copy-acl-2.sh: New file.
10724         * modules/acl-tests (Files): Add them.
10725         (Makefile.am): Add them to TESTS.
10726
10727 2011-09-04  Bruno Haible  <bruno@clisp.org>
10728
10729         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10730         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10731         10.
10732         (OLD_ALLOW, OLD_DENY): New macros.
10733         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10734         ACE_ACCESS_ALLOWED_ACE_TYPE.
10735         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10736         ACE_ACCESS_DENIED_ACE_TYPE.
10737         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10738         (NEW_ACE_EXECUTE): Fix value.
10739         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10740         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10741         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10742         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10743         NEW_ACE_SYNCHRONIZE): New macros.
10744         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10745         instead of acl_fromtext, acl_set, facl_set.
10746         Fixes a coreutils/tests/cp/perm failure.
10747
10748 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10749
10750         openat: test for fstatat (..., 0) bug
10751         Further testing with tar suggests that fstatat (..., 0)
10752         does not work in general, on AIX 7.1; see
10753         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10754         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10755         replacement fstatat (which is what older AIX releases were using
10756         anyway).
10757         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10758         use is now changed to orig_fstatat.  This was probably the right
10759         thing to do anyway.
10760         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10761         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10762         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10763         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10764         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10765         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10766         if the bug is found.
10767
10768         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10769         This tests for another fstatat bug on AIX 7.1:
10770         fstatat (AT_FDCWD, ..., 0) does not work.  See
10771         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10772         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10773         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10774         (rpl_fstatat): Adjust so that it works around either (or both)
10775         bugs if present.
10776         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10777
10778 2011-09-03  Karl Berry  <karl@gnu.org>
10779
10780         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10781         in index entries.
10782
10783 2011-09-02  Bruno Haible  <bruno@clisp.org>
10784
10785         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10786         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10787         values of AR, ARFLAGS, RANLIB.
10788         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10789
10790 2011-09-02  Bruno Haible  <bruno@clisp.org>
10791
10792         Find 'ar' program that fits with --host argument.
10793         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10794
10795 2011-09-02  Bruno Haible  <bruno@clisp.org>
10796
10797         tests: init.sh: Support any non-GNU diff.
10798         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10799         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10800         Solaris 8.
10801
10802 2011-09-02  Bruno Haible  <bruno@clisp.org>
10803
10804         tests: init.sh: work also with any non-GNU diff that supports -u
10805         * tests/init.sh: Relax check for diff -u support.
10806         Rather than checking for GNU diff via --version, simply check
10807         for support for -u itself.  Useful at least on OpenBSD 4.9,
10808         AIX 7.1, IRIX 6.5, and Solaris 10.
10809
10810 2011-09-01  Bruno Haible  <bruno@clisp.org>
10811
10812         strtoimax, strtoumax: Document problem on HP-UX 11.
10813         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10814         * doc/posix-functions/strtoumax.texi: Likewise.
10815
10816 2011-09-01  Bruno Haible  <bruno@clisp.org>
10817
10818         strtoumax: Avoid link error on OSF/1 with DTK cc.
10819         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10820         defined as a function.
10821         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10822         strtoumax is defined, not whether it is declared.
10823
10824 2011-09-01  Bruno Haible  <bruno@clisp.org>
10825
10826         strtoimax: Avoid link error on OSF/1 with DTK cc.
10827         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10828         defined as a function.
10829         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10830         strtoimax is defined, not whether it is declared.
10831
10832 2011-09-01  Bruno Haible  <bruno@clisp.org>
10833
10834         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10835         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10836         as a function.
10837         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10838         whether it is declared.
10839
10840 2011-09-01  Bruno Haible  <bruno@clisp.org>
10841
10842         imaxabs: Avoid link error on OSF/1 with DTK cc.
10843         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10844         as a function.
10845         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10846         whether it is declared.
10847
10848 2011-09-01  Bruno Haible  <bruno@clisp.org>
10849
10850         Tests for module 'strtoumax'.
10851         * modules/strtoumax-tests: New file.
10852         * tests/test-strtoumax.c: New file.
10853
10854         Tests for module 'strtoimax'.
10855         * modules/strtoimax-tests: New file.
10856         * tests/test-strtoimax.c: New file.
10857
10858         Tests for module 'imaxdiv'.
10859         * modules/imaxdiv-tests: New file.
10860         * tests/test-imaxdiv.c: New file.
10861
10862         Tests for module 'imaxabs'.
10863         * modules/imaxabs-tests: New file.
10864         * tests/test-imaxabs.c: New file.
10865
10866 2011-09-01  Bruno Haible  <bruno@clisp.org>
10867
10868         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10869         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10870         pthread_create.
10871
10872 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10873
10874         openat: work around AIX 7.1 fstatat issue
10875         This should fix the problem that was not properly fixed
10876         in the previous change, dated 2011-08-30.
10877         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10878         __need_system_stat_h defined.
10879         (orig_fstatat) [HAVE_FSTATAT]: New function.
10880         (rpl_fstatat): Go back to the old way of doing things,
10881         except call orig_fstatat instead of fstatat.
10882         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10883         Remove unnecessary check whether fstatat fills in st_size etc.
10884
10885 2011-09-01  Bruno Haible  <bruno@clisp.org>
10886
10887         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10888         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10889         just include the system's header.
10890
10891 2011-08-31  Jim Meyering  <meyering@redhat.com>
10892
10893         tests: avoid spurious assertion failure in test-float.c on ppc64
10894         * tests/test-float.c (test_long_double): Comment out an assertion,
10895         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10896         with gcc-4.4.4.
10897
10898         maint: indent with spaces, not TABs
10899         I need to get in the habit of running gnulib's "make check".
10900         Both of these would have been caught.
10901         * m4/largefile.m4: Indent with spaces, not TABs.
10902         * lib/parse-datetime.y (iso_8601_time): Likewise.
10903         Spotted by Pádraig Brady.
10904
10905         test-parse-datetime.c: accommodate a relatively strict gcc warning
10906         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10907         to avoid a warning from gcc's -Werror=missing-declarations.
10908         Insert a few spaces-before-funcall-parenthesis.
10909
10910 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10911
10912         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10913         The parser now accepts ISO 8601 date-time strings with "T" as the
10914         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10915         with a space between the date and time strings.  Now it also parses
10916         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10917         variants like "2004-02-29T16:21:42.333-07:00"
10918         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10919         of day representation using the 'T' separator character.
10920         * doc/parse-datetime.texi (General date syntax): replace use of
10921         deprecated --iso-8601 option with --rfc-3339 in example of date
10922         command output formats that can be parsed.
10923         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10924         lib/parse-datetime.y.
10925         (gmt_offset): New function.
10926         (main): Add additional test cases to validate ISO8601 extended
10927         date and time of day parsing.
10928
10929 2011-08-31  Bruno Haible  <bruno@clisp.org>
10930
10931         freopen: Documentation.
10932         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10933         name.
10934         Reported by Claudio Bley <claudio.bley@gmail.com>.
10935
10936 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10937
10938         freopen: Don't crash if the filename argument is NULL.
10939         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10940         NULL.
10941
10942 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10943
10944         openat: work around AIX 7.1 fstatat bug
10945         Problem reported by Kevin Brott for GNU tar, in the thread containing
10946         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10947         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10948         FSTATAT_ST_SIZE_ETC_BROKEN.
10949         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10950         rpl_fstatat.
10951         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10952         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10953         AC_CHECK_FUNCS_ONCE for fstatat.
10954         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10955         fchmodat, mkdirat, openat and unlinkat.
10956
10957 2011-08-30  Bruno Haible  <bruno@clisp.org>
10958
10959         Avoid endless recursions if config.h includes some header files.
10960         * lib/fopen.c (__need_FILE): Define already before including config.h.
10961         * lib/freopen.c (__need_FILE): Likewise.
10962         * lib/open.c (__need_system_fcntl_h): Likewise.
10963         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10964         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10965         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10966
10967 2011-08-25  Karl Berry  <karl@gnu.org>
10968
10969         * config/srclist.txt (ylwrap): new try.
10970         * build-aux/ylwrap: new file.
10971
10972 2011-08-23  Bruno Haible  <bruno@clisp.org>
10973
10974         tmpdir: Use a good default directory on native Windows.
10975         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10976         (P_tmpdir): Default to _P_tmpdir on native Windows.
10977         (path_search): On native Windows, try the value returned by GetTempPath
10978         before trying P_tmpdir.
10979         * modules/tmpdir (Depends-on): Add pathmax.
10980         Suggested by John Darrington <john@darrington.wattle.id.au>.
10981
10982 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10983
10984         doc: fix typo in README-release
10985         * top/README-release: Capitalize first word of a sentence.
10986
10987 2011-08-19  Jim Meyering  <meyering@redhat.com>
10988
10989         fts: do not exhaust memory when processing million-entry directories
10990         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10991         directory would require about 256*N bytes of memory.  Thus, it was
10992         easy to construct a directory too large to be processed by any of
10993         those tools.  With this change, fts' maximum memory utilization is
10994         now limited to around 30MB.
10995         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10996         (fts_read): When we've processed the final entry (i.e., when
10997         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10998         using the parent entry to read any remaining entries.  Dispatch
10999         depending on what fts_build returns:
11000         - NULL+stop, aka failure: stop
11001         - NULL otherwise: move up in the dir hierarchy
11002         - non-NULL: handle this new entry
11003         (fts_build): Declare and use new local, continue_readdir.
11004         Prepare to be called from fts_read, when the entries
11005         from a partially-read directory have just been exhausted.
11006         In that case, we'll skip the opendir and instead use the parent's
11007         fts_dirp and derive dir_fd from that.
11008         Finally, in the readdir loop, if we read max_entries entries,
11009         exit the loop ensuring *not* to call closedir.  This is required
11010         so that fts_dirp can be reused on a subsequent call.
11011         Prompted by Ben England's report of memory exhaustion in find
11012         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
11013
11014         maint: fts: move decl of `dp' down into while loop; split a long line
11015         * lib/fts.c (fts_build): No semantic change.
11016
11017         fts: add/use new struct member, fts_dirp
11018         We are about to use this to manage any directory with
11019         too many entries to read all of them into memory at once.
11020         To do that, we'll need to save the DIR* pointer in each
11021         affected FTSENT struct.
11022         * lib/fts_.h: Include <dirent.h>.
11023         (struct FTSENT) [fts_dirp]: New member.
11024         * lib/fts.c (closedir_and_clear): Define.
11025         Use it in place of closedir so that we are sure to
11026         clear the new fts_dirp member when done with it.
11027         (fts_alloc): Initialize the new member.
11028         (fts_lfree): Free, if needed.
11029
11030         maint: fts: give __opendir2 a new parameter and rename
11031         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
11032         than surreptitiously using sole caller's "dir_fd".
11033         (fts_opendir): Rename from __opendir2.
11034
11035         maint: fts.c: remove __opendir2's now-unused parameter, oflag
11036         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
11037
11038         maint: fts.c: correct off-by-one indentation
11039         * lib/fts.c (fts_build): Correct indentation, change style
11040         of a couple of block comments, and bracing style.
11041
11042         maint: fts.c: move __opendir2 #define "up" out of function body
11043         * lib/fts.c (__opendir2): Move "up".  No semantic change.
11044
11045         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
11046         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
11047         out for a long time and besides was useful only on BSD systems.
11048
11049 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
11050
11051         regex: port to Stratus OpenVOS
11052         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
11053         define to empty, rather than attempting nonportable optimizations.
11054         Problem reported by Paul Green in:
11055         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
11056         and fix suggested by Eric Blake in:
11057         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
11058
11059 2011-08-17  Eric Blake  <eblake@redhat.com>
11060
11061         getcwd: fix test failures on mingw
11062         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
11063         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
11064         test if long directory cannot be created, and allow mingw errno.
11065
11066         getcwd-lgpl: fix m4 to match relaxed test for BSD
11067         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
11068         (gl_FUNC_GETCWD_SIGNATURE): New macro.
11069         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
11070         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
11071         signature problem.
11072
11073         getcwd: fix compilation on mingw64
11074         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
11075         getcwd.
11076         Reported by Marc-André Lureau.
11077
11078         pipe2: silence compiler warning
11079         * lib/pipe2.c (pipe2): Hide label if it is not used.
11080
11081 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
11082
11083         relocatable-prog: fix link error
11084         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
11085         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
11086         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
11087         into modules/relocatable-lib without noticing that
11088         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
11089         also needs to build relocatable.c.
11090
11091 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
11092
11093         getaddrinfo: fix sh typo in gai_strerrorA decl checking
11094         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
11095         shell code: it contained a 'break' that was not in a loop.
11096         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
11097         via a shell-language loop; this may have been true in old Autoconf
11098         versions, but it's not true in Autoconf 2.68.  I found this bug
11099         when testing coreutils git on Solaris 8, whose shell complains
11100         about the syntax error.
11101
11102 2011-08-12  Simon Josefsson  <simon@josefsson.org>
11103
11104         * lib/base64.c: Fix comment to reference RFC 4648.
11105         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
11106         <gvtulder@gmail.com>.
11107
11108 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
11109
11110         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
11111
11112         po/Makefile.in.in: fix make -q problem
11113         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
11114         rule, since there's no file named 'check-macro-version' and its
11115         use as a file breaks make -q.
11116         (all): Don't depend on check-macro-version.
11117         (CHECK_MACRO_VERSION): New macro.
11118         (stamp-po): Use it.
11119
11120         configmake: fix make -q problem
11121         * modules/configmake (configmake.h): Update configmake.h's time stamp
11122         even if the file does not change.  Otherwise, 'make -q' fails.
11123         Problem reported by Simon Josefsson in
11124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
11125
11126 2011-08-11  Jim Meyering  <meyering@redhat.com>
11127
11128         git-version-gen: correct the advice in a comment
11129         * build-aux/git-version-gen: Correct comment.
11130         Don't recommend to list .tarball-version in .gitignore.
11131
11132 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
11133
11134         base64: fix off-by-one buffer size bug
11135         Problem and (trivial) fix reported by Gijs van Tulder in
11136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
11137         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
11138         * tests/test-base64.c (main): Catch the bug.
11139
11140 2011-08-10  Eric Blake  <eblake@redhat.com>
11141
11142         closein: correct comments
11143         * lib/closein.c (close_stdin): Improve comments.
11144
11145 2011-08-09  Bruno Haible  <bruno@clisp.org>
11146
11147         More tests for 'fseeko'.
11148         * tests/test-fseeko3.c: New file, from Eric Blake.
11149         * tests/test-fseeko3.sh: New file.
11150         * modules/fseeko-tests (Files): Add them.
11151         (TESTS): Add test-fseeko3.sh.
11152         (check_PROGRAMS): Add test-fseeko3.
11153
11154 2011-08-09  Eric Blake  <eblake@redhat.com>
11155
11156         fseeko: remove unneeded hack
11157         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
11158
11159         fseeko: fix bug on glibc
11160         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
11161         Reported by John W. Eaton.
11162
11163 2011-08-08  Bruno Haible  <bruno@clisp.org>
11164
11165         unictype/base: Fix interoperability with preinstalled libunistring.
11166         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
11167         Reported by Simon Josefsson.
11168
11169 2011-08-08  Bruno Haible  <bruno@clisp.org>
11170
11171         iswblank: Detect declaration correctly.
11172         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
11173         AC_CHECK_DECLS invocation.
11174
11175 2011-08-08  Bruno Haible  <bruno@clisp.org>
11176
11177         tcgetsid: Detect declaration correctly.
11178         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
11179         AC_CHECK_DECLS invocation.
11180         Reported by Simon Josefsson.
11181
11182 2011-08-08  Eric Blake  <eblake@redhat.com>
11183
11184         largefile: fix typo that regressed large file support
11185         * modules/largefile (configure.ac-early): Fix section name.
11186
11187 2011-08-06  Karl Berry  <karl@gnu.org>
11188
11189         * MODULES.html.sh (func_all_files): _Noreturn is no longer
11190         a separate module.
11191
11192 2011-08-05  Simon Josefsson  <simon@josefsson.org>
11193
11194         openat: Fix warnings and commens when building unlinkat.c on Hurd.
11195         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
11196         get prototype for free.
11197
11198 2011-08-04  Bruno Haible  <bruno@clisp.org>
11199
11200         Tests for module 'pathmax'.
11201         * modules/pathmax-tests: New file.
11202         * tests/test-pathmax.c: New file.
11203
11204         canonicalize-lgpl: Support larger filenames on the Hurd.
11205         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
11206         Reported by Paul Eggert.
11207
11208         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
11209         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
11210         * lib/chdir-long.h: Include pathmax.h.
11211         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
11212         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
11213         (PATH_MAX): Remove code that is done by pathmax.h.
11214         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
11215         * lib/tmpfile.c: Add a comment.
11216         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
11217         * modules/chdir-long (Depends-on): Add pathmax.
11218         * modules/getcwd (Depends-on): Add pathmax.
11219         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
11220         is not defined.
11221         * doc/posix-headers/limits.texi: Mention the pathmax module.
11222         * NEWS: Mention the change.
11223
11224 2011-08-02  Bruno Haible  <bruno@clisp.org>
11225
11226         pthread_sigmask: Actually use results of gl_THREADLIB.
11227         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
11228         gl_THREADLIB, not gl_[]THREADLIB.
11229         Reported by Eric Blake.
11230
11231 2011-08-02  Jim Meyering  <meyering@redhat.com>
11232
11233         maint.mk: relax the default _gl_TS_function_match regexp
11234         * top/maint.mk (_gl_TS_function_match): Don't require at least one
11235         space between function name and "(" in an "extern" declaration.
11236         That would fail to match a decl with no space there: extern void foo();
11237
11238 2011-07-31  Iain Nicol  <iain@thenicols.net>
11239
11240         git-version-gen: document that EXTRA_DIST must include .version
11241         * build-aux/git-version-gen: In the how-to-use comment, document
11242         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
11243         will fail when run from an unpacked distribution tarball.
11244
11245 2011-08-01  Bruno Haible  <bruno@clisp.org>
11246
11247         wctype-h: Fix last change.
11248         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
11249         REPLACE_TOWLOWER to 0.
11250         Reported by Sam Steingold <sds@gnu.org>.
11251
11252 2011-07-31  Bruno Haible  <bruno@clisp.org>
11253
11254         frexpl: Update autoconf test.
11255         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
11256         according to changes of 2011-06-20.
11257
11258 2011-07-31  Bruno Haible  <bruno@clisp.org>
11259
11260         sys_utsname: Add support for Minix.
11261         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
11262         <sys/utsname.h>.
11263         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11264         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
11265
11266 2011-07-31  Bruno Haible  <bruno@clisp.org>
11267
11268         strings: Add support for Minix.
11269         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
11270         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
11271         * doc/posix-headers/strings.texi: Document the Minix problem.
11272
11273 2011-07-31  Bruno Haible  <bruno@clisp.org>
11274
11275         wctype-h: Add support for Minix.
11276         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
11277         REPLACE_TOWLOWER.
11278         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
11279         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
11280         REPLACE_ISWCNTRL.
11281
11282 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
11283
11284         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
11285         This is a performance improvement for 64-bit hosts: it causes the
11286         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
11287
11288 2011-07-31  Bruno Haible  <bruno@clisp.org>
11289
11290         stdioext: Add support for Minix.
11291         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
11292         * lib/fpurge.c (fpurge): Likewise.
11293         * lib/freadahead.c (freadahead): Likewise.
11294         * lib/freadable.c (freadable): Likewise.
11295         * lib/freading.c (freading): Likewise.
11296         * lib/freadptr.c (freadptr): Likewise.
11297         * lib/freadseek.c (freadptrinc): Likewise.
11298         * lib/fseeko.c (rpl_fseeko): Likewise.
11299         * lib/fseterr.c (fseterr): Likewise.
11300         * lib/fwritable.c (fwritable): Likewise.
11301         * lib/fwriting.c (fwriting): Likewise.
11302         * lib/fflush.c (clear_ungetc_buffer): Update comment.
11303         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
11304
11305 2011-07-31  Bruno Haible  <bruno@clisp.org>
11306
11307         errno: Port to Minix.
11308         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
11309         ECONNABORTED are defined.
11310         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
11311         GNULIB_defined_ECONNABORTED): New macros.
11312         * lib/strerror-override.h (strerror_override): Test also
11313         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11314         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11315         ECONNABORTED.
11316         * doc/posix-headers/errno.texi: Mention the Minix problem.
11317
11318 2011-07-31  Bruno Haible  <bruno@clisp.org>
11319
11320         Work around declaration collisions on Minix.
11321         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11322         defined, set REPLACE_MBSINIT.
11323         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11324         defined, set REPLACE_MBRTOWC.
11325         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11326         set REPLACE_MBRLEN.
11327         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11328         defined, set REPLACE_MBSRTOWCS.
11329         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11330         defined, set REPLACE_WCRTOMB.
11331         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11332         defined, set REPLACE_WCSRTOMBS.
11333
11334 2011-07-31  Bruno Haible  <bruno@clisp.org>
11335
11336         Add support for Minix with ACK compiler.
11337         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11338         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11339         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11340
11341 2011-07-31  Bruno Haible  <bruno@clisp.org>
11342
11343         Documentation about Minix.
11344         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11345         * doc/glibc-headers/*.texi: Likewise.
11346         * doc/posix-functions/*.texi: Likewise.
11347         * doc/glibc-functions/*.texi: Likewise.
11348
11349 2011-07-31  Bruno Haible  <bruno@clisp.org>
11350
11351         snippet/warn-on-use: Fix indentation.
11352         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11353
11354 2011-07-25  Jim Meyering  <meyering@redhat.com>
11355
11356         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11357         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11358         commands.
11359
11360 2011-07-27  Jim Meyering  <meyering@redhat.com>
11361
11362         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11363         * top/maint.mk (gl_extract_significant_defines_): Now that
11364         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11365         gnulib/lib/signal.in.h, and now that we recommend to
11366         define-if-undefined those two symbols in application code,
11367         we must filter them out of the "significant" list.
11368         This avoids a "make syntax-check" failure in coreutils.
11369
11370 2011-07-26  Eric Blake  <eblake@redhat.com>
11371
11372         warnings: add comments about previous patch
11373         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11374         * m4/include_next.m4: Likewise.
11375         * m4/warn-on-use.m4: Likewise.
11376         * m4/warnings.m4: Likewise, and simplify use.
11377         Suggested by Stefano Lattarini.
11378
11379         include-next, warnings: support older autoconf
11380         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11381         AS_VAR_PUSHDEF in a way that works with older autoconf.
11382         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11383         Reported by Daniel P. Berrange.
11384
11385 2011-07-25  Bruno Haible  <bruno@clisp.org>
11386
11387         fseek, ftell: Fix doc.
11388         * doc/posix-functions/fseek.texi: Reword statement about
11389         AC_SYS_LARGEFILE.
11390         * doc/posix-functions/ftell.texi: Likewise.
11391
11392 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11393             Bruno Haible  <bruno@clisp.org>
11394
11395         Add dependencies to the 'largefile' module.
11396         * modules/fopen (Depends-on): Add 'largefile'.
11397         * modules/freopen (Depends-on): Likewise.
11398         * modules/fseeko (Depends-on): Likewise.
11399         * modules/ftello (Depends-on): Likewise.
11400         * modules/glob (Depends-on): Likewise.
11401         * modules/lseek (Depends-on): Likewise.
11402         * modules/lstat (Depends-on): Likewise.
11403         * modules/mkostemp (Depends-on): Likewise.
11404         * modules/mkostemps (Depends-on): Likewise.
11405         * modules/mkstemp (Depends-on): Likewise.
11406         * modules/mkstemps (Depends-on): Likewise.
11407         * modules/open (Depends-on): Likewise.
11408         * modules/openat (Depends-on): Likewise.
11409         * modules/pread (Depends-on): Likewise.
11410         * modules/pwrite (Depends-on): Likewise.
11411         * modules/scandir (Depends-on): Likewise.
11412         * modules/stat (Depends-on): Likewise.
11413         * modules/tmpfile (Depends-on): Likewise.
11414         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11415         since the containing module now depends on the largefile module.
11416         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11417         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11418         off_t is fixed by gnulib.
11419         * doc/posix-functions/freopen.texi: Likewise.
11420         * doc/posix-functions/fseeko.texi: Likewise.
11421         * doc/posix-functions/fstatat.texi: Likewise.
11422         * doc/posix-functions/ftello.texi: Likewise.
11423         * doc/posix-functions/glob.texi: Likewise.
11424         * doc/posix-functions/lseek.texi: Likewise.
11425         * doc/posix-functions/lstat.texi: Likewise.
11426         * doc/posix-functions/mkstemp.texi: Likewise.
11427         * doc/posix-functions/open.texi: Likewise.
11428         * doc/posix-functions/openat.texi: Likewise.
11429         * doc/posix-functions/pread.texi: Likewise.
11430         * doc/posix-functions/pwrite.texi: Likewise.
11431         * doc/posix-functions/scandir.texi: Likewise.
11432         * doc/posix-functions/stat.texi: Likewise.
11433         * doc/posix-functions/tmpfile.texi: Likewise.
11434         * doc/glibc-functions/mkostemp.texi: Likewise.
11435         * doc/glibc-functions/mkostemps.texi: Likewise.
11436         * doc/glibc-functions/mkstemps.texi: Likewise.
11437
11438 2011-07-25  Bruno Haible  <bruno@clisp.org>
11439
11440         fcntl: Move AC_LIBOBJ invocation to module description.
11441         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11442         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11443
11444         fcntl: Remove call-in from fchdir.m4.
11445         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11446         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11447
11448         dup3: Remove potential call-in from fchdir.m4.
11449         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11450         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11451
11452         dup2: Move AC_LIBOBJ invocation to module description.
11453         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11454         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11455         Don't invoke AC_LIBOBJ.
11456         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11457
11458         dup2: Remove call-in from fchdir.m4.
11459         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11460         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11461
11462         fclose: Move AC_LIBOBJ invocation to module description.
11463         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11464         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11465         to 1.
11466         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11467
11468         fclose: Remove call-in from close.m4.
11469         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11470         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11471
11472         close: Move AC_LIBOBJ invocation to module description.
11473         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11474         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11475         1.
11476         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11477
11478         close: Remove call-in from fchdir.m4.
11479         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11480         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11481
11482         open: Move AC_LIBOBJ invocation to module description.
11483         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11484         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11485         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11486
11487         open: Remove call-in from fchdir.m4.
11488         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11489         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11490
11491         fchdir: Start to remove gl_REPLACE_* idiom.
11492         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11493         (gl_FUNC_FCHDIR): Invoke it.
11494
11495 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11496
11497         * lib/ftell.c (ftell): Comment out cast.
11498
11499         close: use gl_REPLACE_FCLOSE only if defined
11500         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11501         is defined.  The close module doesn't depend on the fclose module
11502         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11503         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11504         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11505
11506 2011-07-24  Jim Meyering  <meyering@redhat.com>
11507
11508         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11509         * tests/test-select.h (test_function): Declare as "static".
11510
11511 2011-07-24  Bruno Haible  <bruno@clisp.org>
11512
11513         doc: Mention the effects of AC_SYS_LARGEFILE.
11514         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11515         on this function.
11516         * doc/posix-functions/aio_error.texi: Likewise.
11517         * doc/posix-functions/aio_fsync.texi: Likewise.
11518         * doc/posix-functions/aio_read.texi: Likewise.
11519         * doc/posix-functions/aio_return.texi: Likewise.
11520         * doc/posix-functions/aio_suspend.texi: Likewise.
11521         * doc/posix-functions/aio_write.texi: Likewise.
11522         * doc/posix-functions/fgetpos.texi: Likewise.
11523         * doc/posix-functions/fopen.texi: Likewise.
11524         * doc/posix-functions/freopen.texi: Likewise.
11525         * doc/posix-functions/fsetpos.texi: Likewise.
11526         * doc/posix-functions/fstatvfs.texi: Likewise.
11527         * doc/posix-functions/ftruncate.texi: Likewise.
11528         * doc/posix-functions/ftw.texi: Likewise.
11529         * doc/posix-functions/getrlimit.texi: Likewise.
11530         * doc/posix-functions/glob.texi: Likewise.
11531         * doc/posix-functions/lio_listio.texi: Likewise.
11532         * doc/posix-functions/lockf.texi: Likewise.
11533         * doc/posix-functions/mkstemp.texi: Likewise.
11534         * doc/posix-functions/mmap.texi: Likewise.
11535         * doc/posix-functions/nftw.texi: Likewise.
11536         * doc/posix-functions/openat.texi: Likewise.
11537         * doc/posix-functions/opendir.texi: Likewise.
11538         * doc/posix-functions/posix_fadvise.texi: Likewise.
11539         * doc/posix-functions/posix_fallocate.texi: Likewise.
11540         * doc/posix-functions/pread.texi: Likewise.
11541         * doc/posix-functions/pwrite.texi: Likewise.
11542         * doc/posix-functions/readdir.texi: Likewise.
11543         * doc/posix-functions/readdir_r.texi: Likewise.
11544         * doc/posix-functions/rewinddir.texi: Likewise.
11545         * doc/posix-functions/scandir.texi: Likewise.
11546         * doc/posix-functions/seekdir.texi: Likewise.
11547         * doc/posix-functions/setrlimit.texi: Likewise.
11548         * doc/posix-functions/statvfs.texi: Likewise.
11549         * doc/posix-functions/telldir.texi: Likewise.
11550         * doc/posix-functions/tmpfile.texi: Likewise.
11551         * doc/posix-functions/truncate.texi: Likewise.
11552         * doc/glibc-functions/fallocate.texi: Likewise.
11553         * doc/glibc-functions/fstatfs.texi: Likewise.
11554         * doc/glibc-functions/fts_children.texi: Likewise.
11555         * doc/glibc-functions/fts_read.texi: Likewise.
11556         * doc/glibc-functions/getdirentries.texi: Likewise.
11557         * doc/glibc-functions/mkostemp.texi: Likewise.
11558         * doc/glibc-functions/mkostemps.texi: Likewise.
11559         * doc/glibc-functions/mkstemps.texi: Likewise.
11560         * doc/glibc-functions/preadv.texi: Likewise.
11561         * doc/glibc-functions/pwritev.texi: Likewise.
11562         * doc/glibc-functions/sendfile.texi: Likewise.
11563         * doc/glibc-functions/statfs.texi: Likewise.
11564
11565 2011-07-24  Bruno Haible  <bruno@clisp.org>
11566
11567         doc: Fix typo.
11568         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11569
11570 2011-07-24  Bruno Haible  <bruno@clisp.org>
11571
11572         doc: Mention fsusage.
11573         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11574
11575 2011-07-24  Bruno Haible  <bruno@clisp.org>
11576
11577         doc: Mention new glibc headers and functions.
11578         * doc/glibc-headers/gshadow.texi: New file.
11579         * doc/glibc-functions/endsgent.texi: New file.
11580         * doc/glibc-functions/fgetsgent.texi: New file.
11581         * doc/glibc-functions/fgetsgent_r.texi: New file.
11582         * doc/glibc-functions/getsgent.texi: New file.
11583         * doc/glibc-functions/getsgent_r.texi: New file.
11584         * doc/glibc-functions/getsgnam.texi: New file.
11585         * doc/glibc-functions/getsgnam_r.texi: New file.
11586         * doc/glibc-functions/putsgent.texi: New file.
11587         * doc/glibc-functions/setsgent.texi: New file.
11588         * doc/glibc-functions/sgetsgent.texi: New file.
11589         * doc/glibc-functions/sgetsgent_r.texi: New file.
11590         * doc/glibc-functions/malloc_info.texi: New file.
11591         * doc/glibc-functions/preadv.texi: New file.
11592         * doc/glibc-functions/pwritev.texi: New file.
11593         * doc/glibc-functions/register_printf_modifier.texi: New file.
11594         * doc/glibc-functions/register_printf_specifier.texi: New file.
11595         * doc/glibc-functions/register_printf_type.texi: New file.
11596         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11597         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11598         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11599         * doc/glibc-functions/pthread_getname_np.texi: New file.
11600         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11601         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11602         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11603         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11604         * doc/glibc-functions/pthread_setname_np.texi: New file.
11605         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11606         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11607         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11608         * doc/glibc-functions/qsort_r.texi: New file.
11609         * doc/glibc-functions/quick_exit.texi: New file.
11610         * doc/glibc-functions/syncfs.texi: New file.
11611         * doc/gnulib.texi: Include them.
11612         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11613         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11614         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11615         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11616         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11617         * doc/glibc-functions/execvpe.texi: Likewise.
11618
11619 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11620
11621         ftell: don't include <unistd.h>
11622         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11623         guaranteed to define off_t, and the ftell module depends on the
11624         stdio module.
11625
11626         ftell: do not assume wraparound signed arithmetic
11627         * lib/ftell.c: Include <limits.h>.
11628         (ftell): Don't assume wraparound signed arithmetic.
11629
11630 2011-07-24  Bruno Haible  <bruno@clisp.org>
11631
11632         close: No longer depend on module 'fclose'.
11633         * modules/close (Depends-on): Remove fclose.
11634         * NEWS: Mention the change.
11635         Suggested by Sam Steingold <sds@gnu.org>.
11636
11637 2011-07-24  Bruno Haible  <bruno@clisp.org>
11638
11639         fsusage: Enable large volume support on AIX >= 5.2.
11640         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11641         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11642         instead of STAT_STATVFS.
11643         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11644
11645         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11646         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11647         f_blocks field only on MacOS X.
11648
11649         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11650         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11651         * modules/fsusage (Depends-on): Add largefile.
11652
11653 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11654
11655         * README: Modernize discussion of signed integers.
11656         Assuming overflow wraparound is no longer safe.
11657         Mention ones' complement and signed magnitude.
11658
11659 2011-07-22  Bruno Haible  <bruno@clisp.org>
11660
11661         select tests, pselect tests: Refactor.
11662         * tests/test-select.h: New file, extracted from tests/test-select.c.
11663         (select_fn): New type.
11664         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11665         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11666         test_pipe): Add my_select argument.
11667         (test_function): Renamed from main. Add my_select argument.
11668         * tests/test-select.c: Move most code to tests/test-select.h. Include
11669         test-select.h.
11670         * modules/select-tests (Files): Add tests/test-select.h.
11671         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11672         (my_select, main): New functions.
11673         * modules/pselect-tests (Files): Add tests/test-select.h,
11674         tests/macros.h, tests/signature.h.
11675         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11676         (configure.ac): Check for <sys/wait.h>.
11677
11678 2011-07-22  Bruno Haible  <bruno@clisp.org>
11679
11680         sys_select tests: Check the signature of FD_*.
11681         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11682         signature tests from here...
11683         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11684         here.
11685         * modules/sys_select-tests (Files): Add tests/signature.h.
11686
11687 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11688
11689         largefile: new module, replacing large-inode
11690         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11691         * MODULES.html.sh: Add largefile, remove large-inode.
11692         * modules/largefile, m4/largefile.m4: New files.
11693         * modules/large-inode, m4/large-inode.m4: Remove.
11694
11695         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11696         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11697         implementations that use only 32 bits to count blocks.
11698         On typical hosts with 1024-byte blocks, this fails with file
11699         systems as small as 4 TiB.  Problem reported by Herb Wartens
11700         <http://debbugs.gnu.org/9140> and this should also fix a similar
11701         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11702
11703         large-inode: New module
11704         * MODULES.html.sh: Add it.
11705         * modules/large-inode, m4/large-inode.m4: New files.
11706
11707         extensions: Enable extensions on MacOS X 10.5 and later.
11708         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11709
11710 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11711
11712         file-has-acl: use acl_extended_file_nofollow if available
11713         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11714         (acl_extended_file): New macro.
11715         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11716         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11717
11718 2011-07-21  Bruno Haible  <bruno@clisp.org>
11719
11720         Declare system functions in a way that works with C++.
11721         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11722         declare fdopendir as extern "C".
11723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11724         declare frexpl as extern "C".
11725         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11726         declare gai_strerror as extern "C".
11727         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11728         programs, declare gai_strerror as extern "C".
11729         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11730         declare getlogin_r as extern "C".
11731         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11732         as extern "C".
11733         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11734         declare ldexpl as extern "C".
11735         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11736         as extern "C".
11737         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11738         program, declare getmntinfo as extern "C".
11739         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11740         stpncpy as extern "C".
11741         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11742         program, declare __xpg_strerror_r as extern "C".
11743         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11744         strndup as extern "C".
11745         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11746         declare memset and bzero as extern "C".
11747         Reported by Sam Steingold <sds@gnu.org>.
11748
11749 2011-07-12  Jim Meyering  <meyering@redhat.com>
11750
11751         maint.mk: prohibit inclusion of "verify.h" without use
11752         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11753
11754 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11755
11756         timer-time: A new module to check for timer_settime()
11757         * m4/timer_time.m4: Check for the posix function.
11758         * modules/timer-time: Add the new module.
11759         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11760         Mention it.
11761
11762 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11763             Bruno Haible  <bruno@clisp.org>
11764
11765         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11766         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11767         not defined, assume POSIX threads and look for pthread_sigmask in
11768         $LIBS, without changing $CPPFLAGS.
11769
11770 2011-07-19  Bruno Haible  <bruno@clisp.org>
11771
11772         strstr: Update cross-compilation guess.
11773         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11774         CPUs, guess no, in view of glibc
11775         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11776         Suggested by Eric Blake. Reported by Reuben Thomas.
11777
11778 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11779
11780         getopt-gnu: suppress core dumps from detection code
11781         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11782         to suppress core dumps that may well occur on glibc systems.
11783         * modules/getopt-gnu: Depend on nocrash.
11784
11785 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11786
11787         pthread_sigmask: ensure usleep is declared
11788         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11789         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11790
11791 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11792
11793         doc: Document NonStop portability issues.
11794         * doc/posix-functions/sigaction.texi (sigaction):
11795         * doc/posix-headers/signal.texi (signal.h):
11796         Document NonStop.  See Joachim Schmitz in
11797         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11798
11799 2011-07-15  Bruno Haible  <bruno@clisp.org>
11800
11801         ffsl, ffsll: Avoid unportable behaviour.
11802         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11803
11804 2011-07-15  Bruno Haible  <bruno@clisp.org>
11805
11806         ffs: More tests.
11807         * tests/test-ffs.c (NBITS): New macro.
11808         (main): Add more tests.
11809         * tests/test-ffsl.c (NBITS): New macro.
11810         (main): Add more tests.
11811         * tests/test-ffsll.c (NBITS): New macro.
11812         (main): Add more tests.
11813
11814 2011-07-15  Eric Blake  <eblake@redhat.com>
11815
11816         ffsl, ffsll: new modules
11817         * modules/ffsl: New file.
11818         * modules/ffsll: Likewise.
11819         * m4/ffsl.m4: Likewise.
11820         * m4/ffsll.m4: Likewise.
11821         * lib/ffsl.c: Likewise.
11822         * lib/ffsl.h: Likewise.
11823         * lib/ffsll.c: Likewise.
11824         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11825         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11826         * modules/string (Makefile.am): Substitute witnesses.
11827         * lib/strings.in.h (ffsl, ffsll): Declare.
11828         * modules/ffsl-tests: New test file.
11829         * modules/ffsll-tests: Likewise.
11830         * tests/test-ffsl.c: Likewise.
11831         * tests/test-ffsll.c: Likewise.
11832         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11833         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11834         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11835
11836         ffs: fix m4 prerequisite
11837         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11838
11839         ffs: avoid undefined behavior
11840         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11841         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11842         Reported by Bruno Haible.
11843
11844 2011-07-12  Bruno Haible  <bruno@clisp.org>
11845
11846         pthread_sigmask: Rely on module 'threadlib'.
11847         * modules/pthread_sigmask (Depends-on): Add threadlib.
11848         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11849         is defined.
11850
11851 2011-07-12  Bruno Haible  <bruno@clisp.org>
11852
11853         regex: Depend on module 'strcase'.
11854         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11855
11856 2011-07-12  Jim Meyering  <meyering@redhat.com>
11857
11858         warn-on-use: fix typo in file name
11859         * modules/snippet/warn-on-use (Files): Correct file name:
11860         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11861
11862 2011-07-12  Bruno Haible  <bruno@clisp.org>
11863
11864         strings: Document module.
11865         * doc/posix-headers/strings.texi: Mention module 'strings'.
11866
11867 2011-07-12  Bruno Haible  <bruno@clisp.org>
11868
11869         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11870         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11871         (Files, Makefile.am): Update.
11872         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11873         * modules/stdlib (Depends-on): Update.
11874
11875 2011-07-12  Bruno Haible  <bruno@clisp.org>
11876
11877         * NEWS: Mention the changes.
11878
11879         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11880         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11881         (Files, Makefile.am): Update.
11882         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11883         * modules/arpa_inet (Depends-on): Update.
11884         * modules/ctype (Depends-on): Update.
11885         * modules/dirent (Depends-on): Update.
11886         * modules/fcntl-h (Depends-on): Update.
11887         * modules/glob (Depends-on): Update.
11888         * modules/iconv-h (Depends-on): Update.
11889         * modules/inttypes-incomplete (Depends-on): Update.
11890         * modules/langinfo (Depends-on): Update.
11891         * modules/locale (Depends-on): Update.
11892         * modules/math (Depends-on): Update.
11893         * modules/netdb (Depends-on): Update.
11894         * modules/poll-h (Depends-on): Update.
11895         * modules/pty (Depends-on): Update.
11896         * modules/search (Depends-on): Update.
11897         * modules/signal (Depends-on): Update.
11898         * modules/spawn (Depends-on): Update.
11899         * modules/stdio (Depends-on): Update.
11900         * modules/stdlib (Depends-on): Update.
11901         * modules/string (Depends-on): Update.
11902         * modules/strings (Depends-on): Update.
11903         * modules/sys_file (Depends-on): Update.
11904         * modules/sys_ioctl (Depends-on): Update.
11905         * modules/sys_select (Depends-on): Update.
11906         * modules/sys_socket (Depends-on): Update.
11907         * modules/sys_stat (Depends-on): Update.
11908         * modules/sys_time (Depends-on): Update.
11909         * modules/sys_times (Depends-on): Update.
11910         * modules/sys_utsname (Depends-on): Update.
11911         * modules/sys_wait (Depends-on): Update.
11912         * modules/termios (Depends-on): Update.
11913         * modules/time (Depends-on): Update.
11914         * modules/unistd (Depends-on): Update.
11915         * modules/wchar (Depends-on): Update.
11916         * modules/wctype-h (Depends-on): Update.
11917         * MODULES.html.sh (Support for building libraries and executables):
11918         Update.
11919
11920         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11921         * modules/snippet/unused-parameter: Renamed from
11922         modules/unused-parameter.
11923         (Files, Makefile.am): Update.
11924         * build-aux/snippet/unused-parameter.h: Renamed from
11925         build-aux/unused-parameter.h.
11926         * modules/selinux-h (Depends-on): Update.
11927         * modules/unistr/base (Depends-on): Update.
11928         * MODULES.html.sh (Core language properties): Update.
11929
11930         Rename module 'link-warning' to 'snippet/link-warning'.
11931         * modules/snippet/link-warning: Renamed from modules/link-warning.
11932         (Files, Makefile.am): Update.
11933         * build-aux/snippet/link-warning.h: Renamed from
11934         build-aux/link-warning.h.
11935         * MODULES.html.sh (Support for building libraries and executables):
11936         Update.
11937
11938         Rename module 'c++defs' to 'snippet/c++defs'.
11939         * modules/snippet/c++defs: Renamed from modules/c++defs.
11940         (Files, Makefile.am): Update.
11941         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11942         * modules/arpa_inet (Depends-on): Update.
11943         * modules/ctype (Depends-on): Update.
11944         * modules/dirent (Depends-on): Update.
11945         * modules/fcntl-h (Depends-on): Update.
11946         * modules/glob (Depends-on): Update.
11947         * modules/iconv-h (Depends-on): Update.
11948         * modules/langinfo (Depends-on): Update.
11949         * modules/locale (Depends-on): Update.
11950         * modules/math (Depends-on): Update.
11951         * modules/netdb (Depends-on): Update.
11952         * modules/poll-h (Depends-on): Update.
11953         * modules/pty (Depends-on): Update.
11954         * modules/search (Depends-on): Update.
11955         * modules/signal (Depends-on): Update.
11956         * modules/spawn (Depends-on): Update.
11957         * modules/stdio (Depends-on): Update.
11958         * modules/stdlib (Depends-on): Update.
11959         * modules/string (Depends-on): Update.
11960         * modules/strings (Depends-on): Update.
11961         * modules/sys_ioctl (Depends-on): Update.
11962         * modules/sys_select (Depends-on): Update.
11963         * modules/sys_socket (Depends-on): Update.
11964         * modules/sys_stat (Depends-on): Update.
11965         * modules/sys_time (Depends-on): Update.
11966         * modules/sys_wait (Depends-on): Update.
11967         * modules/termios (Depends-on): Update.
11968         * modules/time (Depends-on): Update.
11969         * modules/unistd (Depends-on): Update.
11970         * modules/wchar (Depends-on): Update.
11971         * modules/wctype-h (Depends-on): Update.
11972
11973         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11974         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11975         (Files, Makefile.am): Update.
11976         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11977         * modules/argv-iter (Depends-on): Update.
11978         * modules/arpa_inet (Depends-on): Update.
11979         * modules/dirent (Depends-on): Update.
11980         * modules/fcntl-h (Depends-on): Update.
11981         * modules/fnmatch (Depends-on): Update.
11982         * modules/getopt-posix (Depends-on): Update.
11983         * modules/glob (Depends-on): Update.
11984         * modules/iconv-h (Depends-on): Update.
11985         * modules/inttypes-incomplete (Depends-on): Update.
11986         * modules/locale (Depends-on): Update.
11987         * modules/math (Depends-on): Update.
11988         * modules/netdb (Depends-on): Update.
11989         * modules/search (Depends-on): Update.
11990         * modules/signal (Depends-on): Update.
11991         * modules/spawn (Depends-on): Update.
11992         * modules/stdio (Depends-on): Update.
11993         * modules/stdlib (Depends-on): Update.
11994         * modules/string (Depends-on): Update.
11995         * modules/strings (Depends-on): Update.
11996         * modules/sys_socket (Depends-on): Update.
11997         * modules/sys_stat (Depends-on): Update.
11998         * modules/sys_time (Depends-on): Update.
11999         * modules/sys_times (Depends-on): Update.
12000         * modules/sys_utsname (Depends-on): Update.
12001         * modules/time (Depends-on): Update.
12002         * modules/unistd (Depends-on): Update.
12003         * modules/wchar (Depends-on): Update.
12004         * MODULES.html.sh (Support for building libraries and executables):
12005         Update.
12006
12007 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12008
12009         Improvements on _Noreturn and related modules.
12010
12011         modules/_Exit-tests: test _Noreturn too
12012         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
12013         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
12014         (main): Use them.
12015
12016         stdnoreturn, stdnoreturn-tests: remove modules
12017         They're not needed here and a bit premature for use elsewhere.  See
12018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
12019         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
12020         * tests/test-stdnoreturn.c: Remove files.
12021         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
12022         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
12023         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
12024         and using noreturn.
12025         * modules/openat, modules/sigpipe-die, modules/xalloc:
12026         * modules/xmemdup0, modules/xstrtol:
12027         Remove dependency on stdnoreturn.
12028
12029         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
12030         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
12031         Reparenthesize to avoid GCC warning.
12032         Support Microsoft's syntax.
12033         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
12034
12035         _Noreturn-tests: remove module
12036         * modules/_Noreturn-tests: Remove.
12037         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
12038         * tests/test-_Noreturn.c: Remove.
12039         * tests/test-stdnoreturn.c: Merge from the old
12040         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
12041
12042 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
12043
12044         _Noreturn, stdnoreturn, and related modules.
12045
12046         * top/maint.mk: Adjust to new noreturn support.
12047         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
12048         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
12049
12050         xalloc: use stdnoreturn.h
12051         * lib/xalloc.h: Include <stdnoreturn.h>.
12052         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12053         * modules/xalloc (Depends-on): Add stdnoreturn.
12054
12055         xstrtol: use stdnoreturn.h
12056         * lib/xstrtol.h: Include <stdnoreturn.h>.
12057         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12058         * modules/xstrtol (Depends-on): Add stdnoreturn.
12059
12060         xmemdup0: use stdnoreturn.h
12061         * lib/xmemdup0.h: Include <stdnoreturn.h>.
12062         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12063         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
12064
12065         sigpipe-die: use stdnoreturn.h
12066         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
12067         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12068         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
12069
12070         openat: use stdnoreturn.h
12071         * lib/openat.h: Include <stdnoreturn.h>.
12072         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
12073         * modules/openat (Depends-on): Add stdnoreturn.
12074
12075         * lib/openat-die.c (openat_save_fail): Modernize comment.
12076
12077         * lib/xalloc-die.c (xalloc_die): Modernize comment.
12078
12079         * lib/glthread/thread.h: Modernize comment.
12080
12081         obstack: use _Noreturn
12082         * lib/obstack.c (__attribute__): Remove macro.
12083         (print_and_abort): Use _Noreturn.
12084
12085         c-stack: use _Noreturn
12086         * lib/c-stack.c (die, overflow_handler, segv_handler):
12087         Use _Noreturn rather than __attribute__((noreturn)).
12088
12089         argmatch-tests, exclude_tests: use _Noreturn
12090         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
12091         Remove.
12092         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
12093
12094         stdlib: use _Noreturn
12095         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
12096         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
12097         * modules/stdlib (Depends-on): Add _Noreturn.
12098         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
12099
12100         stdnoreturn-tests: new module
12101         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
12102
12103         stdnoreturn: new module
12104         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
12105         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
12106
12107         _Noreturn-tests: new module
12108         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
12109
12110         _Noreturn: new module
12111         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
12112         New section, mentioning it.
12113         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
12114
12115         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
12116
12117 2011-07-11  Eric Blake  <eblake@redhat.com>
12118
12119         ffs: new module
12120         * modules/ffs: New file.
12121         * m4/ffs.m4: Likewise.
12122         * lib/ffs.c: Likewise.
12123         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
12124         * modules/strings (Makefile.am): Substitute witness.
12125         (Depends-on): Add c++defs.
12126         * lib/strings.in.h (ffs): Declare.
12127         * modules/ffs-tests: New test file.
12128         * tests/test-ffs.c: Test new module.
12129         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12130         * doc/posix-functions/ffs.texi (ffs): Likewise.
12131
12132         regex: avoid compiler warning
12133         * lib/regex.c (includes): Include <strings.h>, for use of
12134         strcasecmp in regcomp.c.
12135         Reported by Joachim Schmitz.
12136
12137 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
12138
12139         stdint: respect system's intmax_t if INTMAX_MAX
12140         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
12141         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
12142         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
12143         long but int64_t is long long, and where we will clash with the
12144         system intmax_t if we override it.  See
12145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
12146         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
12147         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
12148         similarly for UINTMAX_C.
12149
12150 2011-07-08  Bruno Haible  <bruno@clisp.org>
12151
12152         pthread_sigmask tests: Avoid a compiler warning.
12153         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
12154         non-zero.
12155
12156         sigprocmask tests: A better way to avoid a compiler warning.
12157         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
12158         (main): Complain if system() returns non-zero.
12159         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
12160
12161 2011-07-08  Bruno Haible  <bruno@clisp.org>
12162
12163         pthread_sigmask: Work around IRIX bug.
12164         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
12165         bug.
12166         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
12167         there may be unblocked pending signals.
12168         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
12169
12170 2011-07-08  Bruno Haible  <bruno@clisp.org>
12171
12172         pthread_sigmask: Work around Cygwin bug.
12173         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
12174         bug.
12175         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
12176         the system's pthread_sigmask function.
12177         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
12178
12179 2011-07-08  Bruno Haible  <bruno@clisp.org>
12180
12181         pthread_sigmask: Work around bug in single-threaded implementation.
12182         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
12183         FreeBSD, HP-UX, Solaris bug.
12184         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
12185         * lib/pthread_sigmask.c: Include <stddef.h>.
12186         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
12187         the system's pthread_sigmask function.
12188         * modules/pthread_sigmask (configure.ac): Invoke
12189         gl_PREREQ_PTHREAD_SIGMASK.
12190         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
12191         HP-UX, Solaris.
12192
12193 2011-07-08  Eric Blake  <eblake@redhat.com>
12194
12195         test-sigprocmask: avoid compiler warning
12196         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
12197         * tests/test-sigprocmask.c (main): Use it to silence warning.
12198         Reported by Jim Meyering.
12199
12200         test-snprintf: avoid compiler warning
12201         * tests/test-snprintf.c (main): Avoid shadowed declaration.
12202         * tests/test-vsnprintf.c (main): Likewise.
12203         Reported by Jim Meyering.
12204
12205 2011-07-08  Bruno Haible  <bruno@clisp.org>
12206
12207         Tests for module 'pthread_sigmask'.
12208         * modules/pthread_sigmask-tests: New file.
12209         * tests/test-pthread_sigmask1.c: New file, based on
12210         tests/test-sigprocmask.c.
12211         * tests/test-pthread_sigmask2.c: New file.
12212
12213 2011-07-08  Jim Meyering  <meyering@redhat.com>
12214
12215         test-getopt.h: avoid warning about an unused variable
12216         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
12217
12218 2011-07-07  Jim Meyering  <meyering@redhat.com>
12219
12220         maint: reduce list of files exempt from sc_prohibit_leading_TABs
12221         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
12222         now that it no longer contains leading TABs.
12223         Remove unused "url=FIXME" statement.
12224
12225 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12226
12227         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
12228         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12229         When gl_THREADLIB is not in use, assume that the POSIX sematics
12230         are desired.  This is better for Emacs, which uses POSIX semantics
12231         on GNUish and/or POSIXish platforms, and does not use threads at
12232         all otherwise.
12233
12234         pthread_sigmask: fix typo when testing for libraries
12235         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
12236         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
12237
12238 2011-07-08  Eric Blake  <eblake@redhat.com>
12239
12240         fts: introduce FTS_NOATIME
12241         * lib/fts_.h (FTS_NOATIME): New bit flag.
12242         (FTS_OPTIONMASK): Adjust.
12243         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
12244         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
12245
12246 2011-07-08  Bruno Haible  <bruno@clisp.org>
12247
12248         Tests for module 'thread'.
12249         * modules/thread-tests: New file.
12250         * tests/test-thread_self.c: New file.
12251         * tests/test-thread_create.cc: New file.
12252
12253 2011-07-08  Bruno Haible  <bruno@clisp.org>
12254
12255         thread: Avoid gcc warnings when using gl_thread_self().
12256         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
12257         'void *'.
12258         (gl_thread_self_pointer): Update.
12259
12260 2011-07-07  Bruno Haible  <bruno@clisp.org>
12261
12262         signal-c++-tests: Check declaration of pthread_sigmask.
12263         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
12264         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
12265         $(LIB_PTHREAD_SIGMASK).
12266
12267 2011-07-07  Bruno Haible  <bruno@clisp.org>
12268
12269         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
12270         * lib/signal.in.h (pthread_sigmask): Override if
12271         REPLACE_PTHREAD_SIGMASK is 1.
12272         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12273         REPLACE_PTHREAD_SIGMASK.
12274         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
12275         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
12276         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
12277         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12278         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
12279
12280 2011-07-07  Bruno Haible  <bruno@clisp.org>
12281
12282         pthread_sigmask: Ensure declaration in <signal.h>.
12283         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
12284         include <pthread.h>.
12285         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
12286         problem.
12287
12288 2011-07-07  Bruno Haible  <bruno@clisp.org>
12289
12290         pthread_sigmask: Document the module.
12291         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
12292
12293 2011-07-07  Bruno Haible  <bruno@clisp.org>
12294
12295         pthread_sigmask: Follow gnulib conventions.
12296         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
12297         gl_PTHREAD_SIGMASK.
12298         * modules/pthread_sigmask (configure.ac): Update.
12299
12300 2011-07-07  Bruno Haible  <bruno@clisp.org>
12301
12302         pthread_sigmask: Make declaration C++ safe.
12303         * lib/signal.in.h: In two special conditions, just do an #include_next.
12304         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12305         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
12306         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12307         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
12308         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
12309         not REPLACE_PTHREAD_MASK.
12310         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
12311         not REPLACE_PTHREAD_MASK.
12312         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12313
12314 2011-07-07  Bruno Haible  <bruno@clisp.org>
12315
12316         pthread_sigmask: Fix return value.
12317         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12318         * lib/pthread_sigmask.c: New file.
12319         * modules/pthread_sigmask (Files): Add it.
12320         (configure.ac): Invoke AC_LIBOBJ.
12321
12322 2011-07-07  Eric Blake  <eblake@redhat.com>
12323
12324         getopt: more portable argv creation
12325         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12326         const, use char arrays rather than strings.
12327         Suggested by Paul Eggert.
12328
12329 2011-07-07  Bruno Haible  <bruno@clisp.org>
12330
12331         Tests for module 'sigprocmask'.
12332         * modules/sigprocmask-tests: New file.
12333         * tests/test-sigprocmask.c: New file.
12334
12335 2011-07-07  Bruno Haible  <bruno@clisp.org>
12336
12337         float tests: Tweak.
12338         * tests/test-float.c (main): Tweak skip message.
12339
12340 2011-07-07  Eric Blake  <eblake@redhat.com>
12341
12342         getopt: avoid compiler warning during configure
12343         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12344         assigning string literals to non-const pointer.
12345
12346         getopt-gnu: avoid crash in glibc getopt
12347         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12348         * tests/test-getopt.h (test_getopt): Enhance test.
12349         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12350         * doc/posix-functions/getopt.texi (getopt): Document it.
12351         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12352         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12353         Likewise.
12354
12355 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12356
12357         getopt: handle W; without long options in getopt [BZ #12922]
12358         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12359         but no long options are defined, just return 'W'.
12360
12361 2011-07-07  Bruno Haible  <bruno@clisp.org>
12362
12363         Avoid literal tabs.
12364         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12365         variable containing a tab instead of a literal tab.
12366         Reported by Jim Meyering.
12367
12368 2011-07-07  Bruno Haible  <bruno@clisp.org>
12369
12370         Comments.
12371         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12372
12373 2011-07-06  Bruno Haible  <bruno@clisp.org>
12374
12375         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12376         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12377         <winsock2.h>.
12378         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12379         lib/sys_socket.in.h.
12380         (close, gethostname): Hide declarations from <winsock2.h>.
12381         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12382         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12383         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12384         (select): Don't override if gnulib's <sys/select.h> was already
12385         included.
12386         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12387         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12388         setsockopt, shutdown, select): Tweak indentation.
12389
12390 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12391
12392         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12393         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12394         in an application that does not use the sys_select module.
12395
12396 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12397
12398         poll: do not return 0 on timeout=-1
12399         * lib/poll.c: Loop with yield if no events occured
12400
12401 2011-07-06  Eric Blake  <eblake@redhat.com>
12402
12403         pthread_sigmask: always replace when not using pthread
12404         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12405         replacement when using some threading other than pthread.  Fix
12406         logic bug.
12407
12408 2011-07-06  Bruno Haible  <bruno@clisp.org>
12409
12410         Comments.
12411         * m4/printf.m4: Update comments about mingw.
12412
12413 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12414
12415         sys_select: define sigset_t more portably
12416         * lib/sys_select.in.h: Always include <sys/types.h>, since
12417         we now need sigset_t and mingw defines it there.
12418         Include <signal.h> before split inclusion guard, to avoid
12419         mishaps on Solaris, whose <signal.h> eventually includes us.
12420         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12421         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12422         which come from ...
12423         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12424         gl_CHECK_TYPE_SIGSET_T.
12425         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12426         does the real work.
12427         * modules/sys_select (Depends-on): Add 'signal'.
12428
12429         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12430         Suggested by Bruno Haible.
12431
12432         pselect: Use pthread_sigmask, not sigprocmask.
12433         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12434         multithreaded apps better than sigprocmask does.
12435         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12436         sigprocmask directly.
12437
12438 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12439
12440         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12441         Don't #undef,  since we don't need any underlying pselect.
12442         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12443         (Depends-on): Add select.
12444         (Link): Add $(LIBSOCKET).
12445         These changes suggested by Bruno Haible.
12446
12447         pselect: document better
12448         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12449         * doc/posix-functions/pselect.texi (pselect): Document new module.
12450
12451         pthread_sigmask: new module
12452         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12453         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12454         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12455         This is done only as a macro; I don't know how well that'll
12456         work for C++.  Move <sys/types.h> include before the include_next,
12457         to avoid mishap on Solaris.
12458         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12459         * modules/signal (Makefile.am): Substitute the check's results.
12460         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12461
12462         test-pselect: new module
12463         * modules/pselect-tests, tests/test-pselect.c: New files.
12464         * tests/test-select.c, tests/test-sys_select-c++.cc:
12465         If TEST_PSELECT is defined, test pselect instead of testing select.
12466
12467         * tests/test-sys_select.c (sigset_t): Test for it, too.
12468         Suggested by Bruno Haible.
12469
12470 2011-07-05  Eric Blake  <eblake@redhat.com>
12471
12472         snprintf: guarantee %1$d, for libintl
12473         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12474         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12475         * doc/posix-functions/snprintf.texi (snprintf): Update.
12476         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12477         * tests/test-snprintf.c (main): Enhance test.
12478         * tests/test-vsnprintf.c (main): Likewise.
12479
12480 2011-07-05  Jim Meyering  <meyering@redhat.com>
12481
12482         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12483         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12484         per Bruno's request, to accommodate this idiom (no space after "#")
12485         even when the function is inside an #if block:
12486         char *
12487         gets (char *s)
12488         #undef gets
12489         {
12490           ...
12491         }
12492
12493 2011-07-04  Jim Meyering  <meyering@redhat.com>
12494
12495         maint: indent with spaces, not TABs, and add a rule to check this
12496         * tests/test-userspec.c: Indent with spaces, not TABs.
12497         * tests/test-argp.c: Likewise.
12498         * tests/test-c-stack2.sh: Likewise.
12499         * tests/test-parse-duration.sh: Likewise
12500         * m4/strtod.m4: Likewise.
12501         * m4/alloca.m4: Likewise.
12502         * m4/pselect.m4: Likewise.
12503         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12504
12505 2011-07-03  Jim Meyering  <meyering@redhat.com>
12506
12507         maint.mk: correct omissions in prohibit_argmatch_without_use check
12508         This rule would mistakenly report that argmatch.h is included without
12509         use even when both the argmatch and invalid_arg macro were used.
12510         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12511         of argmatch and invalid_arg.
12512
12513 2011-07-03  Bruno Haible  <bruno@clisp.org>
12514
12515         Comments about EINTR.
12516         * lib/safe-read.h: Explain the purpose of this module.
12517         * lib/safe-write.h: Likewise.
12518         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12519         module.
12520         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12521         module.
12522         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12523
12524 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12525
12526         xnanosleep: Rewrite to use new dtotimespec module.
12527         It has the conversion code that used to be in xnanosleep.
12528         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12529         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12530         (TIME_T_MAX): Remove.
12531         (xnanosleep): Rewrite in terms of dtotimespec.
12532         * modules/xnanosleep (Depends-on): Add dtotimespec.
12533         Remove intprops, stdbool.
12534
12535         timespec-add, timespec-sub: new modules
12536         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12537         * lib/timespec-add.c, lib/timespec-sub.c:
12538         * modules/timespec-add, modules/timespec-sub: New files.
12539
12540         dtotimespec: new module
12541         * lib/timespec.h (dtotimespec): New decl.
12542         * lib/dtotimespec.c, modules/dtotimespec: New files.
12543
12544         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12545
12546         pselect: new module
12547         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12548         (pselect): New decls.
12549         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12550         since the standard pselect decl uses 'restrict'.
12551         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12552         HAVE_PSELECT, REPLACE_PSELECT.
12553         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12554         HAVE_PSELECT, REPLACE_PSELECT.
12555         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12556
12557         sys_select: don't depend on sys_socket
12558         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12560         This fix works on GNU and GNU-like platforms, but has not been tested
12561         on native Windows.
12562         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12563         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12564         gl_HEADER_SYS_SOCKET.
12565         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12566         gl_PREREQ_SYS_H_WINSOCK2.
12567
12568 2011-06-29  Eric Blake  <eblake@redhat.com>
12569
12570         pipe2: fix C89 compile problem
12571         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12572         Reported by Bruno Haible.
12573
12574         pipe, pipe2: don't corrupt fd on error
12575         * lib/pipe.c (pipe): Leave fd unchanged on error.
12576         * lib/pipe2.c (pipe2): Likewise.
12577         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12578         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12579
12580 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12581
12582         mmap-anon: do not use regular expressions inadvertently
12583         * m4/mmap-anon.m4: Remove trailing period from strings sought
12584         in the output.
12585
12586 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12587
12588         nanosleep: fix integer overflow problem
12589         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12590         arithmetic wraps around on overflow.
12591
12592         nanosleep: simplify carrying
12593         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12594         first call to the underyling nanosleep, not for the last one.
12595         This doesn't fix any bugs, but it simplifies the computation of
12596         the remaining delay.  Found while auditing integer overflow issues.
12597
12598         dup2: remove test for existence of fcntl
12599         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12600         "#if HAVE_FCNTL", in the configure-time test program.
12601         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12602         and therefore speeds up "configure" a bit.  Found while
12603         adding the dup2 module to Emacs.
12604
12605 2011-06-24  Eric Blake  <eblake@redhat.com>
12606
12607         maint.mk: enhance useless header checks
12608         * top/maint.mk (_sc_header_without_use): Check both include
12609         styles.
12610         (sc_prohibit_assert_without_use)
12611         (sc_prohibit_close_stream_without_use)
12612         (sc_prohibit_getopt_without_use)
12613         (sc_prohibit_quotearg_without_use)
12614         (sc_prohibit_quote_without_use)
12615         (sc_prohibit_long_options_without_use)
12616         (sc_prohibit_inttostr_without_use)
12617         (sc_prohibit_ignore_value_without_use)
12618         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12619         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12620         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12621         (sc_prohibit_hash_pjw_without_use)
12622         (sc_prohibit_safe_read_without_use)
12623         (sc_prohibit_argmatch_without_use)
12624         (sc_prohibit_canonicalize_without_use)
12625         (sc_prohibit_root_dev_ino_without_use)
12626         (sc_prohibit_openat_without_use)
12627         (sc_prohibit_c_ctype_without_use)
12628         (sc_prohibit_signal_without_use)
12629         (sc_prohibit_stdio--_without_use)
12630         (sc_prohibit_stdio-safer_without_use)
12631         (sc_prohibit_strings_without_use)
12632         (sc_prohibit_intprops_without_use)
12633         (sc_prohibit_stddef_without_use)
12634         (sc_prohibit_xfreopen_without_use): Update clients.
12635
12636 2011-06-24  Jim Meyering  <meyering@redhat.com>
12637
12638         syntax-check: keep one maint.mk rule in sync with its header
12639         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12640         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12641         I prefer to avoid temporary files here, so use <(...), but that
12642         is not supported by /bin/sh, so...
12643         (SHELL): Define to /bin/bash.
12644
12645 2011-06-24  Eric Blake  <eblake@redhat.com>
12646
12647         maint.mk: update sc_prohibit_intprops_without_use
12648         * top/maint.mk (_intprops_names): Match recent changes.
12649
12650 2011-06-24  Bruno Haible  <bruno@clisp.org>
12651
12652         strerror-override: No-op tweak.
12653         * lib/strerror-override.h (strerror_override): Reorder conditions,
12654         for consistency with lib/strerror-override.c.
12655
12656 2011-06-23  Eric Blake  <eblake@redhat.com>
12657
12658         maint.mk: test further PATH_MAX issues
12659         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12660         (sc_prohibit_path_max_allocation): ...and also test alloca.
12661         Suggested by Jim Meyering.
12662
12663 2011-06-22  Eric Blake  <eblake@redhat.com>
12664
12665         maint.mk: add syntax-check to avoid char[PATH_MAX]
12666         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12667
12668         stat: be robust to PATH_MAX definition
12669         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12670         * modules/stat (Depends-on): Add verify.
12671
12672         link: work around IRIX bug
12673         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12674         * lib/link.c (rpl_link): Work around it.
12675         * tests/test-link.h (test_link): Enhance test.
12676         * doc/posix-functions/link.texi (link): Document the bug.
12677
12678         getopt: silence clang warning
12679         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12680         dereference.
12681         Reported by Gustavo Martin Domato.
12682
12683 2011-06-22  Jim Meyering  <meyering@redhat.com>
12684
12685         bootstrap: do not insert a blank line into each .gitignore file
12686         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12687
12688 2011-06-21  Eric Blake  <eblake@redhat.com>
12689
12690         perror: test for output mismatch
12691         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12692         perror on IRIX.
12693
12694         strerror_r: fix OpenBSD behavior on out-of-range
12695         * lib/strerror_r.c (strerror_r): Always use maximal string.
12696         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12697
12698         strerror_r: fix OpenBSD behavior on 0
12699         * lib/strerror-override.c (strerror_override): Also override 0
12700         when needed.
12701         * lib/strerror-override.h (strerror_override): Likewise.
12702         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12703         earlier.
12704         * lib/strerror_r.c (strerror_r): Likewise.
12705         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12706         behavior...
12707         (gl_FUNC_STRERROR_0): ...into new macro.
12708         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12709         is overridden.
12710         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12711         * modules/strerror-override (Files): Add strerror.m4.
12712         (configure.ac): Also provide override for 0 when needed.
12713         * doc/posix-functions/strerror.texi (strerror): Document this.
12714         * doc/posix-functions/perror.texi (perror): Likewise.
12715
12716         perror: adjust array size
12717         * modules/perror (Depends-on): Add strerror-override.
12718         * lib/perror.c (perror): Use it to avoid magic number.
12719
12720         strerror-override: reduce size
12721         * lib/strerror-override.c (strerror_override): Use fewer lines.
12722
12723 2011-06-20  Bruno Haible  <bruno@clisp.org>
12724
12725         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12726         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12727
12728 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12729
12730         alloca: port to compilers that can optimize like GCC 4.6.0
12731         * lib/alloca.c (find_stack_direction): New signature, taken from
12732         Autoconf git.  This works with GCC 4.6.0.  This code should never
12733         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12734         be used with other compilers that optimize as well as GCC 4.6.0 does.
12735         (alloca): Adjust to new signature.
12736         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12737         New macro, which patches Autoconf in a similar way.
12738
12739         c-stack: stop worrying about stack direction
12740         * lib/c-stack.c (find_stack_direction): Remove.
12741         (segv_handler): Don't worry about stack direction growth, as it's
12742         too much of a pain to configure this correctly, given how compilers
12743         are optimizing-away our stack-growth detection code.  Instead, assume
12744         that any access to just before or just after the stack is OK.
12745         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12746         Don't require AC_FUNC_ALLOCA; no longer needed.
12747
12748 2011-06-20  Eric Blake  <eblake@redhat.com>
12749
12750         test-stat: don't allocate PATH_MAX bytes
12751         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12752         PATH_MAX-sized buffer.
12753         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12754         * modules/stat-tests (Depends-on): Likewise.
12755         * tests/test-fstatat.c (includes): Drop pathmax.h.
12756         * tests/test-stat.c (includes): Likewise.
12757         Reported by Bruno Haible.
12758
12759 2011-06-20  Bruno Haible  <bruno@clisp.org>
12760
12761         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12762         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12763         * lib/float.c: New file.
12764         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12765         REPLACE_FLOAT_LDBL.
12766         * modules/float (Files): Add lib/float.c.
12767         (configure.ac): Invoke AC_LIBOBJ.
12768         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12769
12770 2011-06-20  Bruno Haible  <bruno@clisp.org>
12771
12772         Tests for module 'float'.
12773         * modules/float-tests: New file.
12774         * tests/test-float.c: New file.
12775
12776 2011-06-19  Bruno Haible  <bruno@clisp.org>
12777
12778         isinf: Coding style.
12779         * lib/isinf.c: Use GNU coding style.
12780
12781 2011-06-19  Bruno Haible  <bruno@clisp.org>
12782
12783         linkat test: Avoid test failure on AIX 7.1.
12784         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12785         * tests/test-link.h (test_link): Likewise.
12786
12787 2011-06-19  Bruno Haible  <bruno@clisp.org>
12788
12789         pread test: Avoid test failure on OpenBSD 4.9.
12790         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12791
12792 2011-06-19  Bruno Haible  <bruno@clisp.org>
12793
12794         sprintf-posix: Fix test failure on AIX 7.1.
12795         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12796         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12797         on AIX.
12798         * doc/posix-functions/fprintf.texi: Likewise.
12799         * doc/posix-functions/printf.texi: Likewise.
12800         * doc/posix-functions/snprintf.texi: Likewise.
12801         * doc/posix-functions/sprintf.texi: Likewise.
12802         * doc/posix-functions/vdprintf.texi: Likewise.
12803         * doc/posix-functions/vfprintf.texi: Likewise.
12804         * doc/posix-functions/vprintf.texi: Likewise.
12805         * doc/posix-functions/vsnprintf.texi: Likewise.
12806         * doc/posix-functions/vsprintf.texi: Likewise.
12807
12808 2011-06-19  Bruno Haible  <bruno@clisp.org>
12809
12810         roundl-ieee: Fix test failure on AIX 7.1.
12811         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12812         * doc/posix-functions/roundl.texi: Mention problem with negative
12813         arguments.
12814
12815 2011-06-19  Bruno Haible  <bruno@clisp.org>
12816
12817         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12818         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12819         * doc/posix-functions/round.texi: Mention problem with negative
12820         arguments.
12821         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12822
12823 2011-06-19  Bruno Haible  <bruno@clisp.org>
12824
12825         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12826         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12827         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12828         * doc/posix-functions/roundf.texi: Mention problem with negative
12829         arguments.
12830         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12831
12832 2011-06-19  Bruno Haible  <bruno@clisp.org>
12833
12834         ceilf-ieee: Work around bug on MacOS X 10.5.
12835         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12836
12837         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12838         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12839         IEEE compliant, avoid compiler optimizations.
12840         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12841         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12842         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12843         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12844         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12845         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12846         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12847         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12848         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12849         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12850
12851 2011-06-19  Bruno Haible  <bruno@clisp.org>
12852
12853         ceilf-ieee: Work around bug on AIX 7.1.
12854         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12855         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12856
12857 2011-06-19  Bruno Haible  <bruno@clisp.org>
12858
12859         ceil-ieee: Work around bug on AIX 7.1.
12860         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12861         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12862
12863 2011-06-18  Bruno Haible  <bruno@clisp.org>
12864
12865         fsync test: Avoid test failure on MacOS X and AIX.
12866         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12867         EINVAL.
12868
12869 2011-06-18  Bruno Haible  <bruno@clisp.org>
12870
12871         openat, fdopendir tests: Fix link errors.
12872         * modules/openat-tests (Depends-on): Add progname.
12873         * modules/fdopendir-tests (Depends-on): Likewise.
12874         * tests/test-fchownat.c: Include progname.h.
12875         (main): Call set_program_name.
12876         * tests/test-fstatat.c: Include progname.h.
12877         (main): Call set_program_name.
12878         * tests/test-mkdirat.c: Include progname.h.
12879         (main): Call set_program_name.
12880         * tests/test-openat.c: Include progname.h.
12881         (main): Call set_program_name.
12882         * tests/test-unlinkat.c: Include progname.h.
12883         (main): Call set_program_name.
12884         * tests/test-fdopendir.c: Include progname.h.
12885         (main): Call set_program_name.
12886
12887 2011-06-18  Bruno Haible  <bruno@clisp.org>
12888
12889         Doc update.
12890         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12891         HP-UX.
12892         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12893
12894 2011-06-18  Bruno Haible  <bruno@clisp.org>
12895
12896         getcwd tests: Avoid compilation error on HP-UX 11.31.
12897         * modules/getcwd-tests (Depends-on): Add pathmax.
12898         * tests/test-getcwd.c: Include pathmax.h.
12899
12900 2011-06-18  Bruno Haible  <bruno@clisp.org>
12901
12902         isfinite, isinf: Fix link error on AIX 6 and 7.
12903         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12904         needed, also test the macro with a 'float' argument.
12905         * m4/isinf.m4 (gl_ISINF): Likewise.
12906
12907 2011-06-18  Bruno Haible  <bruno@clisp.org>
12908
12909         getloadavg: Don't clobber LIBS. Regression from previous commit.
12910         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12911         AC_CHECK_LIB from here...
12912         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12913         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12914         gl_func_getloadavg_done.
12915         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12916
12917 2011-06-18  Bruno Haible  <bruno@clisp.org>
12918
12919         clean-temp: Improve documentation.
12920         * lib/clean-temp.h: Explain better how to use this module.
12921         Reported by John Darrington <john@darrington.wattle.id.au>.
12922
12923 2011-06-17  Bruno Haible  <bruno@clisp.org>
12924
12925         pread, pwrite: Avoid cc warning on AIX.
12926         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12927         (pwrite): Likewise.
12928
12929 2011-06-17  Bruno Haible  <bruno@clisp.org>
12930
12931         spawn-pipe tests: Fix link error.
12932         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12933         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12934
12935 2011-06-17  Bruno Haible  <bruno@clisp.org>
12936
12937         Tests: Remove unnecessary dependency.
12938         * modules/canonicalize-tests (Depends-on): Remove progname.
12939         * modules/chown-tests (Depends-on): Likewise.
12940         * modules/dirname-tests (Depends-on): Likewise.
12941         * modules/fdopendir-tests (Depends-on): Likewise.
12942         * modules/fdutimensat-tests (Depends-on): Likewise.
12943         * modules/hash-tests (Depends-on): Likewise.
12944         * modules/lchown-tests (Depends-on): Likewise.
12945         * modules/linkat-tests (Depends-on): Likewise.
12946         * modules/renameat-tests (Depends-on): Likewise.
12947         * modules/spawn-pipe-tests (Depends-on): Likewise.
12948         * modules/utimensat-tests (Depends-on): Likewise.
12949
12950 2011-06-17  Bruno Haible  <bruno@clisp.org>
12951
12952         spawn-pipe tests: Fix link error.
12953         * tests/test-spawn-pipe-child.c: Undefine fflush.
12954
12955 2011-06-17  Bruno Haible  <bruno@clisp.org>
12956
12957         Fix tests link errors.
12958         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12959         * modules/chown-tests (Makefile.am): Don't link test-chown with
12960         LIBINTL.
12961         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12962         LIBINTL.
12963         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12964         LIBINTL.
12965         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12966         LIBINTL.
12967
12968 2011-06-16  Bruno Haible  <bruno@clisp.org>
12969
12970         crypto/gc-sha1: Fix recent regression.
12971         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12972         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12973
12974         crypto/gc-md5: Fix recent regression.
12975         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12976
12977         crypto/gc-md4: Fix recent regression.
12978         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12979         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12980
12981         crypto/gc-arctwo: Fix recent regression.
12982         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12983         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12984
12985         crypto/gc-rijndael: Fix recent regression.
12986         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12987         (configure.ac): Invoke AC_LIBOBJ here.
12988         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12989         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12990
12991         crypto/gc-hmac-sha1: Fix recent regression.
12992         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12993         (configure.ac): Invoke AC_LIBOBJ here.
12994         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12995         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12996
12997         crypto/gc-hmac-md5: Fix recent regression.
12998         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12999         (configure.ac): Invoke AC_LIBOBJ here.
13000         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
13001         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13002
13003         crypto/gc-des: Fix recent regression.
13004         * modules/crypto/gc-des (Files): Remove m4/des.m4.
13005         (configure.ac): Invoke AC_LIBOBJ here.
13006         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
13007         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13008
13009         crypto/gc-arcfour: Fix recent regression.
13010         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
13011         (configure.ac): Invoke AC_LIBOBJ here.
13012         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
13013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13014
13015 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
13016
13017         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
13018         After the 2011-05-21 change, this macro requires
13019         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
13020         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
13021
13022 2011-06-16  Bruno Haible  <bruno@clisp.org>
13023
13024         fprintftime: Move AC_LIBOBJ invocations to module description.
13025         * m4/fprintftime.m4: Remove file.
13026         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
13027         (configure.ac): Remove gl_FPRINTFTIME call.
13028         (Makefile.am): Augment lib_SOURCES.
13029         Reported by Jim Meyering.
13030
13031 2011-06-16  Bruno Haible  <bruno@clisp.org>
13032
13033         tmpfile-safer: Finish 2011-05-23 commit.
13034         * m4/stdio-safer.m4: Really remove file.
13035         Reported by Jim Meyering.
13036
13037 2011-06-16  Bruno Haible  <bruno@clisp.org>
13038
13039         syntax-check: Fix typo.
13040         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
13041         printf-posix.m4.
13042         Reported by Jim Meyering.
13043
13044 2011-06-13  Jim Meyering  <meyering@redhat.com>
13045
13046         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
13047         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
13048
13049 2011-05-23  Bruno Haible  <bruno@clisp.org>
13050
13051         yesno: Move AC_LIBOBJ invocations to module description.
13052         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
13053         * modules/yesno (Makefile.am): Augment lib_SOURCES.
13054
13055 2011-05-23  Bruno Haible  <bruno@clisp.org>
13056
13057         xstrtol: Move AC_LIBOBJ invocations to module description.
13058         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
13059         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
13060
13061 2011-05-23  Bruno Haible  <bruno@clisp.org>
13062
13063         xstrtold: Move AC_LIBOBJ invocations to module description.
13064         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
13065         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
13066
13067 2011-05-23  Bruno Haible  <bruno@clisp.org>
13068
13069         xstrtod: Move AC_LIBOBJ invocations to module description.
13070         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
13071         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
13072
13073 2011-05-23  Bruno Haible  <bruno@clisp.org>
13074
13075         xnanosleep: Move AC_LIBOBJ invocations to module description.
13076         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
13077         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
13078
13079 2011-05-23  Bruno Haible  <bruno@clisp.org>
13080
13081         xgetcwd: Move AC_LIBOBJ invocations to module description.
13082         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
13083         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
13084
13085 2011-05-23  Bruno Haible  <bruno@clisp.org>
13086
13087         xalloc: Move AC_LIBOBJ invocations to module description.
13088         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
13089         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
13090
13091 2011-05-23  Bruno Haible  <bruno@clisp.org>
13092
13093         write-any-file: Move AC_LIBOBJ invocations to module description.
13094         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
13095         invocation.
13096         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
13097
13098 2011-05-23  Bruno Haible  <bruno@clisp.org>
13099
13100         utimens: Move AC_LIBOBJ invocations to module description.
13101         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
13102         * modules/utimens (Makefile.am): Augment lib_SOURCES.
13103
13104 2011-05-23  Bruno Haible  <bruno@clisp.org>
13105
13106         utimecmp: Move AC_LIBOBJ invocations to module description.
13107         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
13108         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
13109
13110 2011-05-23  Bruno Haible  <bruno@clisp.org>
13111
13112         userspec: Move AC_LIBOBJ invocations to module description.
13113         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
13114         * modules/userspec (Makefile.am): Augment lib_SOURCES.
13115
13116 2011-05-23  Bruno Haible  <bruno@clisp.org>
13117
13118         unlinkdir: Move AC_LIBOBJ invocations to module description.
13119         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
13120         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
13121
13122 2011-05-23  Bruno Haible  <bruno@clisp.org>
13123
13124         unistd-safer: Move AC_LIBOBJ invocations to module description.
13125         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
13126         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
13127
13128 2011-05-23  Bruno Haible  <bruno@clisp.org>
13129
13130         tempname: Move AC_LIBOBJ invocations to module description.
13131         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
13132         * modules/tempname (Makefile.am): Augment lib_SOURCES.
13133
13134 2011-05-23  Bruno Haible  <bruno@clisp.org>
13135
13136         strftime: Move AC_LIBOBJ invocations to module description.
13137         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
13138         * modules/strftime (Makefile.am): Augment lib_SOURCES.
13139
13140 2011-05-23  Bruno Haible  <bruno@clisp.org>
13141
13142         stdlib-safer: Move AC_LIBOBJ invocations to module description.
13143         * m4/stdlib-safer.m4: Remove file.
13144         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
13145         (configure.ac): Remove gl_STDLIB_SAFER call.
13146         (Makefile.am): Augment lib_SOURCES.
13147
13148 2011-05-23  Bruno Haible  <bruno@clisp.org>
13149
13150         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
13151         * m4/stdio-safer.m4: Remove file.
13152         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
13153         (configure.ac): Remove gl_TMPFILE_SAFER call.
13154         (Makefile.am): Augment lib_SOURCES.
13155
13156 2011-05-23  Bruno Haible  <bruno@clisp.org>
13157
13158         popen-safer: Move AC_LIBOBJ invocations to module description.
13159         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
13160         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
13161         (configure.ac): Remove gl_POPEN_SAFER call.
13162         (Makefile.am): Augment lib_SOURCES.
13163
13164 2011-05-23  Bruno Haible  <bruno@clisp.org>
13165
13166         freopen-safer: Move AC_LIBOBJ invocations to module description.
13167         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
13168         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
13169         (configure.ac): Remove gl_FREOPEN_SAFER call.
13170         (Makefile.am): Augment lib_SOURCES.
13171
13172 2011-05-23  Bruno Haible  <bruno@clisp.org>
13173
13174         fopen-safer: Move AC_LIBOBJ invocations to module description.
13175         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
13176         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
13177         (configure.ac): Remove gl_FOPEN_SAFER call.
13178         (Makefile.am): Augment lib_SOURCES.
13179
13180 2011-05-23  Bruno Haible  <bruno@clisp.org>
13181
13182         crypto/sha512: Move AC_LIBOBJ invocations to module description.
13183         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
13184         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
13185
13186 2011-05-23  Bruno Haible  <bruno@clisp.org>
13187
13188         crypto/sha256: Move AC_LIBOBJ invocations to module description.
13189         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
13190         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
13191
13192 2011-05-23  Bruno Haible  <bruno@clisp.org>
13193
13194         crypto/sha1: Move AC_LIBOBJ invocations to module description.
13195         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
13196         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
13197
13198 2011-05-23  Bruno Haible  <bruno@clisp.org>
13199
13200         settime: Move AC_LIBOBJ invocations to module description.
13201         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
13202         * modules/settime (Makefile.am): Augment lib_SOURCES.
13203
13204 2011-05-23  Bruno Haible  <bruno@clisp.org>
13205
13206         savedir: Move AC_LIBOBJ invocations to module description.
13207         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
13208         * modules/savedir (Makefile.am): Augment lib_SOURCES.
13209
13210 2011-05-23  Bruno Haible  <bruno@clisp.org>
13211
13212         save-cwd: Move AC_LIBOBJ invocations to module description.
13213         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
13214         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
13215
13216 2011-05-23  Bruno Haible  <bruno@clisp.org>
13217
13218         same: Move AC_LIBOBJ invocations to module description.
13219         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
13220         * modules/same (Makefile.am): Augment lib_SOURCES.
13221
13222 2011-05-23  Bruno Haible  <bruno@clisp.org>
13223
13224         safe-write: Move AC_LIBOBJ invocations to module description.
13225         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
13226         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
13227         instead of gl_SAFE_WRITE.
13228         (Makefile.am): Augment lib_SOURCES.
13229
13230 2011-05-23  Bruno Haible  <bruno@clisp.org>
13231
13232         safe-read: Move AC_LIBOBJ invocations to module description.
13233         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
13234         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
13235         of gl_SAFE_READ.
13236         (Makefile.am): Augment lib_SOURCES.
13237
13238 2011-05-23  Bruno Haible  <bruno@clisp.org>
13239
13240         safe-alloc: Move AC_LIBOBJ invocations to module description.
13241         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
13242         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
13243
13244 2011-05-23  Bruno Haible  <bruno@clisp.org>
13245
13246         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
13247         * m4/rijndael.m4: Remove file.
13248         * modules/crypto/rijndael (Files): Remove it.
13249         (configure.ac): Remove gl_RIJNDAEL call.
13250         (Makefile.am): Augment lib_SOURCES.
13251
13252 2011-05-23  Bruno Haible  <bruno@clisp.org>
13253
13254         readtokens: Move AC_LIBOBJ invocations to module description.
13255         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
13256         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
13257
13258 2011-05-23  Bruno Haible  <bruno@clisp.org>
13259
13260         read-file: Move AC_LIBOBJ invocations to module description.
13261         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
13262         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
13263         of gl_FUNC_READ_FILE.
13264         (Makefile.am): Augment lib_SOURCES.
13265
13266 2011-05-23  Bruno Haible  <bruno@clisp.org>
13267
13268         quotearg: Move AC_LIBOBJ invocations to module description.
13269         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
13270         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
13271
13272 2011-05-23  Bruno Haible  <bruno@clisp.org>
13273
13274         quote: Move AC_LIBOBJ invocations to module description.
13275         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
13276         * modules/quote (Makefile.am): Augment lib_SOURCES.
13277
13278 2011-05-23  Bruno Haible  <bruno@clisp.org>
13279
13280         posixver: Move AC_LIBOBJ invocations to module description.
13281         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
13282         * modules/posixver (Makefile.am): Augment lib_SOURCES.
13283
13284 2011-05-23  Bruno Haible  <bruno@clisp.org>
13285
13286         posixtm: Move AC_LIBOBJ invocations to module description.
13287         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
13288         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
13289
13290 2011-05-23  Bruno Haible  <bruno@clisp.org>
13291
13292         physmem: Move AC_LIBOBJ invocations to module description.
13293         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
13294         * modules/physmem (Makefile.am): Augment lib_SOURCES.
13295
13296 2011-05-23  Bruno Haible  <bruno@clisp.org>
13297
13298         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
13299         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
13300         invocation.
13301         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
13302
13303 2011-05-23  Bruno Haible  <bruno@clisp.org>
13304
13305         mpsort: Move AC_LIBOBJ invocations to module description.
13306         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
13307         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
13308
13309 2011-05-23  Bruno Haible  <bruno@clisp.org>
13310
13311         modechange: Move AC_LIBOBJ invocations to module description.
13312         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13313         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13314
13315 2011-05-23  Bruno Haible  <bruno@clisp.org>
13316
13317         mkdir-p: Move AC_LIBOBJ invocations to module description.
13318         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13319         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13320
13321 2011-05-23  Bruno Haible  <bruno@clisp.org>
13322
13323         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13324         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13325         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13326
13327 2011-05-23  Bruno Haible  <bruno@clisp.org>
13328
13329         mgetgroups: Move AC_LIBOBJ invocations to module description.
13330         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13331         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13332
13333 2011-05-23  Bruno Haible  <bruno@clisp.org>
13334
13335         memxor: Move AC_LIBOBJ invocations to module description.
13336         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13337         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13338
13339 2011-05-23  Bruno Haible  <bruno@clisp.org>
13340
13341         memcoll: Move AC_LIBOBJ invocations to module description.
13342         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13343         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13344
13345 2011-05-23  Bruno Haible  <bruno@clisp.org>
13346
13347         memcasecmp: Move AC_LIBOBJ invocations to module description.
13348         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13349         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13350
13351 2011-05-23  Bruno Haible  <bruno@clisp.org>
13352
13353         crypto/md5: Move AC_LIBOBJ invocations to module description.
13354         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13355         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13356
13357 2011-05-23  Bruno Haible  <bruno@clisp.org>
13358
13359         crypto/md4: Move AC_LIBOBJ invocations to module description.
13360         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13361         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13362
13363 2011-05-23  Bruno Haible  <bruno@clisp.org>
13364
13365         crypto/md2: Move AC_LIBOBJ invocations to module description.
13366         * m4/md2.m4: Remove file.
13367         * modules/crypto/md2 (Files): Remove it.
13368         (configure.ac): Remove gl_MD2 call.
13369         (Makefile.am): Augment lib_SOURCES.
13370
13371 2011-05-23  Bruno Haible  <bruno@clisp.org>
13372
13373         long-options: Move AC_LIBOBJ invocations to module description.
13374         * m4/long-options.m4: Remove file.
13375         * modules/long-options (Files): Remove it.
13376         (configure.ac): Remove gl_LONG_OPTIONS call.
13377         (Makefile.am): Augment lib_SOURCES.
13378
13379 2011-05-23  Bruno Haible  <bruno@clisp.org>
13380
13381         i-ring: Move AC_LIBOBJ invocations to module description.
13382         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13383         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13384
13385 2011-05-23  Bruno Haible  <bruno@clisp.org>
13386
13387         idcache: Move AC_LIBOBJ invocations to module description.
13388         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13389         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13390
13391 2011-05-23  Bruno Haible  <bruno@clisp.org>
13392
13393         human: Move AC_LIBOBJ invocations to module description.
13394         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13395         * modules/human (Makefile.am): Augment lib_SOURCES.
13396
13397 2011-05-23  Bruno Haible  <bruno@clisp.org>
13398
13399         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13400         * m4/hmac-sha1.m4: Remove file.
13401         * modules/crypto/hmac-sha1 (Files): Remove it.
13402         (configure.ac): Remove gl_HMAC_SHA1 call.
13403         (Makefile.am): Augment lib_SOURCES.
13404
13405 2011-05-23  Bruno Haible  <bruno@clisp.org>
13406
13407         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13408         * m4/hmac-md5.m4: Remove file.
13409         * modules/crypto/hmac-md5 (Files): Remove it.
13410         (configure.ac): Remove gl_HMAC_MD5 call.
13411         (Makefile.am): Augment lib_SOURCES.
13412
13413 2011-05-23  Bruno Haible  <bruno@clisp.org>
13414
13415         hash: Move AC_LIBOBJ invocations to module description.
13416         * m4/hash.m4: Remove file.
13417         * modules/hash (Files): Remove it.
13418         (configure.ac): Remove gl_HASH call.
13419         (Makefile.am): Augment lib_SOURCES.
13420
13421 2011-05-23  Bruno Haible  <bruno@clisp.org>
13422
13423         hard-locale: Move AC_LIBOBJ invocations to module description.
13424         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13425         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13426
13427 2011-05-23  Bruno Haible  <bruno@clisp.org>
13428
13429         getugroups: Move AC_LIBOBJ invocations to module description.
13430         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13431         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13432
13433 2011-05-23  Bruno Haible  <bruno@clisp.org>
13434
13435         gettime: Move AC_LIBOBJ invocations to module description.
13436         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13437         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13438
13439 2011-05-23  Bruno Haible  <bruno@clisp.org>
13440
13441         getndelim2: Move AC_LIBOBJ invocations to module description.
13442         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13443         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13444
13445 2011-05-23  Bruno Haible  <bruno@clisp.org>
13446
13447         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13448         * m4/gc-pbkdf2-sha1.m4: Remove file.
13449         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13450         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13451         (Makefile.am): Augment lib_SOURCES.
13452
13453 2011-05-23  Bruno Haible  <bruno@clisp.org>
13454
13455         fts: Move AC_LIBOBJ invocations to module description.
13456         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13457         * modules/fts (configure.ac): ... to here.
13458
13459 2011-05-23  Bruno Haible  <bruno@clisp.org>
13460
13461         file-type: Move AC_LIBOBJ invocations to module description.
13462         * m4/file-type.m4: Remove file.
13463         * modules/file-type (Files): Remove it.
13464         (configure.ac): Remove gl_FILE_TYPE call.
13465         (Makefile.am): Augment lib_SOURCES.
13466
13467 2011-05-23  Bruno Haible  <bruno@clisp.org>
13468
13469         filenamecat*: Respect rules for use of AC_LIBOBJ.
13470         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13471         Remove AC_LIBOBJ invocation.
13472         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13473         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13474
13475 2011-05-23  Bruno Haible  <bruno@clisp.org>
13476
13477         filemode: Move AC_LIBOBJ invocations to module description.
13478         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13479         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13480
13481 2011-05-23  Bruno Haible  <bruno@clisp.org>
13482
13483         openat-safer: Move AC_LIBOBJ invocations to module description.
13484         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13485         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13486
13487 2011-05-23  Bruno Haible  <bruno@clisp.org>
13488
13489         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13490         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13491         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13492
13493 2011-05-23  Bruno Haible  <bruno@clisp.org>
13494
13495         exclude: Move AC_LIBOBJ invocations to module description.
13496         * m4/exclude.m4: Remove file.
13497         * modules/exclude (Files): Remove it.
13498         (configure.ac): Remove gl_EXCLUDE call.
13499         (Makefile.am): Augment lib_SOURCES.
13500
13501 2011-05-23  Bruno Haible  <bruno@clisp.org>
13502
13503         dirname*: Respect rules for use of AC_LIBOBJ.
13504         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13505         invocations.
13506         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13507         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13508
13509 2011-05-23  Bruno Haible  <bruno@clisp.org>
13510
13511         dirent-safer: Move AC_LIBOBJ invocations to module description.
13512         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13513         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13514
13515 2011-05-23  Bruno Haible  <bruno@clisp.org>
13516
13517         crypto/des: Move AC_LIBOBJ invocations to module description.
13518         * m4/des.m4: Remove file.
13519         * modules/crypto/des (Files): Remove it.
13520         (configure.ac): Remove gl_DES call.
13521         (Makefile.am): Augment lib_SOURCES.
13522
13523 2011-05-23  Bruno Haible  <bruno@clisp.org>
13524
13525         cycle-check: Move AC_LIBOBJ invocations to module description.
13526         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13527         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13528
13529 2011-05-23  Bruno Haible  <bruno@clisp.org>
13530
13531         c-strtold: Move AC_LIBOBJ invocations to module description.
13532         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13533         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13534
13535 2011-05-23  Bruno Haible  <bruno@clisp.org>
13536
13537         c-strtod: Move AC_LIBOBJ invocations to module description.
13538         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13539         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13540
13541 2011-05-23  Bruno Haible  <bruno@clisp.org>
13542
13543         crc: Move AC_LIBOBJ invocations to module description.
13544         * m4/crc.m4: Remove file.
13545         * modules/crc (Files): Remove it.
13546         (configure.ac): Remove gl_CRC call.
13547         (Makefile.am): Augment lib_SOURCES.
13548
13549 2011-05-23  Bruno Haible  <bruno@clisp.org>
13550
13551         close-stream: Move AC_LIBOBJ invocations to module description.
13552         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13553         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13554
13555 2011-05-23  Bruno Haible  <bruno@clisp.org>
13556
13557         closeout: Move AC_LIBOBJ invocations to module description.
13558         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13559         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13560
13561 2011-05-23  Bruno Haible  <bruno@clisp.org>
13562
13563         closein: Move AC_LIBOBJ invocations to module description.
13564         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13565         * modules/closein (Makefile.am): Augment lib_SOURCES.
13566
13567 2011-05-23  Bruno Haible  <bruno@clisp.org>
13568
13569         cloexec: Move AC_LIBOBJ invocations to module description.
13570         * m4/cloexec.m4: Remove file.
13571         * modules/cloexec (Files): Remove it.
13572         (configure.ac): Remove gl_CLOEXEC call.
13573         (Makefile.am): Augment lib_SOURCES.
13574
13575 2011-05-23  Bruno Haible  <bruno@clisp.org>
13576
13577         check-version: Move AC_LIBOBJ invocations to module description.
13578         * m4/check-version.m4: Remove file.
13579         * modules/check-version (Files): Remove it.
13580         (configure.ac): Remove gl_CHECK_VERSION call.
13581         (Makefile.am): Augment lib_SOURCES.
13582
13583 2011-05-23  Bruno Haible  <bruno@clisp.org>
13584
13585         chdir-safer: Move AC_LIBOBJ invocations to module description.
13586         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13587         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13588
13589 2011-05-23  Bruno Haible  <bruno@clisp.org>
13590
13591         canonicalize: Move AC_LIBOBJ invocations to module description.
13592         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13593         AC_LIBOBJ invocation.
13594         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13595
13596 2011-05-23  Bruno Haible  <bruno@clisp.org>
13597
13598         canon-host: Move AC_LIBOBJ invocations to module description.
13599         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13600         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13601         instead of gl_CANON_HOST.
13602         (Makefile.am): Augment lib_SOURCES.
13603
13604 2011-05-23  Bruno Haible  <bruno@clisp.org>
13605
13606         backupfile: Move AC_LIBOBJ invocations to module description.
13607         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13608         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13609
13610 2011-05-23  Bruno Haible  <bruno@clisp.org>
13611
13612         argmatch: Move AC_LIBOBJ invocations to module description.
13613         * m4/argmatch.m4: Remove file.
13614         * modules/argmatch (Files): Remove it.
13615         (configure.ac): Remove gl_ARGMATCH call.
13616         (Makefile.am): Augment lib_SOURCES.
13617
13618 2011-05-23  Bruno Haible  <bruno@clisp.org>
13619
13620         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13621         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13622         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13623
13624 2011-05-23  Bruno Haible  <bruno@clisp.org>
13625
13626         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13627         * m4/arcfour.m4: Remove file.
13628         * modules/crypto/arcfour (Files): Remove it.
13629         (configure.ac): Remove gl_ARCFOUR call.
13630         (Makefile.am): Augment lib_SOURCES.
13631
13632 2011-05-22  Bruno Haible  <bruno@clisp.org>
13633
13634         write: Move AC_LIBOBJ invocations to module description.
13635         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13636         * modules/write (configure.ac): ... to here.
13637
13638 2011-05-22  Bruno Haible  <bruno@clisp.org>
13639
13640         wmemset: Move AC_LIBOBJ invocations to module description.
13641         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13642         here...
13643         * modules/wmemset (configure.ac): ... to here.
13644
13645 2011-05-22  Bruno Haible  <bruno@clisp.org>
13646
13647         wmemmove: Move AC_LIBOBJ invocations to module description.
13648         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13649         here...
13650         * modules/wmemmove (configure.ac): ... to here.
13651
13652 2011-05-22  Bruno Haible  <bruno@clisp.org>
13653
13654         wmemcpy: Move AC_LIBOBJ invocations to module description.
13655         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13656         here...
13657         * modules/wmemcpy (configure.ac): ... to here.
13658
13659 2011-05-22  Bruno Haible  <bruno@clisp.org>
13660
13661         wmemcmp: Move AC_LIBOBJ invocations to module description.
13662         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13663         here...
13664         * modules/wmemcmp (configure.ac): ... to here.
13665
13666 2011-05-22  Bruno Haible  <bruno@clisp.org>
13667
13668         wmemchr: Move AC_LIBOBJ invocations to module description.
13669         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13670         here...
13671         * modules/wmemchr (configure.ac): ... to here.
13672
13673 2011-05-22  Bruno Haible  <bruno@clisp.org>
13674
13675         wcswidth: Move AC_LIBOBJ invocations to module description.
13676         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13677         here...
13678         * modules/wcswidth (configure.ac): ... to here.
13679
13680 2011-05-22  Bruno Haible  <bruno@clisp.org>
13681
13682         wcwidth: Respect rules for use of AC_LIBOBJ.
13683         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13684         invocation from here...
13685         * modules/wcwidth (configure.ac): ... to here.
13686         (Depends-on): Update conditions.
13687
13688 2011-05-22  Bruno Haible  <bruno@clisp.org>
13689
13690         wctype: Move AC_LIBOBJ invocations to module description.
13691         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13692         invocation from here...
13693         * modules/wctype (configure.ac): ... to here.
13694         (Depends-on): Update conditions.
13695
13696 2011-05-22  Bruno Haible  <bruno@clisp.org>
13697
13698         wctrans: Move AC_LIBOBJ invocations to module description.
13699         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13700         invocation from here...
13701         * modules/wctrans (configure.ac): ... to here.
13702
13703 2011-05-22  Bruno Haible  <bruno@clisp.org>
13704
13705         wctomb: Move AC_LIBOBJ invocations to module description.
13706         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13707         invocations from here...
13708         * modules/wctomb (configure.ac): ... to here.
13709
13710 2011-05-22  Bruno Haible  <bruno@clisp.org>
13711
13712         wctob: Move AC_LIBOBJ invocations to module description.
13713         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13714         gl_PREREQ_WCTOB invocations from here...
13715         * modules/wctob (configure.ac): ... to here.
13716         (Depends-on): Update conditions.
13717
13718 2011-05-22  Bruno Haible  <bruno@clisp.org>
13719
13720         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13721         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13722         here...
13723         * modules/wcsxfrm (configure.ac): ... to here.
13724
13725 2011-05-22  Bruno Haible  <bruno@clisp.org>
13726
13727         wcstok: Move AC_LIBOBJ invocations to module description.
13728         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13729         * modules/wcstok (configure.ac): ... to here.
13730
13731 2011-05-22  Bruno Haible  <bruno@clisp.org>
13732
13733         wcsstr: Move AC_LIBOBJ invocations to module description.
13734         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13735         * modules/wcsstr (configure.ac): ... to here.
13736
13737 2011-05-22  Bruno Haible  <bruno@clisp.org>
13738
13739         wcsspn: Move AC_LIBOBJ invocations to module description.
13740         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13741         * modules/wcsspn (configure.ac): ... to here.
13742
13743 2011-05-22  Bruno Haible  <bruno@clisp.org>
13744
13745         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13746         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13747         gl_PREREQ_WCSRTOMBS invocations from here...
13748         * modules/wcsrtombs (configure.ac): ... to here.
13749
13750 2011-05-22  Bruno Haible  <bruno@clisp.org>
13751
13752         wcsrchr: Move AC_LIBOBJ invocations to module description.
13753         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13754         here...
13755         * modules/wcsrchr (configure.ac): ... to here.
13756
13757 2011-05-22  Bruno Haible  <bruno@clisp.org>
13758
13759         wcspbrk: Move AC_LIBOBJ invocations to module description.
13760         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13761         here...
13762         * modules/wcspbrk (configure.ac): ... to here.
13763
13764 2011-05-22  Bruno Haible  <bruno@clisp.org>
13765
13766         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13767         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13768         gl_PREREQ_WCSNRTOMBS invocations from here...
13769         * modules/wcsnrtombs (configure.ac): ... to here.
13770
13771 2011-05-22  Bruno Haible  <bruno@clisp.org>
13772
13773         wcsnlen: Move AC_LIBOBJ invocations to module description.
13774         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13775         here...
13776         * modules/wcsnlen (configure.ac): ... to here.
13777
13778 2011-05-22  Bruno Haible  <bruno@clisp.org>
13779
13780         wcsncpy: Move AC_LIBOBJ invocations to module description.
13781         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13782         here...
13783         * modules/wcsncpy (configure.ac): ... to here.
13784
13785 2011-05-22  Bruno Haible  <bruno@clisp.org>
13786
13787         wcsncmp: Move AC_LIBOBJ invocations to module description.
13788         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13789         here...
13790         * modules/wcsncmp (configure.ac): ... to here.
13791
13792 2011-05-22  Bruno Haible  <bruno@clisp.org>
13793
13794         wcsncat: Move AC_LIBOBJ invocations to module description.
13795         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13796         here...
13797         * modules/wcsncat (configure.ac): ... to here.
13798
13799 2011-05-22  Bruno Haible  <bruno@clisp.org>
13800
13801         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13802         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13803         from here...
13804         * modules/wcsncasecmp (configure.ac): ... to here.
13805
13806 2011-05-22  Bruno Haible  <bruno@clisp.org>
13807
13808         wcslen: Move AC_LIBOBJ invocations to module description.
13809         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13810         * modules/wcslen (configure.ac): ... to here.
13811
13812 2011-05-22  Bruno Haible  <bruno@clisp.org>
13813
13814         wcsdup: Move AC_LIBOBJ invocations to module description.
13815         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13816         * modules/wcsdup (configure.ac): ... to here.
13817
13818 2011-05-22  Bruno Haible  <bruno@clisp.org>
13819
13820         wcscspn: Move AC_LIBOBJ invocations to module description.
13821         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13822         here...
13823         * modules/wcscspn (configure.ac): ... to here.
13824
13825 2011-05-22  Bruno Haible  <bruno@clisp.org>
13826
13827         wcscpy: Move AC_LIBOBJ invocations to module description.
13828         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13829         * modules/wcscpy (configure.ac): ... to here.
13830
13831 2011-05-22  Bruno Haible  <bruno@clisp.org>
13832
13833         wcscoll: Move AC_LIBOBJ invocations to module description.
13834         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13835         here...
13836         * modules/wcscoll (configure.ac): ... to here.
13837
13838 2011-05-22  Bruno Haible  <bruno@clisp.org>
13839
13840         wcscmp: Move AC_LIBOBJ invocations to module description.
13841         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13842         * modules/wcscmp (configure.ac): ... to here.
13843
13844 2011-05-22  Bruno Haible  <bruno@clisp.org>
13845
13846         wcschr: Move AC_LIBOBJ invocations to module description.
13847         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13848         * modules/wcschr (configure.ac): ... to here.
13849
13850 2011-05-22  Bruno Haible  <bruno@clisp.org>
13851
13852         wcscat: Move AC_LIBOBJ invocations to module description.
13853         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13854         * modules/wcscat (configure.ac): ... to here.
13855
13856 2011-05-22  Bruno Haible  <bruno@clisp.org>
13857
13858         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13859         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13860         here...
13861         * modules/wcscasecmp (configure.ac): ... to here.
13862
13863 2011-05-22  Bruno Haible  <bruno@clisp.org>
13864
13865         wcrtomb: Move AC_LIBOBJ invocations to module description.
13866         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13867         invocations from here...
13868         * modules/wcrtomb (configure.ac): ... to here.
13869
13870 2011-05-22  Bruno Haible  <bruno@clisp.org>
13871
13872         wcpncpy: Move AC_LIBOBJ invocations to module description.
13873         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13874         here...
13875         * modules/wcpncpy (configure.ac): ... to here.
13876
13877 2011-05-22  Bruno Haible  <bruno@clisp.org>
13878
13879         wcpcpy: Move AC_LIBOBJ invocations to module description.
13880         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13881         * modules/wcpcpy (configure.ac): ... to here.
13882
13883 2011-05-22  Bruno Haible  <bruno@clisp.org>
13884
13885         waitpid: Move AC_LIBOBJ invocations to module description.
13886         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13887         invocation from here...
13888         * modules/waitpid (configure.ac): ... to here.
13889
13890 2011-05-22  Bruno Haible  <bruno@clisp.org>
13891
13892         utimensat: Move AC_LIBOBJ invocations to module description.
13893         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13894         here...
13895         * modules/utimensat (configure.ac): ... to here.
13896
13897 2011-05-22  Bruno Haible  <bruno@clisp.org>
13898
13899         usleep: Move AC_LIBOBJ invocations to module description.
13900         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13901         here...
13902         * modules/usleep (configure.ac): ... to here.
13903
13904 2011-05-22  Bruno Haible  <bruno@clisp.org>
13905
13906         unlockpt: Move AC_LIBOBJ invocations to module description.
13907         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13908         gl_PREREQ_UNLOCKPT invocations from here...
13909         * modules/unlockpt (configure.ac): ... to here.
13910
13911 2011-05-22  Bruno Haible  <bruno@clisp.org>
13912
13913         unlink: Respect rules for use of AC_LIBOBJ.
13914         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13915         * modules/unlink (configure.ac): ... to here.
13916
13917 2011-05-22  Bruno Haible  <bruno@clisp.org>
13918
13919         uname: Move AC_LIBOBJ invocations to module description.
13920         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13921         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13922         here...
13923         * modules/uname (configure.ac): ... to here.
13924
13925 2011-05-22  Bruno Haible  <bruno@clisp.org>
13926
13927         ttyname_r: Move AC_LIBOBJ invocations to module description.
13928         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13929         gl_PREREQ_TTYNAME_R invocations from here...
13930         * modules/ttyname_r (configure.ac): ... to here.
13931
13932 2011-05-22  Bruno Haible  <bruno@clisp.org>
13933
13934         tsearch: Move AC_LIBOBJ invocations to module description.
13935         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13936         invocations from here...
13937         * modules/tsearch (configure.ac): ... to here.
13938
13939 2011-05-22  Bruno Haible  <bruno@clisp.org>
13940
13941         towctrans: Move AC_LIBOBJ invocations to module description.
13942         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13943         AC_LIBOBJ invocation from here...
13944         * modules/towctrans (configure.ac): ... to here.
13945
13946 2011-05-22  Bruno Haible  <bruno@clisp.org>
13947
13948         tmpfile: Move AC_LIBOBJ invocations to module description.
13949         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13950         invocations from here...
13951         * modules/tmpfile (configure.ac): ... to here.
13952
13953 2011-05-22  Bruno Haible  <bruno@clisp.org>
13954
13955         times: Move AC_LIBOBJ invocations to module description.
13956         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13957         * modules/times (configure.ac): ... to here.
13958
13959 2011-05-22  Bruno Haible  <bruno@clisp.org>
13960
13961         time_r: Move AC_LIBOBJ invocations to module description.
13962         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13963         invocations from here...
13964         * modules/time_r (configure.ac): ... to here.
13965
13966 2011-05-22  Bruno Haible  <bruno@clisp.org>
13967
13968         timegm: Move AC_LIBOBJ invocations to module description.
13969         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13970         invocations from here...
13971         * modules/timegm (configure.ac): ... to here.
13972
13973 2011-05-22  Bruno Haible  <bruno@clisp.org>
13974
13975         tcgetsid: Move AC_LIBOBJ invocations to module description.
13976         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13977         and gl_PREREQ_TCGETSID invocations from here...
13978         * modules/tcgetsid (configure.ac): ... to here.
13979         (Depends-on): Update conditions.
13980
13981 2011-05-22  Bruno Haible  <bruno@clisp.org>
13982
13983         symlinkat: Move AC_LIBOBJ invocations to module description.
13984         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13985         here...
13986         * modules/symlinkat (configure.ac): ... to here.
13987
13988 2011-05-22  Bruno Haible  <bruno@clisp.org>
13989
13990         symlink: Move AC_LIBOBJ invocations to module description.
13991         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13992         here...
13993         * modules/symlink (configure.ac): ... to here.
13994
13995 2011-05-22  Bruno Haible  <bruno@clisp.org>
13996
13997         strverscmp: Move AC_LIBOBJ invocations to module description.
13998         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13999         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
14000         from here...
14001         * modules/strverscmp (configure.ac): ... to here.
14002
14003 2011-05-22  Bruno Haible  <bruno@clisp.org>
14004
14005         strtok_r: Move AC_LIBOBJ invocations to module description.
14006         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
14007         and gl_PREREQ_STRTOK_R invocations from here...
14008         * modules/strtok_r (configure.ac): ... to here.
14009         (Depends-on): Update conditions.
14010
14011 2011-05-22  Bruno Haible  <bruno@clisp.org>
14012
14013         strtoumax: Move AC_LIBOBJ invocations to module description.
14014         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
14015         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
14016         from here...
14017         * modules/strtoumax (configure.ac): ... to here.
14018
14019 2011-05-22  Bruno Haible  <bruno@clisp.org>
14020
14021         strtoimax: Move AC_LIBOBJ invocations to module description.
14022         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
14023         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
14024         from here...
14025         * modules/strtoimax (configure.ac): ... to here.
14026
14027 2011-05-22  Bruno Haible  <bruno@clisp.org>
14028
14029         strtoull: Move AC_LIBOBJ invocations to module description.
14030         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
14031         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
14032         from here...
14033         * modules/strtoull (configure.ac): ... to here.
14034
14035 2011-05-22  Bruno Haible  <bruno@clisp.org>
14036
14037         strtoll: Move AC_LIBOBJ invocations to module description.
14038         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
14039         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
14040         here...
14041         * modules/strtoll (configure.ac): ... to here.
14042
14043 2011-05-22  Bruno Haible  <bruno@clisp.org>
14044
14045         strtoul: Move AC_LIBOBJ invocations to module description.
14046         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
14047         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14048         * modules/strtoul (configure.ac): ... to here.
14049
14050 2011-05-22  Bruno Haible  <bruno@clisp.org>
14051
14052         strtol: Move AC_LIBOBJ invocations to module description.
14053         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
14054         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
14055         * modules/strtol (configure.ac): ... to here.
14056
14057 2011-05-22  Bruno Haible  <bruno@clisp.org>
14058
14059         strtod: Move AC_LIBOBJ invocations to module description.
14060         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
14061         invocations from here...
14062         * modules/strtod (configure.ac): ... to here.
14063
14064 2011-05-22  Bruno Haible  <bruno@clisp.org>
14065
14066         strstr*: Move AC_LIBOBJ invocations to module description.
14067         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
14068         invocations from here...
14069         * modules/strstr-simple (configure.ac): ... to here.
14070         * modules/strstr (configure.ac): ... and here.
14071
14072 2011-05-22  Bruno Haible  <bruno@clisp.org>
14073
14074         strsignal: Move AC_LIBOBJ invocations to module description.
14075         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
14076         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
14077         * modules/strsignal (configure.ac): ... to here.
14078         (Depends-on): Update conditions.
14079
14080 2011-05-22  Bruno Haible  <bruno@clisp.org>
14081
14082         strsep: Move AC_LIBOBJ invocations to module description.
14083         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
14084         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
14085         here...
14086         * modules/strsep (configure.ac): ... to here.
14087
14088 2011-05-22  Bruno Haible  <bruno@clisp.org>
14089
14090         strptime: Move AC_LIBOBJ invocations to module description.
14091         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
14092         gl_PREREQ_STRPTIME invocations from here...
14093         * modules/strptime (configure.ac): ... to here.
14094
14095 2011-05-22  Bruno Haible  <bruno@clisp.org>
14096
14097         strpbrk: Move AC_LIBOBJ invocations to module description.
14098         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
14099         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
14100         here...
14101         * modules/strpbrk (configure.ac): ... to here.
14102
14103 2011-05-22  Bruno Haible  <bruno@clisp.org>
14104
14105         strnlen: Move AC_LIBOBJ invocations to module description.
14106         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
14107         invocations from here...
14108         * modules/strnlen (configure.ac): ... to here.
14109
14110 2011-05-22  Bruno Haible  <bruno@clisp.org>
14111
14112         strndup: Move AC_LIBOBJ invocations to module description.
14113         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
14114         invocations from here...
14115         * modules/strndup (configure.ac): ... to here.
14116         (Depends-on): Update conditions.
14117
14118 2011-05-22  Bruno Haible  <bruno@clisp.org>
14119
14120         strncat: Move AC_LIBOBJ invocations to module description.
14121         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
14122         invocations from here...
14123         * modules/strncat (configure.ac): ... to here.
14124
14125 2011-05-22  Bruno Haible  <bruno@clisp.org>
14126
14127         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
14128         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
14129         invocations from here...
14130         * modules/strdup (configure.ac): ... to here.
14131         * modules/strdup-posix (configure.ac): ... and here.
14132
14133 2011-05-22  Bruno Haible  <bruno@clisp.org>
14134
14135         strcspn: Move AC_LIBOBJ invocations to module description.
14136         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
14137         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
14138         here...
14139         * modules/strcspn (configure.ac): ... to here.
14140
14141 2011-05-22  Bruno Haible  <bruno@clisp.org>
14142
14143         strchrnul: Move AC_LIBOBJ invocations to module description.
14144         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
14145         gl_PREREQ_STRCHRNUL invocations from here...
14146         * modules/strchrnul (configure.ac): ... to here.
14147
14148 2011-05-22  Bruno Haible  <bruno@clisp.org>
14149
14150         strcasestr*: Move AC_LIBOBJ invocations to module description.
14151         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14152         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
14153         * modules/strcasestr-simple (configure.ac): ... to here.
14154         * modules/strcasestr (configure.ac): ... and here.
14155
14156 2011-05-22  Bruno Haible  <bruno@clisp.org>
14157
14158         strcase: Move AC_LIBOBJ invocations to module description.
14159         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
14160         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
14161         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
14162         gl_PREREQ_STRNCASECMP invocations from here...
14163         * modules/strcase (configure.ac): ... to here.
14164
14165 2011-05-22  Bruno Haible  <bruno@clisp.org>
14166
14167         stpncpy: Move AC_LIBOBJ invocations to module description.
14168         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
14169         here...
14170         * modules/stpncpy (configure.ac): ... to here.
14171
14172 2011-05-22  Bruno Haible  <bruno@clisp.org>
14173
14174         stpcpy: Move AC_LIBOBJ invocations to module description.
14175         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
14176         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
14177         here...
14178         * modules/stpcpy (configure.ac): ... to here.
14179
14180 2011-05-21  Bruno Haible  <bruno@clisp.org>
14181
14182         stat: Move AC_LIBOBJ invocations to module description.
14183         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
14184         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
14185         here...
14186         * modules/stat (configure.ac): ... to here.
14187
14188 2011-05-21  Bruno Haible  <bruno@clisp.org>
14189
14190         sleep: Move AC_LIBOBJ invocations to module description.
14191         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
14192         * modules/sleep (configure.ac): ... to here.
14193
14194 2011-05-21  Bruno Haible  <bruno@clisp.org>
14195
14196         signbit: Move AC_LIBOBJ invocations to module description.
14197         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
14198         * modules/signbit (configure.ac): ... to here.
14199
14200 2011-05-21  Bruno Haible  <bruno@clisp.org>
14201
14202         sigprocmask: Move AC_LIBOBJ invocations to module description.
14203         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
14204         gl_PREREQ_SIGPROMASK invocations from here...
14205         * modules/sigprocmask (configure.ac): ... to here.
14206
14207 2011-05-21  Bruno Haible  <bruno@clisp.org>
14208
14209         sigaction: Move AC_LIBOBJ invocations to module description.
14210         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
14211         gl_PREREQ_SIGACTION invocations from here...
14212         * modules/sigaction (configure.ac): ... to here.
14213
14214 2011-05-21  Bruno Haible  <bruno@clisp.org>
14215
14216         sig2str: Move AC_LIBOBJ invocations to module description.
14217         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
14218         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
14219         here...
14220         * modules/sig2str (configure.ac): ... to here.
14221
14222 2011-05-21  Bruno Haible  <bruno@clisp.org>
14223
14224         setlocale: Move AC_LIBOBJ invocations to module description.
14225         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
14226         gl_PREREQ_SETLOCALE invocations from here...
14227         * modules/setlocale (configure.ac): ... to here.
14228
14229 2011-05-21  Bruno Haible  <bruno@clisp.org>
14230
14231         unsetenv: Move AC_LIBOBJ invocations to module description.
14232         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
14233         and gl_PREREQ_UNSETENV invocations from here...
14234         * modules/unsetenv (configure.ac): ... to here.
14235         (Depends-on): Update.
14236
14237 2011-05-21  Bruno Haible  <bruno@clisp.org>
14238
14239         setenv: Move AC_LIBOBJ invocations to module description.
14240         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
14241         here...
14242         * modules/setenv (configure.ac): ... to here.
14243
14244 2011-05-21  Bruno Haible  <bruno@clisp.org>
14245
14246         selinux-h: Move AC_LIBOBJ invocations to module description.
14247         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
14248         AC_LIBOBJ invocation from here...
14249         * modules/selinux-h (configure.ac): ... to here.
14250
14251 2011-05-21  Bruno Haible  <bruno@clisp.org>
14252
14253         select: Respect rules for use of AC_LIBOBJ.
14254         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
14255         here...
14256         * modules/select (configure.ac): ... to here.
14257
14258 2011-05-21  Bruno Haible  <bruno@clisp.org>
14259
14260         scandir: Move AC_LIBOBJ invocations to module description.
14261         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
14262         invocations from here...
14263         * modules/scandir (configure.ac): ... to here.
14264
14265 2011-05-21  Bruno Haible  <bruno@clisp.org>
14266
14267         rpmatch: Move AC_LIBOBJ invocations to module description.
14268         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
14269         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
14270         here...
14271         * modules/rpmatch (configure.ac): ... to here.
14272
14273 2011-05-21  Bruno Haible  <bruno@clisp.org>
14274
14275         rmdir: Respect rules for use of AC_LIBOBJ.
14276         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
14277         * modules/rmdir (configure.ac): ... to here.
14278
14279 2011-05-21  Bruno Haible  <bruno@clisp.org>
14280
14281         renameat: Move AC_LIBOBJ invocations to module description.
14282         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
14283         here...
14284         * modules/renameat (configure.ac): ... to here.
14285
14286 2011-05-21  Bruno Haible  <bruno@clisp.org>
14287
14288         rename: Respect rules for use of AC_LIBOBJ.
14289         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
14290         here...
14291         * modules/rename (configure.ac): ... to here.
14292
14293 2011-05-21  Bruno Haible  <bruno@clisp.org>
14294
14295         remove: Move AC_LIBOBJ invocations to module description.
14296         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
14297         here...
14298         * modules/remove (configure.ac): ... to here.
14299
14300 2011-05-21  Bruno Haible  <bruno@clisp.org>
14301
14302         relocatable-lib: Move AC_LIBOBJ invocations to module description.
14303         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
14304         macro.
14305         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
14306         * modules/relocatable-lib (configure.ac): ... to here.
14307         * modules/relocatable-prog-wrapper (configure.ac): Invoke
14308         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
14309
14310 2011-05-21  Bruno Haible  <bruno@clisp.org>
14311
14312         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14313         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14314         here...
14315         * modules/relocatable-prog (configure.ac): ... to here.
14316
14317 2011-05-21  Bruno Haible  <bruno@clisp.org>
14318
14319         regex: Move AC_LIBOBJ invocations to module description.
14320         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14321         invocations from here...
14322         * modules/regex (configure.ac): ... to here.
14323
14324 2011-05-21  Bruno Haible  <bruno@clisp.org>
14325
14326         realloc-*: Move AC_LIBOBJ invocations to module description.
14327         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14328         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14329         AC_LIBOBJ invocations from here...
14330         * modules/realloc-gnu (configure.ac): ... to here.
14331         * modules/realloc-posix (configure.ac): ... and here.
14332
14333 2011-05-21  Bruno Haible  <bruno@clisp.org>
14334
14335         readutmp: Move AC_LIBOBJ invocations to module description.
14336         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14337         * modules/readutmp (configure.ac): ... to here.
14338
14339 2011-05-21  Bruno Haible  <bruno@clisp.org>
14340
14341         readlinkat: Move AC_LIBOBJ invocations to module description.
14342         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14343         here...
14344         * modules/readlinkat (configure.ac): ... to here.
14345
14346 2011-05-21  Bruno Haible  <bruno@clisp.org>
14347
14348         readlink: Move AC_LIBOBJ invocations to module description.
14349         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14350         gl_PREREQ_READLINK invocations from here...
14351         * modules/readlink (configure.ac): ... to here.
14352
14353 2011-05-21  Bruno Haible  <bruno@clisp.org>
14354
14355         readline: Move AC_LIBOBJ invocations to module description.
14356         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14357         gl_PREREQ_READLINE invocations from here...
14358         * modules/readline (configure.ac): ... to here.
14359
14360 2011-05-21  Bruno Haible  <bruno@clisp.org>
14361
14362         read: Move AC_LIBOBJ invocations to module description.
14363         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14364         * modules/read (configure.ac): ... to here.
14365
14366 2011-05-21  Bruno Haible  <bruno@clisp.org>
14367
14368         rawmemchr: Move AC_LIBOBJ invocations to module description.
14369         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14370         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14371         from here...
14372         * modules/rawmemchr (configure.ac): ... to here.
14373
14374 2011-05-21  Bruno Haible  <bruno@clisp.org>
14375
14376         random_r: Move AC_LIBOBJ invocations to module description.
14377         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14378         gl_PREREQ_RANDOM_R invocations from here...
14379         * modules/random_r (configure.ac): ... to here.
14380
14381 2011-05-21  Bruno Haible  <bruno@clisp.org>
14382
14383         pwrite: Move AC_LIBOBJ invocations to module description.
14384         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14385         * modules/pwrite (configure.ac): ... to here.
14386
14387 2011-05-21  Bruno Haible  <bruno@clisp.org>
14388
14389         putenv: Move AC_LIBOBJ invocations to module description.
14390         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14391         * modules/putenv (configure.ac): ... to here.
14392
14393 2011-05-21  Bruno Haible  <bruno@clisp.org>
14394
14395         login_tty: Move AC_LIBOBJ invocations to module description.
14396         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14397         * modules/login_tty (configure.ac): ... to here.
14398
14399 2011-05-21  Bruno Haible  <bruno@clisp.org>
14400
14401         openpty: Move AC_LIBOBJ invocations to module description.
14402         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14403         * modules/openpty (configure.ac): ... to here.
14404
14405 2011-05-21  Bruno Haible  <bruno@clisp.org>
14406
14407         forkpty: Move AC_LIBOBJ invocations to module description.
14408         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14409         * modules/forkpty (configure.ac): ... to here.
14410
14411 2011-05-21  Bruno Haible  <bruno@clisp.org>
14412
14413         ptsname: Move AC_LIBOBJ invocations to module description.
14414         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14415         invocations from here...
14416         * modules/ptsname (configure.ac): ... to here.
14417
14418 2011-05-21  Bruno Haible  <bruno@clisp.org>
14419
14420         pread: Move AC_LIBOBJ invocations to module description.
14421         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14422         * modules/pread (configure.ac): ... to here.
14423
14424 2011-05-21  Bruno Haible  <bruno@clisp.org>
14425
14426         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14427         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14428         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14429         * modules/posix_spawn (configure.ac): ... to here.
14430         * modules/posix_spawnp (configure.ac): ... and here.
14431
14432 2011-05-21  Bruno Haible  <bruno@clisp.org>
14433
14434         popen: Move AC_LIBOBJ invocations to module description.
14435         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14436         invocations from here...
14437         * modules/popen (configure.ac): ... to here.
14438
14439 2011-05-21  Bruno Haible  <bruno@clisp.org>
14440
14441         poll: Move AC_LIBOBJ invocations to module description.
14442         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14443         invocations from here...
14444         * modules/poll (configure.ac): ... to here.
14445
14446 2011-05-21  Bruno Haible  <bruno@clisp.org>
14447
14448         pipe-posix: Move AC_LIBOBJ invocations to module description.
14449         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14450         * modules/pipe-posix (configure.ac): ... to here.
14451
14452 2011-05-21  Bruno Haible  <bruno@clisp.org>
14453
14454         openat: Respect rules for use of AC_LIBOBJ.
14455         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14456         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14457         * modules/openat (configure.ac): ... to here.
14458
14459 2011-05-21  Bruno Haible  <bruno@clisp.org>
14460
14461         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14462         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14463         invocation from here...
14464         * modules/obstack-printf (configure.ac): ... to here.
14465         * modules/obstack-printf-posix (configure.ac): ... and here.
14466
14467 2011-05-21  Bruno Haible  <bruno@clisp.org>
14468
14469         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14470         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14471         from here...
14472         * modules/nl_langinfo (configure.ac): ... to here.
14473
14474 2011-05-21  Bruno Haible  <bruno@clisp.org>
14475
14476         nanosleep: Move AC_LIBOBJ invocations to module description.
14477         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14478         gl_PREREQ_NANOSLEEP invocations from here...
14479         * modules/nanosleep (configure.ac): ... to here.
14480
14481 2011-05-21  Bruno Haible  <bruno@clisp.org>
14482
14483         mountlist: Move AC_LIBOBJ invocations to module description.
14484         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14485         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14486         * modules/mountlist (configure.ac): ... to here.
14487
14488 2011-05-21  Bruno Haible  <bruno@clisp.org>
14489
14490         mktime: Respect rules for use of AC_LIBOBJ.
14491         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14492         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14493         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14494         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14495         * modules/mktime (configure.ac): ... to here.
14496         * modules/mktime-internal (configure.ac): ... and here.
14497         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14498
14499 2011-05-21  Bruno Haible  <bruno@clisp.org>
14500
14501         mkstemps: Move AC_LIBOBJ invocations to module description.
14502         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14503         here...
14504         * modules/mkstemps (configure.ac): ... to here.
14505
14506 2011-05-21  Bruno Haible  <bruno@clisp.org>
14507
14508         mkstemp: Move AC_LIBOBJ invocations to module description.
14509         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14510         gl_PREREQ_MKSTEMP invocations from here...
14511         * modules/mkstemp (configure.ac): ... to here.
14512
14513 2011-05-21  Bruno Haible  <bruno@clisp.org>
14514
14515         mkostemps: Move AC_LIBOBJ invocations to module description.
14516         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14517         here...
14518         * modules/mkostemps (configure.ac): ... to here.
14519
14520 2011-05-21  Bruno Haible  <bruno@clisp.org>
14521
14522         mkostemp: Move AC_LIBOBJ invocations to module description.
14523         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14524         gl_PREREQ_MKOSTEMP invocations from here...
14525         * modules/mkostemp (configure.ac): ... to here.
14526
14527 2011-05-21  Bruno Haible  <bruno@clisp.org>
14528
14529         mknod: Move AC_LIBOBJ invocations to module description.
14530         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14531         * modules/mknod (configure.ac): ... to here.
14532
14533 2011-05-21  Bruno Haible  <bruno@clisp.org>
14534
14535         mkfifoat: Move AC_LIBOBJ invocations to module description.
14536         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14537         here...
14538         * modules/mkfifoat (configure.ac): ... to here.
14539
14540 2011-05-21  Bruno Haible  <bruno@clisp.org>
14541
14542         mkfifo: Respect rules for use of AC_LIBOBJ.
14543         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14544         here...
14545         * modules/mkfifo (configure.ac): ... to here.
14546
14547 2011-05-21  Bruno Haible  <bruno@clisp.org>
14548
14549         mkdtemp: Move AC_LIBOBJ invocations to module description.
14550         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14551         invocations from here...
14552         * modules/mkdtemp (configure.ac): ... to here.
14553
14554 2011-05-21  Bruno Haible  <bruno@clisp.org>
14555
14556         mkdir: Move AC_LIBOBJ invocations to module description.
14557         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14558         * modules/mkdir (configure.ac): ... to here.
14559
14560 2011-05-21  Bruno Haible  <bruno@clisp.org>
14561
14562         memset: Move AC_LIBOBJ invocations to module description.
14563         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14564         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14565         here...
14566         * modules/memset (configure.ac): ... to here.
14567
14568 2011-05-21  Bruno Haible  <bruno@clisp.org>
14569
14570         memrchr: Move AC_LIBOBJ invocations to module description.
14571         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14572         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14573         here...
14574         * modules/memrchr (configure.ac): ... to here.
14575
14576 2011-05-21  Bruno Haible  <bruno@clisp.org>
14577
14578         mempcpy: Move AC_LIBOBJ invocations to module description.
14579         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14580         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14581         here...
14582         * modules/mempcpy (configure.ac): ... to here.
14583
14584 2011-05-21  Bruno Haible  <bruno@clisp.org>
14585
14586         memmove: Move AC_LIBOBJ invocations to module description.
14587         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14588         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14589         here...
14590         * modules/memmove (configure.ac): ... to here.
14591
14592 2011-05-21  Bruno Haible  <bruno@clisp.org>
14593
14594         memmem*: Move AC_LIBOBJ invocations to module description.
14595         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14596         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14597         here...
14598         (gl_FUNC_MEMMEM): ... and here...
14599         * modules/memmem-simple (configure.ac): ... to here.
14600         * modules/memmem (configure.ac): ... and here.
14601
14602 2011-05-21  Bruno Haible  <bruno@clisp.org>
14603
14604         memcpy: Move AC_LIBOBJ invocations to module description.
14605         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14606         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14607         here...
14608         * modules/memcpy (configure.ac): ... to here.
14609
14610 2011-05-21  Bruno Haible  <bruno@clisp.org>
14611
14612         memcmp: Simplify autoconf macro.
14613         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14614         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14615         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14616
14617 2011-05-21  Bruno Haible  <bruno@clisp.org>
14618
14619         memcmp: Move AC_LIBOBJ invocations to module description.
14620         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14621         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14622         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14623         * modules/memcmp (configure.ac): ... to here.
14624         (Depends-on): Update conditions.
14625
14626 2011-05-21  Bruno Haible  <bruno@clisp.org>
14627
14628         memchr: Respect rules for use of AC_LIBOBJ.
14629         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14630         invocations from here...
14631         * modules/memchr (configure.ac): ... to here.
14632
14633 2011-05-21  Bruno Haible  <bruno@clisp.org>
14634
14635         mbtowc: Move AC_LIBOBJ invocations to module description.
14636         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14637         invocations from here...
14638         * modules/mbtowc (configure.ac): ... to here.
14639
14640 2011-05-21  Bruno Haible  <bruno@clisp.org>
14641
14642         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14643         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14644         gl_PREREQ_MBSRTOWCS invocations from here...
14645         * modules/mbsrtowcs (configure.ac): ... to here.
14646
14647 2011-05-21  Bruno Haible  <bruno@clisp.org>
14648
14649         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14650         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14651         gl_PREREQ_MBSNRTOWCS invocations from here...
14652         * modules/mbsnrtowcs (configure.ac): ... to here.
14653
14654 2011-05-21  Bruno Haible  <bruno@clisp.org>
14655
14656         mbsinit: Move AC_LIBOBJ invocations to module description.
14657         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14658         invocations from here...
14659         * modules/mbsinit (configure.ac): ... to here.
14660
14661 2011-05-21  Bruno Haible  <bruno@clisp.org>
14662
14663         mbrlen: Move AC_LIBOBJ invocations to module description.
14664         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14665         invocations from here...
14666         * modules/mbrlen (configure.ac): ... to here.
14667
14668 2011-05-21  Bruno Haible  <bruno@clisp.org>
14669
14670         mbrtowc: Respect rules for use of AC_LIBOBJ.
14671         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14672         invocations from here...
14673         * modules/mbrtowc (configure.ac): ... to here.
14674
14675 2011-05-21  Bruno Haible  <bruno@clisp.org>
14676
14677         malloc-*: Move AC_LIBOBJ invocations to module description.
14678         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14679         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14680         AC_LIBOBJ invocations from here...
14681         * modules/malloc-gnu (configure.ac): ... to here.
14682         * modules/malloc-posix (configure.ac): ... and here.
14683
14684 2011-05-21  Bruno Haible  <bruno@clisp.org>
14685
14686         lstat, openat: Respect rules for use of AC_LIBOBJ.
14687         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14688         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14689         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14690         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14691         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14692         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14693         here.
14694         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14695
14696 2011-05-21  Bruno Haible  <bruno@clisp.org>
14697
14698         lseek: Move AC_LIBOBJ invocations to module description.
14699         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14700         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14701         * modules/lseek (configure.ac): ... to here.
14702
14703 2011-05-21  Bruno Haible  <bruno@clisp.org>
14704
14705         linkat: Move AC_LIBOBJ invocations to module description.
14706         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14707         here...
14708         * modules/linkat (configure.ac): ... to here.
14709
14710 2011-05-21  Bruno Haible  <bruno@clisp.org>
14711
14712         link: Respect rules for use of AC_LIBOBJ.
14713         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14714         * modules/link (configure.ac): ... to here.
14715
14716 2011-05-21  Bruno Haible  <bruno@clisp.org>
14717
14718         lchown: Move AC_LIBOBJ invocations to module description.
14719         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14720         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14721         * modules/lchown (configure.ac): ... to here.
14722
14723 2011-05-21  Bruno Haible  <bruno@clisp.org>
14724
14725         iswctype: Move AC_LIBOBJ invocations to module description.
14726         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14727         here...
14728         * modules/iswctype (configure.ac): ... to here.
14729
14730 2011-05-21  Bruno Haible  <bruno@clisp.org>
14731
14732         iswblank: Move AC_LIBOBJ invocations to module description.
14733         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14734         here...
14735         * modules/iswblank (configure.ac): ... to here.
14736
14737 2011-05-21  Bruno Haible  <bruno@clisp.org>
14738
14739         atanl: Move AC_LIBOBJ invocations to module description.
14740         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14741         * modules/atanl (configure.ac): ... to here.
14742
14743 2011-05-21  Bruno Haible  <bruno@clisp.org>
14744
14745         acosl: Move AC_LIBOBJ invocations to module description.
14746         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14747         * modules/acosl (configure.ac): ... to here.
14748
14749 2011-05-21  Bruno Haible  <bruno@clisp.org>
14750
14751         asinl: Respect rules for use of AC_LIBOBJ.
14752         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14753         * modules/asinl (configure.ac): ... to here.
14754
14755 2011-05-21  Bruno Haible  <bruno@clisp.org>
14756
14757         tanl: Move AC_LIBOBJ invocations to module description.
14758         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14759         * modules/tanl (configure.ac): ... to here.
14760
14761 2011-05-21  Bruno Haible  <bruno@clisp.org>
14762
14763         cosl: Move AC_LIBOBJ invocations to module description.
14764         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14765         * modules/cosl (configure.ac): ... to here.
14766
14767 2011-05-21  Bruno Haible  <bruno@clisp.org>
14768
14769         sinl: Move AC_LIBOBJ invocations to module description.
14770         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14771         * modules/sinl (configure.ac): ... to here.
14772
14773 2011-05-21  Bruno Haible  <bruno@clisp.org>
14774
14775         logl: Move AC_LIBOBJ invocations to module description.
14776         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14777         * modules/logl (configure.ac): ... to here.
14778
14779 2011-05-21  Bruno Haible  <bruno@clisp.org>
14780
14781         expl: Move AC_LIBOBJ invocations to module description.
14782         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14783         * modules/expl (configure.ac): ... to here.
14784
14785 2011-05-21  Bruno Haible  <bruno@clisp.org>
14786
14787         roundl: Move AC_LIBOBJ invocations to module description.
14788         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14789         * modules/roundl (configure.ac): ... to here.
14790
14791 2011-05-21  Bruno Haible  <bruno@clisp.org>
14792
14793         round: Move AC_LIBOBJ invocations to module description.
14794         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14795         * modules/round (configure.ac): ... to here.
14796
14797 2011-05-21  Bruno Haible  <bruno@clisp.org>
14798
14799         roundf: Move AC_LIBOBJ invocations to module description.
14800         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14801         * modules/roundf (configure.ac): ... to here.
14802
14803 2011-05-21  Bruno Haible  <bruno@clisp.org>
14804
14805         truncl: Move AC_LIBOBJ invocations to module description.
14806         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14807         * modules/truncl (configure.ac): ... to here.
14808
14809 2011-05-21  Bruno Haible  <bruno@clisp.org>
14810
14811         trunc: Move AC_LIBOBJ invocations to module description.
14812         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14813         * modules/trunc (configure.ac): ... to here.
14814
14815 2011-05-21  Bruno Haible  <bruno@clisp.org>
14816
14817         truncf: Move AC_LIBOBJ invocations to module description.
14818         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14819         * modules/truncf (configure.ac): ... to here.
14820
14821 2011-05-21  Bruno Haible  <bruno@clisp.org>
14822
14823         ceill: Move AC_LIBOBJ invocations to module description.
14824         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14825         * modules/ceill (configure.ac): ... to here.
14826
14827 2011-05-21  Bruno Haible  <bruno@clisp.org>
14828
14829         ceil: Move AC_LIBOBJ invocations to module description.
14830         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14831         * modules/ceil (configure.ac): ... to here.
14832
14833 2011-05-21  Bruno Haible  <bruno@clisp.org>
14834
14835         ceilf: Move AC_LIBOBJ invocations to module description.
14836         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14837         * modules/ceilf (configure.ac): ... to here.
14838
14839 2011-05-21  Bruno Haible  <bruno@clisp.org>
14840
14841         floorl: Respect rules for use of AC_LIBOBJ.
14842         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14843         * modules/floorl (configure.ac): ... to here.
14844
14845 2011-05-21  Bruno Haible  <bruno@clisp.org>
14846
14847         floor: Respect rules for use of AC_LIBOBJ.
14848         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14849         * modules/floor (configure.ac): ... to here.
14850
14851 2011-05-21  Bruno Haible  <bruno@clisp.org>
14852
14853         floorf: Move AC_LIBOBJ invocations to module description.
14854         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14855         * modules/floorf (configure.ac): ... to here.
14856
14857 2011-05-20  Bruno Haible  <bruno@clisp.org>
14858
14859         sqrtl: Respect rules for use of AC_LIBOBJ.
14860         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14861         * modules/sqrtl (configure.ac): ... to here.
14862
14863 2011-05-20  Bruno Haible  <bruno@clisp.org>
14864
14865         ldexpl: Respect rules for use of AC_LIBOBJ.
14866         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14867         * modules/ldexpl (configure.ac): ... to here.
14868
14869 2011-05-20  Bruno Haible  <bruno@clisp.org>
14870
14871         frexpl*: Respect rules for use of AC_LIBOBJ.
14872         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14873         invocation from here...
14874         * modules/frexpl (configure.ac): ... to here.
14875         * modules/frexpl-nolibm (configure.ac): ... and here.
14876
14877 2011-05-20  Bruno Haible  <bruno@clisp.org>
14878
14879         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14880         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14881         invocation from here...
14882         * modules/frexp (configure.ac): ... to here.
14883         * modules/frexp-nolibm (configure.ac): ... and here.
14884
14885 2011-05-20  Bruno Haible  <bruno@clisp.org>
14886
14887         isnan: Respect rules for use of AC_LIBOBJ.
14888         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14889         invocations here.
14890         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14891         REPLACE_ISNAN.
14892         * modules/isnand (configure.ac): Likewise.
14893         * modules/isnanl (configure.ac): Likewise.
14894
14895 2011-05-20  Bruno Haible  <bruno@clisp.org>
14896
14897         isnanl*: Respect rules for use of AC_LIBOBJ.
14898         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14899         invocation from here...
14900         * modules/isnanl (configure.ac): ... to here.
14901         * modules/isnanl-nolibm (configure.ac): ... and here.
14902
14903 2011-05-20  Bruno Haible  <bruno@clisp.org>
14904
14905         isnand*: Move AC_LIBOBJ invocations to module description.
14906         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14907         invocation from here...
14908         * modules/isnand (configure.ac): ... to here.
14909         * modules/isnand-nolibm (configure.ac): ... and here.
14910
14911 2011-05-20  Bruno Haible  <bruno@clisp.org>
14912
14913         isnanf*: Move AC_LIBOBJ invocations to module description.
14914         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14915         invocation from here...
14916         * modules/isnanf (configure.ac): ... to here.
14917         * modules/isnanf-nolibm (configure.ac): ... and here.
14918
14919 2011-05-20  Bruno Haible  <bruno@clisp.org>
14920
14921         isnan*: Separate the AC_LIBOBJ invocations.
14922         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14923         AC_LIBOBJ invocation.
14924         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14925         here.
14926         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14927         AC_LIBOBJ invocation.
14928         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14929         here.
14930         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14931         AC_LIBOBJ invocation.
14932         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14933         here.
14934         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14935
14936 2011-05-08  Bruno Haible  <bruno@clisp.org>
14937
14938         isinf: Move AC_LIBOBJ invocations to module description.
14939         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14940         * modules/isinf (configure.ac): ... to here.
14941
14942 2011-05-08  Bruno Haible  <bruno@clisp.org>
14943
14944         isfinite: Move AC_LIBOBJ invocations to module description.
14945         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14946         * modules/isfinite (configure.ac): ... to here.
14947
14948 2011-05-08  Bruno Haible  <bruno@clisp.org>
14949
14950         isblank: Move AC_LIBOBJ invocations to module description.
14951         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14952         here...
14953         * modules/isblank (configure.ac): ... to here.
14954
14955 2011-05-08  Bruno Haible  <bruno@clisp.org>
14956
14957         isapipe: Move AC_LIBOBJ invocations to module description.
14958         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14959         gl_PREREQ_ISAPIPE invocations from here...
14960         * modules/isapipe (configure.ac): ... to here.
14961         (Depends-on): Update condition.
14962
14963 2011-05-08  Bruno Haible  <bruno@clisp.org>
14964
14965         ioctl: Move AC_LIBOBJ invocations to module description.
14966         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14967         invocations from here...
14968         * modules/ioctl (configure.ac): ... to here.
14969         (Depends-on): Update condition.
14970
14971 2011-05-08  Bruno Haible  <bruno@clisp.org>
14972
14973         imaxdiv: Move AC_LIBOBJ invocations to module description.
14974         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14975         invocations from here...
14976         * modules/imaxdiv (configure.ac): ... to here.
14977
14978 2011-05-08  Bruno Haible  <bruno@clisp.org>
14979
14980         imaxabs: Move AC_LIBOBJ invocations to module description.
14981         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14982         invocations from here...
14983         * modules/imaxabs (configure.ac): ... to here.
14984
14985 2011-05-08  Bruno Haible  <bruno@clisp.org>
14986
14987         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14988         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14989         AC_LIBOBJ invocations from here...
14990         * modules/getaddrinfo (configure.ac): ... to here.
14991         (Depends-on): Add conditions.
14992
14993 2011-05-08  Bruno Haible  <bruno@clisp.org>
14994
14995         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14996         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14997         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14998         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14999         (gl_PREREQ_INET_PTON): ... from here.
15000         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
15001         gl_PREREQ_INET_PTON here.
15002         (Depends-on): Update condition.
15003
15004 2011-05-08  Bruno Haible  <bruno@clisp.org>
15005
15006         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
15007         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
15008         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
15009         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
15010         (gl_PREREQ_INET_NTOP): ... from here.
15011         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
15012         gl_PREREQ_INET_NTOP here.
15013         (Depends-on): Update condition.
15014
15015 2011-05-08  Bruno Haible  <bruno@clisp.org>
15016
15017         iconv_open: Move AC_LIBOBJ invocations to module description.
15018         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
15019         AC_LIBOBJ invocations from here...
15020         * modules/iconv_open (configure.ac): ... to here.
15021
15022 2011-05-08  Bruno Haible  <bruno@clisp.org>
15023
15024         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
15025         If module 'iconv_open' is among the main modules and module
15026         'iconv_open-utf' is among the tests dependencies, then
15027         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
15028         return the special iconv_t values. Therefore iconv() and iconv_close()
15029         must support these special iconv_t values, already in lib, not only in
15030         tests.
15031         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
15032         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
15033         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
15034         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
15035         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
15036         (Depends-on): Add the dependencies of iconv_open-utf.
15037         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
15038         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
15039         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
15040
15041 2011-05-08  Bruno Haible  <bruno@clisp.org>
15042
15043         group-member: Move AC_LIBOBJ invocations to module description.
15044         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
15045         gl_PREREQ_GROUP_MEMBER invocations from here...
15046         * modules/group-member (configure.ac): ... to here.
15047
15048 2011-05-08  Bruno Haible  <bruno@clisp.org>
15049
15050         grantpt: Move AC_LIBOBJ invocations to module description.
15051         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
15052         invocations from here...
15053         * modules/grantpt (configure.ac): ... to here.
15054
15055 2011-05-08  Bruno Haible  <bruno@clisp.org>
15056
15057         glob: Move AC_LIBOBJ invocations to module description.
15058         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
15059         from here...
15060         * modules/glob (configure.ac): ... to here.
15061
15062 2011-05-08  Bruno Haible  <bruno@clisp.org>
15063
15064         getusershell: Move AC_LIBOBJ invocations to module description.
15065         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
15066         Move AC_LIBOBJ invocation from here...
15067         * modules/getusershell (configure.ac): ... to here.
15068         (Depends-on): Update condition.
15069
15070 2011-05-08  Bruno Haible  <bruno@clisp.org>
15071
15072         gettimeofday: Move AC_LIBOBJ invocations to module description.
15073         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
15074         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
15075         gl_PREREQ_GETTIMEOFDAY invocations from here...
15076         * modules/gettimeofday (configure.ac): ... to here.
15077
15078 2011-05-08  Bruno Haible  <bruno@clisp.org>
15079
15080         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
15081         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
15082         just gl_FUNC_TZSET.
15083         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
15084         (gl_FUNC_TZSET_CLOBBER): Remove actions.
15085         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
15086         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
15087
15088 2011-05-08  Bruno Haible  <bruno@clisp.org>
15089
15090         getsubopt: Move AC_LIBOBJ invocations to module description.
15091         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
15092         gl_PREREQ_GETSUBOPT invocations from here...
15093         * modules/getsubopt (configure.ac): ... to here.
15094
15095 2011-05-08  Bruno Haible  <bruno@clisp.org>
15096
15097         getpass-gnu: Move AC_LIBOBJ invocations to module description.
15098         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
15099         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
15100         * modules/getpass-gnu (configure.ac): ... to here.
15101
15102 2011-05-08  Bruno Haible  <bruno@clisp.org>
15103
15104         getpass: Move AC_LIBOBJ invocations to module description.
15105         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
15106         gl_PREREQ_GETPASS invocations from here...
15107         * modules/getpass (configure.ac): ... to here.
15108
15109 2011-05-08  Bruno Haible  <bruno@clisp.org>
15110
15111         getpagesize: Move AC_LIBOBJ invocations to module description.
15112         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
15113         from here...
15114         * modules/getpagesize (configure.ac): ... to here.
15115
15116 2011-05-08  Bruno Haible  <bruno@clisp.org>
15117
15118         getopt: Move AC_LIBOBJ invocations to module description.
15119         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
15120         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
15121         invocations from here...
15122         * modules/getopt-gnu (configure.ac): ... to here.
15123         * modules/getopt-posix (configure.ac): ... and here.
15124         (Depends-on): Update condition.
15125
15126 2011-05-08  Bruno Haible  <bruno@clisp.org>
15127
15128         getopt, argp: Respect rules for use of AC_LIBOBJ.
15129         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
15130         (gl_REPLACE_GETOPT_ALWAYS): New macro.
15131         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
15132         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
15133
15134 2011-05-08  Bruno Haible  <bruno@clisp.org>
15135
15136         getlogin_r: Move AC_LIBOBJ invocations to module description.
15137         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
15138         gl_PREREQ_GETLOGIN_R invocations from here...
15139         * modules/getlogin_r (configure.ac): ... to here.
15140
15141 2011-05-08  Bruno Haible  <bruno@clisp.org>
15142
15143         getlogin: Move AC_LIBOBJ invocations to module description.
15144         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
15145         here...
15146         * modules/getlogin (configure.ac): ... to here.
15147
15148 2011-05-08  Bruno Haible  <bruno@clisp.org>
15149
15150         getloadavg: Move AC_LIBOBJ invocations to module description.
15151         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
15152         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
15153         * modules/getloadavg (configure.ac): ... to here.
15154
15155 2011-05-08  Bruno Haible  <bruno@clisp.org>
15156
15157         gethrxtime: Move AC_LIBOBJ invocations to module description.
15158         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
15159         LIB_GETHRXTIME from here...
15160         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
15161         invocations from here...
15162         * modules/gethrxtime (configure.ac): ... to here.
15163
15164 2011-05-08  Bruno Haible  <bruno@clisp.org>
15165
15166         gethostname: Move AC_LIBOBJ invocations to module description.
15167         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
15168         gl_PREREQ_GETHOSTNAME invocations from here...
15169         * modules/gethostname (configure.ac): ... to here.
15170
15171 2011-05-08  Bruno Haible  <bruno@clisp.org>
15172
15173         getgroups: Move AC_LIBOBJ invocations to module description.
15174         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
15175         here...
15176         * modules/getgroups (configure.ac): ... to here.
15177
15178 2011-05-08  Bruno Haible  <bruno@clisp.org>
15179
15180         getdtablesize: Move AC_LIBOBJ invocations to module description.
15181         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
15182         invocation from here...
15183         * modules/getdtablesize (configure.ac): ... to here.
15184
15185 2011-05-08  Bruno Haible  <bruno@clisp.org>
15186
15187         getdomainname: Move AC_LIBOBJ invocations to module description.
15188         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
15189         gl_PREREQ_GETDOMAINNAME invocations from here...
15190         * modules/getdomainname (configure.ac): ... to here.
15191
15192 2011-05-08  Bruno Haible  <bruno@clisp.org>
15193
15194         getline: Move AC_LIBOBJ invocations to module description.
15195         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
15196         invocations from here...
15197         * modules/getline (configure.ac): ... to here.
15198
15199 2011-05-08  Bruno Haible  <bruno@clisp.org>
15200
15201         getline: Simplify.
15202         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
15203         It's already handled through the module dependency.
15204
15205 2011-05-08  Bruno Haible  <bruno@clisp.org>
15206
15207         getdelim: Move AC_LIBOBJ invocations to module description.
15208         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
15209         and gl_PREREQ_GETDELIM invocations from here...
15210         * modules/getdelim (configure.ac): ... to here.
15211         (Depends-on): Fix condition.
15212
15213 2011-05-08  Bruno Haible  <bruno@clisp.org>
15214
15215         getcwd: Move AC_LIBOBJ invocations to module description.
15216         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
15217         invocations from here...
15218         * modules/getcwd (configure.ac): ... to here.
15219
15220 2011-05-08  Bruno Haible  <bruno@clisp.org>
15221
15222         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
15223         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
15224         here...
15225         * modules/getcwd-lgpl (configure.ac): ... to here.
15226
15227 2011-05-07  Bruno Haible  <bruno@clisp.org>
15228
15229         crypto/gc: Move AC_LIBOBJ invocations to module description.
15230         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
15231         * modules/crypto/gc (configure.ac): ... to here.
15232
15233 2011-05-07  Bruno Haible  <bruno@clisp.org>
15234
15235         fwriting: Move AC_LIBOBJ invocations to module description.
15236         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
15237         here...
15238         * modules/fwriting (configure.ac): ... to here.
15239
15240 2011-05-07  Bruno Haible  <bruno@clisp.org>
15241
15242         fwritable: Move AC_LIBOBJ invocations to module description.
15243         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
15244         here...
15245         * modules/fwritable (configure.ac): ... to here.
15246
15247 2011-05-07  Bruno Haible  <bruno@clisp.org>
15248
15249         futimens: Move AC_LIBOBJ invocations to module description.
15250         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
15251         here...
15252         * modules/futimens (configure.ac): ... to here.
15253
15254 2011-05-07  Bruno Haible  <bruno@clisp.org>
15255
15256         ftruncate: Move AC_LIBOBJ invocations to module description.
15257         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
15258         gl_PREREQ_FTRUNCATE invocations from here...
15259         * modules/ftruncate (configure.ac): ... to here.
15260
15261 2011-05-07  Bruno Haible  <bruno@clisp.org>
15262
15263         fsync: Move AC_LIBOBJ invocations to module description.
15264         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
15265         invocations from here...
15266         * modules/fsync (configure.ac): ... to here.
15267
15268 2011-05-07  Bruno Haible  <bruno@clisp.org>
15269
15270         fsusage: Move AC_LIBOBJ invocations to module description.
15271         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
15272         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
15273         * modules/fsusage (configure.ac): ... to here.
15274
15275 2011-05-07  Bruno Haible  <bruno@clisp.org>
15276
15277         freopen: Move AC_LIBOBJ invocations to module description.
15278         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
15279         invocations from here...
15280         * modules/freopen (configure.ac): ... to here.
15281
15282 2011-05-07  Bruno Haible  <bruno@clisp.org>
15283
15284         free: Move AC_LIBOBJ invocations to module description.
15285         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
15286         invocations from here...
15287         * modules/free (configure.ac): ... to here.
15288
15289 2011-05-07  Bruno Haible  <bruno@clisp.org>
15290
15291         freadable: Move AC_LIBOBJ invocations to module description.
15292         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
15293         here...
15294         * modules/freadable (configure.ac): ... to here.
15295
15296 2011-05-07  Bruno Haible  <bruno@clisp.org>
15297
15298         fpurge: Move AC_LIBOBJ invocations to module description.
15299         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
15300         invocations from here...
15301         * modules/fpurge (configure.ac): ... to here.
15302
15303 2011-05-07  Bruno Haible  <bruno@clisp.org>
15304
15305         fpending: Move AC_LIBOBJ invocations to module description.
15306         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
15307         gl_FUNC_FPENDING.
15308         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
15309         invocations from here...
15310         * modules/fpending (configure.ac): ... to here.
15311
15312 2011-05-07  Bruno Haible  <bruno@clisp.org>
15313
15314         fopen: Move AC_LIBOBJ invocations to module description.
15315         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15316         invocations from here...
15317         * modules/fopen (configure.ac): ... to here.
15318
15319 2011-05-07  Bruno Haible  <bruno@clisp.org>
15320
15321         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15322         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15323         gl_FUNC_FNMATCH_POSIX.
15324         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15325         invocations from here...
15326         * modules/fnmatch (configure.ac): ... to here.
15327         * modules/fnmatch-gnu (configure.ac): ... and here.
15328
15329 2011-05-07  Bruno Haible  <bruno@clisp.org>
15330
15331         flock: Move AC_LIBOBJ invocations to module description.
15332         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15333         invocations from here...
15334         * modules/flock (configure.ac): ... to here.
15335
15336 2011-05-07  Bruno Haible  <bruno@clisp.org>
15337
15338         fileblocks: Move AC_LIBOBJ invocations to module description.
15339         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15340         gl_PREREQ_FILEBLOCKS invocations from here...
15341         * modules/fileblocks (configure.ac): ... to here.
15342
15343 2011-05-06  Bruno Haible  <bruno@clisp.org>
15344
15345         fflush: Move AC_LIBOBJ invocations to module description.
15346         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15347         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15348         invocations from here...
15349         * modules/fflush (configure.ac): ... to here.
15350
15351 2011-05-06  Bruno Haible  <bruno@clisp.org>
15352
15353         fdopendir: Move AC_LIBOBJ invocations to module description.
15354         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15355         here...
15356         * modules/fdopendir (configure.ac): ... to here.
15357         (Depends-on): Improve conditions.
15358
15359 2011-05-06  Bruno Haible  <bruno@clisp.org>
15360
15361         _Exit: Move AC_LIBOBJ invocations to module description.
15362         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15363         invocations from here...
15364         * modules/_Exit (configure.ac): ... to here.
15365
15366 2011-05-21  Bruno Haible  <bruno@clisp.org>
15367
15368         euidaccess: Respect rules for use of AC_LIBOBJ.
15369         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15370         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15371         from here...
15372         * modules/euidaccess (configure.ac): ... to here.
15373
15374 2011-05-06  Bruno Haible  <bruno@clisp.org>
15375
15376         error: Move AC_LIBOBJ invocations to module description.
15377         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15378         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15379         invocations from here...
15380         * modules/error (configure.ac): ... to here.
15381
15382 2011-05-06  Bruno Haible  <bruno@clisp.org>
15383
15384         duplocale: Move AC_LIBOBJ invocations to module description.
15385         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15386         gl_PREREQ_DUPLOCALE invocations from here...
15387         * modules/duplocale (configure.ac): ... to here.
15388
15389 2011-05-05  Bruno Haible  <bruno@clisp.org>
15390
15391         dirfd: Move AC_LIBOBJ invocations to module description.
15392         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15393         gl_FUNC_DIRFD.
15394         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15395         here...
15396         * modules/dirfd (configure.ac): ... to here.
15397         (Depends-on): Fix condition.
15398
15399 2011-05-05  Bruno Haible  <bruno@clisp.org>
15400
15401         chown: Respect rules for use of AC_LIBOBJ.
15402         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15403         * modules/chown (configure.ac): ... to here.
15404
15405 2011-05-05  Bruno Haible  <bruno@clisp.org>
15406
15407         chdir-long: Move AC_LIBOBJ invocations to module description.
15408         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15409         gl_PREREQ_CHDIR_LONG invocations from here...
15410         * modules/chdir-long (configure.ac): ... to here.
15411
15412 2011-05-05  Bruno Haible  <bruno@clisp.org>
15413
15414         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15415         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15416         from here...
15417         * modules/canonicalize-lgpl (configure.ac): ... to here.
15418
15419 2011-05-05  Bruno Haible  <bruno@clisp.org>
15420
15421         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15422         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15423         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15424         REPLACE_CALLOC.
15425         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15426         * modules/calloc-gnu (configure.ac): Likewise.
15427
15428 2011-05-05  Bruno Haible  <bruno@clisp.org>
15429
15430         btowc: Move AC_LIBOBJ invocations to module description.
15431         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15432         invocations from here...
15433         * modules/btowc (configure.ac): ... to here.
15434
15435 2011-05-21  Bruno Haible  <bruno@clisp.org>
15436
15437         atexit: Move AC_LIBOBJ invocations to module description.
15438         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15439         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15440         here...
15441         * modules/atexit (configure.ac): ... to here.
15442
15443 2011-05-05  Bruno Haible  <bruno@clisp.org>
15444
15445         atoll: Move AC_LIBOBJ invocations to module description.
15446         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15447         invocations from here...
15448         * modules/atoll (configure.ac): ... to here.
15449
15450 2011-05-05  Bruno Haible  <bruno@clisp.org>
15451
15452         argz: Move AC_LIBOBJ invocations to module description.
15453         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15454         * modules/argz (configure.ac): ... to here.
15455
15456 2011-05-05  Bruno Haible  <bruno@clisp.org>
15457
15458         alphasort: Move AC_LIBOBJ invocations to module description.
15459         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15460         gl_PREREQ_ALPHASORT invocations from here...
15461         * modules/alphasort (configure.ac): ... to here.
15462
15463 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15464
15465         verify: new macro verify_expr; verify_true deprecated
15466         * NEWS: Mention this.
15467         * doc/verify.texi (Compile-time Assertions): Document this.
15468         * lib/verify.h (verify_true): Deprecate.
15469         (verify_expr): New macro.
15470         * tests/test-verify.c (function): Test verify_expr.
15471
15472 2011-06-14  Jim Meyering  <meyering@redhat.com>
15473
15474         init.sh: give more portable redirection-related advice in a comment
15475         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15476         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15477         for lots of discussion.  Stefano Lattarini suggested the solution
15478         of putting "9>&2" after the command.  Reported by Bruno Haible.
15479
15480 2011-06-13  Bruno Haible  <bruno@clisp.org>
15481
15482         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15483         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15484         'none'.
15485
15486 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15487
15488         ftoastr: use strtof only if HAVE_STRTOF
15489         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15491         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15492         * modules/ftoastr (configure.ac): Check for strtof.
15493
15494 2011-06-13  Bruno Haible  <bruno@clisp.org>
15495
15496         gnulib-tool: Addendum to 2011-06-08 commit.
15497         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15498         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15499
15500 2011-06-13  Bruno Haible  <bruno@clisp.org>
15501
15502         fseeko: Provide a non-inline replacement of fseek().
15503         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15504         * modules/fseeko (Depends-on): Add fseek.
15505         * modules/fseek (License): Change to LGPLv2+.
15506
15507 2011-06-13  Bruno Haible  <bruno@clisp.org>
15508
15509         ftello: Provide a non-inline replacement of ftell().
15510         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15511         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15512         not have ftello() (such as on mingw).
15513         * modules/ftello (Depends-on): Add ftell.
15514         * modules/ftell (License): Change to LGPLv2+.
15515
15516 2011-05-07  Bruno Haible  <bruno@clisp.org>
15517
15518         ftell: Move AC_LIBOBJ invocations to module description.
15519         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15520         * modules/ftell (configure.ac): ... to here.
15521
15522 2011-05-07  Bruno Haible  <bruno@clisp.org>
15523
15524         ftello: Respect rules for use of AC_LIBOBJ.
15525         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15526         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15527         here...
15528         * modules/ftello (configure.ac): ... to here.
15529
15530 2011-05-07  Bruno Haible  <bruno@clisp.org>
15531
15532         fseeko: Simplify.
15533         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15534         (gl_FUNC_FSEEKO): Inline it here.
15535
15536 2011-05-07  Bruno Haible  <bruno@clisp.org>
15537
15538         fseek: Move AC_LIBOBJ invocations to module description.
15539         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15540         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15541         * modules/fseek (configure.ac): ... to here.
15542
15543 2011-05-07  Bruno Haible  <bruno@clisp.org>
15544
15545         fseek: Respect rules for use of AC_LIBOBJ.
15546         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15547         here...
15548         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15549
15550 2011-05-07  Bruno Haible  <bruno@clisp.org>
15551
15552         fseeko: Respect rules for use of AC_LIBOBJ.
15553         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15554         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15555         here...
15556         * modules/fseeko (configure.ac): ... to here.
15557
15558 2011-06-13  Bruno Haible  <bruno@clisp.org>
15559
15560         gnulib-tool: Allow comments in the 'Depends-on' section.
15561         * doc/gnulib.texi (Module description): Mention comment syntax in the
15562         Depends-on section.
15563         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15564
15565 2011-06-13  Bruno Haible  <bruno@clisp.org>
15566
15567         file-set.h: guard __attibute__ use, now that it's not always defined
15568         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15569         versions that support it.  This fixes a coreutils build failure with
15570         the vendor cc on HP-UX 11.31.
15571
15572 2011-06-12  Bruno Haible  <bruno@clisp.org>
15573
15574         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15575         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15576         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15577         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15578         (acl, aclsort): New declarations.
15579         (aclv_nontrivial): New declaration.
15580         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15581         (file_has_acl): Read also the second kind of HP-UX ACLs.
15582         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15583         kind of HP-UX ACLs if the first kind fails.
15584         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15585         second kind of HP-UX ACLs.
15586         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15587         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15588         agree.
15589         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15590         hpuxjfs.
15591         Handle hpuxjfs.
15592         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15593         hpuxjfs.
15594         Handle hpuxjfs.
15595         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15596         (func_test_same_acls): Use both lsacl and getacl.
15597         Handle hpuxjfs.
15598         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15599         (func_test_same_acls): Use both lsacl and getacl.
15600         Handle hpuxjfs.
15601
15602 2011-06-12  Bruno Haible  <bruno@clisp.org>
15603
15604         acl: Complete the 2010-08-10 fix.
15605         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15606         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15607         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15608         explicitly.
15609         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15610         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15611
15612 2011-06-12  Bruno Haible  <bruno@clisp.org>
15613
15614         spawn-pipe tests: Comments.
15615         * tests/test-spawn-pipe-child.c (main): Update comment.
15616         Reported by James Youngman <jay@gnu.org>.
15617
15618 2011-06-11  James Youngman  <jay@gnu.org>
15619
15620         New module 'stat-size'.
15621         * modules/stat-size: New module.  Provides macros for accessing
15622         file size information in instances of struct stat.  Depends on the
15623         fileblocks module because it calls st_blocks.
15624         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15625         * doc/gnulib.texi: Include stat-size.texi.
15626         * doc/stat-size.texi: Documentation for this module.
15627         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15628         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15629         AC_STRUCT_ST_BLOCKS.
15630
15631 2011-06-09  Bruno Haible  <bruno@clisp.org>
15632
15633         thread: Support pthreads-win32.
15634         * lib/glthread/thread.h (gl_thread_self): Define differently on
15635         pthreads-win32.
15636         (gl_null_thread): New declaration.
15637         (gl_thread_self_pointer): New macro.
15638         * lib/glthread/thread.c (gl_null_thread): New constant.
15639         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15640         gl_thread_self.
15641         * tests/test-tls.c: Likewise.
15642         Suggested by Paul Eggert. Reported by Eric Blake.
15643
15644 2011-06-09  Bruno Haible  <bruno@clisp.org>
15645
15646         thread: Fix confusion between NULL and 0.
15647         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15648         Reported by Paul Eggert.
15649
15650 2011-06-09  Bruno Haible  <bruno@clisp.org>
15651
15652         spawn-pipe tests: Avoid test failure on HP-UX 11.
15653         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15654         is closed.
15655
15656 2011-06-09  Bruno Haible  <bruno@clisp.org>
15657
15658         acl tests: Fix compilation error on HP-UX 11.
15659         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15660
15661 2011-06-09  Bruno Haible  <bruno@clisp.org>
15662
15663         rmdir: Avoid test failure on HP-UX 10.20.
15664         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15665         EEXIST.
15666
15667 2011-06-08  Eric Blake  <eblake@redhat.com>
15668
15669         perror: fix test on mingw
15670         * modules/perror-tests (Depends-on): Add dup2.
15671
15672         strerror_r-posix: fix on MacOS
15673         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15674         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15675         logic bug.
15676         * lib/strerror_r.c (strerror_r): Fix the bug.
15677         * lib/strerror.c (strerror): Likewise.
15678         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15679         problem.
15680         * doc/posix-functions/strerror.texi (strerror): Likewise.
15681         * doc/posix-functions/perror.texi (perror): Likewise.
15682         * tests/test-strerror.c (main): Enhance test.
15683         * tests/test-strerror_r.c (main): Likewise.
15684
15685 2011-06-08  Bruno Haible  <bruno@clisp.org>
15686
15687         gnulib-tool: Better isolation between different gnulib-tool invocations.
15688         * gnulib-tool: New option --witness-c-macro.
15689         (witness_c_macro): New variable.
15690         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15691         AM_CPPFLAGS define it as a C macro.
15692         (func_emit_tests_Makefile_am): Likewise.
15693         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15694         read it from there.
15695         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15696         m4_define, not AC_DEFUN.
15697         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15698         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15699         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15700         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15701         s|...|...|, to substitute the values of the GNULIB_* module indicator
15702         variables.
15703         * modules/dirent (Makefile.am): Likewise.
15704         * modules/fcntl-h (Makefile.am): Likewise.
15705         * modules/iconv-h (Makefile.am): Likewise.
15706         * modules/langinfo (Makefile.am): Likewise.
15707         * modules/locale (Makefile.am): Likewise.
15708         * modules/math (Makefile.am): Likewise.
15709         * modules/netdb (Makefile.am): Likewise.
15710         * modules/poll-h (Makefile.am): Likewise.
15711         * modules/pty (Makefile.am): Likewise.
15712         * modules/search (Makefile.am): Likewise.
15713         * modules/signal (Makefile.am): Likewise.
15714         * modules/spawn (Makefile.am): Likewise.
15715         * modules/stdio (Makefile.am): Likewise.
15716         * modules/stdlib (Makefile.am): Likewise.
15717         * modules/string (Makefile.am): Likewise.
15718         * modules/sys_ioctl (Makefile.am): Likewise.
15719         * modules/sys_select (Makefile.am): Likewise.
15720         * modules/sys_socket (Makefile.am): Likewise.
15721         * modules/sys_stat (Makefile.am): Likewise.
15722         * modules/sys_times (Makefile.am): Likewise.
15723         * modules/sys_utsname (Makefile.am): Likewise.
15724         * modules/sys_wait (Makefile.am): Likewise.
15725         * modules/termios (Makefile.am): Likewise.
15726         * modules/time (Makefile.am): Likewise.
15727         * modules/unistd (Makefile.am): Likewise.
15728         * modules/wchar (Makefile.am): Likewise.
15729
15730 2011-06-08  Eric Blake  <eblake@redhat.com>
15731
15732         strerror: simplify replacement
15733         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15734         * modules/strerror (configure.ac): No prereqs needed here...
15735         * modules/strerror-override (configure.ac): ...but this needs it.
15736         (Files): Add file for needed prereq macro.
15737
15738 2011-06-08  Bruno Haible  <bruno@clisp.org>
15739
15740         strerror_r-posix: Tweaks.
15741         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15742         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15743         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15744         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15745         (gl_FUNC_STRERROR_R): ... to here.
15746         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15747
15748 2011-06-07  Eric Blake  <eblake@redhat.com>
15749
15750         perror: document fixed bugs
15751         * doc/posix-functions/perror.texi (perror): Document recent
15752         patches.
15753
15754 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15755
15756         stat-time: get_stat_birthtime failure is better-defined
15757         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15758         return a timestamp whose tv_sec and tv_nsec values are both -1.
15759         Previously, the spec said only that the tv_nsec value was negative.
15760         This upward-compatible change simplifies GNU tar a bit.
15761
15762 2011-06-07  Eric Blake  <eblake@redhat.com>
15763
15764         strerror_r-posix: work around cygwin 1.7.9
15765         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15766         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15767         bug without replacing strerror_r.
15768         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15769         strerror_r is buggy, but without requiring strerror_r compilation.
15770         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15771
15772         test-perror: relax test to ignore cygwin bug
15773         * tests/test-perror2.c (main): Relax test on requiring detection
15774         of stream errors, and use unbuffered stream.
15775         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15776         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15777         * doc/posix-functions/fputc.texi (fputc): Likewise.
15778         * doc/posix-functions/fputs.texi (fputs): Likewise.
15779         * doc/posix-functions/fputws.texi (fputws): Likewise.
15780         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15781         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15782         * doc/posix-functions/getopt.texi (getopt): Likewise.
15783         * doc/posix-functions/perror.texi (perror): Likewise.
15784         * doc/posix-functions/printf.texi (printf): Likewise.
15785         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15786         * doc/posix-functions/psignal.texi (psignal): Likewise.
15787         * doc/posix-functions/putc.texi (putc): Likewise.
15788         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15789         Likewise.
15790         * doc/posix-functions/putchar.texi (putchar): Likewise.
15791         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15792         Likewise.
15793         * doc/posix-functions/puts.texi (puts): Likewise.
15794         * doc/posix-functions/putwc.texi (putwc): Likewise.
15795         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15796         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15797         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15798         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15799         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15800         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15801         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15802         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15803
15804 2011-05-22  Bruno Haible  <bruno@clisp.org>
15805
15806         strerror: Move AC_LIBOBJ invocations to module description.
15807         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15808         gl_PREREQ_STRERROR invocations from here...
15809         * modules/strerror (configure.ac): ... to here.
15810
15811 2011-05-21  Bruno Haible  <bruno@clisp.org>
15812
15813         perror: Use common idiom.
15814         * modules/perror (configure.ac): Reorder statements.
15815
15816 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15817
15818         tests: fix usage message in 'mktempd_'
15819         * tests/init.sh (mktempd_): In the usage message, use literal
15820         'mktempd_', not '$ME' (which is even undefined), as the name of
15821         the subroutine.
15822
15823 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15824
15825         tests init: new function 'fatal_', for hard errors
15826         Before this patch, the only way offered by tests/init.sh to
15827         properly signal a hard error was the `framework_failure_'
15828         function.  But the error message issued by that function,
15829         as its name would suggest, refers to a set-up failure in the
15830         testsuite, while hard errors can obviously also be due to
15831         other reasons.  The best way to fix this inconsistency is to
15832         introduce a new function with a more general error message.
15833         * tests/init.sh (fatal_): New function.
15834
15835 2011-06-06  Eric Blake  <eblake@redhat.com>
15836
15837         canonicalize-lgpl: use common idiom
15838         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15839         over newer POSIX -Rf.
15840         Reported by Bruno Haible.
15841
15842         canonicalize-lgpl: work around AIX realpath bug
15843         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15844         * doc/posix-functions/realpath.texi (realpath): Document it.
15845         Reported by Bruno Haible.
15846
15847         strerror: work around FreeBSD bug
15848         * lib/strerror.c (strerror): Special case 0.
15849         Reported by Bruno Haible.
15850
15851         strerror-override: avoid bloating errno module
15852         * modules/errno (Files, configure.ac): Move replacement strings...
15853         * modules/strerror-override: ...to new module.
15854         * modules/strerror (Depends-on): Add strerror-override.
15855         * modules/strerror_r-posix (Depends-on): Likewise.
15856         * MODULES.html.sh: Document new module.
15857         Reported by Bruno Haible.
15858
15859 2011-06-06  Bruno Haible  <bruno@clisp.org>
15860
15861         spawn-pipe tests: Rename program.
15862         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15863         * tests/test-spawn-pipe-child.c: Update comment.
15864         * tests/test-spawn-pipe.sh: Update.
15865         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15866
15867         spawn-pipe tests: Link the child program only against libc.
15868         * tests/test-spawn-pipe-child.c: New file, extracted from
15869         tests/test-spawn-pipe.c.
15870         (main): Expect only one argument.
15871         (is_open): New function, copied from tests/test-pipe.c.
15872         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15873         (child_main): Remove function.
15874         (test_pipe): Pass only one argument to the child program.
15875         (main): Remove child process code. Expect the child program's name as
15876         first argument.
15877         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15878         argument.
15879         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15880         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15881         test-spawn-pipe-child against no libraries.
15882
15883 2011-06-06  Bruno Haible  <bruno@clisp.org>
15884
15885         careadlinkat: Avoid mismatch between ssize_t and int.
15886         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15887         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15888
15889 2011-06-06  Jim Meyering  <meyering@redhat.com>
15890
15891         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15892         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15893         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15894
15895 2011-06-05  Bruno Haible  <bruno@clisp.org>
15896
15897         ansi-c++-opt: Interoperability with libtool.
15898         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15899         set the variable to "no", not to ":".
15900         * NEWS: Mention the change.
15901
15902 2011-06-05  Bruno Haible  <bruno@clisp.org>
15903
15904         acl: Fix test failure on AIX 7.
15905         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15906         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15907
15908 2011-06-05  Bruno Haible  <bruno@clisp.org>
15909
15910         pipe-filter-ii: Fix test failure on AIX and IRIX.
15911         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15912         with EAGAIN, retry with a smaller buffer size.
15913
15914 2011-06-05  Bruno Haible  <bruno@clisp.org>
15915
15916         localename: Fix link dependencies.
15917         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15918         * modules/localename-tests (Makefile.am): Link test-localename with
15919         $(LIBTHREAD).
15920
15921 2011-06-05  Bruno Haible  <bruno@clisp.org>
15922
15923         error: Avoid gcc warning.
15924         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15925
15926 2011-06-05  Bruno Haible  <bruno@clisp.org>
15927
15928         unsetenv: Avoid gcc warning.
15929         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15930
15931 2011-06-05  Bruno Haible  <bruno@clisp.org>
15932
15933         setenv: Avoid gcc warning.
15934         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15935
15936 2011-06-05  Bruno Haible  <bruno@clisp.org>
15937
15938         sys_select: Ensure memset is declared also on AIX 7.
15939         * lib/sys_select.in.h: Include <string.h> also on AIX.
15940         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15941         self-contained also on AIX 7.1.
15942
15943 2011-06-04  Jim Meyering  <meyering@redhat.com>
15944
15945         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15946         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15947         function name, "error".
15948         (_gl_translatable_diag_func_re): New configurable variable.
15949
15950 2011-06-04  Bruno Haible  <bruno@clisp.org>
15951
15952         getopt: Avoid gcc warning.
15953         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15954
15955 2011-06-04  Bruno Haible  <bruno@clisp.org>
15956
15957         strerror_r: Fix comments.
15958         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15959         commit.
15960
15961 2011-06-04  Bruno Haible  <bruno@clisp.org>
15962
15963         perror: Fix compilation error.
15964         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15965         Undefine fprintf, not sprintf.
15966         * modules/perror (Depends-on): Remove intprops, verify.
15967
15968 2011-06-04  Bruno Haible  <bruno@clisp.org>
15969
15970         setlocale: Enable replacement on Cygwin 1.5.
15971         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15972         Cygwin 1.5.x.
15973         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15974         LC_CTYPE category also exists on Cygwin 1.5.x.
15975
15976 2011-06-04  Bruno Haible  <bruno@clisp.org>
15977
15978         strerror-override: Don't disable symbol renamings.
15979         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15980         * lib/strerror-override.c: Include config.h.
15981         (strerror_override): Don't undefine.
15982
15983 2011-06-03  Bruno Haible  <bruno@clisp.org>
15984
15985         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15986         * lib/localename.h: Update copyright header.
15987         * lib/localename.c: Likewise.
15988         * lib/relocatable.h: Likewise.
15989         * lib/relocatable.c: Likewise.
15990
15991 2011-06-02  Bruno Haible  <bruno@clisp.org>
15992
15993         doc: Fix a module name.
15994         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15995
15996 2011-06-02  Bruno Haible  <bruno@clisp.org>
15997
15998         pipe2: Remove dependency on 'nonblocking' module.
15999         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
16000         O_NONBLOCK is defined by gnulib.
16001         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
16002         is zero.
16003         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
16004         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
16005         defined by gnulib.
16006         (get_nonblocking_flag): New function.
16007         (main): Test O_NONBLOCK flag only if it is nonzero.
16008         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
16009
16010 2011-06-03  Jim Meyering  <meyering@redhat.com>
16011
16012         maint: three new prohibit-header-without-use rules
16013         Prohibit use of cloexec.h, posixver.h, same.h without use.
16014         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
16015         (sc_prohibit_posixver_without_use): Likewise.
16016         (sc_prohibit_same_without_use): Likewise.
16017
16018 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
16019
16020         allocator: 'die' routine is now given requested size
16021         * lib/allocator.h (struct allocator.die): New size arg.
16022         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
16023         If the actual problem is an ssize_t limitation, not a size_t or
16024         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
16025
16026 2011-06-01  Eric Blake  <eblake@redhat.com>
16027
16028         strerror: drop strerror_r dependency
16029         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
16030         * lib/strerror-override.c (strerror_override): ...to new file.
16031         * lib/strerror-override.h: Add prototype.
16032         * lib/strerror-impl.h: Delete.
16033         * lib/strerror.c (strerror): New implementation.
16034         * modules/errno (Files): Add new files.
16035         (configure.ac): Compile new file as appropriate.
16036         * modules/strerror (Files): Drop unused file.
16037         (Depends-on): Drop strerror_r-posix.
16038         * MODULES.html.sh: Document strerror_r-posix.
16039         Requested by Sam Steingold.
16040
16041         perror: call strerror_r directly
16042         * modules/perror (Files): Drop strerror-impl.h.
16043         * lib/perror.c (perror): Use our own stack buffer, rather than
16044         calling a wrapper that uses static storage.
16045         * doc/posix-functions/perror.texi (perror): Document a limitation
16046         of our replacement.
16047
16048         strerror_r: fix includes for FreeBSD
16049         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
16050         since we use abort on some platforms.
16051         Reported by Matthias Bolte.
16052
16053 2011-05-31  Bruno Haible  <bruno@clisp.org>
16054
16055         Fix link errors in tests: openat-die uses gettext-h.
16056         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
16057         against $(LIBINTL).
16058         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
16059         against $(LIBINTL).
16060         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
16061         $(LIBINTL).
16062         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
16063         against $(LIBINTL).
16064         * modules/linkat-tests (Makefile.am): Link test-linkat against
16065         $(LIBINTL).
16066         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
16067         $(LIBINTL).
16068         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
16069         against $(LIBINTL).
16070         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
16071         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
16072         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
16073         $(LIBINTL).
16074         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
16075         $(LIBINTL).
16076         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
16077         $(LIBINTL).
16078         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16079
16080 2011-05-31  Bruno Haible  <bruno@clisp.org>
16081
16082         Fix link errors in tests: wait-process uses gettext-h.
16083         * modules/nonblocking-pipe-tests (Makefile.am): Set
16084         test_nonblocking_pipe_main_LDADD.
16085         * modules/nonblocking-socket-tests (Makefile.am): Link
16086         test-nonblocking-socket-main against $(LIBINTL).
16087         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16088
16089 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
16090
16091         assert-h: work around 'verify' incompatibility
16092         * lib/verify.h: Use @...@ directives, not ifdef.
16093         * modules/assert-h (assert.h): Implement the directives.
16094         (assert.h): Substitute the symbol-prefix more consistently.
16095
16096 2011-05-29  Jim Meyering  <meyering@redhat.com>
16097
16098         trim: remove three superfluous assignments
16099         * lib/trim.c (trim2): Remove three superfluous assignments
16100         and correct brace positioning.
16101
16102 2011-05-29  Bruno Haible  <bruno@clisp.org>
16103
16104         wctype-h: Avoid namespace pollution on Solaris 2.6.
16105         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
16106         identifiers.
16107         * doc/posix-headers/wctype.texi: Mention the problem.
16108         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16109
16110 2011-05-28  Jim Meyering  <meyering@redhat.com>
16111
16112         parse-datetime.y: accommodate -Wstrict-overflow
16113         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
16114         placate -Wstrict-overflow.
16115
16116         trim: avoid a warning from -O2 -Wstrict-overflow
16117         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
16118
16119 2011-05-29  Bruno Haible  <bruno@clisp.org>
16120
16121         gnulib-tool: Fix bug in yesterday's commit.
16122         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
16123         twice.
16124
16125 2011-05-29  Bruno Haible  <bruno@clisp.org>
16126
16127         Allow multiple gnulib generated include files to be combined.
16128         * gnulib-tool (func_compute_include_guard_prefix): New function.
16129         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
16130         ${gl_include_guard_prefix} references.
16131         (func_import, func_create_testdir): Invoke
16132         func_compute_include_guard_prefix.
16133         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
16134         * lib/ctype.in.h: Likewise.
16135         * lib/dirent.in.h: Likewise.
16136         * lib/errno.in.h: Likewise.
16137         * lib/fcntl.in.h: Likewise.
16138         * lib/float.in.h: Likewise.
16139         * lib/getopt.in.h: Likewise.
16140         * lib/iconv.in.h: Likewise.
16141         * lib/langinfo.in.h: Likewise.
16142         * lib/locale.in.h: Likewise.
16143         * lib/math.in.h: Likewise.
16144         * lib/netdb.in.h: Likewise.
16145         * lib/netinet_in.in.h: Likewise.
16146         * lib/poll.in.h: Likewise.
16147         * lib/pthread.in.h: Likewise.
16148         * lib/pty.in.h: Likewise.
16149         * lib/sched.in.h: Likewise.
16150         * lib/se-selinux.in.h: Likewise.
16151         * lib/search.in.h: Likewise.
16152         * lib/signal.in.h: Likewise.
16153         * lib/spawn.in.h: Likewise.
16154         * lib/stdarg.in.h: Likewise.
16155         * lib/stddef.in.h: Likewise.
16156         * lib/stdint.in.h: Likewise.
16157         * lib/stdio.in.h: Likewise.
16158         * lib/stdlib.in.h: Likewise.
16159         * lib/string.in.h: Likewise.
16160         * lib/strings.in.h: Likewise.
16161         * lib/sys_file.in.h: Likewise.
16162         * lib/sys_ioctl.in.h: Likewise.
16163         * lib/sys_select.in.h: Likewise.
16164         * lib/sys_socket.in.h: Likewise.
16165         * lib/sys_stat.in.h: Likewise.
16166         * lib/sys_time.in.h: Likewise.
16167         * lib/sys_times.in.h: Likewise.
16168         * lib/sys_uio.in.h: Likewise.
16169         * lib/sys_utsname.in.h: Likewise.
16170         * lib/sys_wait.in.h: Likewise.
16171         * lib/sysexits.in.h: Likewise.
16172         * lib/termios.in.h: Likewise.
16173         * lib/time.in.h: Likewise.
16174         * lib/unistd.in.h: Likewise.
16175         * lib/wchar.in.h: Likewise.
16176         * lib/wctype.in.h: Likewise.
16177         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
16178         * modules/ctype (Makefile.am): Likewise.
16179         * modules/dirent (Makefile.am): Likewise.
16180         * modules/errno (Makefile.am): Likewise.
16181         * modules/fcntl-h (Makefile.am): Likewise.
16182         * modules/float (Makefile.am): Likewise.
16183         * modules/getopt-posix (Makefile.am): Likewise.
16184         * modules/iconv-h (Makefile.am): Likewise.
16185         * modules/langinfo (Makefile.am): Likewise.
16186         * modules/locale (Makefile.am): Likewise.
16187         * modules/math (Makefile.am): Likewise.
16188         * modules/netdb (Makefile.am): Likewise.
16189         * modules/netinet_in (Makefile.am): Likewise.
16190         * modules/poll-h (Makefile.am): Likewise.
16191         * modules/pthread (Makefile.am): Likewise.
16192         * modules/pty (Makefile.am): Likewise.
16193         * modules/sched (Makefile.am): Likewise.
16194         * modules/search (Makefile.am): Likewise.
16195         * modules/selinux-h (Makefile.am): Likewise.
16196         * modules/signal (Makefile.am): Likewise.
16197         * modules/spawn (Makefile.am): Likewise.
16198         * modules/stdarg (Makefile.am): Likewise.
16199         * modules/stddef (Makefile.am): Likewise.
16200         * modules/stdint (Makefile.am): Likewise.
16201         * modules/stdio (Makefile.am): Likewise.
16202         * modules/stdlib (Makefile.am): Likewise.
16203         * modules/string (Makefile.am): Likewise.
16204         * modules/strings (Makefile.am): Likewise.
16205         * modules/sys_file (Makefile.am): Likewise.
16206         * modules/sys_ioctl (Makefile.am): Likewise.
16207         * modules/sys_select (Makefile.am): Likewise.
16208         * modules/sys_socket (Makefile.am): Likewise.
16209         * modules/sys_stat (Makefile.am): Likewise.
16210         * modules/sys_time (Makefile.am): Likewise.
16211         * modules/sys_times (Makefile.am): Likewise.
16212         * modules/sys_uio (Makefile.am): Likewise.
16213         * modules/sys_utsname (Makefile.am): Likewise.
16214         * modules/sys_wait (Makefile.am): Likewise.
16215         * modules/sysexits (Makefile.am): Likewise.
16216         * modules/termios (Makefile.am): Likewise.
16217         * modules/time (Makefile.am): Likewise.
16218         * modules/unistd (Makefile.am): Likewise.
16219         * modules/wchar (Makefile.am): Likewise.
16220         * modules/wctype-h (Makefile.am): Likewise.
16221         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
16222
16223 2011-05-29  Bruno Haible  <bruno@clisp.org>
16224
16225         assert-h: Allow multiple gnulib generated replacements to coexist.
16226         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
16227
16228 2011-05-29  Bruno Haible  <bruno@clisp.org>
16229
16230         argp: Allow coexistence with strerror_r-posix module.
16231         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
16232         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
16233         by gnulib's <string.h> replacement), assume it has the POSIX signature,
16234         not the glibc signature.
16235
16236 2011-05-28  Bruno Haible  <bruno@clisp.org>
16237
16238         gnulib-tool: Alternative structure of testdirs, similar to --import.
16239         * gnulib-tool: New option --single-configure.
16240         (func_usage): Document it.
16241         (single_configure): New variable.
16242         (func_modules_transitive_closure_separately,
16243         func_modules_transitive_closure_separately,
16244         func_determine_use_libtests, func_modules_add_dummy_separately,
16245         func_modules_to_filelist_separately): New functions, extracted from
16246         func_import.
16247         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
16248         (func_import): Use the new functions.
16249         (func_create_testdir): Set final_modules. Handle $single_configure =
16250         true case.
16251
16252 2011-05-28  Bruno Haible  <bruno@clisp.org>
16253
16254         getloadavg: Remove an unreliable safety check.
16255         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
16256         getloadavg.c is in place.
16257         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
16258         Reported by Sam Steingold <sds@gnu.org>.
16259
16260 2011-05-28  Bruno Haible  <bruno@clisp.org>
16261
16262         doc: Cleanup yet another file produced by texinfo.tex.
16263         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
16264
16265 2011-05-28  Bruno Haible  <bruno@clisp.org>
16266
16267         Finish the conditional dependencies mechanism.
16268         * gnulib-tool: New option --no-conditional-dependencies.
16269         (func_usage): Document it. Don't mark --conditional-dependencies as
16270         experimental.
16271         (cond_dependencies): The possible values can now be true, false, empty.
16272         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
16273         (func_import): Store setting in gnulib-cache.m4 and read it from there.
16274         * doc/gnulib-tool.texi (Conditional dependencies): New section.
16275
16276 2011-05-28  Bruno Haible  <bruno@clisp.org>
16277
16278         doc: Use a recent texinfo.tex.
16279         * doc/Makefile (tex_opts): New variable.
16280         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
16281
16282 2011-05-28  Jim Meyering  <meyering@redhat.com>
16283
16284         intprops.h: adjust comment to match code change
16285         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
16286         only once, it *may* have side effects.  Also fix an unrelated typo.
16287         (_GL_INT_SIGNED): Likewise.
16288
16289 2011-05-26  Simon Josefsson  <simon@josefsson.org>
16290
16291         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
16292
16293 2011-05-26  Bruno Haible  <bruno@clisp.org>
16294
16295         mbsrchr: Avoid collision with system function on Interix.
16296         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
16297         Reported by Markus Duft <mduft@gentoo.org>.
16298
16299 2011-05-15  James Youngman  <jay@gnu.org>
16300
16301         getopt: for ambiguous options, enumerate the possibilities.
16302         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
16303         the ambiguous options when an ambiguous prefix is given. This was
16304         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
16305         glibc change was
16306         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
16307
16308 2011-05-25  Eric Blake  <eblake@redhat.com>
16309
16310         getcwd: work around mingw bug
16311         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16312         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16313         Reported by Matthias Bolte.
16314
16315 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16316
16317         test-intprops: disable -Wtype-limits diagnostics
16318         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16319         diagnostics.  Otherwise, the integer overflow macros generate many
16320         diagnostics.  Reported by Jim Meyering in
16321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16322
16323         intprops: shorten, to pacify gcc -Woverlength-strings
16324         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16325         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16326         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16327         likely to run afoul of C compiler limits for string constant lengths.
16328         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16329
16330 2011-05-24  Eric Blake  <eblake@redhat.com>
16331
16332         docs: document recently fixed glibc printf bug
16333         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16334         * doc/posix-functions/printf.texi (printf): Likewise.
16335         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16336         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16337
16338         closein-tests: convert to init.sh
16339         * modules/closein-tests (Files): Add init.sh
16340         * tests/test-closein.sh Use it.
16341
16342         yesno-tests: convert to init.sh
16343         * modules/yesno-tests (Files): Add init.sh.
16344         * tests/test-yesno.sh: Use it.
16345
16346         atexit-tests: ensure reliable exit status
16347         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16348         Reported by Bruno Haible.
16349
16350 2011-05-24  Bruno Haible  <bruno@clisp.org>
16351
16352         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16353         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16354         gl_PREREQ_STRERROR_R invocations from here...
16355         * modules/strerror_r-posix (configure.ac): ... to here.
16356
16357 2011-05-24  Eric Blake  <eblake@redhat.com>
16358
16359         strerror_r: fix missing header
16360         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16361
16362         strerror_r: fix AIX test failures
16363         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16364         ERANGE failure.
16365
16366         strerror_r: fix Solaris test failures
16367         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16368         failures.
16369         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16370
16371         strerror_r: enforce POSIX recommendations
16372         * lib/strerror_r.c (safe_copy): New helper method.
16373         (strerror_r): Guarantee a non-empty string.
16374         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16375         recent POSIX rulings and to match our strerror guarantees.
16376         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16377
16378 2011-05-24  Jim Meyering  <meyering@redhat.com>
16379
16380         test-perror2.c: avoid warning about unused variable
16381         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16382
16383 2011-05-24  Eric Blake  <eblake@redhat.com>
16384
16385         perror: avoid spurious test failure on HP-UX
16386         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16387
16388         tests: fix logic bug in init.sh
16389         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16390         shell.
16391
16392 2011-05-24  Jim Meyering  <meyering@redhat.com>
16393
16394         utimensat: do not reference an out-of-scope buffer
16395         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16396         declared in an inner scope, yet "times" would be dereferenced outside
16397         the scope in which "ts" was valid.
16398         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16399         of ts[2] "out/up", so that the use of aliased "times" (via
16400         "times = ts;") does not end up referencing an out-of-scope "ts"
16401
16402         opendir-safer.c: don't clobber errno; don't close negative FD
16403         * lib/opendir-safer.c (opendir_safer):
16404         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16405         file descriptor, and more importantly, don't clobber the
16406         offending errno value with EINVAL.  Before, upon failure
16407         of dup_safer, we would pass the negative file descriptor to
16408         fdopendir, which would clobber errno.
16409
16410 2011-05-23  Bruno Haible  <bruno@clisp.org>
16411
16412         idcache: Fix module description.
16413         * modules/idcache (Include): Set to "idcache.h".
16414
16415 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16416
16417         gnulib-tool: fix portability problem with MacOS sed
16418         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16419         before the "}".  Problem reported by Leo in
16420         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16421         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16422         sed_extract_condition1, sed_extract_condition2.
16423
16424 2011-05-23  Bruno Haible  <bruno@clisp.org>
16425
16426         hash: Simplify autoconf macro.
16427         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16428
16429 2011-05-23  Bruno Haible  <bruno@clisp.org>
16430
16431         getugroups: Fix module description.
16432         * modules/getugroups (Include): Set to "getugroups.h".
16433
16434 2011-05-23  Bruno Haible  <bruno@clisp.org>
16435
16436         linkat: Simplify autoconf macro.
16437         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16438
16439 2011-05-23  Bruno Haible  <bruno@clisp.org>
16440             Eric Blake  <eblake@redhat.com>
16441
16442         linkat, renameat: Update dependencies.
16443         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16444         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16445         symlinkat.
16446
16447 2011-05-23  Jim Meyering  <meyering@redhat.com>
16448
16449         maint.mk: more tight_scope improvements
16450         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16451         (_gl_TS_headers): Define only in if-0'd block.
16452         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16453         sometimes we must *not* use it.  Adjust uses accordingly.
16454         (sc_tight_scope): Use much simpler grep-based test to determine
16455         whether we skip this rule.
16456
16457         maint.mk: generalize/improve the tight-scope rule
16458         * top/maint.mk: Emit a warning when the test is skipped.
16459         (_gl_TS_dir): Add $(srcdir)/ prefix.
16460         (_gl_TS_function_match): Simplify, rather than trying
16461         to enumerate common types.  Otherwise, it would fail to match an
16462         "extern unsigned char const *" declaration in idutils.
16463         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16464         a way to support use of that type of macro.
16465         (_gl_TS_var_match): Simplify regexp.
16466         (_gl_TS_obj_files): New configurable variable.
16467         (_gl_TS_headers): Likewise.
16468
16469 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16470
16471         verify: fix bug when gnulib <assert.h> is also included
16472         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16473         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16474         Perhaps there's a better way, but this fixes the immediate problem.
16475         Problem reported by Bruno Haible in
16476         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16477
16478 2011-05-22  Bruno Haible  <bruno@clisp.org>
16479
16480         xgetcwd: Simplify autoconf macro.
16481         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16482
16483 2011-05-22  Bruno Haible  <bruno@clisp.org>
16484
16485         New module 'mktime-internal'.
16486         * modules/mktime-internal: New file.
16487         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16488         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16489         mktime_internal as a C macro if libc has __mktime_internal.
16490         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16491         conditions.
16492         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16493
16494 2011-05-22  Bruno Haible  <bruno@clisp.org>
16495
16496         timegm: Correct mktime replacement statements.
16497         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16498         defining mktime as a C macro. This completes a 2009-07-28 commit.
16499
16500 2011-05-22  Bruno Haible  <bruno@clisp.org>
16501
16502         timegm: Simplify autoconf macro.
16503         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16504
16505 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16506
16507         clock-time: change to LGPLv2+.
16508         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16509         BSD-like but we have no mark for that; this is good enough for now.
16510
16511 2011-05-21  Bruno Haible  <bruno@clisp.org>
16512
16513         strerror_r: Fix comments.
16514         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16515
16516 2011-05-21  Bruno Haible  <bruno@clisp.org>
16517
16518         relocatable-prog-wrapper: Fix possible link error.
16519         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16520         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16521         (gl_FUNC_SETENV): ... to here.
16522         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16523         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16524
16525 2011-05-21  Bruno Haible  <bruno@clisp.org>
16526
16527         relocatable-prog-wrapper: Assume strerror() exists.
16528         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16529         m4/strerror.m4.
16530         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16531         * lib/relocwrapper.c: Remove mention of strerror module.
16532         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16533         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16534         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16535         C macro.
16536
16537 2011-05-21  Bruno Haible  <bruno@clisp.org>
16538
16539         select: Simplify replacement idiom.
16540         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16541         Win32 platforms.
16542         * lib/sys_select.in.h (select): Simplify accordingly.
16543         * modules/select (Depends-on): Likewise.
16544
16545 2011-05-21  Bruno Haible  <bruno@clisp.org>
16546
16547         mkdir-p: Simplify autoconf macro.
16548         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16549         gl_FUNC_LCHOWN.
16550
16551 2011-05-21  Eric Blake  <eblake@redhat.com>
16552
16553         strerror_r: avoid clobbering strerror on cygwin
16554         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16555         fall back instead to sys_errlist.
16556         * modules/strerror (configure.ac): Add witness.
16557         * tests/test-strerror_r.c (main): Enhance test.
16558         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16559         * tests/test-perror2.c (main): Free memory before exit.
16560
16561 2011-05-21  Bruno Haible  <bruno@clisp.org>
16562
16563         mkdtemp: Use gnulib naming conventions.
16564         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16565         * modules/mkdtemp (configure.ac): Update.
16566
16567 2011-05-20  Eric Blake  <eblake@redhat.com>
16568
16569         strerror_r: avoid corrupting errno on Solaris
16570         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16571         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16572
16573         strerror_r: avoid compiler warning
16574         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16575
16576         strerror_r: simplify AIX code
16577         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16578
16579         test-perror: avoid spurious failure on FreeBSD
16580         * modules/perror-tests (Depends-on): Add strerror, now that
16581         strerror_r no longer pulls it in.
16582
16583 2011-05-20  Bruno Haible  <bruno@clisp.org>
16584
16585         strerror_r-posix: Remove unused dependencies.
16586         * modules/strerror_r-posix (Depends-on): Remove strerror.
16587         Reported by Eric Blake.
16588
16589 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16590
16591         intprops: remove assumption about A|B representation
16592         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16593         is a valid integer if both A and B are.  Although this is true for
16594         all known practical hosts, the C standard doesn't guarantee it,
16595         and the code need not assume it.  Also, this change may work around
16596         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16597         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16598
16599 2011-05-20  Eric Blake  <eblake@redhat.com>
16600
16601         perror: work around FreeBSD bug
16602         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16603         is broken.  Move AC_LIBOBJ...
16604         * modules/perror (configure.ac): Here.
16605         * doc/posix-functions/perror.texi (perror): Document this.
16606         * tests/test-perror2.c (main): Enhance test.
16607
16608         test-perror: check for strerror interactions
16609         * tests/macros.h (STREQ): Add macro.
16610         * modules/perror-tests (Files): Add second test.
16611         * tests/test-perror2.c (main): New file.
16612         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16613
16614         test-perror: rewrite to use init script
16615         * modules/perror-tests (Files): Add init.sh.
16616         * tests/test-perror.sh: Use temporary directory.
16617
16618 2011-05-20  Jim Meyering  <meyering@redhat.com>
16619
16620         maint: replace misused "a" with "an"
16621         * doc/intprops.texi: "a integer"
16622         * doc/regex.texi: "a explanation"
16623         * lib/alignof.h: "a object"
16624         * lib/argmatch.h: "a explanation"
16625         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16626         * lib/stdint.in.h: "a integer"
16627         * lib/userspec.c: "a owner"
16628         * doc/gnulib.texi: Fix "a idea", and reword.
16629
16630 2011-05-19  Jim Meyering  <meyering@redhat.com>
16631
16632         maint: correct misuse of "a" and "an"
16633         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16634         * lib/argp-help.c: "an docum...": s/an/a/
16635         * lib/argp-parse.c: "An vector": s/An/A/
16636         * lib/execute.c: "an native": s/an/a/
16637         * lib/spawn-pipe.c: Likewise.
16638         * lib/gc.h: "an Gc_rc": s/an/a/
16639         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16640         * lib/fts.c: "an stat.st_dev": s/an/a/
16641
16642 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16643
16644         intprops-tests: work around HP-UX 11.23 cc bug with constants
16645         * tests/test-intprops.c (VERIFY): New macro.
16646         (main): Use it, instead of verify, to work around the compiler bug; see
16647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16648
16649         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16650         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16651         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16652         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16653         (_GL_REMAINDER_OVERFLOW): Use it.
16654
16655         intprops-tests: revert unsigned part of previous change
16656         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16657         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16658         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16660
16661 2011-05-19  Bruno Haible  <bruno@clisp.org>
16662
16663         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16664         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16665         strerror_r() returned without filling the buffer.
16666         Reported by Eric Blake.
16667
16668 2011-05-19  Eric Blake  <eblake@redhat.com>
16669
16670         strerror_r: guarantee unchanged errno
16671         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16672         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16673         failure.
16674         * tests/test-strerror_r.c (main): Enhance test.
16675
16676 2011-05-19  Bruno Haible  <bruno@clisp.org>
16677
16678         strerror_r: Reorder #if blocks.
16679         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16680         for consistency with the previous commit.
16681
16682 2011-05-19  Bruno Haible  <bruno@clisp.org>
16683
16684         perror: Avoid clobbering the strerror buffer when possible.
16685         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16686         * lib/strerror.c: Include it.
16687         * modules/strerror (Files): Add lib/strerror-impl.h.
16688         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16689         (my_strerror): New function, defined through lib/strerror-impl.h.
16690         (perror): Use it instead of strerror.
16691         * modules/perror (Files): Add lib/strerror-impl.h.
16692         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16693
16694 2011-05-19  Eric Blake  <eblake@redhat.com>
16695
16696         strerror_r: fix on newer cygwin
16697         * lib/strerror_r.c (strerror_r): Cygwin now has
16698         __xpg_strerror_r, use it.
16699
16700 2011-05-19  Bruno Haible  <bruno@clisp.org>
16701
16702         strerror_r: Avoid clobbering the strerror buffer when possible.
16703         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16704         (sys_nerr, sys_errlist): New declarations.
16705         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16706         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16707         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16708
16709 2011-05-19  Bruno Haible  <bruno@clisp.org>
16710
16711         strerror_r: Fix test failure on mingw.
16712         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16713         EXTEND_STRERROR_R.
16714         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16715         macros from errno.in.h instead.
16716
16717 2011-05-19  Eric Blake  <eblake@redhat.com>
16718
16719         strerror: relax test for Solaris
16720         * tests/test-strerror.c (main): Permit Solaris behavior.
16721         * tests/test-strerror_r.c (main): Likewise.
16722
16723         strerror: enforce POSIX ruling on strerror(0)
16724         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16725         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16726         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16727         * doc/posix-functions/strerror.texi (strerror): Document it.
16728         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16729         * tests/test-strerror.c (main): Strengthen test.
16730         * tests/test-strerror_r.c (main): Likewise.
16731
16732 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16733
16734         intprop-tests: port to older and more-pedantic compilers
16735         * modules/intprops-tests (Files): Add tests/macros.h.
16736         * tests/test-intprops.c: Include macros.h.
16737         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16738         it's no longer documented to expand to an integer constant expression.
16739         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16740         argument is floating point, as it's no longer documented to expand
16741         to an integer constant expression in that case.
16742         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16743         compiler bugs reported by Bruno Haible.  See
16744         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16745         (U0, U1): New constants, to work around the same bugs.  Also,
16746         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16747
16748         intprops: work around C compiler bugs
16749         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16750         bug in Sun C 5.11 2010/08/13 and other compilers; see
16751         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16752
16753         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16754         * doc/intprops.texi (Integer Type Determination): Fix
16755         documentation for TYPE_IS_INTEGER: it returns an constant
16756         expression, not an integer constant expression.  Fix doc for
16757         TYPE_SIGNED: it returns an integer constant expression only if its
16758         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16759         hardly worth documented that way....)
16760
16761 2011-05-18  Bruno Haible  <bruno@clisp.org>
16762
16763         strerror_r: Avoid clobbering the strerror buffer when possible.
16764         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16765         Handle gnulib defined errno values here. When strerror() returns NULL
16766         or an empty string, return EINVAL.
16767         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16768         gnulib defined errno values here.
16769         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16770
16771 2011-05-18  Eric Blake  <eblake@redhat.com>
16772
16773         fnmatch: avoid compiler warning
16774         * lib/fnmatch_loop.c (FCT): Use correct type.
16775         Reported by Matthias Bolte.
16776
16777 2011-05-13  Jim Meyering  <meyering@redhat.com>
16778
16779         maint.mk: three new prohibit_<HDR>_without_use rules
16780         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16781         (sc_prohibit_stdio-safer_without_use): Likewise.
16782         (sc_prohibit_xfreopen_without_use): Likewise.
16783
16784 2011-05-17  Jim Meyering  <meyering@redhat.com>
16785
16786         announce-gen: fail if the NEWS delta is empty
16787         If there's nothing noteworthy in NEWS, then either you forgot
16788         or you shouldn't be releasing.
16789         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16790
16791 2011-05-17  Pádraig Brady <P@draigBrady.com>
16792
16793         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16794         reserved symbols starting with double underscore from the check.
16795
16796 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16797
16798         intprops: add doc
16799         * doc/intprops.texi: New file, documenting intprops.
16800         * doc/gnulib.texi (Particular Modules): Include it.
16801
16802         verify: add doc to gnulib manual and fix example
16803         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16804         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16805         (Compile-time Assertions): Fix example so it can't overflow.
16806
16807 2011-05-17  Jim Meyering  <meyering@redhat.com>
16808
16809         warnings.m4: don't usurp save_CPPFLAGS variable name
16810         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16811
16812         doc: fix typo
16813         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16814
16815 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16816             Bruno Haible  <bruno@clisp.org>
16817
16818         doc: Tweak recent change.
16819         * README (Portability guidelines): Tweak new text.
16820         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16821         Interix 6.1.
16822
16823 2011-05-16  Eric Blake  <eblake@redhat.com>
16824
16825         inttypes: avoid autoconf warning
16826         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16827         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16828
16829 2011-05-16  Sam Steingold <sds@gnu.org>
16830         and Eric Blake  <eblake@redhat.com>
16831
16832         vc-list-files: accept multiple directory operands
16833         * build-aux/vc-list-files: Iterate over all remaining operands.
16834
16835 2011-05-16  Bruno Haible  <bruno@clisp.org>
16836
16837         Fix confusion regarding deprecated modules.
16838         * modules/calloc (Status, Notice): Mark module as deprecated, not
16839         obsolete.
16840         * modules/fnmatch-posix (Status, Notice): Likewise.
16841         * modules/getdate (Status, Notice): Likewise.
16842         * modules/getopt (Status, Notice): Likewise.
16843         * modules/malloc (Status, Notice): Likewise.
16844         * modules/pipe (Status, Notice): Likewise.
16845         * modules/realloc (Status, Notice): Likewise.
16846         * modules/rename-dest-slash (Status, Notice): Likewise.
16847         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16848         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16849         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16850         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16851         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16852
16853 2011-05-16  Bruno Haible  <bruno@clisp.org>
16854
16855         doc: List the target platforms.
16856         * doc/gnulib-intro.texi (Target Platforms): New section.
16857         * doc/gnulib.texi (Introduction): Update menu.
16858         * README (Portability guidelines): Refer to the new section. Update
16859         statement about oldest supported environment. Remove rationale why
16860         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16861         unportable C89 function.
16862         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16863         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16864
16865 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16866
16867         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16868
16869 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16870
16871         intprops-tests: new module
16872         * modules/intprops-tests, tests/test-intprops.c: New files.
16873
16874         intprops: add safe, portable integer overflow checking
16875         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16876         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16877         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16878         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16879         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16880         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16881         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16882         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16883         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16884         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16885         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16886
16887 2011-05-12  James Youngman  <jay@gnu.org>
16888
16889         Add a test for glibc's Bugzilla bug #12378.
16890         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16891         doesn't allow the literal matching of a lone "[" (which is
16892         required by POSIX).
16893         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16894
16895 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16896
16897         Sync glibc change fixing Bugzilla bug #12378.
16898         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16899         beginning and fall back to matching as normal character if the
16900         string ends before the matching ']' is found.  This is what POSIX
16901         requires.
16902
16903 2011-05-13  Eric Blake  <eblake@redhat.com>
16904
16905         getcwd-lgpl: relax test for FreeBSD
16906         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16907         issue.
16908         * tests/test-getcwd-lgpl.c (main): Relax test.
16909         Reported by Matthias Bolte.
16910
16911 2011-05-11  Eric Blake  <eblake@redhat.com>
16912
16913         test-fflush: silence compiler warning
16914         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16915
16916 2011-05-11  Bruno Haible  <bruno@clisp.org>
16917
16918         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16919         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16920         * modules/canonicalize (Depends-on): Add 'nocrash'.
16921         * modules/canonicalize-lgpl (Depends-on): Likewise.
16922         * doc/posix-functions/realpath.texi: Update platforms list.
16923         Reported by Ryan Schmidt <ryandesign@macports.org>.
16924
16925 2011-05-11  Bruno Haible  <bruno@clisp.org>
16926
16927         group-member: Declare function in <unistd.h>.
16928         * lib/unistd.in.h (group_member): New declaration.
16929         * lib/group-member.h: Remove file.
16930         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16931         * tests/test-unistd-c++.cc: Check signature of group_member.
16932         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16933         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16934         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16935         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16936         HAVE_GROUP_MEMBER.
16937         * modules/group-member (Files): Remove lib/group-member.h.
16938         (Depends-on): Add unistd. Specify conditions.
16939         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16940         (Include): Change to <unistd.h>.
16941         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16942         HAVE_GROUP_MEMBER.
16943         * NEWS: Mention the change.
16944         * lib/euidaccess.c: Don't include group-member.h.
16945
16946 2011-05-11  Bruno Haible  <bruno@clisp.org>
16947
16948         group-member: Document module.
16949         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16950         module.
16951
16952 2011-05-11  Bruno Haible  <bruno@clisp.org>
16953
16954         fclose: Fix mistake earlier today.
16955         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16956
16957 2011-05-11  Eric Blake  <eblake@redhat.com>
16958
16959         fclose: preserve fflush errors
16960         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16961         Reported by Jim Meyering.
16962
16963         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16964         * build-aux/bootstrap (check_versions): When no specific version
16965         is required, merely check that the app produces an exit status
16966         that indicates its existence.
16967
16968         maint.mk: drop redundant check
16969         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16970         the same but better.
16971
16972 2011-05-11  Bruno Haible  <bruno@clisp.org>
16973
16974         fclose: Fix possible link error.
16975         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16976         unregister_shadow_fd. Improve comments.
16977         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16978         Eric Blake.
16979
16980 2011-05-11  Jim Meyering  <meyering@redhat.com>
16981
16982         maint.mk: improve "can not" detection and generalize rule name
16983         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16984         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16985         Use the same technique as in sc_prohibit_doubled_word, so that
16986         we recognize "can not" also when the words are separated by a newline.
16987         Suggested by Eric Blake.
16988         (perl_filename_lineno_text_): Define.  Factored out of...
16989         (prohibit_doubled_word_): ...here.  Use the new definition.
16990         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16991         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16992         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16993
16994 2011-05-10  Eric Blake  <eblake@redhat.com>
16995
16996         fclose: avoid double close race when possible
16997         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16998         all but WINDOWS_SOCKETS.
16999
17000 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
17001
17002         openat: correct new comment
17003         * lib/openat-proc.c (openat_proc_name): Correct the comment.
17004
17005 2011-05-10  Jim Meyering  <meyering@redhat.com>
17006
17007         openat: add comments
17008         * lib/openat-proc.c (openat_proc_name): Add comments,
17009         mostly from Eric Blake.
17010
17011 2011-05-09  Eric Blake  <eblake@redhat.com>
17012
17013         openat: reduce syscalls in first probe of /proc
17014         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
17015         be a directory.  Simplify the probe for .. bugs.
17016         * modules/openat (Depends-on): Drop same-inode.
17017         Reported by Bastien ROUCARIES.
17018
17019 2011-05-09  Jim Meyering  <meyering@redhat.com>
17020
17021         maint.mk: change semantics/name of tight_scope variables
17022         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
17023         Rename variables to align with semantics that make them more useful.
17024
17025         maint.mk: tweak new rule's name not to impinge
17026         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
17027         (sc_tight_scope): Use new rule name rather than $@-0.
17028
17029         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
17030         * top/maint.mk (sc_tight_scope): New rule.
17031         (sc_tight_scope-0): New rule, ifdef'd out.
17032         (_gl_TS_dir): Default.
17033         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
17034         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
17035
17036 2011-05-09  Simon Josefsson  <simon@josefsson.org>
17037
17038         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
17039         Haible <bruno@clisp.org>.
17040
17041 2011-05-08  Bruno Haible  <bruno@clisp.org>
17042
17043         Comments.
17044         * m4/isnanf.m4: Add comment.
17045         * m4/isnanl.m4: Likewise.
17046
17047 2011-05-08  Bruno Haible  <bruno@clisp.org>
17048
17049         glob: Remove obsolete macro.
17050         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
17051
17052 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
17053
17054         intprops: Sun C 5.11 supports __typeof__
17055         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
17056         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
17057         which is new.
17058         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
17059
17060         intprops: switch to usual gnulib indenting and naming
17061         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
17062         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
17063
17064         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
17065
17066 2011-05-08  Jim Meyering  <meyering@redhat.com>
17067
17068         maint.mk: suppress "Entering/Leaving directory" diag in announcement
17069         * top/maint.mk (release-prep): Use make's --no-print-directory
17070         option when generating the announcement.  This eliminates the
17071         pesky "make[2]: Entering/Leaving directory" diagnostics in the
17072         generated announcement template.
17073
17074 2011-05-08  Bruno Haible  <bruno@clisp.org>
17075
17076         tzset: Fix gettimeofday wrapper on Solaris 2.6.
17077         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
17078         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
17079
17080 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
17081
17082         ignore-value, verify: Omit include files from lib_SOURCES.
17083         * modules/ignore-value, modules/verify (Makefile.am):
17084         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
17085         that leads Automake to duplicate use of am__objects_... variables
17086         in Makefile.in.  See
17087         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
17088
17089 2011-05-07  Bruno Haible  <bruno@clisp.org>
17090
17091         fclose: Simplify autoconf macro.
17092         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
17093         defined.
17094
17095 2011-05-07  Bruno Haible  <bruno@clisp.org>
17096
17097         canonicalize-lgpl: Fix autoconf macro ordering bug.
17098         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
17099         gl_STDLIB_H_DEFAULTS.
17100
17101 2011-05-06  Eric Blake  <eblake@redhat.com>
17102
17103         maintainer-makefile: make sc_po_check easier to tune
17104         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
17105         to probe for strings, such as an alternate location for gnulib.
17106
17107         fclose: guarantee behavior on seekable stdin
17108         * modules/fclose (Depends-on): Add fflush.
17109         * doc/posix-functions/fclose.texi (fclose): Document this.
17110         * tests/test-fclose.c (main): Make test for this unconditional.
17111
17112 2011-05-06  Bruno Haible  <bruno@clisp.org>
17113
17114         fflush, fpurge: Relicense under LGPLv2+.
17115         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
17116         * modules/fpurge (License): Likewise.
17117         With permission from Eric Blake and Jim Meyering.
17118         Suggested by Eric Blake.
17119
17120 2011-05-06  Karl Berry  <karl@gnu.org>
17121
17122         * MODULES.html.sh (func_all_modules): remove exit.
17123
17124 2011-05-06  Jim Meyering  <meyering@redhat.com>
17125
17126         maint.mk: use info-gnu@ as the default only for a stable release
17127         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
17128         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
17129         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
17130         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
17131
17132 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17133
17134         assert-h: new module, which supports C1X-style static_assert
17135         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
17136         * lib/verify.h: Revamp so that this can be copied into assert.h,
17137         while retaining the ability to use it standalone as before.
17138         Rename private identifiers so as not to encroach on the
17139         standard C namespace, since this is now used by assert.h.
17140         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
17141         the old verify_true.
17142         (_GL_VERIFY_TRUE): New macro, with much of the contents of
17143         the old verify_true.  Use _GL_VERIFY_TYPE.
17144         (_GL_VERIFY): New macro, with much of the contents of the old verify.
17145         (static_assert): New macro, if _GL_STATIC_ASSERT_H
17146         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
17147         defined when this file is copied into the replacement assert.h.
17148         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
17149         and _Static_assert is not built in.
17150         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
17151         defined, and use the new macros mentioned above.
17152         * doc/posix-headers/assert.texi: Document this.
17153
17154 2011-05-05  Bruno Haible  <bruno@clisp.org>
17155
17156         fclose, fflush: Respect rules for use of AC_LIBOBJ.
17157         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
17158         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
17159         gl_REPLACE_FCLOSE here.
17160         * modules/fflush (Depends-on): Remove fclose.
17161         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
17162         combination with module 'fclose'.
17163
17164 2011-05-05  Bruno Haible  <bruno@clisp.org>
17165
17166         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
17167         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
17168         gl_FUNC_FFLUSH.
17169         (gl_FUNC_FFLUSH): Use it.
17170         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
17171         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
17172         gl_REPLACE_FSEEKO here.
17173
17174 2011-05-05  Bruno Haible  <bruno@clisp.org>
17175
17176         tzset: Relicense under LGPL.
17177         * modules/tzset (License): Change to LGPL.
17178         No agreement needed; it's a no-op.
17179
17180         strtoimax, strtoumax: Relicense under LGPL.
17181         * modules/strtoimax (License): Change to LGPL.
17182         * modules/strtoumax (License): Likewise.
17183         With permission from Jim Meyering, Paul Eggert:
17184         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
17185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
17186
17187         getgroups: Relicense under LGPL.
17188         * modules/getgroups (License): Change to LGPL.
17189         With permission from Jim Meyering, Paul Eggert, Eric Blake:
17190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17193
17194         nanosleep: Relicense under LGPL.
17195         * modules/nanosleep (License): Change to LGPL.
17196         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
17197         Haible:
17198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
17199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
17200         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17202
17203         futimens: Relicense under LGPL.
17204         * modules/futimens (License): Change to LGPL.
17205         With permission from Eric Blake:
17206         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17207
17208         fflush: Relicense under LGPL.
17209         * modules/fflush (License): Change to LGPL.
17210         With permission from Eric Blake, Bruno Haible, Jim Meyering:
17211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
17212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
17213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
17214
17215         tmpfile: Relicense under LGPL.
17216         * modules/tmpfile (License): Change to LGPL.
17217         With permission from Ben Pfaff:
17218         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17219
17220         isfinite: Relicense under LGPL.
17221         * modules/isfinite (License): Change to LGPL.
17222         With permission from Ben Pfaff, Bruno Haible:
17223         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
17224         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
17225
17226         acosl..tanl: Relicense under LGPL.
17227         * modules/acosl (License): Change to LGPL.
17228         * modules/asinl (License): Likewise.
17229         * modules/atanl (License): Likewise.
17230         * modules/cosl (License): Likewise.
17231         * modules/expl (License): Likewise.
17232         * modules/logl (License): Likewise.
17233         * modules/sinl (License): Likewise.
17234         * modules/sqrtl (License): Likewise.
17235         * modules/tanl (License): Likewise.
17236         Source code originally from glibc and Paolo Bonzini. Agreements:
17237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
17238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
17239
17240 2011-05-05  Bruno Haible  <bruno@clisp.org>
17241
17242         signal: Define sighandler_t.
17243         * lib/signal.in.h (sighandler_t): New type.
17244         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
17245         whether sighandler_t is defined.
17246         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
17247         * modules/signal (Depends-on): Add extensions.
17248         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
17249         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
17250         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
17251
17252 2011-05-05  Eric Blake  <eblake@redhat.com>
17253
17254         maint: remove useless REPLACE_*_H macros
17255         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
17256         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
17257         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
17258         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
17259         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
17260         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
17261         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
17262         * m4/btowc.m4: Update callers.
17263         * m4/dirfd.m4: Likewise.
17264         * m4/duplocale.m4: Likewise.
17265         * m4/fchdir.m4: Likewise.
17266         * m4/fdopendir.m4: Likewise.
17267         * m4/inet_ntop.m4: Likewise.
17268         * m4/inet_pton.m4: Likewise.
17269         * m4/ioctl.m4: Likewise.
17270         * m4/mbrlen.m4: Likewise.
17271         * m4/mbrtowc.m4: Likewise.
17272         * m4/mbsinit.m4: Likewise.
17273         * m4/mbsnrtowcs.m4: Likewise.
17274         * m4/mbsrtowcs.m4: Likewise.
17275         * m4/poll.m4: Likewise.
17276         * m4/setlocale.m4: Likewise.
17277         * m4/wcrtomb.m4: Likewise.
17278         * m4/wcsnrtombs.m4: Likewise.
17279         * m4/wcsrtombs.m4: Likewise.
17280         * m4/wctob.m4: Likewise.
17281         * m4/wcwidth.m4: Likewise.
17282         * modules/posix_spawn: Likewise.
17283         * modules/posix_spawn_file_actions_addclose: Likewise.
17284         * modules/posix_spawn_file_actions_adddup2: Likewise.
17285         * modules/posix_spawn_file_actions_addopen: Likewise.
17286         * modules/posix_spawn_file_actions_destroy: Likewise.
17287         * modules/posix_spawn_file_actions_init: Likewise.
17288         * modules/posix_spawnattr_destroy: Likewise.
17289         * modules/posix_spawnattr_getflags: Likewise.
17290         * modules/posix_spawnattr_getpgroup: Likewise.
17291         * modules/posix_spawnattr_getschedparam: Likewise.
17292         * modules/posix_spawnattr_getschedpolicy: Likewise.
17293         * modules/posix_spawnattr_getsigdefault: Likewise.
17294         * modules/posix_spawnattr_getsigmask: Likewise.
17295         * modules/posix_spawnattr_init: Likewise.
17296         * modules/posix_spawnattr_setflags: Likewise.
17297         * modules/posix_spawnattr_setpgroup: Likewise.
17298         * modules/posix_spawnattr_setschedparam: Likewise.
17299         * modules/posix_spawnattr_setschedpolicy: Likewise.
17300         * modules/posix_spawnattr_setsigdefault: Likewise.
17301         * modules/posix_spawnattr_setsigmask: Likewise.
17302         * modules/posix_spawnp: Likewise.
17303
17304 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
17305
17306         Add option to do-release-commit-and-tag to specify branch.
17307         * build-aux/do-release-commit-and-tag: Add --branch.
17308
17309 2011-05-03  Bruno Haible  <bruno@clisp.org>
17310
17311         Avoid unnecessary compilation units, through conditional dependencies.
17312         * modules/accept (Depends-on): Add conditions to the dependencies.
17313         * modules/acosl (Depends-on): Likewise.
17314         * modules/argz (Depends-on): Likewise.
17315         * modules/asinl (Depends-on): Likewise.
17316         * modules/atanl (Depends-on): Likewise.
17317         * modules/atoll (Depends-on): Likewise.
17318         * modules/bind (Depends-on): Likewise.
17319         * modules/btowc (Depends-on): Likewise.
17320         * modules/canonicalize-lgpl (Depends-on): Likewise.
17321         * modules/ceil (Depends-on): Likewise.
17322         * modules/ceilf (Depends-on): Likewise.
17323         * modules/ceill (Depends-on): Likewise.
17324         * modules/chdir-long (Depends-on): Likewise.
17325         * modules/chown (Depends-on): Likewise.
17326         * modules/close (Depends-on): Likewise.
17327         * modules/connect (Depends-on): Likewise.
17328         * modules/cosl (Depends-on): Likewise.
17329         * modules/dirfd (Depends-on): Likewise.
17330         * modules/dprintf (Depends-on): Likewise.
17331         * modules/dprintf-posix (Depends-on): Likewise.
17332         * modules/error (Depends-on): Likewise.
17333         * modules/euidaccess (Depends-on): Likewise.
17334         * modules/expl (Depends-on): Likewise.
17335         * modules/faccessat (Depends-on): Likewise.
17336         * modules/fchdir (Depends-on): Likewise.
17337         * modules/fclose (Depends-on): Likewise.
17338         * modules/fcntl (Depends-on): Likewise.
17339         * modules/fdopendir (Depends-on): Likewise.
17340         * modules/fflush (Depends-on): Likewise.
17341         * modules/floor (Depends-on): Likewise.
17342         * modules/floorf (Depends-on): Likewise.
17343         * modules/floorl (Depends-on): Likewise.
17344         * modules/fnmatch (Depends-on): Likewise.
17345         * modules/fopen (Depends-on): Likewise.
17346         * modules/fprintf-posix (Depends-on): Likewise.
17347         * modules/frexp (Depends-on): Likewise.
17348         * modules/frexp-nolibm (Depends-on): Likewise.
17349         * modules/frexpl (Depends-on): Likewise.
17350         * modules/frexpl-nolibm (Depends-on): Likewise.
17351         * modules/fseek (Depends-on): Likewise.
17352         * modules/fsusage (Depends-on): Likewise.
17353         * modules/ftell (Depends-on): Likewise.
17354         * modules/ftello (Depends-on): Likewise.
17355         * modules/futimens (Depends-on): Likewise.
17356         * modules/getcwd (Depends-on): Likewise.
17357         * modules/getcwd-lgpl (Depends-on): Likewise.
17358         * modules/getdelim (Depends-on): Likewise.
17359         * modules/getdomainname (Depends-on): Likewise.
17360         * modules/getgroups (Depends-on): Likewise.
17361         * modules/gethostname (Depends-on): Likewise.
17362         * modules/getline (Depends-on): Likewise.
17363         * modules/getlogin_r (Depends-on): Likewise.
17364         * modules/getopt-posix (Depends-on): Likewise.
17365         * modules/getpeername (Depends-on): Likewise.
17366         * modules/getsockname (Depends-on): Likewise.
17367         * modules/getsockopt (Depends-on): Likewise.
17368         * modules/getsubopt (Depends-on): Likewise.
17369         * modules/getusershell (Depends-on): Likewise.
17370         * modules/glob (Depends-on): Likewise.
17371         * modules/grantpt (Depends-on): Likewise.
17372         * modules/iconv_open (Depends-on): Likewise.
17373         * modules/iconv_open-utf (Depends-on): Likewise.
17374         * modules/inet_ntop (Depends-on): Likewise.
17375         * modules/inet_pton (Depends-on): Likewise.
17376         * modules/ioctl (Depends-on): Likewise.
17377         * modules/isapipe (Depends-on): Likewise.
17378         * modules/isfinite (Depends-on): Likewise.
17379         * modules/isinf (Depends-on): Likewise.
17380         * modules/lchown (Depends-on): Likewise.
17381         * modules/ldexpl (Depends-on): Likewise.
17382         * modules/link (Depends-on): Likewise.
17383         * modules/linkat (Depends-on): Likewise.
17384         * modules/listen (Depends-on): Likewise.
17385         * modules/logl (Depends-on): Likewise.
17386         * modules/lstat (Depends-on): Likewise.
17387         * modules/mbrlen (Depends-on): Likewise.
17388         * modules/mbrtowc (Depends-on): Likewise.
17389         * modules/mbsinit (Depends-on): Likewise.
17390         * modules/mbsnrtowcs (Depends-on): Likewise.
17391         * modules/mbsrtowcs (Depends-on): Likewise.
17392         * modules/mbtowc (Depends-on): Likewise.
17393         * modules/memcmp (Depends-on): Likewise.
17394         * modules/mkdir (Depends-on): Likewise.
17395         * modules/mkdtemp (Depends-on): Likewise.
17396         * modules/mkfifo (Depends-on): Likewise.
17397         * modules/mkfifoat (Depends-on): Likewise.
17398         * modules/mknod (Depends-on): Likewise.
17399         * modules/mkostemp (Depends-on): Likewise.
17400         * modules/mkostemps (Depends-on): Likewise.
17401         * modules/mkstemp (Depends-on): Likewise.
17402         * modules/mkstemps (Depends-on): Likewise.
17403         * modules/mktime (Depends-on): Likewise.
17404         * modules/nanosleep (Depends-on): Likewise.
17405         * modules/open (Depends-on): Likewise.
17406         * modules/openat (Depends-on): Likewise.
17407         * modules/perror (Depends-on): Likewise.
17408         * modules/poll (Depends-on): Likewise.
17409         * modules/popen (Depends-on): Likewise.
17410         * modules/posix_spawn (Depends-on): Likewise.
17411         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17412         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17413         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17414         * modules/posix_spawnp (Depends-on): Likewise.
17415         * modules/pread (Depends-on): Likewise.
17416         * modules/printf-posix (Depends-on): Likewise.
17417         * modules/ptsname (Depends-on): Likewise.
17418         * modules/putenv (Depends-on): Likewise.
17419         * modules/pwrite (Depends-on): Likewise.
17420         * modules/readline (Depends-on): Likewise.
17421         * modules/readlink (Depends-on): Likewise.
17422         * modules/readlinkat (Depends-on): Likewise.
17423         * modules/recv (Depends-on): Likewise.
17424         * modules/recvfrom (Depends-on): Likewise.
17425         * modules/regex (Depends-on): Likewise.
17426         * modules/remove (Depends-on): Likewise.
17427         * modules/rename (Depends-on): Likewise.
17428         * modules/renameat (Depends-on): Likewise.
17429         * modules/rmdir (Depends-on): Likewise.
17430         * modules/round (Depends-on): Likewise.
17431         * modules/roundf (Depends-on): Likewise.
17432         * modules/roundl (Depends-on): Likewise.
17433         * modules/rpmatch (Depends-on): Likewise.
17434         * modules/select (Depends-on): Likewise.
17435         * modules/send (Depends-on): Likewise.
17436         * modules/sendto (Depends-on): Likewise.
17437         * modules/setenv (Depends-on): Likewise.
17438         * modules/setlocale (Depends-on): Likewise.
17439         * modules/setsockopt (Depends-on): Likewise.
17440         * modules/shutdown (Depends-on): Likewise.
17441         * modules/sigaction (Depends-on): Likewise.
17442         * modules/signbit (Depends-on): Likewise.
17443         * modules/sigprocmask (Depends-on): Likewise.
17444         * modules/sinl (Depends-on): Likewise.
17445         * modules/sleep (Depends-on): Likewise.
17446         * modules/snprintf (Depends-on): Likewise.
17447         * modules/snprintf-posix (Depends-on): Likewise.
17448         * modules/socket (Depends-on): Likewise.
17449         * modules/sprintf-posix (Depends-on): Likewise.
17450         * modules/sqrtl (Depends-on): Likewise.
17451         * modules/stat (Depends-on): Likewise.
17452         * modules/strchrnul (Depends-on): Likewise.
17453         * modules/strdup-posix (Depends-on): Likewise.
17454         * modules/strerror (Depends-on): Likewise.
17455         * modules/strerror_r-posix (Depends-on): Likewise.
17456         * modules/strndup (Depends-on): Likewise.
17457         * modules/strnlen (Depends-on): Likewise.
17458         * modules/strptime (Depends-on): Likewise.
17459         * modules/strsep (Depends-on): Likewise.
17460         * modules/strsignal (Depends-on): Likewise.
17461         * modules/strstr-simple (Depends-on): Likewise.
17462         * modules/strtod (Depends-on): Likewise.
17463         * modules/strtoimax (Depends-on): Likewise.
17464         * modules/strtok_r (Depends-on): Likewise.
17465         * modules/strtoumax (Depends-on): Likewise.
17466         * modules/symlink (Depends-on): Likewise.
17467         * modules/symlinkat (Depends-on): Likewise.
17468         * modules/tanl (Depends-on): Likewise.
17469         * modules/tcgetsid (Depends-on): Likewise.
17470         * modules/tmpfile (Depends-on): Likewise.
17471         * modules/trunc (Depends-on): Likewise.
17472         * modules/truncf (Depends-on): Likewise.
17473         * modules/truncl (Depends-on): Likewise.
17474         * modules/uname (Depends-on): Likewise.
17475         * modules/unlink (Depends-on): Likewise.
17476         * modules/unlockpt (Depends-on): Likewise.
17477         * modules/unsetenv (Depends-on): Likewise.
17478         * modules/usleep (Depends-on): Likewise.
17479         * modules/utimensat (Depends-on): Likewise.
17480         * modules/vasprintf (Depends-on): Likewise.
17481         * modules/vdprintf (Depends-on): Likewise.
17482         * modules/vdprintf-posix (Depends-on): Likewise.
17483         * modules/vfprintf-posix (Depends-on): Likewise.
17484         * modules/vprintf-posix (Depends-on): Likewise.
17485         * modules/vsnprintf (Depends-on): Likewise.
17486         * modules/vsnprintf-posix (Depends-on): Likewise.
17487         * modules/vsprintf-posix (Depends-on): Likewise.
17488         * modules/wcrtomb (Depends-on): Likewise.
17489         * modules/wcscasecmp (Depends-on): Likewise.
17490         * modules/wcscspn (Depends-on): Likewise.
17491         * modules/wcsdup (Depends-on): Likewise.
17492         * modules/wcsncasecmp (Depends-on): Likewise.
17493         * modules/wcsnrtombs (Depends-on): Likewise.
17494         * modules/wcspbrk (Depends-on): Likewise.
17495         * modules/wcsrtombs (Depends-on): Likewise.
17496         * modules/wcsspn (Depends-on): Likewise.
17497         * modules/wcsstr (Depends-on): Likewise.
17498         * modules/wcstok (Depends-on): Likewise.
17499         * modules/wcswidth (Depends-on): Likewise.
17500         * modules/wctob (Depends-on): Likewise.
17501         * modules/wctomb (Depends-on): Likewise.
17502         * modules/wctype (Depends-on): Likewise.
17503         * modules/wcwidth (Depends-on): Likewise.
17504         * modules/write (Depends-on): Likewise.
17505
17506 2011-05-03  Bruno Haible  <bruno@clisp.org>
17507
17508         Support for conditional dependencies.
17509         * doc/gnulib.texi (Module description): Document the syntax of
17510         conditional dependencies.
17511         * gnulib-tool: New option --conditional-dependencies.
17512         (func_usage): Document it.
17513         (cond_dependencies): New variable.
17514         (func_get_automake_snippet_conditional,
17515         func_get_automake_snippet_unconditional): New functions, extracted from
17516         func_get_automake_snippet.
17517         (func_get_automake_snippet): Use them.
17518         (sed_first_32_chars): New variable.
17519         (func_module_shellfunc_name): New function.
17520         (func_module_shellvar_name): New function.
17521         (func_module_conditional_name): New function.
17522         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17523         func_cond_module_condition): New functions.
17524         (func_modules_transitive_closure): Add support for conditional
17525         dependencies.
17526         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17527         conditional automake snippet in an automake conditional.
17528         (func_emit_autoconf_snippets): Emit shell functions that contain the
17529         code for conditional modules.
17530         (func_import, func_create_testdir): Update specification.
17531
17532 2011-05-03  Eric Blake  <eblake@redhat.com>
17533
17534         test-getaddrinfo: report error information
17535         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17536
17537 2011-05-03  Jim Meyering  <meyering@redhat.com>
17538
17539         bootstrap: avoid build failure when $GZIP is set
17540         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17541         program name.  If defined at all, it is supposed to list gzip options.
17542         Reported by Alan Curry in http://debbugs.gnu.org/8609
17543
17544 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17545
17546         readme-release: new module with release instructions
17547         * modules/readme-release: New module.
17548         * top/README-release: New file, from coreutils, grep, diffutils.
17549         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17550
17551 2011-05-02  Eric Blake  <eblake@redhat.com>
17552
17553         fflush: also replace fclose when fixing fflush
17554         * modules/fflush (Depends-on): Add fclose.
17555         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17556         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17557         memstreams with no backing fd.
17558         * doc/posix-functions/fclose.texi (fclose): Document the use of
17559         fflush module to fix the bug.
17560         * tests/test-fclose.c (main): Relax test when fclose is used in
17561         isolation.
17562
17563         fclose: add some tests
17564         * modules/fclose-tests: New test module.
17565         * tests/test-fclose.c: New file.
17566         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17567
17568         fclose: reduced dependencies
17569         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17570         simpler lseek.
17571         * lib/fclose.c (rpl_fclose): Likewise.
17572         Reported by Simon Josefsson.
17573
17574         exit: drop remaining clients
17575         * modules/argmatch (Depends-on): Replace exit with stdlib.
17576         * modules/copy-file (Depends-on): Likewise.
17577         * modules/execute (Depends-on): Likewise.
17578         * modules/exitfail (Depends-on): Likewise.
17579         * modules/obstack (Depends-on): Likewise.
17580         * modules/pagealign_alloc (Depends-on): Likewise.
17581         * modules/pipe-filter-gi (Depends-on): Likewise.
17582         * modules/pipe-filter-ii (Depends-on): Likewise.
17583         * modules/savewd (Depends-on): Likewise.
17584         * modules/spawn-pipe (Depends-on): Likewise.
17585         * modules/wait-process (Depends-on): Likewise.
17586         * modules/xsetenv (Depends-on): Likewise.
17587         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17588         * modules/git-merge-changelog (Depends-on): Likewise.
17589         * modules/long-options (Depends-on): Likewise.
17590         * modules/pt_chown (Depends-on): Likewise.
17591         * modules/sysexits (Depends-on): Likewise.
17592
17593         freading: relax license from LGPLv3+ to LGPLv2+
17594         * modules/freading (License): Relax LGPL version.
17595
17596 2011-05-02  Bruno Haible  <bruno@clisp.org>
17597
17598         fchdir: Remove unused dependencies.
17599         * modules/fchdir (Depends-on): Remove include_next.
17600
17601 2011-05-02  Bruno Haible  <bruno@clisp.org>
17602
17603         gnulib-tool: Refactor.
17604         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17605         from func_emit_autoconf_snippets.
17606         (func_emit_autoconf_snippets): Use it.
17607
17608 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17609
17610         * NEWS: Document removal of 'exit'.
17611         * modules/exit: Remove file.
17612
17613 2011-05-01  Bruno Haible  <bruno@clisp.org>
17614
17615         Update DEPENDENCIES.
17616         * DEPENDENCIES (gettext): Recommend the newest release.
17617         Reported by Simon Josefsson.
17618
17619 2011-05-01  Bruno Haible  <bruno@clisp.org>
17620
17621         gnulib-tool: Reduce code duplication.
17622         * gnulib-tool (func_emit_autoconf_snippets): New function.
17623         (func_import, func_create_testdir): Use it.
17624
17625 2011-04-30  Eric Blake  <eblake@redhat.com>
17626
17627         fclose: don't fail on non-seekable input stream
17628         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17629         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17630         since fflush is allowed to fail in that case.
17631
17632 2011-04-30  Bruno Haible  <bruno@clisp.org>
17633
17634         dup3: cleanup
17635         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17636
17637 2011-04-30  Bruno Haible  <bruno@clisp.org>
17638
17639         netdb: Make it work in C++ mode.
17640         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17641         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17642         module.
17643         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17644         gl_MODULE_INDICATOR_FOR_TESTS.
17645         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17646         * modules/netdb-c++-tests: New file.
17647         * tests/test-netdb-c++.cc: New file.
17648
17649 2011-04-30  Bruno Haible  <bruno@clisp.org>
17650
17651         New modules 'vfscanf', 'vscanf'.
17652         * modules/vfscanf: New file.
17653         * modules/vscanf: New file.
17654         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17655         here.
17656         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17657         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17658
17659 2011-04-30  Bruno Haible  <bruno@clisp.org>
17660
17661         passfd: Add comments.
17662         * lib/passfd.c: Add comments about platforms.
17663
17664 2011-04-30  Bruno Haible  <bruno@clisp.org>
17665
17666         sys_uio: Make <sys/uio.h> self-contained.
17667         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17668         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17669
17670 2011-04-30  Bruno Haible  <bruno@clisp.org>
17671
17672         sys_socket: Ensure 'struct iovec' definition.
17673         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17674         <sys/socket.h>.
17675         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17676
17677 2011-04-30  Bruno Haible  <bruno@clisp.org>
17678
17679         sys_uio: Protect definition of 'struct iovec'.
17680         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17681         it as a C struct.
17682
17683 2011-04-30  Bruno Haible  <bruno@clisp.org>
17684
17685         manywarnings: fix indentation
17686         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17687
17688 2011-04-30  Pádraig Brady <P@draigBrady.com>
17689
17690         manywarnings: add -Wno-missing-field-initializers if needed.
17691         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17692         option if it's needed to allow initialization with { 0, }
17693
17694 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17695
17696         announce-gen: cosmetic improvement
17697         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17698
17699 2011-04-29  Jim Meyering  <meyering@redhat.com>
17700
17701         vc-list-files: indent with spaces, not TABs
17702         * build-aux/vc-list-files: Convert leading TABs to spaces,
17703         to match the style of most other files in gnulib.
17704
17705         announce-gen: indent with spaces, not TABs
17706         * build-aux/announce-gen: Convert all TABs to spaces, to match
17707         the style of most other files in gnulib.
17708
17709 2011-04-29  Eric Blake  <eblake@redhat.com>
17710
17711         quotearg: avoid uninitialized variable use
17712         * lib/quotearg.c (quoting_options_from_style): Initialize
17713         remaining fields, and ensure that custom styles are only used via
17714         quoting_options rather than quoting_style.
17715
17716 2011-04-29  Jim Meyering  <meyering@redhat.com>
17717
17718         maint.mk: remove unused VC-tag variable
17719         * top/maint.mk (VC-tag): Remove unused variable.
17720
17721 2011-04-29  Bruno Haible  <bruno@clisp.org>
17722
17723         netdb: fix gai_strerror replacements
17724         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17725         * modules/netdb: Substitute it.
17726
17727 2011-04-29  Jim Meyering  <meyering@redhat.com>
17728
17729         test-getcwd.c: avoid new set-but-not-used warning
17730         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17731         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17732         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17733         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17734
17735         test-hash.c: avoid a new shadowing warning
17736         * tests/test-hash.c (main): Don't shadow "dup".
17737
17738 2011-04-28  Eric Blake  <eblake@redhat.com>
17739
17740         getaddrinfo: fix gai_strerror signature
17741         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17742         and work around mingw with UNICODE defined.
17743         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17744         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17745         * modules/netdb (Makefile.am): Substitute it.
17746         * lib/netdb.in.h (gai_strerror): Declare replacement.
17747         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17748         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17749         the fix.
17750
17751         getsockopt: avoid compiler warning
17752         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17753         Reported by Matthias Bolte.
17754
17755         tests: drop unused link dependency
17756         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17757         * modules/dirent-safer-tests (Makefile.am): Likewise.
17758         * modules/fdopendir-tests (Makefile.am): Likewise.
17759         * modules/mkfifoat-tests (Makefile.am): Likewise.
17760         * modules/openat-safer-tests (Makefile.am): Likewise.
17761         * modules/openat-tests (Makefile.am): Likewise.
17762         * modules/readlinkat-tests (Makefile.am): Likewise.
17763         * modules/symlinkat-tests (Makefile.am): Likewise.
17764         * modules/linkat-tests (Makefile.am): Likewise.
17765         (Depends-on): Switch to filenamecat-lgpl.
17766         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17767         LIBINTL.
17768         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17769         * tests/test-linkat.c (main): Don't require xalloc.
17770
17771         hash, mgetgroups: drop xalloc dependency
17772         * lib/hash.c (includes): Adjust includes.
17773         * lib/mgetgroups.c (includes): Likewise.
17774         (xgetgroups): Move...
17775         * lib/xgetgroups.c: ...to new file.
17776         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17777         * modules/xgetgroups: New file, split from...
17778         * modules/mgetgroups: ...here.
17779         (Depends-on): Add xalloc-oversized.
17780         * modules/hash (Depends-on): Likewise.
17781         * modules/hash-tests (Depends-on): Drop xalloc.
17782         (test_hash_LDADD): Drop unused library.
17783         * tests/test-hash.c (main): Break xalloc dependency.
17784         (includes): Drop unused include.
17785
17786         xalloc-oversized: new module
17787         * modules/xalloc-oversized: New module.
17788         * modules/xalloc (Depends-on): Add it.
17789         * lib/xalloc.h (xalloc_oversized): Move...
17790         * lib/xalloc-oversized.h: ...into new file.
17791
17792         utimecmp: drop dependency on xmalloc
17793         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17794         due to memory pressure.
17795         * modules/utimecmp (Depends-on): Drop xalloc.
17796
17797 2011-04-27  Eric Blake  <eblake@redhat.com>
17798
17799         getcwd: fix mingw bugs
17800         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17801         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17802         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17803
17804 2011-04-27  Bruno Haible  <bruno@clisp.org>
17805
17806         mkstemps: Ensure declaration on MacOS X 10.5.
17807         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17808         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17809         MacOS X.
17810
17811 2011-04-27  Bruno Haible  <bruno@clisp.org>
17812
17813         mkstemp: More documentation.
17814         * doc/posix-functions/mkstemp.texi: Document header file problem on
17815         MacOS X.
17816
17817 2011-04-27  Bruno Haible  <bruno@clisp.org>
17818
17819         mkstemp: Tweak configure message when cross-compiling.
17820         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17821         result as a guess.
17822
17823 2011-04-27  Bruno Haible  <bruno@clisp.org>
17824
17825         clean-temp: Clarify what it does.
17826         * lib/clean-temp.h: Add more comments.
17827         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17828         module.
17829         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17830         * doc/glibc-functions/mkstemps.texi: Likewise.
17831         * doc/glibc-functions/mkostemps.texi: Likewise.
17832
17833 2011-04-27  Eric Blake  <eblake@redhat.com>
17834
17835         fchdir: avoid extra chdir and fix test
17836         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17837         getcwd-lgpl.
17838         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17839         have to be canonical.
17840         (canonicalize_file_name): Drop unused macro.
17841         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17842
17843         filenamecat-lgpl: fix licence
17844         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17845         when it was first created.
17846
17847         linkat, renameat: add missing dependency
17848         * modules/linkat (Depends-on): Require getcwd-lgpl.
17849         * modules/renameat (Depends-on): Likewise.
17850
17851         tests: reduce dependencies
17852         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17853         * tests/test-renameat.c (main): Likewise.
17854         * modules/linkat-tests (Depends-on): Relax dependency.
17855         * modules/renameat-tests (Depends-on): Likewise.
17856         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17857         dependency explicit.
17858
17859         save-cwd: reduce default dependency
17860         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17861         * lib/save-cwd.c: Update comments.
17862         * NEWS: Document the semantic change.
17863
17864         getcwd: enhance tests
17865         * tests/test-getcwd-lgpl.c: New file, taken from...
17866         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17867         repeat long path stress tests from m4 probe.
17868         * modules/getcwd-lgpl-tests: New module.
17869         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17870         * m4/getcwd-abort-bug.m4: Update comment.
17871         * m4/getcwd-path-max.m4: Likewise.
17872
17873         getcwd-lgpl: new module
17874         * modules/getcwd-lgpl: New module.
17875         * lib/getcwd-lgpl.c: New file.
17876         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17877         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17878         * modules/getcwd (configure.ac): Set C witness.
17879         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17880
17881         getcwd: tweak comments
17882         * m4/getcwd-abort-bug.m4: Fix comments.
17883         * m4/getcwd-path-max.m4: Likewise.
17884         * m4/getcwd.m4: Likewise.
17885
17886 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17887         and Eric Blake  <eblake@redhat.com>
17888
17889         mkstemp: replace if system version uses wrong permissions
17890         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17891         read/write mode bits set in file created by mkstemp.
17892         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17893
17894 2011-04-27  Eric Blake  <eblake@redhat.com>
17895
17896         passfd: avoid compiler warning
17897         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17898         Reported by Laine Stump.
17899
17900 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17901
17902         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17903         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17904
17905 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17906         and Eric Blake  <eblake@redhat.com>
17907
17908         mkstemp: mention clean-temp module
17909         * lib/mkstemp.c: Add comment.
17910         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17911
17912 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17913
17914         inttypes: also provide default values for 32-bit tests
17915         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17916         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17917
17918 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17919
17920         strtoumax: remove dependency on strtoimax
17921         This is like the strtoull change of yesterday.
17922         * modules/strtoumax (Files): Add lib/strtoimax.c.
17923         (Depends-on): Remove strtoimax and add verify.
17924
17925         inttypes-incomplete: new module
17926         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17927         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17928         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17929         of gl_INTTYPES_H.
17930         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17931         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17932         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17933         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17934         * modules/strtoumax, modules/xstrtol (Depends-on):
17935         Depend on inttypes-incomplete, not inttypes.
17936         * modules/inttypes-incomplete: New module, containing the contents
17937         of the old modules/inttypes module, except that the Files: section
17938         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17939         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17940         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17941         (Depends-on): Depend only on inttypes-incomplete.
17942         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17943
17944         inttypes: omit now-redundant strtoimax and strtoumax work
17945         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17946         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17947
17948         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17949         This supports apps that need pointers to strtoimax and strtoumax,
17950         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17951         nonexistent functions.  See
17952         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17953         et seq.
17954         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17955         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17956         a macro.
17957         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17958
17959 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17960
17961         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17962
17963 2011-04-25  Bruno Haible  <bruno@clisp.org>
17964
17965         strtol, strtoul: Mark modules as obsolete.
17966         * modules/strtol (Status, Notice): New sections.
17967         * modules/strtoul (Status, Notice): New sections.
17968
17969 2011-04-25  Bruno Haible  <bruno@clisp.org>
17970
17971         strtod: Remove check for strtod, unless supporting old platforms.
17972         * modules/strtod-obsolete: New file.
17973         * m4/strtod-obsolete.m4: New file.
17974         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17975         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17976         * modules/strtod (Depends-on): Add strtod-obsolete.
17977         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17978
17979 2011-04-25  Bruno Haible  <bruno@clisp.org>
17980
17981         strcase: Make module obsolete.
17982         * modules/strcase (Status, Notice): New sections.
17983
17984 2011-04-25  Bruno Haible  <bruno@clisp.org>
17985
17986         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17987         * modules/dup2-obsolete: New file.
17988         * m4/dup2-obsolete.m4: New file.
17989         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17990         gl_FUNC_DUP2_OBSOLETE is not also defined.
17991         * modules/dup2 (Depends-on): Add dup2-obsolete.
17992         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17993
17994 2011-04-25  Bruno Haible  <bruno@clisp.org>
17995
17996         strnlen: Avoid memchr related link error on old obsolete platforms.
17997         * modules/memchr-obsolete: New file.
17998         * m4/memchr-obsolete.m4: New file.
17999         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
18000         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
18001         * modules/memchr (Depends-on): Add memchr-obsolete.
18002         * modules/strnlen (Depends-on): Likewise.
18003         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
18004
18005 2011-04-25  Jim Meyering  <meyering@redhat.com>
18006
18007         maint.mk: makefile_at_at_check extend and clean up
18008         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
18009         in addition to */Makefile.am.
18010         Exempt legitimate uses of @VAR@ notation, e.g.,
18011         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
18012         Remove obsolete coreutils-specific comment.
18013         Prompted by discussion here:
18014         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
18015
18016 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
18017
18018         strtoul: remove dependency on strtol
18019         This is so that 'configure' need not check for strtol merely because
18020         the application needs strtoul.
18021         * modules/strtoul (Files): Add lib/strtol.c.
18022         (Depends-on): Remove strtol.
18023
18024         strtoull: remove dependency on strtoul
18025         This is like the strtoll change.
18026         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
18027         (Depends-on): Remove strtoul.
18028
18029         strtoll: remove dependency on strtol
18030         This is so that 'configure' need not check for strtol merely because
18031         the application needs strtoll.
18032         * modules/strtoll (Files): Add lib/strtol.c.
18033         (Depends-on): Remove strtol.
18034
18035 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18036
18037         inttypes: Move some configure check to module 'imaxdiv'.
18038         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
18039         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
18040         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
18041
18042 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18043
18044         inttypes: Move some configure check to module 'imaxabs'.
18045         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
18046         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
18047         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
18048
18049 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18050
18051         inttypes: Remove configure tests that are not needed since 2009-12-31.
18052         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
18053         gl_cv_header_working_inttypes_h.
18054
18055 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
18056
18057         * modules/strnlen (Depends-on): Remove memchr.
18058         The strnlen implementation doesn't need the memchr module's fixes; see
18059         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
18060
18061         strtol: remove dependency on wchar
18062         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
18063         * modules/strtol (Depends-on): Remove wchar.
18064
18065 2011-04-21  Eric Blake  <eblake@redhat.com>
18066
18067         passfd: fix test regression on Linux
18068         * modules/passfd-tests (configure.ac): Correct socketpair check.
18069
18070         passfd: speed up configure and drop unused code
18071         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
18072         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
18073         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
18074         Instead of probing at configure for unix_scm_rights_bsd44_way,
18075         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
18076         check to a struct member probe.
18077         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
18078         (sendfd, recvfd): Update preprocessor checks.
18079         * modules/passfd (Files): Reflect rename, and drop unused file.
18080         (Depends-on): Drop unused dependency.
18081
18082         passfd: allow compilation on mingw
18083         * modules/sys_socket (Depends-on): Add sys_uio.
18084         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
18085         iovec and a minimal struct msghdr.
18086         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
18087         * tests/test-sys_socket.c (main): Enhance test.
18088         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
18089         guaranteed to provide what we need.
18090         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
18091         * modules/passfd-tests (Depends-on): Add sys_wait.
18092         * tests/test-passfd.c (main): Skip test on mingw, for now.
18093         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
18094         partial 'struct msghdr' implementation.
18095
18096         sys_uio: new module
18097         * modules/sys_uio: New module.
18098         * modules/sys_uio-tests: Likewise.
18099         * lib/sys_uio.in.h: New file.
18100         * m4/sys_uio_h.m4: Likewise.
18101         * tests/test-sys_uio.c: Likewise.
18102         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
18103         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
18104
18105 2011-04-20  Jim Meyering  <meyering@redhat.com>
18106
18107         useless-if-before-free: avoid false-positive
18108         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
18109         disjunct so that it too requires a terminating ";".  Without that,
18110         this script would identify as useless one statement from gcc that
18111         was not:
18112           if (aligned_ptr)
18113             free (((void **) aligned_ptr) [-1]);
18114
18115 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
18116
18117         doc: update users.txt.
18118         * users.txt: Add barcode.
18119
18120 2011-04-19  Bruno Haible  <bruno@clisp.org>
18121
18122         ioctl: Remove link dependency on native Windows.
18123         * lib/fd-hook.h: Renamed from lib/close-hook.h.
18124         (gl_close_fn, gl_ioctl_fn): New types.
18125         (struct fd_hook): Renamed from struct close_hook. Change type of
18126         private_close_fn field. Add private_ioctl_fn field.
18127         (close_hook_fn): Add parameter for primary close method.
18128         (execute_close_hooks, execute_all_close_hooks): Likewise.
18129         (ioctl_hook_fn): New type.
18130         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
18131         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18132         argument.
18133         (unregister_fd_hook): Renamed from unregister_close_hook.
18134         * lib/fd-hook.c: Renamed from lib/close-hook.c.
18135         Don't include <unistd.h>.
18136         (close): Remove undef.
18137         (anchor): Update.
18138         (execute_close_hooks): Add argument for primary close method.
18139         (execute_all_close_hooks): Likewise.
18140         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
18141         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
18142         argument. Allow each argument to be NULL.
18143         (unregister_fd_hook): Renamed from unregister_close_hook.
18144         * lib/close.c (rpl_close): Pass 'close' function pointer to
18145         execute_all_close_hooks.
18146         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
18147         (primary_ioctl): New function.
18148         (ioctl): Don't call ioctlsocket here. Instead, call
18149         execute_all_ioctl_hooks.
18150         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
18151         close method.
18152         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
18153         (fd_sockets_hook): Renamed from close_sockets_hook.
18154         (gl_sockets_startup, gl_sockets_cleanup): Update.
18155         * modules/fd-hook: Renamed from modules/close-hook. Update.
18156         * modules/close (Depends-on): Add fd-hook, remove close-hook.
18157         * modules/sockets (Depends-on): Likewise.
18158         * modules/ioctl (Depends-on): Add fd-hook.
18159         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
18160         GNULIB_SOCKET.
18161
18162 2011-04-19  Bruno Haible  <bruno@clisp.org>
18163
18164         Move the support of O_NONBLOCK in open() to the 'open' module.
18165         * modules/nonblocking (Depends-on): Remove 'open'.
18166         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
18167         gl_cv_have_open_O_NONBLOCK.
18168         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
18169         O_NONBLOCK support.
18170         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
18171
18172 2011-04-17  Bruno Haible  <bruno@clisp.org>
18173
18174         pipe2: Simplify code.
18175         * lib/pipe2.c (pipe2): Reduce code duplication.
18176
18177 2011-04-17  Bruno Haible  <bruno@clisp.org>
18178
18179         nonblocking: Add comment.
18180         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
18181
18182 2011-04-17  Bruno Haible  <bruno@clisp.org>
18183
18184         nonblocking: Add tests for sockets.
18185         * tests/test-nonblocking-socket.sh: New file.
18186         * tests/test-nonblocking-socket-main.c: New file.
18187         * tests/test-nonblocking-socket-child.c: New file.
18188         * tests/test-nonblocking-socket.h: New file.
18189         * tests/socket-server.h: New file.
18190         * tests/socket-client.h: New file.
18191         * modules/nonblocking-socket-tests: New file.
18192         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
18193
18194 2011-04-17  Bruno Haible  <bruno@clisp.org>
18195
18196         nonblocking: Add tests for pipes.
18197         * tests/test-nonblocking-pipe.sh: New file.
18198         * tests/test-nonblocking-pipe-main.c: New file.
18199         * tests/test-nonblocking-pipe-child.c: New file.
18200         * tests/test-nonblocking-pipe.h: New file.
18201         * tests/test-nonblocking-writer.h: New file.
18202         * tests/test-nonblocking-reader.h: New file.
18203         * tests/test-nonblocking-misc.h: New file.
18204         * modules/nonblocking-pipe-tests: New file.
18205         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
18206
18207 2011-04-16  Bruno Haible  <bruno@clisp.org>
18208
18209         gettext: Clarify the needed programmer actions.
18210         * modules/gettext (Notice): New field.
18211         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18212
18213 2011-04-16  Bruno Haible  <bruno@clisp.org>
18214
18215         strchrnul: Tweak last commit.
18216         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
18217         bug.
18218         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
18219         as in _GL_FUNCDECL_SYS.
18220         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
18221         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
18222
18223 2011-04-15  Eric Blake  <eblake@redhat.com>
18224
18225         strchrnul: work around cygwin bug
18226         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
18227         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
18228         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
18229         * modules/string (Makefile.am): Substitute it.
18230         * lib/string.in.h (strchrnul): Use it.
18231
18232 2011-04-15  Bruno Haible  <bruno@clisp.org>
18233
18234         Don't require lib/stdio-write.c when only module 'stdio' is used.
18235         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
18236         invocation.
18237         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
18238
18239 2011-04-14  Bruno Haible  <bruno@clisp.org>
18240
18241         Support non-blocking pipe I/O in read() on native Windows.
18242         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
18243         (read): New declaration.
18244         * lib/read.c: New file.
18245         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
18246         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
18247         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
18248         vscanf): New declarations.
18249         * lib/stdio-read.c: New file.
18250         * m4/read.m4: New file.
18251         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
18252         REPLACE_READ.
18253         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
18254         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18255         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
18256         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
18257         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
18258         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18259         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18260         * modules/read: New file.
18261         * modules/nonblocking (Files): Add lib/stdio-read.c.
18262         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
18263         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
18264         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
18265         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
18266         * modules/pread (Depends-on): Add read.
18267         * modules/safe-read (Depends-on): Likewise.
18268         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
18269         gets, scanf, vfscanf, vscanf): Verify signatures.
18270         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
18271         problem with non-blocking pipes.
18272         * doc/posix-functions/fgetc.texi: Likewise.
18273         * doc/posix-functions/fgets.texi: Likewise.
18274         * doc/posix-functions/fread.texi: Likewise.
18275         * doc/posix-functions/fscanf.texi: Likewise.
18276         * doc/posix-functions/getc.texi: Likewise.
18277         * doc/posix-functions/getchar.texi: Likewise.
18278         * doc/posix-functions/gets.texi: Likewise.
18279         * doc/posix-functions/scanf.texi: Likewise.
18280         * doc/posix-functions/vfscanf.texi: Likewise.
18281         * doc/posix-functions/vscanf.texi: Likewise.
18282
18283 2011-04-14  Bruno Haible  <bruno@clisp.org>
18284
18285         Support non-blocking pipe I/O in write() on native Windows.
18286         * lib/write.c (rpl_write): Split a write request that failed merely
18287         because the byte count was larger than the pipe buffer's size.
18288         * doc/posix-functions/write.texi: Mention the problem with large byte
18289         counts.
18290
18291 2011-04-14  Bruno Haible  <bruno@clisp.org>
18292
18293         wchar: Ensure that wchar_t gets defined on uClibc.
18294         * lib/wchar.in.h: On uClibc, include <stddef.h>.
18295         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
18296
18297 2011-04-13  Bruno Haible  <bruno@clisp.org>
18298
18299         safe-write, full-read: Avoid unnecessary compilation units.
18300         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
18301         (Depends-on): Remove safe-read. Add ssize_t.
18302         * modules/full-read (Files): Add lib/full-write.c.
18303         (Depends-on): Add full-write.
18304
18305 2011-04-13  Bruno Haible  <bruno@clisp.org>
18306
18307         Support non-blocking pipe I/O and SIGPIPE in pwrite().
18308         * modules/pwrite (Depends-on): Add 'write'.
18309
18310 2011-04-13  Bruno Haible  <bruno@clisp.org>
18311
18312         Support non-blocking pipe I/O in write() on native Windows.
18313         * lib/unistd.in.h (write): Enable replacement also if
18314         GNULIB_UNISTD_H_NONBLOCKING is 1.
18315         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18316         (rpl_write): When failing to write on a non-blocking pipe, change
18317         errno from ENOSPC to EAGAIN.
18318         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18319         putchar, puts, vfprintf, vprintf): Enable replacement also if
18320         GNULIB_STDIO_H_NONBLOCKING is 1.
18321         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18322         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18323         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18324         CALL_WITH_SIGPIPE_EMULATION.
18325         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18326         * m4/nonblocking.m4: New file.
18327         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18328         for non-blocking I/O support.
18329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18330         GNULIB_UNISTD_H_NONBLOCKING.
18331         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18332         required for non-blocking I/O support.
18333         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18334         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18335         lib/stdio-write.c, m4/asm-underscore.m4.
18336         (Depends-on): Add stdio, unistd.
18337         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18338         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18339         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18340         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18341         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18342         problem with non-blocking pipes.
18343         * doc/posix-functions/fputc.texi: Likewise.
18344         * doc/posix-functions/fputs.texi: Likewise.
18345         * doc/posix-functions/fwrite.texi: Likewise.
18346         * doc/posix-functions/printf.texi: Likewise.
18347         * doc/posix-functions/putc.texi: Likewise.
18348         * doc/posix-functions/putchar.texi: Likewise.
18349         * doc/posix-functions/puts.texi: Likewise.
18350         * doc/posix-functions/vfprintf.texi: Likewise.
18351         * doc/posix-functions/vprintf.texi: Likewise.
18352         * doc/posix-functions/write.texi: Likewise.
18353
18354 2011-04-10  Jim Meyering  <meyering@redhat.com>
18355
18356         maint.mk: prohibit doubled words
18357         Detect them also when they're separated by a newline.
18358         There are 3 ways to customize it:
18359           - disable the test on a per file basis, as usual with rules using
18360             $(VC_LIST_EXCEPT)
18361           - replace the default doubled-word-selecting regexp (affects all files)
18362           - ignore a particular file-vs-doubled-word match
18363         I nearly used that last one to ignore the "is is" match in
18364         coreutils' NEWS file, since the text was "ls -is is ..."
18365         To do that, I would have added this line to cfg.mk:
18366           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18367         but it would have ignored any "is is" match in NEWS.
18368         Low probability, but still...
18369         Instead, I changed the text, slightly:
18370           -  ls -is is now consistent with ls -lis in ignoring values returned
18371           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18372         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18373         (prohibit_doubled_word_): Define.
18374         (sc_prohibit_doubled_word): New rule.
18375         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18376
18377 2011-04-10  Jim Meyering  <meyering@redhat.com>
18378
18379         maint: fix doubled-word typo in comment
18380         * m4/gethostname.m4: s/is is/it is/
18381         * m4/getdomainname.m4: Likewise.
18382
18383 2011-04-10  Jim Meyering  <meyering@redhat.com>
18384
18385         maint: remove doubled word: s/it it/it/
18386         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18387
18388 2011-04-10  Jim Meyering  <meyering@redhat.com>
18389
18390         maint.mk: remove useless semicolon and backslash
18391         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18392         semicolon and backslash.
18393
18394 2011-04-10  Bruno Haible  <bruno@clisp.org>
18395
18396         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18397         * modules/stdint-tests (Depends-on): Add wchar.
18398
18399 2011-04-10  Jim Meyering  <meyering@redhat.com>
18400
18401         maint: remove doubled words in comments, e.g., s/a a/a/
18402         * lib/strptime.c (day_of_the_week): s/the the/the/
18403         * tests/test-chown.h (test_chown): s/a a/a/
18404
18405         test-chown.h: correct a cast
18406         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18407         when the destination is a stat.st_gid.
18408
18409 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18410
18411         getaddrinfo: Fix test for sa_len member.
18412         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18413         include <sys/types.h> before <sys/socket.h>.
18414
18415 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18416
18417         maint: change "can not" to "cannot"
18418         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18419         boundaries.
18420
18421 2011-04-09  Jim Meyering  <meyering@redhat.com>
18422
18423         maint: change "a a" to "a"
18424         * tests/test-lchown.h (test_lchown): s/a a/a/
18425
18426         maint.mk: prohibit \<the the\>
18427         * top/maint.mk (sc_prohibit_the_the): New rule.
18428
18429         maint: fix "the the" in comment
18430         * lib/count-one-bits.h: s/the the/the/
18431
18432         maint: change "can not" to "cannot"
18433         But do not change the occurrences in maintain.texi or in
18434         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18435         * doc/gnulib-tool.texi: s/can not/cannot/
18436         * doc/posix-functions/accept.texi (accept): Likewise.
18437         * doc/posix-functions/socket.texi (socket): Likewise.
18438         * lib/mbrtowc.c: Likewise.
18439
18440         maint.mk: prohibit use of "can not"
18441         * top/maint.mk (sc_prohibit_can_not): New rule.
18442         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18443
18444 2011-04-09  Bruno Haible  <bruno@clisp.org>
18445
18446         careadlinkat: Guard against misuse of careadlinkatcwd.
18447         * lib/careadlinkat.c: Include <stdlib.h>.
18448         (careadlinkatcwd): Check that the fd argument is as expected.
18449
18450 2011-04-09  Bruno Haible  <bruno@clisp.org>
18451
18452         careadlinkat: Use common coding style.
18453         * lib/careadlinkat.c: Move gnulib includes after system includes.
18454
18455 2011-04-09  Bruno Haible  <bruno@clisp.org>
18456
18457         careadlinkat: Clarify specification.
18458         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18459         (careadlinkatcwd): Add comment.
18460         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18461
18462 2011-04-09  Bruno Haible  <bruno@clisp.org>
18463
18464         areadlinkat: Avoid link error on many platforms.
18465         * modules/areadlinkat (Depends-on): Add areadlink.
18466
18467 2011-04-09  Bruno Haible  <bruno@clisp.org>
18468
18469         allocator, careadlinkat: Fix double-inclusion guard.
18470         * lib/allocator.h: Fix double-inclusion guard.
18471         * lib/careadlinkat.h: Likewise.
18472
18473 2011-04-09  Bruno Haible  <bruno@clisp.org>
18474
18475         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18476         * lib/relocwrapper.c: Update dependencies hierarchy.
18477         * build-aux/install-reloc: Update list of files to be compiled.
18478         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18479         lib/allocator.[hc].
18480
18481 2011-04-08  Eric Blake  <eblake@redhat.com>
18482
18483         strftime: silence gnulib-tool warning
18484         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18485
18486 2011-04-08  Bruno Haible  <bruno@clisp.org>
18487
18488         verify: Fix syntax error with GCC 4.6 in C++ mode.
18489         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18490         (HAVE_STATIC_ASSERT): New macro.
18491         (verify_true, verify): Use 'static_assert' if it is supported and
18492         '_Static_assert' is not supported.
18493
18494 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18495
18496         allocator: New module.
18497         * modules/allocator, lib/allocator.c: New files.
18498         * lib/allocator.h (stdlib_allocator): New decl.
18499         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18500         Remove.  Do not include <stdlib.h>.
18501         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18502         * modules/careadlinkat (Files): Remove lib/allocator.h.
18503         (Depends-on): Add allocator.
18504
18505         stdlib: let modules use system malloc, realloc
18506         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18507         if !_GL_USE_STDLIB_ALLOC.
18508         (malloc, realloc): Limit this change to a smaller scope.
18509
18510         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18511         (malloc, realloc): Don't #undef; no longer needed.
18512         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18513         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18514         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18515         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18516         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18517         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18518         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18519         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18520
18521         careadlinkat: rename members to avoid problem
18522         * lib/allocator.h (struct allocator): Rename members from
18523         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18524         and realloc are #define'd.  Reported by Eric Blake in
18525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18526         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18527
18528 2011-04-08  Eric Blake  <eblake@redhat.com>
18529
18530         nonblocking: reduce dependency
18531         * tests/test-nonblocking.c: Only test sockets when in use.
18532         * modules/nonblocking-tests (Depends-on): Drop socket.
18533         (Makefile.am): Link even if sockets are not present.
18534         * modules/pipe2-tests (Makefile.am): Likewise.
18535         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18536
18537         pipe2: fix O_NONBLOCK support on mingw
18538         * modules/pipe2 (Depends-on): Add nonblocking.
18539         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18540         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18541         * tests/test-nonblocking.c (main): Likewise.
18542         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18543
18544         fcntl-h: fix O_ACCMODE on cygwin
18545         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18546         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18547
18548         pipe-filter: drop O_NONBLOCK workarounds
18549         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18550         * modules/pipe-filter-ii (Depends-on): Likewise.
18551         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18552
18553         nonblocking: provide O_NONBLOCK for mingw
18554         * modules/nonblocking (Depends-on): Add open.
18555         (configure.ac): Set new witness macro.
18556         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18557         * modules/fcntl-h (Makefile.am): Substitute it.
18558         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18559         nonblocking module is in use.
18560         * lib/nonblocking.c: Adjust portability test.
18561         * lib/open.c (open): Don't let native open see gnulib flag.
18562         * tests/test-fcntl-h.c (main): Enhance test.
18563         * tests/test-open.h (test_open): Likewise.
18564         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18565
18566         careadlinkat: fix compilation error on mingw
18567         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18568         within struct allocator.
18569
18570 2011-04-06  Eric Blake  <eblake@redhat.com>
18571
18572         binary-io: relicense under LGPLv2+
18573         * modules/binary-io (License): Relax to LGPLv2+.
18574         Requested for libvirt, and required by pipe2.
18575
18576 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18577
18578         verify: use _Static_assert if available
18579         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18580         (verify_true, verify): Use it if available.  This generates better
18581         diagnostics with GCC 4.6.0 and later.
18582
18583 2011-04-05  Bruno Haible  <bruno@clisp.org>
18584
18585         Remove leftover generated .h files after config.status changed.
18586
18587         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18588         GL_GENERATE_ALLOCA_H.
18589         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18590         GL_GENERATE_ALLOCA_H evaluates to false.
18591
18592         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18593         GL_GENERATE_ARGZ_H.
18594         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18595         evaluates to false.
18596
18597         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18598         GL_GENERATE_BYTESWAP_H.
18599         * modules/byteswap (Makefile.am): Remove byteswap.h if
18600         GL_GENERATE_BYTESWAP_H evaluates to false.
18601
18602         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18603         GL_GENERATE_ERRNO_H.
18604         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18605         evaluates to false.
18606
18607         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18608         GL_GENERATE_FLOAT_H.
18609         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18610         evaluates to false.
18611
18612         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18613         GL_GENERATE_FNMATCH_H.
18614         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18615         GL_GENERATE_FNMATCH_H evaluates to false.
18616
18617         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18618         GL_GENERATE_GLOB_H.
18619         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18620         evaluates to false.
18621
18622         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18623         automake conditional GL_GENERATE_ICONV_H.
18624         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18625         evaluates to false.
18626
18627         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18628         GL_GENERATE_NETINET_IN_H.
18629         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18630         GL_GENERATE_NETINET_IN_H evaluates to false.
18631
18632         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18633         conditional GL_GENERATE_PTHREAD_H.
18634         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18635         * modules/pthread (Makefile.am): Remove pthread.h if
18636         GL_GENERATE_PTHREAD_H evaluates to false.
18637
18638         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18639         GL_GENERATE_SCHED_H.
18640         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18641         evaluates to false.
18642
18643         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18644         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18645         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18646         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18647
18648         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18649         GL_GENERATE_STDARG_H.
18650         * modules/stdarg (Makefile.am): Remove stdarg.h if
18651         GL_GENERATE_STDARG_H evaluates to false.
18652
18653         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18654         GL_GENERATE_STDBOOL_H.
18655         * modules/stdbool (Makefile.am): Remove stdbool.h if
18656         GL_GENERATE_STDBOOL_H evaluates to false.
18657
18658         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18659         conditional GL_GENERATE_STDDEF_H.
18660         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18661         * modules/stddef (Makefile.am): Remove stddef.h if
18662         GL_GENERATE_STDDEF_H evaluates to false.
18663
18664         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18665         GL_GENERATE_STDINT_H.
18666         * modules/stdint (Makefile.am): Remove stdint.h if
18667         GL_GENERATE_STDINT_H evaluates to false.
18668
18669         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18670         GL_GENERATE_SYSEXITS_H.
18671         * modules/sysexits (Makefile.am): Remove sysexits.h if
18672         GL_GENERATE_SYSEXITS_H evaluates to false.
18673
18674         Reported by Karl Berry and Ralf Wildenhues.
18675
18676 2011-04-05  Bruno Haible  <bruno@clisp.org>
18677
18678         Ensure to rebuild generated .h files when config.status has changed.
18679         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18680         config.status.
18681         * modules/ctype (Makefile.am): Likewise.
18682         * modules/dirent (Makefile.am): Likewise.
18683         * modules/errno (Makefile.am): Likewise.
18684         * modules/fcntl-h (Makefile.am): Likewise.
18685         * modules/float (Makefile.am): Likewise.
18686         * modules/getopt-posix (Makefile.am): Likewise.
18687         * modules/glob (Makefile.am): Likewise.
18688         * modules/iconv-h (Makefile.am): Likewise.
18689         * modules/inttypes (Makefile.am): Likewise.
18690         * modules/langinfo (Makefile.am): Likewise.
18691         * modules/locale (Makefile.am): Likewise.
18692         * modules/math (Makefile.am): Likewise.
18693         * modules/netdb (Makefile.am): Likewise.
18694         * modules/netinet_in (Makefile.am): Likewise.
18695         * modules/poll-h (Makefile.am): Likewise.
18696         * modules/pthread (Makefile.am): Likewise.
18697         * modules/pty (Makefile.am): Likewise.
18698         * modules/sched (Makefile.am): Likewise.
18699         * modules/search (Makefile.am): Likewise.
18700         * modules/selinux-h (Makefile.am): Likewise.
18701         * modules/signal (Makefile.am): Likewise.
18702         * modules/spawn (Makefile.am): Likewise.
18703         * modules/stdarg (Makefile.am): Likewise.
18704         * modules/stdbool (Makefile.am): Likewise.
18705         * modules/stddef (Makefile.am): Likewise.
18706         * modules/stdint (Makefile.am): Likewise.
18707         * modules/stdio (Makefile.am): Likewise.
18708         * modules/stdlib (Makefile.am): Likewise.
18709         * modules/string (Makefile.am): Likewise.
18710         * modules/strings (Makefile.am): Likewise.
18711         * modules/sys_file (Makefile.am): Likewise.
18712         * modules/sys_ioctl (Makefile.am): Likewise.
18713         * modules/sys_select (Makefile.am): Likewise.
18714         * modules/sys_socket (Makefile.am): Likewise.
18715         * modules/sys_stat (Makefile.am): Likewise.
18716         * modules/sys_time (Makefile.am): Likewise.
18717         * modules/sys_times (Makefile.am): Likewise.
18718         * modules/sys_utsname (Makefile.am): Likewise.
18719         * modules/sys_wait (Makefile.am): Likewise.
18720         * modules/sysexits (Makefile.am): Likewise.
18721         * modules/termios (Makefile.am): Likewise.
18722         * modules/time (Makefile.am): Likewise.
18723         * modules/unistd (Makefile.am): Likewise.
18724         * modules/wchar (Makefile.am): Likewise.
18725         * modules/wctype-h (Makefile.am): Likewise.
18726         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18727
18728 2011-04-05  Bruno Haible  <bruno@clisp.org>
18729
18730         pipe2: Relicense under LGPLv2+.
18731         * modules/pipe2 (License): Change to LGPLv2+.
18732         Requested by Eric Blake, for libvirt.
18733
18734 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18735
18736         bootstrap: compute gnulib_extra_files after updating build_aux
18737         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18738         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18739
18740 2011-04-05  Eric Blake  <eblake@redhat.com>
18741
18742         bootstrap: preserve git whitelist item sorting
18743         * build-aux/bootstrap (sort_patterns): New function.
18744         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18745
18746 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18747
18748         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18749         sc_space_tab check.
18750
18751 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18752
18753         areadlink, areadlinkat: rewrite in terms of careadlinkat
18754         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18755         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18756         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18757         (malloc, realloc): Remove #undefs.
18758         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18759         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18760         readlink, ssize_t, stdint, unistd.
18761         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18762         areadlink, stdint.
18763
18764         careadlinkat: new module
18765         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18766         * modules/careadlinkat: New files, written by me with
18767         a review and feedback from Ben Pfaff in
18768         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18769
18770 2011-04-01  Bruno Haible  <bruno@clisp.org>
18771
18772         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18773         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18774         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18775         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18776         Reported by Bruce Korb <bruce.korb@gmail.com>.
18777
18778 2011-04-01  Bruno Haible  <bruno@clisp.org>
18779
18780         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18781         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18782         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18783         * modules/wcpcpy (Depends-on): Add extensions.
18784         * modules/wcpncpy (Depends-on): Likewise.
18785         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18786         systems.
18787         * doc/posix-functions/wcpncpy.texi: Likewise.
18788         * doc/posix-functions/wcwidth.texi: Likewise.
18789
18790 2011-03-31  Eric Blake  <eblake@redhat.com>
18791
18792         nonblocking: fix mingw test failures
18793         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18794         non-blocking flag on regular file.
18795         (get_nonblocking_flag): Set errno on invalid fd.
18796         * tests/test-nonblocking.c (main): Avoid test failure on
18797         directories if fchdir is not active.
18798         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18799
18800 2011-03-31  Bruno Haible  <bruno@clisp.org>
18801
18802         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18803         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18804         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18805         Reported by Simon Josefsson <simon@josefsson.org>.
18806
18807 2011-03-31  Bruno Haible  <bruno@clisp.org>
18808         and Eric Blake  <eblake@redhat.com>
18809
18810         nonblocking: new module
18811         * modules/nonblocking: New module.
18812         * modules/nonblocking-tests: Likewise.
18813         * lib/nonblocking.h: New file.
18814         * lib/nonblocking.c: Likewise.
18815         * tests/test-nonblocking.c: New test.
18816         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18817
18818 2011-03-30  Bruno Haible  <bruno@clisp.org>
18819
18820         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18821         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18822         instead of 'printf' format for GCC >= 4.4.
18823         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18824         (fprintf, printf, vfprintf, vprintf): Declare with
18825         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18826         the system's vfprintf() function.
18827         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18828
18829 2011-03-30  Eric Blake  <eblake@redhat.com>
18830
18831         passfd: fix scoping bug
18832         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18833         before sendmsg/recvmsg.
18834
18835         passfd: standardize coding conventions
18836         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18837         can be learned at compile time.
18838         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18839         ifdefs.
18840         (sendfd, recvfd): Follow gnulib code conventions.
18841
18842         passfd: fix incorrect sendmsg arguments
18843         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18844         incorrect msg_controllen value.
18845         * modules/passfd-tests (Depends-on): Check for alarm.
18846         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18847         Reported by Bastien ROUCARIES.
18848
18849 2011-03-30  Bruno Haible  <bruno@clisp.org>
18850
18851         c-strcasestr: Relicense under LGPLv2+.
18852         * modules/c-strcasestr (License): Change to LGPLv2+.
18853         Requested by Eric Blake, for libvirt.
18854
18855 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18856
18857         * users.txt: Add libidn2.  Fix libtasn1 link.
18858
18859 2011-03-30  Jim Meyering  <meyering@redhat.com>
18860
18861         tests: readlink* ("",... fails with EINVAL on newer kernels
18862         readlink and readlinkat have typically failed with ENOENT for
18863         the invalid, empty file name,  "".  However, with the advent
18864         of linux-2.6.39, they fail with EINVAL.
18865         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18866         when operating on the empty file name.
18867         * tests/test-readlink.h (test_readlink): Likewise.
18868
18869 2011-03-29  Bruno Haible  <bruno@clisp.org>
18870
18871         Relicense some modules under LGPLv2+, for libidn2.
18872         * modules/array-mergesort (License): Change to LGPLv2+.
18873         * modules/c-strcaseeq (License): Likewise.
18874         * modules/striconveh (License): Likewise.
18875         * modules/striconveha (License): Likewise.
18876         * modules/uniconv/base (License): Likewise.
18877         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18878         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18879         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18880         * modules/unictype/base (License): Likewise.
18881         * modules/unictype/bidiclass-of (License): Likewise.
18882         * modules/unictype/category-M (License): Likewise.
18883         * modules/unictype/category-none (License): Likewise.
18884         * modules/unictype/category-of (License): Likewise.
18885         * modules/unictype/category-test (License): Likewise.
18886         * modules/unictype/category-test-withtable (License): Likewise.
18887         * modules/unictype/combining-class (License): Likewise.
18888         * modules/unictype/joiningtype-of (License): Likewise.
18889         * modules/unictype/scripts (License): Likewise.
18890         * modules/uninorm/base (License): Likewise.
18891         * modules/uninorm/canonical-decomposition (License): Likewise.
18892         * modules/uninorm/composition (License): Likewise.
18893         * modules/uninorm/decompose-internal (License): Likewise.
18894         * modules/uninorm/decomposition-table (License): Likewise.
18895         * modules/uninorm/nfc (License): Likewise.
18896         * modules/uninorm/nfd (License): Likewise.
18897         * modules/uninorm/u32-normalize (License): Likewise.
18898         * modules/unistr/base (License): Likewise.
18899         * modules/unistr/u32-cpy (License): Likewise.
18900         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18901         * modules/unistr/u32-to-u8 (License): Likewise.
18902         * modules/unistr/u32-uctomb (License): Likewise.
18903         * modules/unistr/u8-check (License): Likewise.
18904         * modules/unistr/u8-mblen (License): Likewise.
18905         * modules/unistr/u8-mbtouc (License): Likewise.
18906         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18907         * modules/unistr/u8-mbtoucr (License): Likewise.
18908         * modules/unistr/u8-prev (License): Likewise.
18909         * modules/unistr/u8-strlen (License): Likewise.
18910         * modules/unistr/u8-to-u32 (License): Likewise.
18911         * modules/unistr/u8-uctomb (License): Likewise.
18912         * modules/unitypes (License): Likewise.
18913         Requested by Simon Josefsson.
18914
18915 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18916
18917         lib-symbol-visibility: Add a notice.
18918         * modules/lib-symbol-visibility (Notice): New field.
18919
18920 2011-03-29  Bruno Haible  <bruno@clisp.org>
18921
18922         getaddrinfo: Doc fix.
18923         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18924         section "fixed in Gnulib".
18925
18926 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18927
18928         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18929         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18930
18931 2011-03-26  Bruno Haible  <bruno@clisp.org>
18932
18933         unictype/property-byname: Reduce the number of load-time relocations.
18934         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18935         (UC_PROPERTY_INDEX_*): New enumeration values.
18936         (uc_property_byname): Convert an index from the lookup table to an
18937         uc_property_t.
18938         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18939         values.
18940
18941 2011-03-26  Bruno Haible  <bruno@clisp.org>
18942
18943         unictype/property-byname: Allow omitted word separators and aliases.
18944         * lib/unictype/pr_byname.gperf: Add property names without word
18945         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18946         for 'space'.
18947
18948 2011-03-26  Bruno Haible  <bruno@clisp.org>
18949
18950         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18951         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18952         also hyphens to space.
18953         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18954         without spaces.
18955         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18956
18957 2011-03-26  Bruno Haible  <bruno@clisp.org>
18958
18959         unictype/joiningtype-byname: Recognize long names as well.
18960         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18961         a long name.
18962         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18963         unictype/joiningtype_byname.h.
18964         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18965         * lib/unictype/joiningtype_byname.gperf: New file.
18966         * modules/unictype/joiningtype-byname (Files): Add
18967         lib/unictype/joiningtype_byname.gperf.
18968         (Depends-on): Add gperf.
18969         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18970         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18971         long names.
18972
18973         Tests for module 'unictype/joiningtype-longname'.
18974         * modules/unictype/joiningtype-longname-tests: New file.
18975         * tests/unictype/test-joiningtype_longname.c: New file.
18976
18977         New module 'unictype/joiningtype-longname'.
18978         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18979         * lib/unictype/joiningtype_longname.c: New file.
18980         * modules/unictype/joiningtype-longname: New file.
18981         * modules/unictype/joiningtype-all (Depends-on): Add
18982         unictype/joiningtype-longname.
18983
18984 2011-03-26  Bruno Haible  <bruno@clisp.org>
18985
18986         unictype/bidiclass-byname: Recognize long names as well.
18987         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18988         name.
18989         * lib/unictype/bidi_byname.c: Include <string.h>,
18990         unictype/bidi_byname.h.
18991         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18992         * lib/unictype/bidi_byname.gperf: New file.
18993         * modules/unictype/bidiclass-byname (Files): Add
18994         lib/unictype/bidi_byname.gperf.
18995         (Depends-on): Add gperf.
18996         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18997         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18998         long names.
18999
19000         Tests for module 'unictype/bidiclass-longname'.
19001         * modules/unictype/bidiclass-longname-tests: New file.
19002         * tests/unictype/test-bidi_longname.c: New file.
19003
19004         New module 'unictype/bidiclass-longname'.
19005         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
19006         * lib/unictype/bidi_longname.c: New file.
19007         * modules/unictype/bidiclass-longname: New file.
19008         * modules/unictype/bidiclass-all (Depends-on): Add
19009         unictype/bidiclass-longname.
19010
19011 2011-03-26  Bruno Haible  <bruno@clisp.org>
19012
19013         unictype/bidi*: Rename modules.
19014         * modules/unictype/bidiclass-all: Renamed from
19015         modules/unictype/bidicategory-all.
19016         * modules/unictype/bidiclass-name: Renamed from
19017         modules/unictype/bidiclass-name.
19018         (Description): Update.
19019         * modules/unictype/bidiclass-name-tests: Renamed from
19020         modules/unictype/bidicategory-name-tests.
19021         * modules/unictype/bidiclass-byname: Renamed from
19022         modules/unictype/bidicategory-byname.
19023         (Description): Update.
19024         * modules/unictype/bidiclass-byname-tests: Renamed from
19025         modules/unictype/bidicategory-byname-tests.
19026         * modules/unictype/bidiclass-of: Renamed from
19027         modules/unictype/bidicategory-of.
19028         (Description): Update.
19029         * modules/unictype/bidiclass-of-tests: Renamed from
19030         modules/unictype/bidicategory-of-tests.
19031         * modules/unictype/bidiclass-test: Renamed from
19032         modules/unictype/bidicategory-test.
19033         (Description): Update.
19034         * modules/unictype/bidiclass-test-tests: Renamed from
19035         modules/unictype/bidicategory-test-tests.
19036         * modules/unictype/bidicategory-all: New file, a simple redirection.
19037         * modules/unictype/bidicategory-name: Likewise.
19038         * modules/unictype/bidicategory-byname: Likewise.
19039         * modules/unictype/bidicategory-of: Likewise.
19040         * modules/unictype/bidicategory-test: Likewise.
19041         * modules/unictype/property-bidi-* (Dependencies): Update.
19042         * lib/unictype/bidi_*.c: Update comment.
19043
19044 2011-03-26  Bruno Haible  <bruno@clisp.org>
19045
19046         unictype/bidi*: Rename functions, part 2.
19047         * modules/unictype/bidicategory-name (configure.ac): Update required
19048         libunistring version.
19049         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
19050
19051 2011-03-25  Bruno Haible  <bruno@clisp.org>
19052
19053         New module 'unictype/combining-class-all'.
19054         * modules/unictype/combining-class-all: New file.
19055
19056         Tests for module 'unictype/combining-class-byname'.
19057         * modules/unictype/combining-class-byname-tests: New file.
19058         * tests/unictype/test-combiningclass_byname.c: New file.
19059
19060         New module 'unictype/combining-class-byname'.
19061         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
19062         * lib/unictype/combiningclass_byname.c: New file.
19063         * lib/unictype/combiningclass_byname.gperf: New file.
19064         * modules/unictype/combining-class-byname: New file.
19065
19066         Tests for module 'unictype/combining-class-longname'.
19067         * modules/unictype/combining-class-longname-tests: New file.
19068         * tests/unictype/test-combiningclass_longname.c: New file.
19069
19070         New module 'unictype/combining-class-longname'.
19071         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
19072         * lib/unictype/combiningclass_longname.c: New file.
19073         * modules/unictype/combining-class-longname: New file.
19074
19075         Tests for module 'unictype/combining-class-name'.
19076         * modules/unictype/combining-class-name-tests: New file.
19077         * tests/unictype/test-combiningclass_name.c: New file.
19078
19079         New module 'unictype/combining-class-name'.
19080         * lib/unictype.in.h (uc_combining_class_name): New declaration.
19081         * lib/unictype/combiningclass_name.c: New file.
19082         * modules/unictype/combining-class-name: New file.
19083
19084 2011-03-25  Bruno Haible  <bruno@clisp.org>
19085
19086         unictype/combining-class: Rename source files.
19087         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
19088         of unictype/combining.h.
19089         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
19090         Update.
19091         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
19092         * modules/unictype/combining-class (Description): Fix.
19093         (Files, Makefile.am): Update.
19094         * tests/unictype/test-combiningclass.c: Renamed from
19095         tests/unictype/test-combining.c.
19096         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
19097
19098 2011-03-25  Bruno Haible  <bruno@clisp.org>
19099
19100         unictype: Update list of canonical combining classes.
19101         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
19102
19103 2011-03-25  Bruno Haible  <bruno@clisp.org>
19104
19105         unictype/category-byname: Recognize long names as well.
19106         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
19107         a long name.
19108         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
19109         unictype/categ_byname.h.
19110         (UC_CATEGORY_INDEX_*): New enumeration values.
19111         (uc_general_category_byname): Use uc_general_category_lookup and
19112         convert from index to value.
19113         * lib/unictype/categ_byname.gperf: New file.
19114         * modules/unictype/category-byname (Files): Add
19115         lib/unictype/categ_byname.gperf.
19116         (Depends-on): Add gperf.
19117         (Makefile.am): Add rule for generating unictype/categ_byname.h.
19118         * tests/unictype/test-categ_byname.c (main): Test the recognition of
19119         long names.
19120
19121         Tests for module 'unictype/category-longname'.
19122         * modules/unictype/category-longname-tests: New file.
19123         * tests/unictype/test-categ_longname.c: New file.
19124
19125         New module 'unictype/category-longname'.
19126         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
19127         * lib/unictype/categ_longname.c: New file.
19128         * modules/unictype/category-longname: New file.
19129         * modules/unictype/category-all (Depends-on): Add it.
19130
19131 2011-03-25  Bruno Haible  <bruno@clisp.org>
19132
19133         Tests for module 'unictype/category-LC'.
19134         * modules/unictype/category-LC-tests: New file.
19135         * tests/unictype/test-categ_LC.c: New file, automatically generated.
19136
19137         New module 'unictype/category-LC'.
19138         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
19139         (UC_CATEGORY_LC): New declaration.
19140         (UC_CASED_LETTER): New macro.
19141         * lib/gen-uni-tables.c (is_category_LC): New function.
19142         (output_categories): Also handle category LC.
19143         (UC_CATEGORY_MASK_LC): New enumeration value.
19144         (general_category_byname): Also handle category LC.
19145         * lib/unictype/categ_LC.c: New file.
19146         * lib/unictype/categ_LC.h: New file, automatically generated.
19147         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
19148         category LC.
19149         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
19150         * modules/unictype/category-LC: New file.
19151         * modules/unictype/category-byname (Depends-on): Add
19152         unictype/category-LC.
19153         * modules/unictype/category-all (Depends-on): Likewise.
19154
19155 2011-03-25  Eric Blake  <eblake@redhat.com>
19156
19157         xmalloc: revert yesterday's regression
19158         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
19159         realloc's underlying behavior (allowing allocation of zero-size
19160         objects, especially if malloc-gnu is also in use).
19161
19162 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
19163
19164         maint.mk: add missing version to VC-tag
19165         * top/maint.mk: git tag was missing actual tag name; add it.
19166
19167         valgrind: do leak checking, and exit with code 1 on error (not 0)
19168         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
19169         to VALGRIND.
19170
19171 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
19172
19173         posix-modules: say what it does.
19174         * posix-modules: Add a line to the --help output saying what it does.
19175
19176 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
19177
19178         xmalloc: Do not leak if underlying realloc is C99 compatible.
19179         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
19180         This avoids a leak on C99-based systems.  See
19181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
19182
19183 2011-03-24  Eric Blake  <eblake@redhat.com>
19184
19185         realloc: document portability problem
19186         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
19187         passing 0 size to realloc.
19188
19189 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
19190
19191         doc: update users.txt
19192         * users.txt: Add cvsps, tmpwatch
19193
19194 2011-03-23  Matt Rice  <ratmice@gmail.com>
19195
19196         doc: update users.txt
19197         * users.txt: Add gdb.
19198
19199 2011-03-23  Jim Meyering  <meyering@redhat.com>
19200
19201         doc: update users.txt
19202         Looking through matches up to the following URL (there are still
19203         several more pages), I found several projects that use gnulib:
19204         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
19205         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
19206         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
19207
19208 2011-03-22  Bruno Haible  <bruno@clisp.org>
19209
19210         unictype/bidi*: Rename functions.
19211         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
19212         uc_bidi_class, uc_is_bidi_class): New declarations.
19213         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
19214         uc_bidi_category_byname.
19215         (uc_bidi_category_byname): New function.
19216         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
19217         u_bidi_category_name.
19218         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
19219         (uc_bidi_category_name): New function.
19220         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
19221         uc_bidi_category.
19222         (uc_bidi_category): New function.
19223         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
19224         uc_is_bidi_category. Invoke uc_bidi_class.
19225         (uc_is_bidi_category): New function.
19226         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
19227         instead of uc_bidi_category_byname.
19228         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
19229         instead of uc_bidi_category_name.
19230         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
19231         uc_bidi_category.
19232         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
19233         instead of uc_is_bidi_category.
19234
19235 2011-03-21  Bruno Haible  <bruno@clisp.org>
19236
19237         New module 'unictype/joininggroup-all'.
19238         * modules/unictype/joininggroup-all: New file.
19239
19240         Tests for module 'unictype/joininggroup-of'.
19241         * modules/unictype/joininggroup-of-tests: New file.
19242         * tests/unictype/test-joininggroup_of.c: New file.
19243         * tests/unictype/test-joininggroup_of.h: New file, automatically
19244         generated by gen-uni-tables.
19245
19246         New module 'unictype/joininggroup-of'.
19247         * modules/unictype/joininggroup-of: New file.
19248         * lib/unictype/joininggroup_of.c: New file.
19249         * lib/unictype/joininggroup_of.h: New file, automatically generated by
19250         gen-uni-tables.
19251
19252         Tests for module 'unictype/joininggroup-byname'.
19253         * modules/unictype/joininggroup-byname-tests: New file.
19254         * tests/unictype/test-joininggroup_byname.c: New file.
19255
19256         New module 'unictype/joininggroup-byname'.
19257         * modules/unictype/joininggroup-byname: New file.
19258         * lib/unictype/joininggroup_byname.c: New file.
19259         * lib/unictype/joininggroup_byname.gperf: New file.
19260
19261         Tests for module 'unictype/joininggroup-name'.
19262         * modules/unictype/joininggroup-name-tests: New file.
19263         * tests/unictype/test-joininggroup_name.c: New file.
19264
19265         New module 'unictype/joininggroup-name'.
19266         * modules/unictype/joininggroup-name: New file.
19267         * lib/unictype/joininggroup_name.c: New file.
19268         * lib/unictype/joininggroup_name.h: New file.
19269
19270         New module 'unictype/joiningtype-all'.
19271         * modules/unictype/joiningtype-all: New file.
19272
19273         Tests for module 'unictype/joiningtype-of'.
19274         * modules/unictype/joiningtype-of-tests: New file.
19275         * tests/unictype/test-joiningtype_of.c: New file.
19276         * tests/unictype/test-joiningtype_of.h: New file, automatically
19277         generated by gen-uni-tables.
19278
19279         New module 'unictype/joiningtype-of'.
19280         * modules/unictype/joiningtype-of: New file.
19281         * lib/unictype/joiningtype_of.c: New file.
19282         * lib/unictype/joiningtype_of.h: New file, automatically generated by
19283         gen-uni-tables.
19284
19285         Tests for module 'unictype/joiningtype-byname'.
19286         * modules/unictype/joiningtype-byname-tests: New file.
19287         * tests/unictype/test-joiningtype_byname.c: New file.
19288
19289         New module 'unictype/joiningtype-byname'.
19290         * modules/unictype/joiningtype-byname: New file.
19291         * lib/unictype/joiningtype_byname.c: New file.
19292
19293         Tests for module 'unictype/joiningtype-name'.
19294         * modules/unictype/joiningtype-name-tests: New file.
19295         * tests/unictype/test-joiningtype_name.c: New file.
19296
19297         New module 'unictype/joiningtype-name'.
19298         * modules/unictype/joiningtype-name: New file.
19299         * lib/unictype/joiningtype_name.c: New file.
19300
19301         unictype: Add support for Arabic shaping properties.
19302         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
19303         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
19304         declarations.
19305         (UC_JOINING_GROUP_*): New enumeration values.
19306         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
19307         declarations.
19308         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
19309         (unicode_joining_type): New variable.
19310         (UC_JOINING_GROUP_*): New enumeration values.
19311         (unicode_joining_group): New variable.
19312         (fill_arabicshaping, joining_type_as_c_identifier,
19313         output_joining_type_test, output_joining_type,
19314         joining_group_as_c_identifier, output_joining_group_test,
19315         output_joining_group): New functions.
19316         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19317         fill_arabicshaping and output_joining_type_test, output_joining_type,
19318         output_joining_group_test, output_joining_group.
19319         Reported by Simon Josefsson.
19320
19321 2011-03-21  Jim Meyering  <meyering@redhat.com>
19322
19323         strftime: fix a bug in yesterday's change
19324         * lib/strftime.c (add): Accommodate width's initial value of -1.
19325         Otherwise, nstrftime would copy uninitialized data into
19326         the result buffer.
19327
19328 2011-03-21  Jim Meyering  <meyering@redhat.com>
19329
19330         tests: add strftime-tests module
19331         * tests/test-strftime.c: New file.
19332         * modules/strftime-tests: New module.
19333
19334 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19335
19336         strftime: don't assume a byte count fits in 'int'
19337         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19338         found this problem by static analysis, using gcc -Wstrict-overflow
19339         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19340         on an integer overflow having undefined behavior, but it turns out
19341         that the argument is a size, which might not fit in 'int' anyway,
19342
19343 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19344
19345         stdio: don't require ignore_value around fwrite
19346
19347         This patch works around libc bug 11959
19348         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19349         Without this patch, applications must often write
19350         ignore_value (fwrite (...)) even though the ignore_value is
19351         not helpful here.  It's common to write many objects, using
19352         fwrite/printf/etc., and then use ferror to detect output error.
19353
19354         I considered making this patch optional, but decided against it,
19355         because libc is obviously being inconsistent here: there is no
19356         reason libc should insist that user code must inspect fwrite
19357         return's value without also insisting that it inspect printf's,
19358         putchar's, etc.  If user code wants to have a strict style where
19359         all these functions' values are checked (so that ferror need not
19360         be checked), we could add support for that style in a new gnulib
19361         module, but in the meantime it's better to be consistent and to
19362         support common usage.
19363
19364         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19365         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19366         that we are compiling in checking mode, and if not C++, and
19367         if not already wrapping fwrite for some other reason.
19368         (fwrite): #define to rpl_fwrite if the latter is defined.
19369
19370 2011-03-20  Bruno Haible  <bruno@clisp.org>
19371
19372         verror: Fix compilation error introduced on 2011-02-13.
19373         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19374         instead of __attribute__.
19375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19376
19377 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19378             Bruno Haible  <bruno@clisp.org>
19379
19380         socklen: do not depend on sys_socket
19381         While trying to modify Emacs to use gnulib's socklen module,
19382         I discovered a circular dependency: socklen depends on sys_socket
19383         and vice versa.  Emacs can use socklen, but it does not need
19384         sys_socket because it has its own substitute for sys/socket.h.
19385         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19386         gl_TYPE_SOCKLEN_T.
19387         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19388         gl_PREREQ_SYS_H_SOCKET.
19389         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19390         gl_PREREQ_SYS_H_SOCKET.
19391         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19392         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19393         * modules/socklen (Depends-on): Do not depend on sys_socket.
19394         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19395
19396 2011-03-20  Jim Meyering  <meyering@redhat.com>
19397
19398         maint.mk: sort file names *after* new transformation
19399         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19400         prefix would have led to an unwarranted failure in GNU parted.
19401         Sort after that transformation.
19402
19403 2011-03-19  Jim Meyering  <meyering@redhat.com>
19404
19405         maint.mk: fix po-file syntax-check rule
19406         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19407         Patch by Bruno Haible.
19408
19409 2011-03-19  Bruno Haible  <bruno@clisp.org>
19410
19411         socklen: Update comment.
19412         * m4/socklen.m4: Update comment about platforms.
19413
19414 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19415             Bruno Haible  <bruno@clisp.org>
19416
19417         inet_ntop, inet_pton: Simplify.
19418         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19419         documented to provide socklen_t and we already depend on sys_socket.
19420         * modules/inet_pton (Depends-on): Likewise.
19421         * lib/arpa_inet.in.h: Adjust comment.
19422
19423 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19424             Bruno Haible  <bruno@clisp.org>
19425
19426         netdb: Simplify.
19427         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19428         documented to provide socklen_t and we already depend on sys_socket.
19429         * lib/netdb.in.h: Adjust comment.
19430
19431 2011-03-19  Bruno Haible  <bruno@clisp.org>
19432
19433         sys_socket, netdb: Document problem with socklen_t.
19434         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19435         platforms.
19436         * doc/posix-headers/netdb.texi: Likewise.
19437
19438 2011-03-18  Eric Blake  <eblake@redhat.com>
19439
19440         maint.mk: let po check work in VPATH build
19441         * top/maint.mk (po_file): Allow cfg.mk override.
19442         (sc_po_check): Allow VPATH use.
19443         Reported by Jiri Denemark.
19444
19445 2011-03-16  Jim Meyering  <meyering@redhat.com>
19446
19447         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19448         Before, you would have had to create one .x-sc_ file per rule in order
19449         to exempt offending files.  Now, you may instead use a Make variable --
19450         usually defined in cfg.mk -- whose name identifies the affected rule.
19451         * top/maint.mk (_sc_excl): Define.
19452         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19453         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19454
19455 2011-03-13  Bruno Haible  <bruno@clisp.org>
19456
19457         ignore-value tests: Avoid warnings.
19458         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19459         empty for gcc < 3.4.
19460
19461 2011-03-13  Bruno Haible  <bruno@clisp.org>
19462
19463         passfd: Fix link error on Solaris.
19464         * modules/passfd (Description): Correct.
19465         (Depends-on): Add socketlib.
19466         (Link): New section.
19467         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19468
19469 2011-03-13  Bruno Haible  <bruno@clisp.org>
19470
19471         passfd: Fix link error on AIX 5.2.
19472         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19473
19474 2011-03-13  Bruno Haible  <bruno@clisp.org>
19475
19476         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19477         * lib/sys_socket.in.h: Include <stddef.h>.
19478         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19479         CMSG_FIRSTHDR. Remove unused variable.
19480
19481 2011-03-13  Bruno Haible  <bruno@clisp.org>
19482
19483         passfd: Fix compilation error on OpenBSD.
19484         * lib/passfd.c: Include <sys/uio.h>.
19485
19486 2011-03-13  Bruno Haible  <bruno@clisp.org>
19487
19488         passfd test: Fix warnings.
19489         * tests/test-passfd.c: Include <sys/wait.h>.
19490         (main): Fix typo.
19491
19492 2011-03-13  Bruno Haible  <bruno@clisp.org>
19493
19494         passfd module, part 4, tweaks.
19495         * tests/test-passfd.c: Reorder includes.
19496         (main): Fix perror and printf calls.
19497
19498 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19499
19500         passfd module, part 4.
19501         * modules/passfd-tests: New file.
19502         * tests/test-passfd.c: New file.
19503
19504 2011-03-13  Jim Meyering  <meyering@redhat.com>
19505
19506         Makefile: rely on GNU make; derive syntax-check rule names
19507         Rather than requiring that each sc_ rule be listed as a dependent
19508         of "check", use features of GNU make to derive the list.
19509         * Makefile (syntax-check-rules): Define.
19510         (check): Depend on the new variable, not the hard-coded list.
19511
19512 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19513             Bruno Haible  <bruno@clisp.org>
19514
19515         passfd module, part 3.
19516         * lib/passfd.h (recvfd): Add a flags argument.
19517         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19518         (recvfd): Add a flags argument.
19519         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19520         exists.
19521         * modules/passfd (Depends-on): Add cloexec.
19522         Suggested by Eric Blake.
19523
19524 2011-03-13  Bruno Haible  <bruno@clisp.org>
19525
19526         passfd module, part 2, tweaks.
19527         * modules/passfd (Files): Reorder.
19528         (Depends-on): Remove errno.
19529         (Include): Remove <sys/socket.h>, <sys/un.h>.
19530         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19531         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19532         specification header. Include <sys/socket.h> always. Don't include
19533         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19534         (sendfd): Clarify that it sets errno when it fails.
19535         (recvfd): Fix specification.
19536
19537 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19538
19539         passfd module, part 2.
19540         * modules/passfd: New file.
19541         * lib/passfd.h: New file.
19542         * lib/passfd.c: New file.
19543
19544 2011-03-12  Bruno Haible  <bruno@clisp.org>
19545
19546         wcswidth, mbswidth: Avoid integer overflow.
19547         * lib/wcswidth.c: Include <limits.h>.
19548         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19549         * lib/mbswidth.c: Include <limits.h>.
19550         (mbsnwidth): Avoid 'int' overflow.
19551         Reported by Jim Meyering.
19552
19553 2011-03-12  Bruno Haible  <bruno@clisp.org>
19554
19555         futimens, utimensat: Avoid endless recursion on Solaris 10.
19556         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19557         Solaris.
19558         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19559         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19560
19561 2011-03-11  Jim Meyering  <meyering@redhat.com>
19562
19563         maint.mk: relax a regexp to accommodate other formatting styles
19564         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19565         between "ngettext" and the following "(".
19566
19567 2011-03-11  Pádraig Brady <P@draigBrady.com>
19568
19569         maint.mk: suppress a false positive warning
19570         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19571         diagnostics are marked with ngettext.
19572
19573 2011-03-10  Eric Blake  <eblake@redhat.com>
19574
19575         wchar: add explicit dependencies, for Tru64
19576         * modules/mbmemcasecoll (Depends-on): Add wchar.
19577         * modules/mbtowc (Depends-on): Likewise.
19578         * modules/vasnprintf (Depends-on): Likewise.
19579         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19580         * modules/wctomb (Depends-on): Likewise.
19581         Reported by Peter O'Gorman.
19582
19583 2011-03-08  Bruno Haible  <bruno@clisp.org>
19584
19585         passfd module, part 1, tweaks.
19586         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19587         Improve indentation. Improve AC_MSG_CHECKING messages.
19588         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19589         gl_SOCKET_FAMILIES.
19590
19591 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19592
19593         passfd module, part 1.
19594         * m4/afunix.m4: New file.
19595         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19596         sockets.
19597
19598 2011-03-08  Bruno Haible  <bruno@clisp.org>
19599
19600         regex-quote: New API.
19601         * lib/regex-quote.h: Include <stdbool.h>.
19602         (struct regex_quote_spec): New type.
19603         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19604         New declarations.
19605         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19606         'const struct regex_quote_spec *' argument.
19607         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19608         (pcre_special): New constant.
19609         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19610         New functions.
19611         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19612         'const struct regex_quote_spec *' argument.
19613         * modules/regex-quote (Depends-on): Add stdbool.
19614         * tests/test-regex-quote.c (check): Update for new API. Add test for
19615         anchored results.
19616         * NEWS: Mention the API change.
19617         Reported by Reuben Thomas and Eric Blake.
19618
19619 2011-03-06  Bruno Haible  <bruno@clisp.org>
19620
19621         regex-quote: Fix creation of POSIX extended regular expressions.
19622         * lib/regex-quote.c (ere_special): Add grouping and alternation
19623         operators.
19624
19625 2011-03-05  Bruno Haible  <bruno@clisp.org>
19626
19627         doc: Improve doc regarding autopoint vs. gnulib.
19628         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19629         disable autopoint while running autoreconf.
19630         Suggested by Ralf Wildenhues.
19631
19632 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19633
19634         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19635         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19636
19637 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19638
19639         parse-duration: remove xalloc.h dependency
19640         * lib/parse-duration.c (parse_period): handle NULL return from
19641         strdup instead of calling xstrdup().
19642         * modules/parse-duration: remove "xalloc" dependency
19643
19644 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19645
19646         bootstrap: honor m4_base when running aclocal
19647         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19648
19649 2011-03-02  Jim Meyering  <meyering@redhat.com>
19650
19651         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19652         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19653         on request from Matt Booth.
19654
19655 2011-03-01  Eric Blake  <eblake@redhat.com>
19656
19657         test-link: work on Hurd
19658         * tests/test-link.h (test_link): Hurd rejects linking directories
19659         with EISDIR instead of the POSIX-mandated EPERM.
19660
19661 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19662
19663         stdio: simplify by moving files to printf-posix, sigpipe
19664         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19665         since this symbol is needed only if printf is replaced.
19666         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19667         Require gl_ASM_SYMBOL_PREFIX.
19668         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19669         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19670         (Depends-on): Add 'raise'.
19671         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19672         * modules/stdio (Files): Remove lib/stdio-write.c,
19673         m4/asm-underscore.m4.
19674         (Depends-on): Remove 'raise'.
19675
19676         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19677         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19678         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19679         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19680
19681 2011-02-28  Bruno Haible  <bruno@clisp.org>
19682
19683         localcharset: Assume ANSI C behaviour of free().
19684         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19685         calling free().
19686         Suggested by Simon Josefsson <simon@josefsson.org>.
19687
19688 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19689             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19690             Bruno Haible  <bruno@clisp.org>  (tiny change)
19691
19692         On Cygwin, use /proc file system instead of win32 API.
19693         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19694         Win32 file names.
19695         (DllMain): Simplify by removing Cygwin specific code.
19696         (find_shared_library_fullname): Use Linux specific implementation also
19697         for Cygwin.
19698         (get_shared_library_fullname): Update accordingly.
19699         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19700         Win32 file names.
19701         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19702         Cygwin specific code.
19703
19704 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19705             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19706
19707         Fix OpenMP flag detection for various Fortran compilers.
19708         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19709         OpenMP-conditional compilation construct, to force compile
19710         failure with missing OpenMP flag.
19711         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19712
19713 2011-02-25  Eric Blake  <eblake@redhat.com>
19714
19715         strstr: expand test coverage
19716         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19717         compilation.
19718         * tests/test-memmem.c (main): Duplicate tests.
19719         * tests/test-strcasestr.c (main): Likewise.
19720         * tests/test-c-strcasestr.c (main): Likewise.
19721
19722 2011-02-25  Jim Meyering  <meyering@redhat.com>
19723
19724         maint.mk: detect missing-NL-at-EOF, too
19725         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19726         it also detects when a file lacks a newline at EOF.
19727         (require_exactly_one_NL_at_EOF_): Renamed from
19728         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19729         since people may well have .x-sc_... file names tied to the
19730         existing name.  Suggested by Eric Blake.
19731
19732 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19733
19734         dirname: move m4/dos.m4 functionality into lib/dosname.h
19735
19736         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19737         extracts symbols from it, puts them into config.h; but it's much
19738         easier to use the symbols directly.  filename.h already does this,
19739         but it disagrees with dos.m4 in some respects.  This patch
19740         introduces a different include file dosname.h that packages up
19741         dos.m4, and then later we can work on merging filename.h and
19742         dosname.h.  Applications that need only the easy-to-configure
19743         symbols should consider including dosname.h rather than dirname.h.
19744         * NEWS: Mention incompatible changes.
19745         * m4/dos.m4: Remove.
19746         * lib/dosname.h, modules/dosname: New files.
19747         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19748         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19749         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19750         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19751         Include dosname.h, not dirname.h.
19752         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19753         Include dosname.h, for definitions of symbols like ISSLASH
19754         that used to be in config.h.
19755         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19756         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19757         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19758         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19759         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19760         * modules/rmdir (Files): Likewise.
19761         * modules/stat (Files): Likewise.
19762         * modules/unlink (Files): Likewise.
19763         * modules/dirname-lgpl (Depends-on): Add dosname.
19764         * modules/lstat (Depends-on): Likewise.
19765         * modules/openat (Depends-on): Likewise.
19766         * modules/rmdir (Depends-on): Likewise.
19767         * modules/savewd (Depends-on): Likewise.
19768         * modules/stat (Depends-on): Likewise.
19769         * modules/unlink (Depends-on): Likewise.
19770         * modules/openat (Depends-on): Remove dirname-lgpl.
19771         * modules/savewd (Depends-on): Likewise.
19772         * tests/test-dirname.c: Do not use removed symbols like
19773         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19774         the remaining symbols, e.g., ISSLASH ('\\').
19775
19776 2011-02-25  Eric Blake  <eblake@redhat.com>
19777
19778         strstr: revert patches that introduced bug and pessimization
19779         * lib/str-two-way.h: Add another reference.
19780         (two_way_short_needle, two_way_long_needle): Revert changes from
19781         2011-02-24; they pessimize search speed.
19782         (critical_factorization): Partially revert changes from
19783         2010-06-22; they violate the requirement that the left half of the
19784         needle be smaller than the period of the needle.
19785
19786 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19787
19788         filenamecat: remove unnecessary dependency on dirname-lgpl
19789         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19790         is no direct dependency, just an indirect one via filenamecat-lgpl.
19791
19792         remove: remove unnecessary use of m4/dos.m4
19793         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19794         * modules/remove (FILES): Remove m4/dos.m4.
19795
19796         * lib/openat-proc.c: Don't include dirname.h; not needed.
19797
19798         backupfile: remove unnecessary use of m4/dos.m4
19799         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19800         of its symbols are used by the backupfile code.  backupfile.c does
19801         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19802         for the rare case of programs that want all their backup file
19803         names to live within 8+3 limits, and dos.m4 doesn't address that.
19804         * modules/backupfile (Files): Remove m4/dos.m4.
19805
19806 2011-02-24  Jim Meyering  <meyering@redhat.com>
19807
19808         strstr: fix a bug whereby strstr would mistakenly return NULL
19809         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19810         in period calculation.
19811         (two_way_long_needle): Likewise.
19812         The original problem was reported by Mike Stump in
19813         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19814         Ralf Wildenhues provided the short needle and haystack.
19815         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19816         Add a more involved test to trigger the bug in two_way_long_needle.
19817
19818 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19819
19820         gnulib-tool: remove use of bold display in help screen
19821         * gnulib-tool (func_usage): Do not use bold display anymore in the
19822         help screen.  That was just meant to be a temporary emphasis for a
19823         backward-incompatible change.
19824
19825 2011-02-23  Bruno Haible  <bruno@clisp.org>
19826
19827         Fix misindentation of preprocessor directives.
19828         * lib/argp-namefrob.h: Reindent preprocessor directives.
19829         * lib/getopt_int.h (struct _getopt_data): Likewise.
19830         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19831         * lib/vasnprintf.c (decode_long_double): Likewise.
19832         * tests/test-argmatch.c: Insert blank lines, for clarity.
19833         * tests/test-exclude.c: Likewise.
19834
19835 2011-02-22  Bruno Haible  <bruno@clisp.org>
19836
19837         ioctl: Fix for MacOS X in 64-bit mode.
19838         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19839         value.
19840         Suggested by Eric Blake.
19841         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19842
19843 2011-02-22  Jim Meyering  <meyering@redhat.com>
19844
19845         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19846         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19847         in lib/.
19848
19849 2011-02-22  Eric Blake  <eblake@redhat.com>
19850
19851         maint: avoid any CDPATH issue
19852         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19853
19854         maint: adjust cpp indentation for my modules, as well
19855         * Makefile (sc_cpp_indent_check): Add my name.
19856         * lib/fbufmode.c: Filter through cppi.
19857         * lib/fpurge.c: Likewise.
19858         * lib/freadable.c: Likewise.
19859         * lib/freading.c: Likewise.
19860         * lib/fwritable.c: Likewise.
19861         * lib/fwriting.c: Likewise.
19862         * lib/sigaction.c: Likewise.
19863
19864 2011-02-22  Jim Meyering  <meyering@redhat.com>
19865
19866         maint: adjust cpp indentation to reflect nesting depth
19867         I.e., in a block of code that begins with an unnested "#if",
19868         put one space between the "#" in column 1 and following token.
19869         For example,
19870         -#include <sys/vfs.h>
19871         +# include <sys/vfs.h>
19872         Do this only in .c files that are part of a module I maintain.
19873         * lib/linkat.c: Filter through cppi.
19874         * lib/nanosleep.c: Likewise.
19875         * lib/openat.c: Likewise.
19876         * lib/openat-die.c: Likewise.
19877         * lib/dup3.c: Likewise.
19878         * lib/fchownat.c: Likewise.
19879         * lib/flock.c: Likewise.
19880         * lib/fsync.c: Likewise.
19881         * lib/fts.c: Likewise.
19882         * lib/getpass.c: Likewise.
19883         * lib/gettimeofday.c: Likewise.
19884         * lib/userspec.c: Likewise.
19885         * Makefile (sc_cpp_indent_check): New rule, to check this.
19886
19887 2011-02-22  Bruno Haible  <bruno@clisp.org>
19888
19889         New module 'wctomb'.
19890         * lib/stdlib.in.h (wctomb): New declaration.
19891         * lib/wctomb.c: New file.
19892         * lib/wctomb-impl.h: New file.
19893         * m4/wctomb.m4: New file.
19894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19895         REPLACE_WCTOMB.
19896         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19897         REPLACE_WCTOMB.
19898         * modules/wctomb: New file.
19899         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19900         * doc/posix-functions/wctomb.texi: Mention the new module.
19901         * modules/wctob (Depends-on): Add wctomb.
19902
19903 2011-02-22  Bruno Haible  <bruno@clisp.org>
19904
19905         New module 'mbtowc'.
19906         * lib/stdlib.in.h (mbtowc): New declaration.
19907         * lib/mbtowc.c: New file.
19908         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19909         * m4/mbtowc.m4: New file.
19910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19911         REPLACE_MBTOWC.
19912         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19913         REPLACE_MBTOWC.
19914         * modules/mbtowc: New file.
19915         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19916         * doc/posix-functions/mbtowc.texi: Mention the new module.
19917         * modules/btowc (Depends-on): Add mbtowc.
19918
19919 2011-02-22  Bruno Haible  <bruno@clisp.org>
19920
19921         wcrtomb: Add more tests for native Windows platforms.
19922         * tests/test-wcrtomb-w32-1.sh: New file.
19923         * tests/test-wcrtomb-w32-2.sh: New file.
19924         * tests/test-wcrtomb-w32-3.sh: New file.
19925         * tests/test-wcrtomb-w32-4.sh: New file.
19926         * tests/test-wcrtomb-w32-5.sh: New file.
19927         * tests/test-wcrtomb-w32.c: New file.
19928         * modules/wcrtomb-tests (Files): Add them.
19929         (Makefile.am): Arrange to run these tests.
19930         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19931         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19932
19933 2011-02-20  Bruno Haible  <bruno@clisp.org>
19934
19935         wcrtomb: Enhance test.
19936         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19937
19938 2011-02-20  Bruno Haible  <bruno@clisp.org>
19939
19940         mbrtowc: Tiny optimization.
19941         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19942
19943 2011-02-20  Jim Meyering  <meyering@redhat.com>
19944
19945         test-exclude.c: remove unmatched #endif
19946         * tests/test-exclude.c: Remove stray #endif, left over from
19947         the change of a week ago.
19948
19949 2011-02-19  Jim Meyering  <meyering@redhat.com>
19950
19951         git-version-gen: skip "-dirty" check when appropriate
19952         * build-aux/git-version-gen: Don't run any git commands when the
19953         version string comes from .tarball-version.  Prior to this, we
19954         would run git update-index --refresh even from a just-unpacked
19955         tarball directory, and that could affect a .git/ directory in a
19956         parent of the build directory.  Reported by Mike Frysinger.
19957
19958 2011-02-19  Bruno Haible  <bruno@clisp.org>
19959
19960         unictype/property-byname: Reduce the size of the 'data' segment.
19961         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19962
19963 2011-02-19  Bruno Haible  <bruno@clisp.org>
19964
19965         unictype/scripts: Reduce the size of the 'data' segment.
19966         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19967         '%pic'.
19968         * lib/unictype/scripts_byname.gperf: Regenerated.
19969
19970 2011-02-19  Bruno Haible  <bruno@clisp.org>
19971
19972         stdint: Update documentation.
19973         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19974
19975 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19976
19977         stdint: omit redundant check for wchar.h
19978         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19979         always tests whether wchar.h exists, so remove the now-redundant test.
19980
19981 2011-02-18  Bruno Haible  <bruno@clisp.org>
19982
19983         stdint: Cut dependency to module 'wchar'.
19984         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19985         include the necessary prerequisites.
19986         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19987         * modules/stdint (Depends-on): Remove wchar.
19988         (Makefile.am): Substitute HAVE_WCHAR_H.
19989         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19990
19991 2011-02-18  Eric Blake  <eblake@redhat.com>
19992
19993         longlong: skip, rather than fail, on cross-compilation
19994         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19995         when cross-compiling; regression from 2011-02-16.
19996
19997 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19998
19999         * NEWS: Mention 2011-02-08 change to stdlib.
20000
20001 2011-02-17  Bruno Haible  <bruno@clisp.org>
20002
20003         getloadavg: Add comments about platforms.
20004         * m4/getloadavg.m4: Add comment.
20005         * lib/getloadavg.c: Likewise.
20006
20007 2011-02-17  Bruno Haible  <bruno@clisp.org>
20008
20009         getloadavg: Fix link error on Solaris 2.6.
20010         * modules/getloadavg (Link): New section.
20011         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
20012         linking test-getloadavg.
20013         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
20014         getloadavg.
20015
20016 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20017
20018         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
20019         It was 'int', but this doesn't match the IRIX 6.5 manual.
20020         Suggested by Bruno Haible in
20021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
20022
20023 2011-02-17  Bruno Haible  <bruno@clisp.org>
20024
20025         havelib: Fix comments.
20026         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
20027         change.
20028
20029 2011-02-17  Bruno Haible  <bruno@clisp.org>
20030
20031         havelib: Update config.rpath.
20032         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
20033
20034 2011-02-17  Bruno Haible  <bruno@clisp.org>
20035
20036         getloadavg test: Add some plausibility checks.
20037         * tests/test-getloadavg.c (check_avg): Print a warning when the value
20038         is improbable.
20039
20040 2011-02-16  Eric Blake  <eblake@redhat.com>
20041
20042         maintainer-makefile: make syntax-check a no-op from tarballs
20043         * top/maint.mk (no-vc-detected): New rule.
20044         (local-checks-available): Use it to avoid hanging if someone tries
20045         'make syntax-check' from a tarball.  Also append to any non-syntax
20046         checks already defined in cfg.mk.
20047
20048 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20049
20050         longlong: tune, particularly for common case of c99
20051
20052         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
20053         or running anything if c99, or if unsigned long long int does not
20054         work.  In either case, we know the answer without further tests.
20055         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
20056         it at most once, and use its results for both long long int and
20057         unsigned long long int.  This is more likely to be efficient in
20058         the common case where the program wants to check for both long
20059         long int and unsigned long long int.
20060         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
20061         since the answer is already known.
20062
20063 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
20064
20065         getloadavg: set errno
20066         * lib/getloadavg.c: Set errno when returning -1.  If no other
20067         error number looks appropriate, set it to ENOSYS if the getloadavg
20068         looks like it can't possibly ever work, ENOTSUP otherwise.
20069         Suggested by Bruno Haible in
20070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
20071
20072         getloadavg: trim unused parts and speed up 'configure'
20073         * NEWS: Document this.
20074         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
20075         always compiled if getloadavg is absent.
20076         Move test code to ...
20077         * tests/test-getloadavg.c: New file, containing previous
20078         contents of test from lib/getloadavg.c.  It also contains
20079         suggestions by Bruno Haible in
20080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
20081         * modules/getloadavg-tests: New file.
20082         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
20083         Do tests in the same order as they're needed for getloadavg.c.
20084         Omit setgid-related tests that generate symbols KMEM_GROUP,
20085         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
20086         Do only the tests that are needed to see whether the system has
20087         getloadavg, moving the other tests into ...
20088         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
20089         NLIST_NAME_UNION; nobody should be using it.  Do not define
20090         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
20091         relevant, as the user of this module shouldn't care how getloadavg
20092         is implemented.
20093
20094         getloadavg: omit unused var
20095         * lib/getloadavg.c (getloadavg): Omit unused local variable.
20096
20097 2011-02-15  Jim Meyering  <meyering@redhat.com>
20098
20099         doc: update users.txt
20100         * users.txt: Update iwhd's URL.
20101
20102 2011-02-13  Bruno Haible  <bruno@clisp.org>
20103
20104         Consistent macro naming for macros that use GCC __attribute__.
20105         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
20106         _ATTRIBUTE_NONNULL_.
20107         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
20108         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
20109         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
20110         ATTRIBUTE_DEPRECATED.
20111         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
20112         ATTRIBUTE_NORETURN.
20113         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20114         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20115         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20116         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
20117         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
20118         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
20119         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
20120         ATTRIBUTE_SENTINEL.
20121         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
20122         ATTRIBUTE_RETURN_CHECK.
20123         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
20124         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
20125         ATTRIBUTE_NORETURN.
20126         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
20127         Reported by Paul Eggert.
20128
20129 2011-02-13  Bruno Haible  <bruno@clisp.org>
20130
20131         Don't interfere with a program's definition of __attribute__.
20132         * lib/argp.h (__attribute__): Remove definition.
20133         (_GL_ATTRIBUTE_FORMAT): New macro.
20134         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
20135         * lib/argp-fmtstream.h (__attribute__): Remove definition.
20136         (_GL_ATTRIBUTE_FORMAT): New macro.
20137         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
20138         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
20139         GCC 3 or newer.
20140         * lib/error.h (__attribute__): Remove definition.
20141         (_GL_ATTRIBUTE_FORMAT): New macro.
20142         (error, error_at_line): Use it.
20143         * lib/hash.h (__attribute__): Remove definition.
20144         (ATTRIBUTE_WUR): Update definition. Define always.
20145         * lib/openat.h (__attribute__): Remove definition.
20146         (ATTRIBUTE_NORETURN): Update definition. Define always.
20147         * lib/sigpipe-die.h (__attribute__): Remove definition.
20148         (ATTRIBUTE_NORETURN): Update definition. Define always.
20149         * lib/vasnprintf.h (__attribute__): Remove definition.
20150         (_GL_ATTRIBUTE_FORMAT): New macro.
20151         (asnprintf, vasnprintf): Use it.
20152         * lib/xalloc.h (__attribute__): Remove definition.
20153         (ATTRIBUTE_NORETURN): Update definition. Define always.
20154         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
20155         * lib/xmemdup0.h (__attribute__): Remove definition.
20156         (ATTRIBUTE_NORETURN): Update definition. Define always.
20157         * lib/xprintf.h (__attribute__): Remove definition.
20158         (_GL_ATTRIBUTE_FORMAT): New macro.
20159         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
20160         * lib/xstrtol.h (__attribute__): Remove definition.
20161         (ATTRIBUTE_NORETURN): Update definition. Define always.
20162         * lib/xvasprintf.h (__attribute__): Remove definition.
20163         (_GL_ATTRIBUTE_FORMAT): New macro.
20164         (xasprintf, xvasprintf): Use it.
20165         * tests/test-argmatch.c (__attribute__): Remove definition.
20166         (ATTRIBUTE_NORETURN): Update definition. Define always.
20167         * tests/test-exclude.c (__attribute__): Remove definition.
20168         (ATTRIBUTE_NORETURN): Update definition. Define always.
20169         Reported by Paul Eggert.
20170
20171 2011-02-13  Bruno Haible  <bruno@clisp.org>
20172
20173         mbrtowc: Add more tests for native Windows platforms.
20174         * tests/test-mbrtowc-w32-1.sh: New file.
20175         * tests/test-mbrtowc-w32-2.sh: New file.
20176         * tests/test-mbrtowc-w32-3.sh: New file.
20177         * tests/test-mbrtowc-w32-4.sh: New file.
20178         * tests/test-mbrtowc-w32-5.sh: New file.
20179         * tests/test-mbrtowc-w32.c: New file.
20180         * modules/mbrtowc-tests (Files): Add them.
20181         (Makefile.am): Arrange to run these tests.
20182         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
20183         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
20184
20185 2011-02-13  Bruno Haible  <bruno@clisp.org>
20186
20187         mbrtowc: Work around native Windows bug.
20188         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
20189         guess when no suitable locale for testing was found.
20190         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
20191
20192 2011-02-13  Bruno Haible  <bruno@clisp.org>
20193
20194         mbsinit: Work around mingw bug.
20195         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
20196         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
20197         Windows.
20198         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
20199
20200 2011-02-13  Bruno Haible  <bruno@clisp.org>
20201
20202         mbsinit: Don't crash for a NULL argument.
20203         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
20204         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
20205
20206 2011-02-13  Bruno Haible  <bruno@clisp.org>
20207
20208         Don't interfere with a program's definition of __attribute__.
20209         * lib/stdio.in.h (__attribute__): Remove definition.
20210         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
20211         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
20212         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
20213         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
20214         * lib/string.in.h (__attribute__): Remove definition.
20215         Reported by Paul Eggert.
20216
20217 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20218
20219         stdlib: don't get in the way of non-GCC __attribute__
20220         See thread starting at
20221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
20222         Revert previous stdlib change, installing the following instead:
20223         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
20224         to get in the way of a non-GCC compiler that supports __attribute__.
20225         (_GL_ATTRIBUTE_RETURN): New macro.
20226         (_Exit): Use it instead of __attribute__.
20227
20228 2011-02-12  Bruno Haible  <bruno@clisp.org>
20229
20230         quotearg test: Avoid test failure on mingw.
20231         * tests/test-quotearg.sh: Convert the locale identifier from native
20232         Windows syntax to Unix syntax.
20233
20234 2011-02-12  Bruno Haible  <bruno@clisp.org>
20235
20236         setlocale: Prefer gnulib's override over libintl's override.
20237         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
20238         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
20239         GNULIB_defined_setlocale is set.
20240
20241 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
20242
20243         stdlib: support non-GCC __attribute__
20244
20245         Fix a serious and tricky problem encountered when attempting to
20246         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
20247         5.5, but it crashed due to memory corruption on Solaris 10 with
20248         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
20249         bits that are otherwise zero.  This tagging is optional inside
20250         Emacs but is preferred and is used when __attribute__ ((__aligned
20251         (8))) works, as it does with both recent-enough GCC and with Sun C
20252         5.11.  However, Sun C 5.11 is not GCC and does not #define
20253         __GNUC__ and __GNUC_MINOR__.
20254
20255         When I added the getloadavg module to Emacs, it brought in
20256         stdlib.in.h, which contained this fragment:
20257
20258            #ifndef __attribute__
20259            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
20260            #  define __attribute__(Spec)   /* empty */
20261            # endif
20262            #endif
20263
20264         When files that include <stdlib.h> were compiled with Sun C 5.11,
20265         the above code disabled __attribute__ ((__aligned (8))), which
20266         caused variables to not be properly aligned, which eventually led
20267         to the pointer corruption mentioned above.  (This was a bit hard
20268         to diagnose, unfortunately.)
20269
20270         Several "#define __attribute__(X) /* empty */" code snippets need
20271         to be eradicated from Gnulib to work with non-GCC compilers that
20272         support __attribute__.  The Autoconf way to do this is to test for
20273         each kind of attribute that we want support for, and selectively
20274         enable that in source code.
20275
20276         Fix this problem just for stdlib.h, by adding a test for the
20277         __noreturn__ attribute, and change stdlib.in.h to use that test
20278         when needed.  This technique can be easily generalized to the
20279         other *.in.h files and attributes, and a similar technique can be
20280         used for *.h and *.c files.  This patch is enough to solve the
20281         problem for Emacs + getloadavg, and I thought I'd publish it for
20282         feedback before undertaking further, similar fixes in other
20283         modules.
20284
20285         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
20286         because it's not needed for stdlib.h.  It merely substitutes the
20287         value directly into stdlib.h.  We may well need to #define it, or
20288         similar symbols, for other modules, but it's nice to also have an
20289         option to not #define it for applications like Emacs that do not
20290         need it.
20291
20292         * lib/stdlib.in.h (__attribute__): Do not #define.
20293         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
20294         be defined only if the _Exit module is also used.
20295         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
20296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
20297         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
20298         platforms.
20299         * modules/_Exit (Files): Add m4/attribute.m4.
20300         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
20301         * m4/attribute.m4: New file.
20302
20303 2011-02-12  Bruno Haible  <bruno@clisp.org>
20304
20305         wcsrtombs: Work around bug on native Windows.
20306         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
20307         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
20308         instead of len.
20309         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
20310
20311 2011-02-12  Bruno Haible  <bruno@clisp.org>
20312
20313         mbsrtowcs: Work around bug on native Windows.
20314         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20315         against mingw bug.
20316         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20317
20318 2011-02-12  Bruno Haible  <bruno@clisp.org>
20319
20320         Avoid setlocale bugs in tests.
20321         * modules/btowc (Dependencies): Add setlocale.
20322         * modules/c-strcase (Dependencies): Likewise.
20323         * modules/mbmemcasecmp (Dependencies): Likewise.
20324         * modules/mbmemcasecoll (Dependencies): Likewise.
20325         * modules/mbrtowc (Dependencies): Likewise.
20326         * modules/mbscasecmp (Dependencies): Likewise.
20327         * modules/mbscasestr (Dependencies): Likewise.
20328         * modules/mbschr (Dependencies): Likewise.
20329         * modules/mbscspn (Dependencies): Likewise.
20330         * modules/mbsinit (Dependencies): Likewise.
20331         * modules/mbsncasecmp (Dependencies): Likewise.
20332         * modules/mbsnrtowcs (Dependencies): Likewise.
20333         * modules/mbspbrk (Dependencies): Likewise.
20334         * modules/mbspcasecmp (Dependencies): Likewise.
20335         * modules/mbsrchr (Dependencies): Likewise.
20336         * modules/mbsrtowcs (Dependencies): Likewise.
20337         * modules/mbsspn (Dependencies): Likewise.
20338         * modules/mbsstr (Dependencies): Likewise.
20339         * modules/nl_langinfo (Dependencies): Likewise.
20340         * modules/quotearg (Dependencies): Likewise.
20341         * modules/unicase/locale-language (Dependencies): Likewise.
20342         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20343         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20344         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20345         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20346         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20347         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20348         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20349         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20350         * modules/vasnprintf-posix (Dependencies): Likewise.
20351         * modules/wcrtomb (Dependencies): Likewise.
20352         * modules/wcsnrtombs (Dependencies): Likewise.
20353         * modules/wcsrtombs (Dependencies): Likewise.
20354
20355 2011-02-12  Bruno Haible  <bruno@clisp.org>
20356
20357         setlocale: Workaround native Windows bug.
20358         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20359         succeeds but sets LC_CTYPE to "C", report a failure.
20360         * tests/test-setlocale2.sh: New file.
20361         * tests/test-setlocale2.c: New file.
20362         * modules/setlocale-tests (Files): Add the new files.
20363         (Makefile.am): Enable test-setlocale2.sh test.
20364         * doc/posix-functions/setlocale.texi: Mention workaround.
20365
20366 2011-02-11  Bruno Haible  <bruno@clisp.org>
20367
20368         Tests for module 'setlocale'.
20369         * modules/setlocale-tests: New file.
20370         * tests/test-setlocale1.sh: New file.
20371         * tests/test-setlocale1.c: New file.
20372
20373         New module 'setlocale'.
20374         * lib/locale.in.h (setlocale): New declaration.
20375         * lib/setlocale.c: New file, based on
20376         gettext/gettext-runtime/intl/setlocale.c.
20377         * m4/setlocale.m4: New file.
20378         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20379         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20380         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20381         REPLACE_SETLOCALE.
20382         * modules/setlocale: New file.
20383         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20384         * doc/posix-functions/setlocale.texi: Mention the new module.
20385
20386 2011-02-11  Bruno Haible  <bruno@clisp.org>
20387
20388         Prepare for locale dependent tests on mingw.
20389         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20390         because it has the wrong locale encoding.
20391         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20392         French_France.1252 instead of "fr".
20393         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20394         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20395         because it has the wrong locale encoding.
20396         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20397         native Windows, try Turkish_Turkey.65001.
20398         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20399         Chinese_China.54936.
20400
20401         Prepare for locale dependent tests on mingw.
20402         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20403         differently.
20404         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20405         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20406         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20407         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20408
20409 2011-02-11  Eric Blake  <eblake@redhat.com>
20410
20411         strptime: avoid compiler warnings
20412         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20413         compiler warnings about dead code.
20414         Reported by Daniel P. Berrange.
20415
20416 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20417
20418         doc: update users.txt
20419         * users.txt: Add rcs.
20420
20421 2011-02-10  John W. Eaton  <jwe@gnu.org>
20422
20423         doc: update users.txt
20424         * users.txt: Add octave.
20425
20426 2011-02-10  Jim Meyering  <meyering@redhat.com>
20427
20428         doc: update users.txt
20429         * users.txt: Add iwhd.
20430
20431 2011-02-09  Bruno Haible  <bruno@clisp.org>
20432
20433         gnulib-tool: Make copyright notice adjustment more robust.
20434         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20435         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20436         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20437         License".
20438         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20439
20440 2011-02-06  Bruno Haible  <bruno@clisp.org>
20441
20442         New module 'towctrans'.
20443         * modules/towctrans: New file.
20444         * lib/wctype.in.h (towctrans): New declaration.
20445         * lib/towctrans.c: New file.
20446         * lib/towctrans-impl.h: New file.
20447         * m4/towctrans.m4: New file.
20448         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20449         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20450         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20451         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20452         * doc/posix-functions/towctrans.texi: Mention the new module.
20453
20454 2011-02-06  Bruno Haible  <bruno@clisp.org>
20455
20456         New module 'wctrans'.
20457         * modules/wctrans: New file.
20458         * lib/wctype.in.h (wctrans): New declaration.
20459         * lib/wctrans.c: New file.
20460         * lib/wctrans-impl.h: New file.
20461         * m4/wctrans.m4: New file.
20462         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20463         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20464         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20465         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20466         * doc/posix-functions/wctrans.texi: Mention the new module.
20467
20468 2011-02-06  Bruno Haible  <bruno@clisp.org>
20469
20470         New module 'iswctype'.
20471         * modules/iswctype: New file.
20472         * lib/wctype.in.h (iswctype): New declaration.
20473         * lib/iswctype.c: New file.
20474         * lib/iswctype-impl.h: New file.
20475         * m4/iswctype.m4: New file.
20476         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20477         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20478         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20479         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20480         * doc/posix-functions/iswctype.texi: Mention the new module and the
20481         HP-UX 11.00 problem.
20482
20483 2011-02-06  Bruno Haible  <bruno@clisp.org>
20484
20485         New module 'wctype'.
20486         * modules/wctype: Change to represent the wctype() substitute.
20487         * lib/wctype.in.h (wctype): New declaration.
20488         * lib/wctype.c: New file.
20489         * lib/wctype-impl.h: New file.
20490         * m4/wctype.m4: New file.
20491         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20492         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20493         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20494         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20495         * doc/posix-functions/wctype.texi: Mention the new module and the
20496         HP-UX 11.00 problem.
20497
20498 2011-02-06  Bruno Haible  <bruno@clisp.org>
20499
20500         wctype-h: Ensure wctype_t and wctrans_t are defined.
20501         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20502         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20503         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20504         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20505         HAVE_WCTRANS_T.
20506         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20507
20508 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20509
20510         flock: fix license typo
20511
20512         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20513         omitted.
20514
20515 2011-02-08  Bruno Haible  <bruno@clisp.org>
20516
20517         Split large sed scripts, for HP-UX sed.
20518         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20519         to avoid HP-UX limit of 99 commands, in the near future.
20520         * modules/stdlib (Makefile.am): Likewise.
20521         * modules/unistd (Makefile.am): Likewise.
20522         * modules/wchar (Makefile.am): Likewise.
20523         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20524         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20525         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20526
20527 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20528             Bruno Haible  <bruno@clisp.org>
20529
20530         stdlib: improve random_r modularization
20531         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20532         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20533         you also need the random_r module to get this material right.
20534         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20535         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20536         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20537
20538 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20539
20540         stdlib: don't depend on stdint
20541         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20542         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20543         be independent of whether stdint.h is needed.
20544         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20545         here, instead of ...
20546         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20547         struct random_data should be using the random_r module, not just
20548         the stdlib module (which wouldn't make sense: what package needs
20549         just struct random_data without also needing random_r?).
20550         * modules/stdlib (Depends-on): Remove stdint.
20551
20552         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20553         See the thread rooted at
20554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20555         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20556         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20557         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20558         __VMS)); previously it was always included (via fcntl--.h).
20559         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20560         hand; this is good enough for load averages.  Also, do not use
20561         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20562         flags directly if available and don't bother otherwise.  (Packages
20563         that need the extra reliability should use the modules that define
20564         these flags on older platforms that lack them.)
20565         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20566         fcntl-safer.
20567
20568 2011-02-08  Jim Meyering  <meyering@redhat.com>
20569
20570         di-set.h, ino-map.h: add multiple-inclusion guard
20571         Technically, the guard is required only for ino-map.h, due to its
20572         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20573         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20574         * lib/ino-map.h: Likewise.
20575
20576 2011-02-06  Bruno Haible  <bruno@clisp.org>
20577
20578         iswblank: Ensure declaration on glibc systems.
20579         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20580         * modules/iswblank (Dependencies): Add 'extensions'.
20581         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20582
20583 2011-02-06  Bruno Haible  <bruno@clisp.org>
20584
20585         New module 'iswblank'.
20586         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20587         * modules/iswblank: New file.
20588         * modules/wctype-h (Files): Remove lib/iswblank.c.
20589         (Makefile.am): Substitute GNULIB_ISWBLANK.
20590         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20591         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20592         (gl_WCTYPE_H_DEFAULTS): New macro.
20593         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20594         * modules/iswblank-tests: New file.
20595         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20596         * tests/test-wctype-h.c (main): Remove iswblank tests.
20597         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20598         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20599         of 'wctype-h'.
20600         * NEWS: Mention the change.
20601         * modules/mbchar (Depends-on): Add iswblank.
20602
20603 2011-02-08  Bruno Haible  <bruno@clisp.org>
20604
20605         di-set tests: Refactor.
20606         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20607         unnecessary includes.
20608         (ASSERT): Remove macro.
20609         (main): Make C90 compliant by avoiding variable declaration after
20610         statement.
20611         * modules/di-set-tests (Files): Add tests/macros.h.
20612
20613 2011-02-08  Bruno Haible  <bruno@clisp.org>
20614
20615         ino-map tests: Refactor.
20616         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20617         unnecessary includes.
20618         (ASSERT): Remove macro.
20619         (main): Make C90 compliant by avoiding variable declaration after
20620         statement.
20621         * modules/ino-map-tests (Files): Add tests/macros.h.
20622
20623 2011-02-08  Jim Meyering  <meyering@redhat.com>
20624
20625         di-set: add "const" to a cast
20626         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20627         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20628
20629 2011-02-06  Bruno Haible  <bruno@clisp.org>
20630
20631         Rename module 'wctype' to 'wctype-h'.
20632         * modules/wctype-h: Renamed from modules/wctype.
20633         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20634         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20635         (Files, Depends-on, Makefile.am): Update.
20636         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20637         (Files, Makefile.am): Update.
20638         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20639         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20640         * doc/posix-headers/wctype.texi: Update.
20641         * doc/posix-functions/iswalnum.texi: Update.
20642         * doc/posix-functions/iswalpha.texi: Update.
20643         * doc/posix-functions/iswblank.texi: Update.
20644         * doc/posix-functions/iswcntrl.texi: Update.
20645         * doc/posix-functions/iswdigit.texi: Update.
20646         * doc/posix-functions/iswgraph.texi: Update.
20647         * doc/posix-functions/iswlower.texi: Update.
20648         * doc/posix-functions/iswprint.texi: Update.
20649         * doc/posix-functions/iswpunct.texi: Update.
20650         * doc/posix-functions/iswspace.texi: Update.
20651         * doc/posix-functions/iswupper.texi: Update.
20652         * doc/posix-functions/iswxdigit.texi: Update.
20653         * doc/posix-functions/towlower.texi: Update.
20654         * doc/posix-functions/towupper.texi: Update.
20655         * NEWS: Mention the change.
20656         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20657         * modules/mbchar (Dependencies): Likewise.
20658         * modules/mbswidth (Dependencies): Likewise.
20659         * modules/quotearg (Dependencies): Likewise.
20660         * modules/regex (Dependencies): Likewise.
20661         * modules/wcscasecmp (Dependencies): Likewise.
20662         * modules/wcsncasecmp (Dependencies): Likewise.
20663         * modules/wcwidth (Dependencies): Likewise.
20664
20665 2011-02-06  Bruno Haible  <bruno@clisp.org>
20666
20667         New module 'wcswidth'.
20668         * modules/wcswidth: New file.
20669         * lib/wchar.in.h (wcswidth): New declaration.
20670         * lib/wcswidth.c: New file.
20671         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20672         * m4/wcswidth.m4: New file.
20673         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20674         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20675         REPLACE_WCSWIDTH.
20676         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20677         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20678         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20679         * doc/posix-functions/wcswidth.texi: Mention the new module.
20680
20681 2011-02-06  Bruno Haible  <bruno@clisp.org>
20682
20683         New module 'wcstok'.
20684         * modules/wcstok: New file.
20685         * lib/wchar.in.h (wcstok): New declaration.
20686         * lib/wcstok.c: New file.
20687         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20688         * m4/wcstok.m4: New file.
20689         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20690         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20691         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20692         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20693         * doc/posix-functions/wcstok.texi: Mention the new module.
20694
20695 2011-02-06  Bruno Haible  <bruno@clisp.org>
20696
20697         New module 'wcsstr'.
20698         * modules/wcsstr: New file.
20699         * lib/wchar.in.h (wcsstr): New declaration.
20700         * lib/wcsstr.c: New file.
20701         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20702         * m4/wcsstr.m4: New file.
20703         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20704         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20705         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20706         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20707         * doc/posix-functions/wcsstr.texi: Mention the new module.
20708
20709 2011-02-06  Bruno Haible  <bruno@clisp.org>
20710
20711         New module 'wcspbrk'.
20712         * modules/wcspbrk: New file.
20713         * lib/wchar.in.h (wcspbrk): New declaration.
20714         * lib/wcspbrk.c: New file.
20715         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20716         * m4/wcspbrk.m4: New file.
20717         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20718         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20719         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20720         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20721         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20722
20723 2011-02-06  Bruno Haible  <bruno@clisp.org>
20724
20725         New module 'wcsspn'.
20726         * modules/wcsspn: New file.
20727         * lib/wchar.in.h (wcsspn): New declaration.
20728         * lib/wcsspn.c: New file.
20729         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20730         * m4/wcsspn.m4: New file.
20731         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20732         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20733         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20734         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20735         * doc/posix-functions/wcsspn.texi: Mention the new module.
20736
20737 2011-02-06  Bruno Haible  <bruno@clisp.org>
20738
20739         New module 'wcscspn'.
20740         * modules/wcscspn: New file.
20741         * lib/wchar.in.h (wcscspn): New declaration.
20742         * lib/wcscspn.c: New file.
20743         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20744         * m4/wcscspn.m4: New file.
20745         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20746         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20747         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20748         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20749         * doc/posix-functions/wcscspn.texi: Mention the new module.
20750
20751 2011-02-06  Bruno Haible  <bruno@clisp.org>
20752
20753         New module 'wcsrchr'.
20754         * modules/wcsrchr: New file.
20755         * lib/wchar.in.h (wcsrchr): New declaration.
20756         * lib/wcsrchr.c: New file.
20757         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20758         * m4/wcsrchr.m4: New file.
20759         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20760         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20761         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20762         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20763         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20764
20765 2011-02-06  Bruno Haible  <bruno@clisp.org>
20766
20767         New module 'wcschr'.
20768         * modules/wcschr: New file.
20769         * lib/wchar.in.h (wcschr): New declaration.
20770         * lib/wcschr.c: New file.
20771         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20772         * m4/wcschr.m4: New file.
20773         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20774         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20775         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20776         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20777         * doc/posix-functions/wcschr.texi: Mention the new module.
20778
20779 2011-02-06  Bruno Haible  <bruno@clisp.org>
20780
20781         New module 'wcsdup'.
20782         * modules/wcsdup: New file.
20783         * lib/wchar.in.h (wcsdup): New declaration.
20784         * lib/wcsdup.c: New file.
20785         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20786         * m4/wcsdup.m4: New file.
20787         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20788         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20789         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20790         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20791         * doc/posix-functions/wcsdup.texi: Mention the new module.
20792
20793 2011-02-06  Bruno Haible  <bruno@clisp.org>
20794
20795         New module 'wcsxfrm'.
20796         * modules/wcsxfrm: New file.
20797         * lib/wchar.in.h (wcsxfrm): New declaration.
20798         * lib/wcsxfrm.c: New file.
20799         * lib/wcsxfrm-impl.h: New file.
20800         * m4/wcsxfrm.m4: New file.
20801         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20802         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20803         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20804         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20805         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20806
20807 2011-02-06  Bruno Haible  <bruno@clisp.org>
20808
20809         New module 'wcscoll'.
20810         * modules/wcscoll: New file.
20811         * lib/wchar.in.h (wcscoll): New declaration.
20812         * lib/wcscoll.c: New file.
20813         * lib/wcscoll-impl.h: New file.
20814         * m4/wcscoll.m4: New file.
20815         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20816         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20817         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20818         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20819         * doc/posix-functions/wcscoll.texi: Mention the new module.
20820
20821 2011-02-06  Bruno Haible  <bruno@clisp.org>
20822
20823         New module 'wcsncasecmp'.
20824         * modules/wcsncasecmp: New file.
20825         * lib/wchar.in.h (wcsncasecmp): New declaration.
20826         * lib/wcsncasecmp.c: New file.
20827         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20828         * m4/wcsncasecmp.m4: New file.
20829         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20830         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20831         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20832         HAVE_WCSNCASECMP.
20833         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20834         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20835
20836 2011-02-06  Bruno Haible  <bruno@clisp.org>
20837
20838         New module 'wcscasecmp'.
20839         * modules/wcscasecmp: New file.
20840         * lib/wchar.in.h (wcscasecmp): New declaration.
20841         * lib/wcscasecmp.c: New file.
20842         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20843         * m4/wcscasecmp.m4: New file.
20844         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20845         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20846         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20847         HAVE_WCSCASECMP.
20848         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20849         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20850
20851 2011-02-05  Bruno Haible  <bruno@clisp.org>
20852
20853         New module 'wcsncmp'.
20854         * modules/wcsncmp: New file.
20855         * lib/wchar.in.h (wcsncmp): New declaration.
20856         * lib/wcsncmp.c: New file.
20857         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20858         * m4/wcsncmp.m4: New file.
20859         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20860         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20861         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20862         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20863         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20864
20865 2011-02-05  Bruno Haible  <bruno@clisp.org>
20866
20867         New module 'wcscmp'.
20868         * modules/wcscmp: New file.
20869         * lib/wchar.in.h (wcscmp): New declaration.
20870         * lib/wcscmp.c: New file.
20871         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20872         * m4/wcscmp.m4: New file.
20873         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20874         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20875         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20876         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20877         * doc/posix-functions/wcscmp.texi: Mention the new module.
20878
20879 2011-02-05  Bruno Haible  <bruno@clisp.org>
20880
20881         New module 'wcsncat'.
20882         * modules/wcsncat: New file.
20883         * lib/wchar.in.h (wcsncat): New declaration.
20884         * lib/wcsncat.c: New file.
20885         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20886         * m4/wcsncat.m4: New file.
20887         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20888         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20889         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20890         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20891         * doc/posix-functions/wcsncat.texi: Mention the new module.
20892
20893 2011-02-05  Bruno Haible  <bruno@clisp.org>
20894
20895         New module 'wcscat'.
20896         * modules/wcscat: New file.
20897         * lib/wchar.in.h (wcscat): New declaration.
20898         * lib/wcscat.c: New file.
20899         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20900         * m4/wcscat.m4: New file.
20901         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20902         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20903         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20904         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20905         * doc/posix-functions/wcscat.texi: Mention the new module.
20906
20907 2011-02-05  Bruno Haible  <bruno@clisp.org>
20908
20909         New module 'wcpncpy'.
20910         * modules/wcpncpy: New file.
20911         * lib/wchar.in.h (wcpncpy): New declaration.
20912         * lib/wcpncpy.c: New file.
20913         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20914         * m4/wcpncpy.m4: New file.
20915         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20916         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20917         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20918         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20919         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20920
20921 2011-02-05  Bruno Haible  <bruno@clisp.org>
20922
20923         New module 'wcsncpy'.
20924         * modules/wcsncpy: New file.
20925         * lib/wchar.in.h (wcsncpy): New declaration.
20926         * lib/wcsncpy.c: New file.
20927         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20928         * m4/wcsncpy.m4: New file.
20929         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20930         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20931         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20932         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20933         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20934
20935 2011-02-05  Bruno Haible  <bruno@clisp.org>
20936
20937         New module 'wcpcpy'.
20938         * modules/wcpcpy: New file.
20939         * lib/wchar.in.h (wcpcpy): New declaration.
20940         * lib/wcpcpy.c: New file.
20941         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20942         * m4/wcpcpy.m4: New file.
20943         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20944         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20945         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20946         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20947         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20948
20949 2011-02-05  Bruno Haible  <bruno@clisp.org>
20950
20951         New module 'wcscpy'.
20952         * modules/wcscpy: New file.
20953         * lib/wchar.in.h (wcscpy): New declaration.
20954         * lib/wcscpy.c: New file.
20955         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20956         * m4/wcscpy.m4: New file.
20957         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20958         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20959         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20960         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20961         * doc/posix-functions/wcscpy.texi: Mention the new module.
20962
20963 2011-02-05  Bruno Haible  <bruno@clisp.org>
20964
20965         New module 'wcsnlen'.
20966         * modules/wcsnlen: New file.
20967         * lib/wchar.in.h (wcsnlen): New declaration.
20968         * lib/wcsnlen.c: New file.
20969         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20970         * m4/wcsnlen.m4: New file.
20971         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20972         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20973         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20974         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20975         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20976
20977 2011-02-05  Bruno Haible  <bruno@clisp.org>
20978
20979         New module 'wcslen'.
20980         * modules/wcslen: New file.
20981         * lib/wchar.in.h (wcslen): New declaration.
20982         * lib/wcslen.c: New file.
20983         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20984         * m4/wcslen.m4: New file.
20985         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20986         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20987         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20988         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20989         * doc/posix-functions/wcslen.texi: Mention the new module.
20990
20991 2011-02-05  Bruno Haible  <bruno@clisp.org>
20992
20993         New module 'wmemset'.
20994         * modules/wmemset: New file.
20995         * lib/wchar.in.h (wmemset): New declaration.
20996         * lib/wmemset.c: New file.
20997         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20998         * m4/wmemset.m4: New file.
20999         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
21000         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
21001         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
21002         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
21003         * doc/posix-functions/wmemset.texi: Mention the new module.
21004
21005 2011-02-05  Bruno Haible  <bruno@clisp.org>
21006
21007         New module 'wmemmove'.
21008         * modules/wmemmove: New file.
21009         * lib/wchar.in.h (wmemmove): New declaration.
21010         * lib/wmemmove.c: New file.
21011         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
21012         * m4/wmemmove.m4: New file.
21013         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
21014         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
21015         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
21016         HAVE_WMEMMOVE.
21017         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
21018         * doc/posix-functions/wmemmove.texi: Mention the new module.
21019
21020 2011-02-05  Bruno Haible  <bruno@clisp.org>
21021
21022         New module 'wmemcpy'.
21023         * modules/wmemcpy: New file.
21024         * lib/wchar.in.h (wmemcpy): New declaration.
21025         * lib/wmemcpy.c: New file.
21026         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
21027         * m4/wmemcpy.m4: New file.
21028         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
21029         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
21030         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
21031         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
21032         * doc/posix-functions/wmemcpy.texi: Mention the new module.
21033
21034 2011-02-05  Bruno Haible  <bruno@clisp.org>
21035
21036         New module 'wmemcmp'.
21037         * modules/wmemcmp: New file.
21038         * lib/wchar.in.h (wmemcmp): New declaration.
21039         * lib/wmemcmp.c: New file.
21040         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
21041         * m4/wmemcmp.m4: New file.
21042         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
21043         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
21044         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
21045         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
21046         * doc/posix-functions/wmemcmp.texi: Mention the new module.
21047
21048 2011-02-07  Jim Meyering  <meyering@redhat.com>
21049
21050         di-set, ino-map: new modules, from coreutils
21051         * lib/di-set.c: New file.
21052         * lib/di-set.h: Likewise.
21053         * lib/ino-map.c: Likewise.
21054         * lib/ino-map.h: Likewise.
21055         * modules/di-set: Likewise.
21056         * modules/di-set-tests: Likewise.
21057         * modules/ino-map: Likewise.
21058         * modules/ino-map-tests: Likewise.
21059         * tests/test-di-set.c: Likewise.
21060         * tests/test-ino-map.c: Likewise.
21061
21062 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
21063
21064         getloadavg: merge minor changes from Emacs
21065
21066         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
21067         (getloadavg): Use memset, not bzero.
21068
21069         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
21070         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
21071         clash (bug#86).
21072
21073 2010-11-14  Bruno Haible  <bruno@clisp.org>
21074
21075         Allow multiple gnulib generated replacements to coexist.
21076         * lib/getopt.in.h (struct option): Avoid identical redefinition.
21077         * lib/inttypes.in.h (imaxdiv_t): Likewise.
21078         * lib/langinfo.in.h (nl_item): Likewise.
21079         * lib/math.in.h (_NaN, NAN): Likewise.
21080         * lib/netdb.in.h (struct addrinfo): Likewise.
21081         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
21082         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
21083         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
21084         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
21085         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
21086         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
21087         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
21088         pthread_mutexattr_init, pthread_mutexattr_settype,
21089         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
21090         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
21091         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
21092         pthread_spin_trylock, pthread_spin_unlock): Likewise.
21093         * lib/sched.in.h (struct sched_param): Likewise.
21094         * lib/se-selinux.in.h (security_class_t, security_context_t,
21095         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
21096         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
21097         lsetfilecon, fsetfilecon, security_check_context,
21098         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
21099         Likewise.
21100         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
21101         Likewise.
21102         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
21103         _gl_function_taking_int_returning_void_t, union sigval,
21104         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
21105         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
21106         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21107         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
21108         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
21109         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
21110         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
21111         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
21112         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
21113         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
21114         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
21115         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
21116         socklen_t, rpl_fd_isset): Likewise.
21117         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
21118         * lib/sys_time.in.h (struct timeval): Likewise.
21119         * lib/sys_times.in.h (struct tms): Likewise.
21120         * lib/sys_utsname.in.h (struct utsname):
21121         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
21122         * lib/unistd.in.h (getpagesize): Likewise.
21123         * lib/wchar.in.h (mbstate_t): Likewise.
21124         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
21125         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
21126         towlower, towupper): Likewise.
21127         Reported by Sam Steingold <sds@gnu.org>.
21128
21129 2011-02-05  Eric Blake  <eblake@redhat.com>
21130
21131         unsetenv: work around Haiku issues
21132         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
21133         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
21134
21135 2010-12-30  Bruce Korb  <bkorb@gnu.org>
21136
21137         libposix: avoid calling error() within libposix
21138         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
21139         is defined.
21140
21141 2011-02-05  Eric Blake  <eblake@redhat.com>
21142
21143         strerror_r-posix: port to cygwin
21144         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
21145         implementation.
21146         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
21147         * tests/test-strerror_r.c (main): Fix test.
21148         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
21149         issue.
21150
21151 2011-02-05  Bruno Haible  <bruno@clisp.org>
21152
21153         New module 'wmemchr'.
21154         * modules/wmemchr: New file.
21155         * lib/wchar.in.h (wmemchr): New declaration.
21156         * lib/wmemchr.c: New file.
21157         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
21158         * m4/wmemchr.m4: New file.
21159         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
21160         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
21161         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
21162         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
21163         * doc/posix-functions/wmemchr.texi: Mention the new module.
21164
21165 2011-02-04  Eric Blake  <eblake@redhat.com>
21166
21167         fdopendir: detect FreeBSD bug
21168         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
21169         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
21170
21171 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
21172
21173         stdbool: do not define HAVE_STDBOOL_H
21174         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
21175         AC_HEADER_STDBOOL.  All uses changed.  Do not define
21176         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
21177         imported from the latest Autoconf git.  It was motivated by Emacs,
21178         which uses gnulib but does not need HAVE_STDBOOL_H.
21179
21180 2011-02-04  Bruno Haible  <bruno@clisp.org>
21181
21182         wcsnrtombs: Prepare for new module wwcsnrtombs.
21183         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
21184         * lib/wcsnrtombs.c: Include it.
21185         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
21186
21187         wcsrtombs: Prepare for new module wwcsrtombs.
21188         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
21189         * lib/wcsrtombs.c: Include it.
21190         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
21191
21192         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
21193         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
21194         * lib/mbsnrtowcs.c: Include it.
21195         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
21196
21197         mbsrtowcs: Prepare for new module mbsrtowwcs.
21198         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
21199         * lib/mbsrtowcs.c: Include it.
21200         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
21201
21202 2011-02-04  Bruno Haible  <bruno@clisp.org>
21203
21204         vasnprintf: Reduce use of malloc for small format strings.
21205         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
21206         (arguments): Add room for the first 7 arguments.
21207         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
21208         (char_directives, u8_directives, u16_directives, u32_directives): Add
21209         room for the first 7 directives.
21210         * lib/printf-parse.c: Include <string.h>.
21211         (PRINTF_PARSE): Change memory handling code so that it uses the first
21212         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
21213         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
21214         Reported by Pádraig Brady <P@draigbrady.com>.
21215
21216 2011-01-31  Eric Blake  <eblake@redhat.com>
21217
21218         dup2: work around Haiku bug
21219         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
21220         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
21221         * doc/posix-functions/dup2.texi (dup2): Document the bug.
21222         * tests/test-dup2.c (main): Enhance test.
21223
21224 2011-01-31  Simon Josefsson  <simon@josefsson.org>
21225
21226         doc: off_t is not available in eglibc 2.11.2 stdio.h.
21227         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
21228         declared by eglibc 2.11.2.
21229         * lib/stdio.in.h: Likewise.
21230
21231 2011-01-31  Eric Blake  <eblake@redhat.com>
21232
21233         ignore-value: add missing test dependency
21234         * tests/test-ignore-value.c: Revert previous change; stdio.h
21235         provides off_t.
21236         * modules/ignore-value-tests (Depends-on): Add missing dependency.
21237
21238 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
21239
21240         mktime: clarify long_int width checking
21241         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
21242         the top level, to make it clearer that the assumption about
21243         long_int width is being checked.  See
21244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
21245
21246 2011-01-30  Simon Josefsson  <simon@josefsson.org>
21247
21248         ignore-value: Fix self-test.
21249         * tests/test-ignore-value.c: Include sys/types.h for off_t.
21250
21251 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
21252
21253         TYPE_MAXIMUM: avoid theoretically undefined behavior
21254         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
21255         negative number, which the C Standard says has undefined behavior.
21256         In practice this is not a problem, but might as well do it by the book.
21257         Reported by Rich Felker and Eric Blake; see
21258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
21259         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
21260         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
21261         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
21262         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
21263         * m4/stdint.m4 (gl_STDINT_H): Likewise.
21264         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
21265
21266         mktime: #undef mktime before #defining it
21267         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
21268
21269         mktime: systematically normalize tm_isdst comparisons
21270         * lib/mktime.c (isdst_differ): New function.
21271         (__mktime_internal): Use it systematically for all isdst comparisons.
21272         This completes the fix for libc BZ #6723, and removes the need for
21273         normalizing tm_isdst.  See
21274         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
21275         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
21276
21277         mktime: fix some integer overflow issues and sidestep the rest
21278
21279         This was prompted by a bug report by Benjamin Lindner for MinGW
21280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
21281         His bug is due to signed integer overflow (0 - INT_MIN), and I
21282         I scanned through mktime.c looking for other integer overflow
21283         problems, fixing all the bugs I found.
21284
21285         Although the C Standard says the resulting code is still not safe
21286         in the presence of integer overflow, in practice it should be good
21287         enough for all real-world two's-complement implementations, except
21288         for debugging environments that deliberately trap on integer
21289         overflow (e.g., gcc -ftrapv).
21290
21291         * lib/mktime.c (WRAPV): New macro.
21292         (SHR): Also check that long_int and time_t shift right in the
21293         usual way, before using the fast-but-unportable method.
21294         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
21295         used.  The code already assumed two's complement, so there's
21296         no need to test for alternatives.  All uses removed.
21297         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
21298         the C standard.  Problem reported by Rich Felker in
21299         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
21300         (twos_complement_arithmetic): Also check long_int and time_t.
21301         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
21302         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
21303         (__mktime_internal): Avoid integer overflow with unary subtraction
21304         in two instances where -1 - X is an adequate replacement for -X,
21305         since the calculations are approximate.
21306
21307 2011-01-29  Eric Blake  <eblake@redhat.com>
21308
21309         mktime: avoid infinite loop
21310         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
21311         type; behavior is still undefined but portable to all known targets.
21312         Reported by Rich Felker.
21313
21314 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21315
21316         rename, unlink, same-inode: Relicense.
21317         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21318         * modules/unlink (License): Likewise.
21319         * modules/same-inode (License): Likewise.
21320
21321 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21322
21323         mktime: avoid problems on NetBSD 5 / i386
21324         * lib/mktime.c (long_int): New type.  This works around a problem
21325         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21326         but time_t is 64 bits, and where I expect the existing code is
21327         wrong in some cases.
21328         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21329         (ydhms_diff): Bring back the compile-time check for wide-enough
21330         year and yday.
21331
21332         mktime: fix misspelling in comment
21333         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21334         This merges all recent glibc changes of importance.
21335
21336 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21337
21338         move-if-change: cope with concurrent mv of identical file.
21339         * build-aux/move-if-change (CMPPROG): Accept environment
21340         variable as an override for `cmp'.
21341         (usage): Document CMPPROG.
21342         Adjust comparison to drop stdout.  Cope with failure of mv if
21343         the target file exists and is identical to the source, for
21344         parallel builds.
21345         Report from H.J. Lu against binutils in PR binutils/12283.
21346
21347 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21348
21349         * users.txt: Mention sharutils.
21350
21351 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21352
21353         * users.txt: Mention OATH Toolkit.
21354
21355 2011-01-27  Bruno Haible  <bruno@clisp.org>
21356
21357         Prepare for supporting FreeBSD 10.
21358         * build-aux/config.libpath: Remove handling of freebsd1*.
21359
21360 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21361
21362         Prepare for supporting FreeBSD 10.
21363         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21364         match FreeBSD 10.0.
21365
21366 2011-01-27  Bruno Haible  <bruno@clisp.org>
21367
21368         vma-iter, get-rusage-as: Add OpenBSD support.
21369         * modules/vma-iter (configure.ac): Test for mquery.
21370         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21371         * lib/vma-iter.c: Include <sys/mman.h>.
21372         (vma_iterate): Add an implementation based on mquery().
21373         * lib/resource-ext.h (get_rusage_as): Update comments.
21374         * lib/get-rusage-as.c: Likewise.
21375         * lib/get-rusage-data.c: Likewise.
21376
21377 2011-01-26  Karl Berry  <karl@gnu.org>
21378
21379         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21380         variables to make it easier to override the makeinfo program used.
21381
21382 2011-01-26  Eric Blake  <eblake@redhat.com>
21383
21384         fcntl: work around Haiku F_DUPFD bugs
21385         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21386         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21387         cloexec bit on duplication.
21388         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21389
21390 2011-01-26  Bruno Haible  <bruno@clisp.org>
21391
21392         Enable memory leak tests on AIX.
21393         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21394         * tests/test-fprintf-posix3.c (main): Likewise.
21395
21396 2011-01-26  Bruno Haible  <bruno@clisp.org>
21397
21398         Tests for module 'get-rusage-data'.
21399         * modules/get-rusage-data-tests: New file.
21400         * tests/test-get-rusage-data.c: New file.
21401
21402         New module 'get-rusage-data'.
21403         * lib/resource-ext.h (get_rusage_data): New declaration.
21404         * lib/get-rusage-data.c: New file.
21405         * modules/get-rusage-data: New file.
21406
21407 2011-01-25  Bruno Haible  <bruno@clisp.org>
21408
21409         get-rusage-as: Allow for easier testing.
21410         * lib/resource-ext.h (get_rusage_as): Add comment.
21411         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21412         (main): New function for interactive testing.
21413
21414 2011-01-25  Bruno Haible  <bruno@clisp.org>
21415
21416         vma-iter: Treat Haiku like BeOS.
21417         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21418         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21419
21420 2011-01-25  Eric Blake  <eblake@redhat.com>
21421
21422         c-stack: fix regression on cygwin when libsigsegv is present
21423         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21424
21425 2011-01-24  Bruno Haible  <bruno@clisp.org>
21426
21427         vma-iter: Avoid empty intervals.
21428         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21429         on an empty interval.
21430
21431 2011-01-24  Jim Meyering  <meyering@redhat.com>
21432
21433         u64: remove unnecessary #include
21434         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21435
21436 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21437
21438         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21439         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21440
21441 2011-01-23  Bruno Haible  <bruno@clisp.org>
21442
21443         New module 'vma-iter'.
21444         * lib/vma-iter.h: New file.
21445         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21446         * modules/vma-iter: New file.
21447         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21448         for get_rusage_as_via_iterator.
21449         (vma_iterate_callback): New function.
21450         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21451         * modules/get-rusage-as (Depends-on): Add vma-iter.
21452
21453 2011-01-23  Bruno Haible  <bruno@clisp.org>
21454
21455         uninorm: Tweak includes.
21456         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21457         Reported by Jim Meyering.
21458
21459 2011-01-23  Bruno Haible  <bruno@clisp.org>
21460
21461         get-rusage-as: Improve on NetBSD.
21462         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21463         /proc, like on FreeBSD.
21464
21465 2011-01-23  Jim Meyering  <meyering@redhat.com>
21466
21467         xreadlink.h: remove unnecessary #include
21468         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21469
21470         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21471         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21472
21473 2011-01-23  Bruno Haible  <bruno@clisp.org>
21474
21475         get-rusage-as: Fix bug.
21476         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21477         original limit when aborting the first loop.
21478
21479 2011-01-23  Bruno Haible  <bruno@clisp.org>
21480
21481         wctype: Ensure valid C syntax.
21482         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21483         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21484
21485 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21486
21487         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21488         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21489         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21490         as they are needed only for configure's test case.
21491         This removes two unnecessary symbols from config.h.
21492
21493         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21494         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21495         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21496         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21497         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21498         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21499         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21500         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21501         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21502         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21503         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21504         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21505         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21506         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21507         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21508         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21509         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21510         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21511
21512 2011-01-21  Eric Blake  <eblake@redhat.com>
21513
21514         maintainer-makefile: work with older git for submodule check
21515         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21516         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21517         Reported by Matthias Bolte.
21518
21519         bootstrap: minor portability fixes
21520         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21521         (usage): Omit leading capital and trailing . on help phrases, per
21522         GNU Coding Standards.
21523         (check_versions, top level): Prefix messages with script name.
21524
21525 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21526
21527         bootstrap: support --no-git option
21528         * build-aux/bootstrap: Add --no-git option, to be used when
21529         --gnulib-srcdir points to the exact desired checkout.
21530
21531 2011-01-21  Eric Blake  <eblake@redhat.com>
21532
21533         strerror_r-posix: work with glibc 2.13
21534         * lib/strerror_r.c (strerror_r): Fix return type.
21535
21536 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21537             Bruno Haible  <bruno@clisp.org>
21538
21539         uN_strstr: New unit tests.
21540         * modules/unistr/u8-strstr-tests: New file.
21541         * modules/unistr/u16-strstr-tests: New file.
21542         * modules/unistr/u32-strstr-tests: New file.
21543         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21544         * tests/unistr/test-u8-strstr.c: New file.
21545         * tests/unistr/test-u16-strstr.c: New file.
21546         * tests/unistr/test-u32-strstr.c: New file.
21547
21548 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21549             Bruno Haible  <bruno@clisp.org>
21550
21551         Make uN_strstr functions O(n) worst-case.
21552         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21553         16-bit and 32-bit unit cases, use the unibyte algorithm from
21554         lib/mbsstr.c.
21555         * lib/unistr/u8-strstr.c: Include <string.h>.
21556         (UNIT_IS_UINT8_T): New macro.
21557         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21558         (U_STRLEN, U_STRNLEN): New macros.
21559         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21560         (U_STRLEN, U_STRNLEN): New macros.
21561         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21562         (configure.ac): Update required libunistring version.
21563         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21564         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21565         malloca.
21566         (configure.ac): Update required libunistring version.
21567         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21568         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21569         malloca.
21570         (configure.ac): Update required libunistring version.
21571
21572 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21573             Bruno Haible  <bruno@clisp.org>
21574
21575         Prepare for faster uN_strstr functions.
21576         * lib/str-kmp.h: Support definable UNITs.
21577         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21578         needle_len argument.
21579         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21580         * lib/mbscasestr.c (mbscasestr): Likewise.
21581
21582 2011-01-21  Pádraig Brady <P@draigBrady.com>
21583
21584         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21585         * tests/test-malloca.c (main): Unset the environment variable
21586         to greatly speed up the test.
21587         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21588         * modules/malloca-tests: Depend on unsetenv.
21589
21590 2011-01-21  Pádraig Brady <P@draigBrady.com>
21591
21592         ignore-value: remove stdint dependency
21593         * lib/ignore-value.h: Remove <stdint.h>
21594         * modules/ignore-value: Remove stdint dependency.
21595
21596 2011-01-21  Jim Meyering  <meyering@redhat.com>
21597
21598         maint.mk: adjust variable name to be consistent with other gl_ vars
21599         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21600         to be lower case.
21601
21602 2011-01-20  Jim Meyering  <meyering@redhat.com>
21603
21604         maint.mk: make "check" depend on public-submodule-commit by default
21605         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21606
21607 2011-01-20  Bruno Haible  <bruno@clisp.org>
21608
21609         mbfile, mbiter: Complete change from 2008-12-21.
21610         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21611         * m4/mbiter.m4 (gl_MBITER): Likewise.
21612
21613 2011-01-20  Jim Meyering  <meyering@redhat.com>
21614
21615         init.sh: insert space between each function name and "()"
21616         * tests/init.sh: Make it a little easier to see that a function's
21617         name is "warn_", and not "warn" when looking at the first part of
21618         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21619
21620 2011-01-20  Jim Meyering  <meyering@redhat.com>
21621
21622         mountlist: clean up code formatting
21623         * lib/mountlist.c (read_file_system_list): Split a long line,
21624         correct bracing style, use NULL in place of "(struct statfs *)0",
21625         don't parenthesize return value, add spaces around "=" and after
21626         ";-in-for-stmt".
21627
21628 2011-01-14  Markus Duft <mduft@gentoo.org>
21629
21630         mountlist: add support for Interix
21631         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21632         Apply statvfs to all entries of /dev/fs.
21633         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21634         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21635
21636 2011-01-20  Jim Meyering  <meyering@redhat.com>
21637
21638         maint.mk: improve the public-submodule-commit rule
21639         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21640         to suppress printing of its commands... unless V=1.
21641         Add git submodule's --quiet option to suppress printing of e.g.,
21642         "Entering gnulib" output.
21643         "cd" into $(srcdir) before running git submodule.
21644
21645 2011-01-20  Bruno Haible  <bruno@clisp.org>
21646
21647         include_next: Fix bug introduced on 2011-01-18.
21648         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21649         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21650         ac_cv_header_... variable if the second argument is not 'check'.
21651         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21652         gl_NEXT_HEADERS_INTERNAL.
21653
21654 2011-01-20  Bruno Haible  <bruno@clisp.org>
21655
21656         Allow the user to avoid the GNULIB_TEST_* macros.
21657         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21658         Suggested by Paul Eggert.
21659
21660 2011-01-14  Jim Meyering  <meyering@redhat.com>
21661
21662         bootstrap: avoid failure when there is no .gitmodules file
21663         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21664         has been assigned to, even when its value is the empty string.
21665         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21666         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21667         Reported by John W. Eaton <jwe@gnu.org>.
21668
21669 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21670
21671         assume <ctype.h>, ..., <time.h> exist
21672         For years gnulib has been assuming the existence of the headers
21673         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21674         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21675         them, since they don't appear to be needed.
21676         * README (Portability guidelines): Document this.
21677         * lib/flock.c: Assume <fcntl.h> exists.
21678         * lib/regex_internal.h: Assume <locale.h> exists.
21679         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21680         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21681         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21682         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21683         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21684         * m4/regex.m4 (gl_REGEX): Likewise.
21685         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21686         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21687         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21688         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21689         * tests/test-argp.c: Likewise.
21690         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21691
21692         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21693         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21694         AA_APPLE_UNIVERSAL_BUILD.  See
21695         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21696         * NEWS: Document this.
21697
21698 2011-01-19  Eric Blake  <eblake@redhat.com>
21699
21700         c-stack: assume stack overflow if SA_SIGINFO unsupported
21701         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21702         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21703         sigaction will work.
21704         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21705         behavior match Linux.
21706         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21707
21708         stdbool-tests: accommodate Haiku
21709         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21710
21711         binary-io: fix O_TEXT on Haiku
21712         * modules/binary-io (Depends-on): Add fcntl-h.
21713         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21714         than blindly undefining O_TEXT.
21715         Reported by Scott McCreary.
21716
21717 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21718
21719         include_next: do not check for standard headers like stddef.h
21720
21721         I found this problem when modifying Emacs to use gnulib.
21722         I noticed that it added HAVE_STDDEF_H to config.h, even though
21723         gnulib always assumes <stddef.h> exists as per README and this
21724         symbol is unnecessary.
21725         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21726         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21727         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21728         faster for headers like stddef.h that are known to exist.
21729         (gl_CHECK_NEXT_HEADERS): Use it.
21730         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21731         rather than gl_CHECK_NEXT_HEADERS.
21732         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21733         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21734
21735 2011-01-18  Eric Blake  <eblake@redhat.com>
21736
21737         ansi-c++-opt: skip C++ dependency style if C++ is unused
21738         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21739         tests when we know C++ compilation is not desired.
21740         Reported by Scott McCreary.
21741
21742 2011-01-18  Bruno Haible  <bruno@clisp.org>
21743
21744         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21745         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21746         (main): Perform test also when getrlimit and setrlimit don't exist or
21747         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21748         limiting the address space size using setrlimit, compare the address
21749         space size before and after the the test.
21750         * tests/test-dprintf-posix2.c: Likewise.
21751         * tests/test-fprintf-posix3.sh: Update skip messages.
21752         * tests/test-dprintf-posix2.sh: Likewise.
21753         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21754         * modules/dprintf-posix-tests (Depends-on): Likewise.
21755         Reported by Bruce Korb <bkorb@gnu.org> and
21756         Gary V. Vaughan <gary@gnu.org>.
21757
21758 2011-01-18  Bruno Haible  <bruno@clisp.org>
21759
21760         get-rusage-as: Improvement for Cygwin.
21761         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21762         areas that are merely reserved.
21763
21764 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21765
21766         strftime: remove dependencies on multibyte modules
21767
21768         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21769         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21770         only if __osf__ is defined, and I suspect OSF doesn't need these
21771         other modules.  If my guess is wrong, we'll need to come up with a
21772         variant of strftime that doesn't need the multibyte modules.
21773
21774         I discovered this problem when attempting modify Emacs to use the
21775         strftime module.  With the previous gnulib, this caused Emacs to
21776         need 31 new files, ranging from lib/config.charset to
21777         m4/wint_t.m4.  This was overkill and I expect would be offputting
21778         to the Emacs maintainers.  After this change, only 6 new files are
21779         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21780         stdbool.m4, and tm_gmtoff.m4.
21781
21782         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21783         Suggested by Bruno Haible in
21784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21785         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21786         and do not check for wchar.h.
21787         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21788         (Depends-on): Remove mbrlen, mbsinit, wchar.
21789
21790 2011-01-18  Bruno Haible  <bruno@clisp.org>
21791
21792         Tests for module 'get-rusage-as'.
21793         * modules/get-rusage-as-tests: New file.
21794         * tests/test-get-rusage-as.c: New file.
21795
21796         New module 'get-rusage-as'.
21797         * modules/get-rusage-as: New file.
21798         * lib/resource-ext.h: New file.
21799         * lib/get-rusage-as.c: New file.
21800
21801 2011-01-17  Eric Blake  <eblake@redhat.com>
21802
21803         sigaction: relax license from LGPLv3+ to LGPLv2+
21804         * modules/sigaction (License): Relax to LGPLv2+.
21805
21806 2011-01-14  Bruno Haible  <bruno@clisp.org>
21807
21808         filemode: Make function declarations usable in C++ mode.
21809         * lib/filemode.h: Enclose function declarations in extern "C" block.
21810         Reported by John W. Eaton <jwe@gnu.org>.
21811
21812 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21813
21814         save-cwd: no longer include "xgetcwd.h"
21815         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21816         This avoids a compilation failure in projects that use save-cwd
21817         without also using the xgetcwd module.
21818
21819 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21820
21821         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21822         This is so that a program like Emacs, which needs only dtoastr,
21823         does not have to bother with distributing and compiling ftoastr
21824         and ldtoastr.
21825         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21826         * modules/dtoastr, modules/ldtoastr: New files.
21827         * modules/ftoastr: Now works just for 'float'.
21828         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21829         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21830         dtoastr.c, ldtoastr.c.
21831
21832 2011-01-11  Jim Meyering  <meyering@redhat.com>
21833
21834         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21835         There is no need to work around the lack of the fchdir function,
21836         since gnulib can now provide a replacement when required.
21837         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21838         * modules/save-cwd (Depends-on): Add fchdir.
21839
21840 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21841
21842         openat, save-cwd: avoid xmalloc
21843
21844         This removes a direct (but undocumented) dependency of openat on
21845         xalloc, along with an indirect dependency via save-cwd.  It also
21846         removes a dependency of save-cwd on xgetcwd, and thereby
21847         indirectly on xalloc.  This change causes the openat substitute
21848         to fall back on save_cwd when memory is tight, and for save_cwd to
21849         fail instead of dying when memory is tight, but that's good enough.
21850         Problem and initial idea for fix reported by Bastien Roucaries in
21851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21852
21853         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21854         xalloc.h (for xmalloc).
21855         (openat_proc_name): Use malloc, not xmalloc.
21856         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21857         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21858
21859         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21860         This avoids heap allocation for file names whose lengths are in
21861         the range 512..1023, with the upper bound increasing to at most
21862         4031 depending on the platform's PATH_MAX.  (We do not want
21863         pathmax.h here as it might supply a non-constant PATH_MAX.)
21864         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21865         Perhaps they should be moved to malloca.h?
21866         (OPENAT_BUFFER_SIZE): Use them.
21867
21868 2011-01-10  Bruno Haible  <bruno@clisp.org>
21869
21870         doc: Update users.txt.
21871         * users.txt: Add recutils.
21872
21873 2011-01-09  Karl Berry  <karl@gnu.org>
21874
21875         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21876
21877         * doc/configmake.texi: New file.
21878         * doc/gnulib.texi: Include it.
21879         * modules/configmake: Move documentation from here.
21880
21881 2011-01-09  Bruno Haible  <bruno@clisp.org>
21882
21883         Update to Unicode 6.0.0.
21884         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21885         (get_lbp): Update for Unicode 6.0.0.
21886         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21887         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21888         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21889         U+11001, U+11038..U+11046. Remove U+06DE.
21890         (uc_width): Fix bounds of planes.
21891         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21892         lib/uniwidth/width.c.
21893         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21894         trailing whitespace removed.
21895         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21896         without comments, but with the original copyright notice.
21897         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21898         * lib/unicase/ignorable.h: Likewise.
21899         * lib/unicase/tocasefold.h: Likewise.
21900         * lib/unicase/tolower.h: Likewise.
21901         * lib/unicase/totitle.h: Likewise.
21902         * lib/unicase/toupper.h: Likewise.
21903         * lib/unictype/bidi_of.h: Likewise.
21904         * lib/unictype/blocks.h: Likewise.
21905         * lib/unictype/categ_C.h: Likewise.
21906         * lib/unictype/categ_Cn.h: Likewise.
21907         * lib/unictype/categ_L.h: Likewise.
21908         * lib/unictype/categ_Ll.h: Likewise.
21909         * lib/unictype/categ_Lm.h: Likewise.
21910         * lib/unictype/categ_Lo.h: Likewise.
21911         * lib/unictype/categ_Lu.h: Likewise.
21912         * lib/unictype/categ_M.h: Likewise.
21913         * lib/unictype/categ_Mc.h: Likewise.
21914         * lib/unictype/categ_Me.h: Likewise.
21915         * lib/unictype/categ_Mn.h: Likewise.
21916         * lib/unictype/categ_N.h: Likewise.
21917         * lib/unictype/categ_Nd.h: Likewise.
21918         * lib/unictype/categ_No.h: Likewise.
21919         * lib/unictype/categ_P.h: Likewise.
21920         * lib/unictype/categ_Po.h: Likewise.
21921         * lib/unictype/categ_S.h: Likewise.
21922         * lib/unictype/categ_Sc.h: Likewise.
21923         * lib/unictype/categ_Sk.h: Likewise.
21924         * lib/unictype/categ_Sm.h: Likewise.
21925         * lib/unictype/categ_So.h: Likewise.
21926         * lib/unictype/categ_of.h: Likewise.
21927         * lib/unictype/combining.h: Likewise.
21928         * lib/unictype/ctype_alnum.h: Likewise.
21929         * lib/unictype/ctype_alpha.h: Likewise.
21930         * lib/unictype/ctype_graph.h: Likewise.
21931         * lib/unictype/ctype_lower.h: Likewise.
21932         * lib/unictype/ctype_print.h: Likewise.
21933         * lib/unictype/ctype_punct.h: Likewise.
21934         * lib/unictype/ctype_upper.h: Likewise.
21935         * lib/unictype/decdigit.h: Likewise.
21936         * lib/unictype/digit.h: Likewise.
21937         * lib/unictype/numeric.h: Likewise.
21938         * lib/unictype/pr_alphabetic.h: Likewise.
21939         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21940         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21941         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21942         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21943         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21944         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21945         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21946         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21947         * lib/unictype/pr_case_ignorable.h: Likewise.
21948         * lib/unictype/pr_cased.h: Likewise.
21949         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21950         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21951         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21952         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21953         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21954         * lib/unictype/pr_combining.h: Likewise.
21955         * lib/unictype/pr_composite.h: Likewise.
21956         * lib/unictype/pr_currency_symbol.h: Likewise.
21957         * lib/unictype/pr_decimal_digit.h: Likewise.
21958         * lib/unictype/pr_deprecated.h: Likewise.
21959         * lib/unictype/pr_format_control.h: Likewise.
21960         * lib/unictype/pr_grapheme_base.h: Likewise.
21961         * lib/unictype/pr_grapheme_extend.h: Likewise.
21962         * lib/unictype/pr_grapheme_link.h: Likewise.
21963         * lib/unictype/pr_id_continue.h: Likewise.
21964         * lib/unictype/pr_id_start.h: Likewise.
21965         * lib/unictype/pr_ideographic.h: Likewise.
21966         * lib/unictype/pr_lowercase.h: Likewise.
21967         * lib/unictype/pr_math.h: Likewise.
21968         * lib/unictype/pr_numeric.h: Likewise.
21969         * lib/unictype/pr_other_alphabetic.h: Likewise.
21970         * lib/unictype/pr_other_id_continue.h: Likewise.
21971         * lib/unictype/pr_other_math.h: Likewise.
21972         * lib/unictype/pr_punctuation.h: Likewise.
21973         * lib/unictype/pr_sentence_terminal.h: Likewise.
21974         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21975         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21976         * lib/unictype/pr_unified_ideograph.h: Likewise.
21977         * lib/unictype/pr_uppercase.h: Likewise.
21978         * lib/unictype/pr_xid_continue.h: Likewise.
21979         * lib/unictype/pr_xid_start.h: Likewise.
21980         * lib/unictype/scripts.h: Likewise.
21981         * lib/unictype/scripts_byname.gperf: Likewise.
21982         * lib/unictype/sy_java_ident.h: Likewise.
21983         * lib/unigbrk/gbrkprop.h: Likewise.
21984         * lib/unilbrk/lbrkprop1.h: Likewise.
21985         * lib/unilbrk/lbrkprop2.h: Likewise.
21986         * lib/uninorm/decomposition-table2.h: Likewise.
21987         * lib/uniwbrk/wbrkprop.h: Likewise.
21988         * tests/unicase/test-cased.c: Likewise.
21989         * tests/unicase/test-ignorable.c: Likewise.
21990         * tests/unicase/test-uc_tolower.c: Likewise.
21991         * tests/unicase/test-uc_totitle.c: Likewise.
21992         * tests/unicase/test-uc_toupper.c: Likewise.
21993         * tests/unictype/test-categ_C.c: Likewise.
21994         * tests/unictype/test-categ_Cn.c: Likewise.
21995         * tests/unictype/test-categ_L.c: Likewise.
21996         * tests/unictype/test-categ_Ll.c: Likewise.
21997         * tests/unictype/test-categ_Lm.c: Likewise.
21998         * tests/unictype/test-categ_Lo.c: Likewise.
21999         * tests/unictype/test-categ_Lu.c: Likewise.
22000         * tests/unictype/test-categ_M.c: Likewise.
22001         * tests/unictype/test-categ_Mc.c: Likewise.
22002         * tests/unictype/test-categ_Me.c: Likewise.
22003         * tests/unictype/test-categ_Mn.c: Likewise.
22004         * tests/unictype/test-categ_N.c: Likewise.
22005         * tests/unictype/test-categ_Nd.c: Likewise.
22006         * tests/unictype/test-categ_No.c: Likewise.
22007         * tests/unictype/test-categ_P.c: Likewise.
22008         * tests/unictype/test-categ_Po.c: Likewise.
22009         * tests/unictype/test-categ_S.c: Likewise.
22010         * tests/unictype/test-categ_Sc.c: Likewise.
22011         * tests/unictype/test-categ_Sk.c: Likewise.
22012         * tests/unictype/test-categ_Sm.c: Likewise.
22013         * tests/unictype/test-categ_So.c: Likewise.
22014         * tests/unictype/test-ctype_alnum.c: Likewise.
22015         * tests/unictype/test-ctype_alpha.c: Likewise.
22016         * tests/unictype/test-ctype_graph.c: Likewise.
22017         * tests/unictype/test-ctype_lower.c: Likewise.
22018         * tests/unictype/test-ctype_print.c: Likewise.
22019         * tests/unictype/test-ctype_punct.c: Likewise.
22020         * tests/unictype/test-ctype_upper.c: Likewise.
22021         * tests/unictype/test-decdigit.h: Likewise.
22022         * tests/unictype/test-digit.h: Likewise.
22023         * tests/unictype/test-numeric.h: Likewise.
22024         * tests/unictype/test-pr_alphabetic.c: Likewise.
22025         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22026         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22027         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22028         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22029         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22030         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22031         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22032         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22033         * tests/unictype/test-pr_case_ignorable.c: Likewise.
22034         * tests/unictype/test-pr_cased.c: Likewise.
22035         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
22036         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
22037         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
22038         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
22039         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
22040         * tests/unictype/test-pr_combining.c: Likewise.
22041         * tests/unictype/test-pr_composite.c: Likewise.
22042         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22043         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22044         * tests/unictype/test-pr_deprecated.c: Likewise.
22045         * tests/unictype/test-pr_format_control.c: Likewise.
22046         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22047         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22048         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22049         * tests/unictype/test-pr_id_continue.c: Likewise.
22050         * tests/unictype/test-pr_id_start.c: Likewise.
22051         * tests/unictype/test-pr_ideographic.c: Likewise.
22052         * tests/unictype/test-pr_lowercase.c: Likewise.
22053         * tests/unictype/test-pr_math.c: Likewise.
22054         * tests/unictype/test-pr_numeric.c: Likewise.
22055         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22056         * tests/unictype/test-pr_other_id_continue.c: Likewise.
22057         * tests/unictype/test-pr_other_math.c: Likewise.
22058         * tests/unictype/test-pr_punctuation.c: Likewise.
22059         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22060         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22061         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22062         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22063         * tests/unictype/test-pr_uppercase.c: Likewise.
22064         * tests/unictype/test-pr_xid_continue.c: Likewise.
22065         * tests/unictype/test-pr_xid_start.c: Likewise.
22066         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22067         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22068         changes.
22069         * lib/unictype/categ_Cc.h: Likewise.
22070         * lib/unictype/categ_Cf.h: Likewise.
22071         * lib/unictype/categ_Co.h: Likewise.
22072         * lib/unictype/categ_Cs.h: Likewise.
22073         * lib/unictype/categ_Lt.h: Likewise.
22074         * lib/unictype/categ_Nl.h: Likewise.
22075         * lib/unictype/categ_Pc.h: Likewise.
22076         * lib/unictype/categ_Pd.h: Likewise.
22077         * lib/unictype/categ_Pe.h: Likewise.
22078         * lib/unictype/categ_Pf.h: Likewise.
22079         * lib/unictype/categ_Pi.h: Likewise.
22080         * lib/unictype/categ_Ps.h: Likewise.
22081         * lib/unictype/categ_Z.h: Likewise.
22082         * lib/unictype/categ_Zl.h: Likewise.
22083         * lib/unictype/categ_Zp.h: Likewise.
22084         * lib/unictype/categ_Zs.h: Likewise.
22085         * lib/unictype/ctype_blank.h: Likewise.
22086         * lib/unictype/ctype_cntrl.h: Likewise.
22087         * lib/unictype/ctype_digit.h: Likewise.
22088         * lib/unictype/ctype_space.h: Likewise.
22089         * lib/unictype/ctype_xdigit.h: Likewise.
22090         * lib/unictype/mirror.h: Likewise.
22091         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22092         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22093         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22094         * lib/unictype/pr_bidi_control.h: Likewise.
22095         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22096         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22097         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22098         * lib/unictype/pr_bidi_pdf.h: Likewise.
22099         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22100         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22101         * lib/unictype/pr_dash.h: Likewise.
22102         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22103         * lib/unictype/pr_diacritic.h: Likewise.
22104         * lib/unictype/pr_extender.h: Likewise.
22105         * lib/unictype/pr_hex_digit.h: Likewise.
22106         * lib/unictype/pr_hyphen.h: Likewise.
22107         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22108         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22109         * lib/unictype/pr_ignorable_control.h: Likewise.
22110         * lib/unictype/pr_iso_control.h: Likewise.
22111         * lib/unictype/pr_join_control.h: Likewise.
22112         * lib/unictype/pr_left_of_pair.h: Likewise.
22113         * lib/unictype/pr_line_separator.h: Likewise.
22114         * lib/unictype/pr_logical_order_exception.h: Likewise.
22115         * lib/unictype/pr_non_break.h: Likewise.
22116         * lib/unictype/pr_not_a_character.h: Likewise.
22117         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22118         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22119         * lib/unictype/pr_other_id_start.h: Likewise.
22120         * lib/unictype/pr_other_lowercase.h: Likewise.
22121         * lib/unictype/pr_other_uppercase.h: Likewise.
22122         * lib/unictype/pr_paired_punctuation.h: Likewise.
22123         * lib/unictype/pr_paragraph_separator.h: Likewise.
22124         * lib/unictype/pr_pattern_syntax.h: Likewise.
22125         * lib/unictype/pr_pattern_white_space.h: Likewise.
22126         * lib/unictype/pr_private_use.h: Likewise.
22127         * lib/unictype/pr_quotation_mark.h: Likewise.
22128         * lib/unictype/pr_radical.h: Likewise.
22129         * lib/unictype/pr_soft_dotted.h: Likewise.
22130         * lib/unictype/pr_space.h: Likewise.
22131         * lib/unictype/pr_titlecase.h: Likewise.
22132         * lib/unictype/pr_variation_selector.h: Likewise.
22133         * lib/unictype/pr_white_space.h: Likewise.
22134         * lib/unictype/pr_zero_width.h: Likewise.
22135         * lib/unictype/sy_c_ident.h: Likewise.
22136         * lib/unictype/sy_c_whitespace.h: Likewise.
22137         * lib/unictype/sy_java_whitespace.h: Likewise.
22138         * lib/uninorm/composition-table.gperf: Likewise.
22139         * lib/uninorm/decomposition-table1.h: Likewise.
22140         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
22141         LB8.
22142         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22143         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22144         * modules/unictype/*: Bump version number of expected libunistring
22145         version.
22146
22147 2011-01-09  Bruno Haible  <bruno@clisp.org>
22148
22149         Update to Unicode 5.2.0.
22150         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
22151         trailing whitespace removed.
22152
22153 2011-01-09  Bruno Haible  <bruno@clisp.org>
22154
22155         New Unicode character properties, from Unicode 5.2.0.
22156         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
22157         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
22158         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
22159         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
22160         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
22161         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
22162         uc_is_property_cased, uc_is_property_case_ignorable,
22163         uc_is_property_changes_when_lowercased,
22164         uc_is_property_changes_when_uppercased,
22165         uc_is_property_changes_when_titlecased,
22166         uc_is_property_changes_when_casefolded,
22167         uc_is_property_changes_when_casemapped): New declarations.
22168         * lib/unictype/pr_byname.gperf: Add the new properties.
22169         * modules/unictype/property-byname (Depends-on): Depend on the new
22170         properties modules.
22171         * modules/unictype/property-all (Depends-on): Likewise.
22172         * MODULES.html.sh (Unicode string functions): Add
22173         unictype/property-case-ignorable, unictype/property-cased,
22174         unictype/property-changes-when-casefolded,
22175         unictype/property-changes-when-casemapped,
22176         unictype/property-changes-when-lowercased,
22177         unictype/property-changes-when-titlecased,
22178         unictype/property-changes-when-uppercased.
22179
22180         New module 'unictype/property-changes-when-casemapped'.
22181         * modules/unictype/property-changes-when-casemapped: New file.
22182         * lib/unictype/pr_changes_when_casemapped.c: New file.
22183         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
22184         generated by gen-uni-tables.
22185         * modules/unictype/property-changes-when-casemapped-tests: New file.
22186         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
22187         automatically generated by gen-uni-tables.
22188
22189         New module 'unictype/property-changes-when-casefolded'.
22190         * modules/unictype/property-changes-when-casefolded: New file.
22191         * lib/unictype/pr_changes_when_casefolded.c: New file.
22192         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
22193         generated by gen-uni-tables.
22194         * modules/unictype/property-changes-when-casefolded-tests: New file.
22195         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
22196         automatically generated by gen-uni-tables.
22197
22198         New module 'unictype/property-changes-when-titlecased'.
22199         * modules/unictype/property-changes-when-titlecased: New file.
22200         * lib/unictype/pr_changes_when_titlecased.c: New file.
22201         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
22202         generated by gen-uni-tables.
22203         * modules/unictype/property-changes-when-titlecased-tests: New file.
22204         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
22205         automatically generated by gen-uni-tables.
22206
22207         New module 'unictype/property-changes-when-uppercased'.
22208         * modules/unictype/property-changes-when-uppercased: New file.
22209         * lib/unictype/pr_changes_when_uppercased.c: New file.
22210         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
22211         generated by gen-uni-tables.
22212         * modules/unictype/property-changes-when-uppercased-tests: New file.
22213         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
22214         automatically generated by gen-uni-tables.
22215
22216         New module 'unictype/property-changes-when-lowercased'.
22217         * modules/unictype/property-changes-when-lowercased: New file.
22218         * lib/unictype/pr_changes_when_lowercased.c: New file.
22219         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
22220         generated by gen-uni-tables.
22221         * modules/unictype/property-changes-when-lowercased-tests: New file.
22222         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
22223         automatically generated by gen-uni-tables.
22224
22225         New module 'unictype/property-case-ignorable'.
22226         * modules/unictype/property-case-ignorable: New file.
22227         * lib/unictype/pr_case_ignorable.c: New file.
22228         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
22229         by gen-uni-tables.
22230         * modules/unictype/property-case-ignorable-tests: New file.
22231         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
22232         generated by gen-uni-tables.
22233
22234         New module 'unictype/property-cased'.
22235         * modules/unictype/property-cased: New file.
22236         * lib/unictype/pr_cased.c: New file.
22237         * lib/unictype/pr_cased.h: New file, automatically generated by
22238         gen-uni-tables.
22239         * modules/unictype/property-cased-tests: New file.
22240         * tests/unictype/test-pr_cased.c: New file, automatically generated by
22241         gen-uni-tables.
22242
22243 2011-01-09  Bruno Haible  <bruno@clisp.org>
22244
22245         Update to Unicode 5.2.0.
22246         * lib/gen-uni-tables.c (output_predicate, output_category,
22247         output_combclass, output_bidi_category, output_decimal_digit_test,
22248         output_decimal_digit, output_digit_test, output_digit,
22249         output_numeric_test, output_numeric, output_mirror, output_scripts,
22250         output_scripts_byname, output_blocks, output_ident_category): Fix
22251         comment header.
22252         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
22253         get_wbp.
22254         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
22255         items.
22256         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
22257         Changes_When_Lowercased, Changes_When_Uppercased,
22258         Changes_When_Titlecased, Changes_When_Casefolded,
22259         Changes_When_Casemapped.
22260         (is_property_alphabetic, is_property_default_ignorable_code_point):
22261         Update for Unicode 5.2.0.
22262         (is_property_cased, is_property_case_ignorable,
22263         is_property_changes_when_lowercased,
22264         is_property_changes_when_uppercased,
22265         is_property_changes_when_titlecased,
22266         is_property_changes_when_casefolded,
22267         is_property_changes_when_casemapped): New functions.
22268         (output_properties): Output also the properties cased, case_ignorable,
22269         changes_when_lowercased, changes_when_uppercased,
22270         changes_when_titlecased, changes_when_casefolded,
22271         changes_when_casemapped.
22272         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
22273         Unicode TR#11 revision 17 -> 19.
22274         (LBP_CP): New enumeration value.
22275         (LBP_*): Adjust values accordingly.
22276         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22277         TR#14 revision 22 -> 24.
22278         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
22279         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
22280         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
22281         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
22282         is_WBP_MIDLETTER.
22283         (output_composition_tables): Allow for 24 bits instead of 16 bits in
22284         the code1 and code2 of each composition rule.
22285         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
22286         * lib/unicase/ignorable.h: Likewise.
22287         * lib/unicase/tocasefold.h: Likewise.
22288         * lib/unicase/tolower.h: Likewise.
22289         * lib/unicase/totitle.h: Likewise.
22290         * lib/unicase/toupper.h: Likewise.
22291         * lib/unictype/bidi_of.h: Likewise.
22292         * lib/unictype/blocks.h: Likewise.
22293         * lib/unictype/categ_C.h: Likewise.
22294         * lib/unictype/categ_Cf.h: Likewise.
22295         * lib/unictype/categ_Cn.h: Likewise.
22296         * lib/unictype/categ_L.h: Likewise.
22297         * lib/unictype/categ_Ll.h: Likewise.
22298         * lib/unictype/categ_Lm.h: Likewise.
22299         * lib/unictype/categ_Lo.h: Likewise.
22300         * lib/unictype/categ_Lu.h: Likewise.
22301         * lib/unictype/categ_M.h: Likewise.
22302         * lib/unictype/categ_Mc.h: Likewise.
22303         * lib/unictype/categ_Mn.h: Likewise.
22304         * lib/unictype/categ_N.h: Likewise.
22305         * lib/unictype/categ_Nd.h: Likewise.
22306         * lib/unictype/categ_Nl.h: Likewise.
22307         * lib/unictype/categ_No.h: Likewise.
22308         * lib/unictype/categ_P.h: Likewise.
22309         * lib/unictype/categ_Pd.h: Likewise.
22310         * lib/unictype/categ_Po.h: Likewise.
22311         * lib/unictype/categ_S.h: Likewise.
22312         * lib/unictype/categ_Sc.h: Likewise.
22313         * lib/unictype/categ_So.h: Likewise.
22314         * lib/unictype/categ_of.h: Likewise.
22315         * lib/unictype/combining.h: Likewise.
22316         * lib/unictype/ctype_alnum.h: Likewise.
22317         * lib/unictype/ctype_alpha.h: Likewise.
22318         * lib/unictype/ctype_graph.h: Likewise.
22319         * lib/unictype/ctype_lower.h: Likewise.
22320         * lib/unictype/ctype_print.h: Likewise.
22321         * lib/unictype/ctype_punct.h: Likewise.
22322         * lib/unictype/ctype_upper.h: Likewise.
22323         * lib/unictype/decdigit.h: Likewise.
22324         * lib/unictype/digit.h: Likewise.
22325         * lib/unictype/numeric.h: Likewise.
22326         * lib/unictype/pr_alphabetic.h: Likewise.
22327         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22328         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22329         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22330         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22331         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22332         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22333         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22334         * lib/unictype/pr_combining.h: Likewise.
22335         * lib/unictype/pr_composite.h: Likewise.
22336         * lib/unictype/pr_currency_symbol.h: Likewise.
22337         * lib/unictype/pr_dash.h: Likewise.
22338         * lib/unictype/pr_decimal_digit.h: Likewise.
22339         * lib/unictype/pr_deprecated.h: Likewise.
22340         * lib/unictype/pr_diacritic.h: Likewise.
22341         * lib/unictype/pr_extender.h: Likewise.
22342         * lib/unictype/pr_grapheme_base.h: Likewise.
22343         * lib/unictype/pr_grapheme_extend.h: Likewise.
22344         * lib/unictype/pr_grapheme_link.h: Likewise.
22345         * lib/unictype/pr_id_continue.h: Likewise.
22346         * lib/unictype/pr_id_start.h: Likewise.
22347         * lib/unictype/pr_ideographic.h: Likewise.
22348         * lib/unictype/pr_ignorable_control.h: Likewise.
22349         * lib/unictype/pr_logical_order_exception.h: Likewise.
22350         * lib/unictype/pr_lowercase.h: Likewise.
22351         * lib/unictype/pr_numeric.h: Likewise.
22352         * lib/unictype/pr_other_alphabetic.h: Likewise.
22353         * lib/unictype/pr_punctuation.h: Likewise.
22354         * lib/unictype/pr_sentence_terminal.h: Likewise.
22355         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22356         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22357         * lib/unictype/pr_unified_ideograph.h: Likewise.
22358         * lib/unictype/pr_uppercase.h: Likewise.
22359         * lib/unictype/pr_xid_continue.h: Likewise.
22360         * lib/unictype/pr_xid_start.h: Likewise.
22361         * lib/unictype/pr_zero_width.h: Likewise.
22362         * lib/unictype/scripts.h: Likewise.
22363         * lib/unictype/scripts_byname.gperf: Likewise.
22364         * lib/unictype/sy_java_ident.h: Likewise.
22365         * lib/unigbrk/gbrkprop.h: Likewise.
22366         * lib/unilbrk/lbrkprop1.h: Likewise.
22367         * lib/unilbrk/lbrkprop2.h: Likewise.
22368         * lib/unilbrk/lbrktables.h: Likewise.
22369         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22370         LBP_CP. Implement rule LB30.
22371         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22372         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22373         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22374         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22375         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22376         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22377         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22378         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22379         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22380         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22381         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22382         bits instead of 16 bits in the code1 and code2 of each composition
22383         rule.
22384         (uc_composition): Update for Unicode 5.2.0.
22385         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22386         * lib/uninorm/decomposition-table2.h: Likewise.
22387         * lib/uniwbrk/wbrkprop.h: Likewise.
22388         * tests/unicase/test-cased.c: Likewise.
22389         * tests/unicase/test-ignorable.c: Likewise.
22390         * tests/unicase/test-uc_tolower.c: Likewise.
22391         * tests/unicase/test-uc_totitle.c: Likewise.
22392         * tests/unicase/test-uc_toupper.c: Likewise.
22393         * tests/unictype/test-categ_C.c: Likewise.
22394         * tests/unictype/test-categ_Cf.c: Likewise.
22395         * tests/unictype/test-categ_Cn.c: Likewise.
22396         * tests/unictype/test-categ_L.c: Likewise.
22397         * tests/unictype/test-categ_Ll.c: Likewise.
22398         * tests/unictype/test-categ_Lm.c: Likewise.
22399         * tests/unictype/test-categ_Lo.c: Likewise.
22400         * tests/unictype/test-categ_Lu.c: Likewise.
22401         * tests/unictype/test-categ_M.c: Likewise.
22402         * tests/unictype/test-categ_Mc.c: Likewise.
22403         * tests/unictype/test-categ_Mn.c: Likewise.
22404         * tests/unictype/test-categ_N.c: Likewise.
22405         * tests/unictype/test-categ_Nd.c: Likewise.
22406         * tests/unictype/test-categ_Nl.c: Likewise.
22407         * tests/unictype/test-categ_No.c: Likewise.
22408         * tests/unictype/test-categ_P.c: Likewise.
22409         * tests/unictype/test-categ_Pd.c: Likewise.
22410         * tests/unictype/test-categ_Po.c: Likewise.
22411         * tests/unictype/test-categ_S.c: Likewise.
22412         * tests/unictype/test-categ_Sc.c: Likewise.
22413         * tests/unictype/test-categ_So.c: Likewise.
22414         * tests/unictype/test-ctype_alnum.c: Likewise.
22415         * tests/unictype/test-ctype_alpha.c: Likewise.
22416         * tests/unictype/test-ctype_graph.c: Likewise.
22417         * tests/unictype/test-ctype_lower.c: Likewise.
22418         * tests/unictype/test-ctype_print.c: Likewise.
22419         * tests/unictype/test-ctype_punct.c: Likewise.
22420         * tests/unictype/test-ctype_upper.c: Likewise.
22421         * tests/unictype/test-decdigit.h: Likewise.
22422         * tests/unictype/test-digit.h: Likewise.
22423         * tests/unictype/test-numeric.h: Likewise.
22424         * tests/unictype/test-pr_alphabetic.c: Likewise.
22425         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22426         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22427         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22428         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22429         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22430         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22431         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22432         * tests/unictype/test-pr_combining.c: Likewise.
22433         * tests/unictype/test-pr_composite.c: Likewise.
22434         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22435         * tests/unictype/test-pr_dash.c: Likewise.
22436         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22437         * tests/unictype/test-pr_deprecated.c: Likewise.
22438         * tests/unictype/test-pr_diacritic.c: Likewise.
22439         * tests/unictype/test-pr_extender.c: Likewise.
22440         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22441         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22442         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22443         * tests/unictype/test-pr_id_continue.c: Likewise.
22444         * tests/unictype/test-pr_id_start.c: Likewise.
22445         * tests/unictype/test-pr_ideographic.c: Likewise.
22446         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22447         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22448         * tests/unictype/test-pr_lowercase.c: Likewise.
22449         * tests/unictype/test-pr_numeric.c: Likewise.
22450         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22451         * tests/unictype/test-pr_punctuation.c: Likewise.
22452         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22453         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22454         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22455         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22456         * tests/unictype/test-pr_uppercase.c: Likewise.
22457         * tests/unictype/test-pr_xid_continue.c: Likewise.
22458         * tests/unictype/test-pr_xid_start.c: Likewise.
22459         * tests/unictype/test-pr_zero_width.c: Likewise.
22460         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22461         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22462         changed behaviour: line breaking is now disallowed between a letter
22463         or '=' and '('.
22464         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22465         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22466         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22467         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22468         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22469         lib/uniwidth/width.c.
22470         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22471         without comments, but with the original copyright notice.
22472         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22473         changes.
22474         * lib/unictype/categ_Cc.h: Likewise.
22475         * lib/unictype/categ_Co.h: Likewise.
22476         * lib/unictype/categ_Cs.h: Likewise.
22477         * lib/unictype/categ_Lt.h: Likewise.
22478         * lib/unictype/categ_Me.h: Likewise.
22479         * lib/unictype/categ_Pc.h: Likewise.
22480         * lib/unictype/categ_Pe.h: Likewise.
22481         * lib/unictype/categ_Pf.h: Likewise.
22482         * lib/unictype/categ_Pi.h: Likewise.
22483         * lib/unictype/categ_Ps.h: Likewise.
22484         * lib/unictype/categ_Sk.h: Likewise.
22485         * lib/unictype/categ_Sm.h: Likewise.
22486         * lib/unictype/categ_Z.h: Likewise.
22487         * lib/unictype/categ_Zl.h: Likewise.
22488         * lib/unictype/categ_Zp.h: Likewise.
22489         * lib/unictype/categ_Zs.h: Likewise.
22490         * lib/unictype/ctype_blank.h: Likewise.
22491         * lib/unictype/ctype_cntrl.h: Likewise.
22492         * lib/unictype/ctype_digit.h: Likewise.
22493         * lib/unictype/ctype_space.h: Likewise.
22494         * lib/unictype/ctype_xdigit.h: Likewise.
22495         * lib/unictype/mirror.h: Likewise.
22496         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22497         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22498         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22499         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22500         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22501         * lib/unictype/pr_bidi_control.h: Likewise.
22502         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22503         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22504         * lib/unictype/pr_bidi_pdf.h: Likewise.
22505         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22506         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22507         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22508         * lib/unictype/pr_format_control.h: Likewise.
22509         * lib/unictype/pr_hex_digit.h: Likewise.
22510         * lib/unictype/pr_hyphen.h: Likewise.
22511         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22512         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22513         * lib/unictype/pr_iso_control.h: Likewise.
22514         * lib/unictype/pr_join_control.h: Likewise.
22515         * lib/unictype/pr_left_of_pair.h: Likewise.
22516         * lib/unictype/pr_line_separator.h: Likewise.
22517         * lib/unictype/pr_math.h: Likewise.
22518         * lib/unictype/pr_non_break.h: Likewise.
22519         * lib/unictype/pr_not_a_character.h: Likewise.
22520         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22521         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22522         * lib/unictype/pr_other_id_continue.h: Likewise.
22523         * lib/unictype/pr_other_id_start.h: Likewise.
22524         * lib/unictype/pr_other_lowercase.h: Likewise.
22525         * lib/unictype/pr_other_math.h: Likewise.
22526         * lib/unictype/pr_other_uppercase.h: Likewise.
22527         * lib/unictype/pr_paired_punctuation.h: Likewise.
22528         * lib/unictype/pr_paragraph_separator.h: Likewise.
22529         * lib/unictype/pr_pattern_syntax.h: Likewise.
22530         * lib/unictype/pr_pattern_white_space.h: Likewise.
22531         * lib/unictype/pr_private_use.h: Likewise.
22532         * lib/unictype/pr_quotation_mark.h: Likewise.
22533         * lib/unictype/pr_radical.h: Likewise.
22534         * lib/unictype/pr_soft_dotted.h: Likewise.
22535         * lib/unictype/pr_space.h: Likewise.
22536         * lib/unictype/pr_titlecase.h: Likewise.
22537         * lib/unictype/pr_variation_selector.h: Likewise.
22538         * lib/unictype/pr_white_space.h: Likewise.
22539         * lib/unictype/sy_c_ident.h: Likewise.
22540         * lib/unictype/sy_c_whitespace.h: Likewise.
22541         * lib/unictype/sy_java_whitespace.h: Likewise.
22542         * modules/uni*/*: Bump version number of expected libunistring version.
22543         Reported by Simon Josefsson.
22544
22545 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22546
22547         useless-if-before-free: fix typo in --help and make the internal,
22548         automatic version date update process work once again.
22549         --help output contained a NUL character instead of the
22550         backslash-zero that was intended.  Also, the "must lie within
22551         the first 8 lines" line is on line 9, and hence not getting
22552         automatically updated.
22553         * build-aux/useless-if-before-free: Fix the former by adding a
22554         backslash, and the latter by condensing the three lines of what-it-does
22555         to a single line, leaving one line of slack for the future.
22556
22557 2011-01-09  Bruno Haible  <bruno@clisp.org>
22558
22559         uniwidth/width: Fix width of U+1D173..U+1D17A.
22560         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22561         symbolic_width, output_width_property_test): New functions.
22562         (main): Invoke output_nonspacing_property, output_width_property_test.
22563         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22564         U+1D173..U+1D17A.
22565         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22566         1.
22567         * modules/uniwidth/*: Bump version number of expected libunistring
22568         version.
22569         * modules/unilbrk/*: Likewise.
22570
22571 2011-01-08  Bruno Haible  <bruno@clisp.org>
22572
22573         uninorm tests: Preserve copyright of Unicode data file.
22574         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22575         Mention modifications.
22576
22577 2011-01-08  Bruno Haible  <bruno@clisp.org>
22578
22579         gen-uni-tables: Prepare for Unicode 5.2.0.
22580         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22581         (debug_output_lbp, output_lbp): Update.
22582
22583 2011-01-08  Bruno Haible  <bruno@clisp.org>
22584
22585         unilbrk: Clarify gen-uni-tables.c code.
22586         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22587         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22588         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22589
22590 2011-01-07  Bruno Haible  <bruno@clisp.org>
22591
22592         strtod: Restore errno when successfully parsing Infinity or NaN.
22593         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22594         restore the original errno.
22595
22596 2011-01-07  Bruno Haible  <bruno@clisp.org>
22597
22598         remove test: Avoid failure on HP-UX 11.
22599         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22600
22601 2011-01-07  Bruno Haible  <bruno@clisp.org>
22602
22603         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22604         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22605         error code.
22606
22607 2011-01-07  Pádraig Brady <P@draigBrady.com>
22608
22609         ignore-value: fixup comments, and add Eric Blake
22610         as an author since he rewrote the macros.
22611         * lib/ignore-value.h (ignore_value):  State that
22612         we now support aggregates.  Also specify exactly
22613         when the GCC warn_unused_result feature was added.
22614
22615 2011-01-06  Eric Blake  <eblake@redhat.com>
22616
22617         ignore-value: support aggregate types
22618         * lib/ignore-value.h (ignore_value): Provide separate gcc
22619         definition.
22620         * modules/ignore-value-tests: New test module.
22621         * tests/test-ignore-value.c: New test.
22622
22623         maint.mk: improve sc_prohibit_strcmp regex
22624         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22625         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22626         definition of STRNEQ.
22627
22628         signal: work around Haiku issue with SIGBUS
22629         * lib/siglist.h: Add comment.
22630         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22631         strsignal's favoring of SIGSEGV.
22632         * tests/test-signal.c (main): Avoid test failure.
22633         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22634         Reported by Scott McCreary.
22635
22636         maint.mk: add pre-release check to ensure submodule commits are public
22637         * top/maint.mk (public-submodule-commit): New rule.
22638         (submodule-checks): New variable.
22639         (alpha beta stable): Depend on the variable.
22640
22641 2011-01-05  Pádraig Brady <P@draigBrady.com>
22642         and Jim Meyering  <meyering@redhat.com>
22643
22644         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22645         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22646         (ATTRIBUTE_DEPRECATED): Define.
22647         (_ignore_case): New function.
22648         (ignore_value): New macro, to replace the old function.
22649         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22650         * modules/ignore-value (Depends-on): Add stdint.
22651
22652 2011-01-04  Eric Blake  <eblake@redhat.com>
22653
22654         doc: regenerate INSTALL
22655         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22656         @firstparagraphindent support, now that autoconf dropped it.
22657         (INSTALL_PRELUDE): Reinstate old macro.
22658         * doc/install.texi: Resync from autoconf.
22659         * doc/INSTALL: Reflect recent autoconf update.
22660         * doc/INSTALL.ISO: Likewise.
22661         * doc/INSTALL.UTF-8: Likewise.
22662         Reported by Karl Berry.
22663
22664 2011-01-04  Bruce Korb  <address@hidden>
22665
22666         git-version-gen: avoid a sub-shell
22667         * build-aux/git-version-gen: Redirect stderr in `...` via
22668         "exec 2>...", rather than via an added sub-shell.
22669
22670 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22671
22672         git-version-gen: use (...) rather than sh -c '...'
22673         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22674         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22675
22676 2011-01-03  Jim Meyering  <meyering@redhat.com>
22677
22678         git-version-gen: convert leading TABs to spaces
22679         * build-aux/git-version-gen: Expand leading TABs.
22680
22681         git-version-gen: handle failed "git rev-list"
22682         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22683         from git and proceeding as if it had succeeded but printed no SHA1
22684         checksums, suppress the diagnostic and handle the failure.
22685         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22686
22687         git-version-gen: include command name in one more diagnostic
22688         * build-aux/git-version-gen: When the required .tarball-version file
22689         was missing or unreadable, you might see the diagnostic from "cat",
22690         but no trace of the name of the invoking script.  Now, you still see
22691         the diagnostic from cat, but also get one from "git-version-gen: ".
22692         Inspired by a patch from Bruce Korb.
22693
22694         update-copyright: adjust test to match changed code
22695         * tests/test-update-copyright.sh: Change test's expected output
22696         to match new actual output.
22697
22698 2011-01-02  Bruno Haible  <bruno@clisp.org>
22699
22700         getlogin_r: Avoid test failure on HP-UX 11.
22701         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22702         ERANGE when the second argument is zero.
22703         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22704         portability problem.
22705
22706 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22707
22708         * build-aux/update-copyright: doc Simon's changes
22709
22710 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22711
22712         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22713         environment variable.
22714
22715 2011-01-02  Bruno Haible  <bruno@clisp.org>
22716
22717         unigbrk: Avoid gcc warnings.
22718         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22719         unused variable.
22720         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22721         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22722         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22723         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22724         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22725         Change type of first argument to 'const char *'.
22726         (main): Remove unused variable.
22727         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22728         type of first argument to 'const char *'.
22729         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22730         Likewise.
22731         (main): Change type of variable 's'.
22732         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22733         to 'int'.
22734
22735 2011-01-02  Bruno Haible  <bruno@clisp.org>
22736
22737         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22738         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22739         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22740         bug.
22741         * lib/pwrite.c: Undo 2010-12-31 patch.
22742         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22743
22744 2011-01-02  Bruno Haible  <bruno@clisp.org>
22745
22746         pread: Fix test whether it works.
22747         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22748
22749 2011-01-02  Bruno Haible  <bruno@clisp.org>
22750
22751         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22752         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22753         ends in "6". Don't require a specific month name. Try also the locale
22754         names found on HP-UX 11 and Solaris 7.
22755
22756 2011-01-02  Bruno Haible  <bruno@clisp.org>
22757
22758         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22759         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22760         C linkage.
22761         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22762
22763 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22764
22765         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22766         for consistency, since the "cluster" term is not used elsewhere.
22767         * lib/unigbrk.in.h: Update name.
22768         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22769         * lib/unigbrk/u16-grapheme-next.c: Update name.
22770         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22771         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22772         * lib/unigbrk/u32-grapheme-next.c: Update name.
22773         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22774         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22775         * lib/unigbrk/u8-grapheme-next.c: Update name.
22776         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22777         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22778         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22779         Suggested by Bruno Haible.
22780
22781 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22782
22783         Remove module 'u8-grapheme-len' as too redundant with
22784         'u8-grapheme-next'.
22785         * modules/unigbrk/u8-grapheme-len: Delete file.
22786         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22787         * lib/unigbrk.in.h: Remove prototype for deleted function.
22788         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22789         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22790
22791         Remove module 'u16-grapheme-len' as too redundant with
22792         'u16-grapheme-next'.
22793         * modules/unigbrk/u16-grapheme-len: Delete file.
22794         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22795         * lib/unigbrk.in.h: Remove prototype for deleted function.
22796         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22797         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22798
22799         Remove module 'u32-grapheme-len' as too redundant with
22800         'u32-grapheme-next'.
22801         * modules/unigbrk/u32-grapheme-len: Delete file.
22802         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22803         * lib/unigbrk.in.h: Remove prototype for deleted function.
22804         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22805         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22806
22807         Suggested by Bruno Haible.
22808
22809 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22810
22811         * unigbrk.in.h: Fix typo: "ben" => "been".
22812         Reported by Bruno Haible.
22813
22814 2011-01-01  Jim Meyering  <meyering@redhat.com>
22815
22816         maint: update almost all copyright ranges to include 2011
22817         Run the new "make update-copyright" rule.
22818
22819 2011-01-01  Jim Meyering  <meyering@redhat.com>
22820
22821         maint: update-copyright: exempt doc/INSTALL*
22822         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22823         since they are generated.  Suggested by Bruno Haible.
22824
22825 2011-01-01  Jim Meyering  <meyering@redhat.com>
22826
22827         maint: refine the update-copyright rule
22828         * Makefile (update-copyright): Also exclude any file that includes
22829         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22830         code that merely generates the comment.
22831
22832 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22833
22834         New module 'u8-grapheme-len'.
22835         * modules/unigbrk/u8-grapheme-len: New file.
22836         * modules/unigbrk/u8-grapheme-len-tests: New file.
22837         * lib/unigbrk.in.h: Add prototype for new function.
22838         * lib/unigbrk/u8-grapheme-len.c: New file.
22839         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22840
22841         New module 'u16-grapheme-len'.
22842         * modules/unigbrk/u16-grapheme-len: New file.
22843         * modules/unigbrk/u16-grapheme-len-tests: New file.
22844         * lib/unigbrk.in.h: Add prototype for new function.
22845         * lib/unigbrk/u16-grapheme-len.c: New file.
22846         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22847
22848         New module 'u32-grapheme-len'.
22849         * modules/unigbrk/u32-grapheme-len: New file.
22850         * modules/unigbrk/u32-grapheme-len-tests: New file.
22851         * lib/unigbrk.in.h: Add prototype for new function.
22852         * lib/unigbrk/u32-grapheme-len.c: New file.
22853         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22854
22855         New module 'u8-grapheme-next'.
22856         * modules/unigbrk/u8-grapheme-next: New file.
22857         * modules/unigbrk/u8-grapheme-next-tests: New file.
22858         * lib/unigbrk.in.h: Add prototype for new function.
22859         * lib/unigbrk/u8-grapheme-next.c: New file.
22860         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22861
22862         New module 'u16-grapheme-next'.
22863         * modules/unigbrk/u16-grapheme-next: New file.
22864         * modules/unigbrk/u16-grapheme-next-tests: New file.
22865         * lib/unigbrk.in.h: Add prototype for new function.
22866         * lib/unigbrk/u16-grapheme-next.c: New file.
22867         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22868
22869         New module 'u32-grapheme-next'.
22870         * modules/unigbrk/u32-grapheme-next: New file.
22871         * modules/unigbrk/u32-grapheme-next-tests: New file.
22872         * lib/unigbrk.in.h: Add prototype for new function.
22873         * lib/unigbrk/u32-grapheme-next.c: New file.
22874         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22875
22876         New module 'u8-grapheme-prev'.
22877         * modules/unigbrk/u8-grapheme-prev: New file.
22878         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22879         * lib/unigbrk.in.h: Add prototype for new function.
22880         * lib/unigbrk/u8-grapheme-prev.c: New file.
22881         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22882
22883         New module 'u16-grapheme-prev'.
22884         * modules/unigbrk/u16-grapheme-prev: New file.
22885         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22886         * lib/unigbrk.in.h: Add prototype for new function.
22887         * lib/unigbrk/u16-grapheme-prev.c: New file.
22888         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22889
22890         New module 'u32-grapheme-prev'.
22891         * modules/unigbrk/u32-grapheme-prev: New file.
22892         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22893         * lib/unigbrk.in.h: Add prototype for new function.
22894         * lib/unigbrk/u32-grapheme-prev.c: New file.
22895         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22896
22897         New module 'u8-grapheme-breaks'.
22898         * modules/unigbrk/u8-grapheme-breaks: New file.
22899         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22900         * lib/unigbrk.in.h: Add prototype for new function.
22901         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22902         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22903
22904         New module 'u16-grapheme-breaks'.
22905         * modules/unigbrk/u16-grapheme-breaks: New file.
22906         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22907         * lib/unigbrk.in.h: Add prototype for new function.
22908         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22909         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22910
22911         New module 'u32-grapheme-breaks'.
22912         * modules/unigbrk/u32-grapheme-breaks: New file.
22913         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22914         * lib/unigbrk.in.h: Add prototype for new function.
22915         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22916         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22917
22918         New module 'ulc-grapheme-breaks'.
22919         * modules/unigbrk/ulc-grapheme-breaks: New file.
22920         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22921         * m4/locale-ar.m4: New file.
22922         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22923         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22924         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22925
22926 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22927
22928         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22929         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22930         modified how this file was generated before I initially submitted
22931         the module, but failed to regenerate it.  This meant that several
22932         of the level2 entries were wrong.
22933         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22934         Remove the division-by-2 that is folded into the table now that
22935         gbrkprop.h has been regenerated properly.  Now -1 entries are
22936         handled correctly.
22937
22938         New module 'unigbrk/uc-gbrk-prop-tests'.
22939         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22940         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22941         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22942         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22943
22944 2011-01-01  Bruno Haible  <bruno@clisp.org>
22945
22946         Avoid use of hexadecimal escapes.
22947         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22948         instead of hexadecimal escapes.
22949
22950 2011-01-01  Jim Meyering  <meyering@redhat.com>
22951
22952         maint: new rule to update copyright year ranges
22953         * Makefile (update-copyright): New rule.
22954
22955         maint: indent with TABs in Makefile
22956         * Makefile: Expand leading sequences of spaces to TABs
22957
22958         version-etc: update the copyright year it reports
22959         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22960
22961 2010-12-31  Bruno Haible  <bruno@clisp.org>
22962
22963         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22964         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22965         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22966         zero.
22967
22968 2010-12-31  Bruno Haible  <bruno@clisp.org>
22969
22970         pwrite: Work around HP-UX 11.11 bug.
22971         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22972         works and set REPLACE_PWRITE if not.
22973         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22974         function.
22975         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22976
22977 2010-12-31  Bruno Haible  <bruno@clisp.org>
22978
22979         pread: Work around HP-UX 11 bugs.
22980         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22981         and set REPLACE_PREAD if not.
22982         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22983
22984 2010-12-31  Eric Blake  <eblake@redhat.com>
22985
22986         nl_langinfo: fix YESEXPR on Irix 6.5
22987         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22988         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22989         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22990         it.
22991
22992 2010-12-31  Bruno Haible  <bruno@clisp.org>
22993
22994         iconv: Document HP-UX 11 bug.
22995         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22996
22997 2010-12-31  Bruno Haible  <bruno@clisp.org>
22998
22999         ldexpl: Fix link error on HP-UX 11.
23000         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
23001         LDEXPL_LIBM, using $ISNANL_LIBM.
23002
23003 2010-12-31  Eric Blake  <eblake@redhat.com>
23004
23005         ftello: avoid compilation failure with SunStudio c89
23006         * lib/ftello.c (ftello): Use lseek, not llseek.
23007
23008         tests: avoid failing coreutils tests on cygwin
23009         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
23010         (create_exe_shims_): Return 0 when skipping.
23011
23012 2010-12-31  Bruno Haible  <bruno@clisp.org>
23013
23014         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
23015         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
23016
23017 2010-12-31  Bruno Haible  <bruno@clisp.org>
23018
23019         waitpid: Fix link error in C++ mode.
23020         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
23021
23022 2010-12-31  Bruno Haible  <bruno@clisp.org>
23023
23024         isnan: Use GCC built-ins when possible.
23025         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
23026         __builtin_isnan.
23027         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
23028         (isnan): Define using GCC built-ins for GCC >= 4.0.
23029
23030 2010-12-31  Bruno Haible  <bruno@clisp.org>
23031
23032         isnand: Fix mistake.
23033         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
23034         __builtin_isnand.
23035
23036 2010-12-31  Bruno Haible  <bruno@clisp.org>
23037
23038         open: Avoid C++ error on HP-UX 11.
23039         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
23040
23041 2010-12-31  Bruno Haible  <bruno@clisp.org>
23042
23043         time_r: Add missing declarations on HP-UX 11.
23044         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
23045         instead of HAVE_LOCALTIME_R.
23046         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
23047         HAVE_LOCALTIME_R always.
23048         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
23049         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
23050         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
23051         HAVE_LOCALTIME_R.
23052         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
23053         * doc/posix-functions/localtime_r.texi: Likewise.
23054
23055 2010-12-29  Eric Blake  <eblake@redhat.com>
23056
23057         mountlist: tweak previous commit
23058         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
23059         Reported by Paul Eggert.
23060
23061         mountlist: fix local drive detection on cygwin
23062         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
23063         that works for cygwin.
23064
23065 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
23066
23067         ftoastr, snprintf: ftoastr + snprintf module
23068         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
23069         since the snprintf module now should be good enough here.
23070         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
23071         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
23072         and gl_MODULE_INDICATOR([snprintf]), but the former enables
23073         GNULIB_SNPRINTF only for the test directory, and the latter
23074         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
23075         seems to suffice by itself.
23076
23077 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
23078
23079         alloca: one step towards thread-safety
23080         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
23081         need for a static variable.  All callers changed.  This does not
23082         make the alloca replacement thread-safe, but it's one step.
23083
23084         tests: minor indenting change
23085         * tests/init.sh: Sync from coreutils housekeeping patch
23086         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
23087         to keep lines within 80 columns.
23088
23089 2010-12-28  Jim Meyering  <meyering@redhat.com>
23090
23091         regex: don't infloop on persistent failing calloc
23092         * lib/regexec.c (build_trtable): Return failure indication upon
23093         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
23094         In glibc, this was fixed for version 2.13:
23095         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
23096
23097 2010-12-28  Bruno Haible  <bruno@clisp.org>
23098             Paul Eggert <eggert@cs.ucla.edu>
23099
23100         linkat: Make implementation robust against system behaviour variations.
23101         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
23102         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
23103         way, and to -2 if it needs a generic runtime test.
23104         * lib/linkat.c (solaris_optimized_link_immediate,
23105         solaris_optimized_link_follow): New functions.
23106         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
23107         (check_same_link): Use it.
23108
23109 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
23110
23111         New module 'unigbrk/base'.
23112         * modules/unigbrk/base: New file.
23113         * lib/unigbrk.in.h: New file.
23114
23115         New module 'unigbrk/uc-gbrk-prop'.
23116         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
23117         * modules/unigbrk/uc-gbrk-prop: New file.
23118         * lib/unigbrk/gbrkprop.h: New file.
23119         * lib/unigbrk/uc-gbrk-prop.c: New file.
23120
23121         New module 'unigbrk/uc-is-grapheme-break'.
23122         * modules/unigbrk/uc-is-grapheme-break: New file.
23123         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
23124         * lib/unigbrk/uc-is-grapheme-break.c: New file.
23125         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
23126         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
23127         * tests/unigbrk/GraphemeBreakTest.txt: New file.
23128
23129         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
23130
23131 2010-12-27  Bruno Haible  <bruno@clisp.org>
23132
23133         linkat test: Avoid failure on Solaris 11 2010-11.
23134         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
23135
23136 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23137
23138         utimens: work around glibc rounding bug on more platforms
23139         * lib/utimens.c (fdutimens): Work around rounding bug even if
23140         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
23141         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
23142
23143 2010-12-27  Bruno Haible  <bruno@clisp.org>
23144
23145         select tests: Improve comments.
23146         * tests/test-select.c (do_select): Add comments.
23147
23148 2010-12-27  Bruno Haible  <bruno@clisp.org>
23149
23150         select tests: Safer way of handling timeout.
23151         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
23152         at every invocation.
23153
23154 2010-12-27  Bruno Haible  <bruno@clisp.org>
23155
23156         select tests: Use 'bool' where appropriate.
23157         * tests/test-select.c (connect_to_socket): Change argument type to
23158         'bool'.
23159
23160 2010-12-27  Bruno Haible  <bruno@clisp.org>
23161
23162         select tests: Use existing modules.
23163         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
23164         (configure.ac): Don't test for unistd.h.
23165         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
23166         declared in <unistd.h>.
23167
23168 2010-12-27  Bruno Haible  <bruno@clisp.org>
23169
23170         mbrtowc: Work around a Solaris 7 bug.
23171         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
23172         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
23173         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
23174         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
23175         MBRTOWC_NULL_ARG1_BUG.
23176         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
23177         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
23178         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
23179         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
23180
23181 2010-12-27  Jim Meyering  <meyering@redhat.com>
23182
23183         read-file.c: tweak syntax
23184         * lib/read-file.c (fread_file): Remove space after "*" in function
23185         definitions.
23186
23187 2010-12-27  Bruno Haible  <bruno@clisp.org>
23188
23189         times test: Avoid gcc warnings on OSF/1.
23190         * tests/test-times.c (main): Cast printf arguments from clock_t to
23191         'long int'.
23192
23193 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
23194
23195         utimens: work around glibc rounding bug on older Linux kernels
23196         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
23197         on Linux with a glibc whose utimes might not work, then work
23198         around a longstanding glibc bug involving rounding rather than
23199         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
23200         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23201
23202 2010-12-26  Bruno Haible  <bruno@clisp.org>
23203
23204         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
23205         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
23206         _GL_CXXALIAS_SYS.
23207         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23208
23209 2010-12-26  Bruno Haible  <bruno@clisp.org>
23210
23211         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
23212         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
23213         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23214         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
23215         looking for the declaration.
23216         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
23217         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
23218         problem.
23219         * doc/posix-functions/inet_pton.texi: Likewise.
23220
23221 2010-12-26  Bruno Haible  <bruno@clisp.org>
23222
23223         arpa_inet: Use the common idioms with C++ support.
23224         * lib/arpa_inet.in.h: Include c++defs.h.
23225         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
23226         support.
23227         * modules/arpa_inet (Depends-on): Add c++defs.
23228         (Makefile.am): Substitute the contents of c++defs.h.
23229         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
23230         * modules/arpa_inet-c++-tests: New file.
23231         * tests/test-arpa_inet-c++.cc: New file.
23232
23233 2010-12-25  Bruno Haible  <bruno@clisp.org>
23234
23235         Fix more C++ link errors on Solaris 8.
23236         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
23237         $(LIB_EACCESS).
23238         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
23239         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
23240         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
23241         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
23242         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
23243
23244 2010-12-25  Bruno Haible  <bruno@clisp.org>
23245
23246         printf-posix: Fix link error when a non-GCC compiler is used.
23247         * lib/stdio.in.h (printf): When not using GCC, override printf
23248         correctly.
23249         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23250
23251 2010-12-25  Bruno Haible  <bruno@clisp.org>
23252
23253         strerror_r-posix: Update doc.
23254         * doc/posix-functions/strerror_r.texi: Update doc about the return
23255         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
23256
23257 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
23258
23259         utimens: simplify the logic of the previous change
23260         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
23261         This should not affect whether the test succeeds or fails.
23262
23263         utimens: configure better on hosts with NFS clock skew
23264         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
23265         uses the clock of the local host.  It might use the clock of the
23266         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
23267         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
23268
23269 2010-12-25  Bruno Haible  <bruno@clisp.org>
23270
23271         ptsname test: Avoid failure on Solaris.
23272         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
23273         open a pseudo-terminal; don't use BSD-style ptys.
23274         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
23275
23276 2010-12-25  Bruno Haible  <bruno@clisp.org>
23277
23278         ptsname: Avoid ERANGE failure on some systems.
23279         * lib/ptsname.c (buffer): Increase size.
23280
23281 2010-12-25  Bruno Haible  <bruno@clisp.org>
23282
23283         rename, renameat: Avoid test failures at NFS mounted locations.
23284         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
23285         so that subsequent mkdir calls succeed.
23286
23287 2010-12-25  Bruno Haible  <bruno@clisp.org>
23288
23289         iswblank: Fix C++ link error on Solaris 8.
23290         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
23291         _GL_FUNCDECL_SYS.
23292
23293 2010-12-25  Bruno Haible  <bruno@clisp.org>
23294
23295         unistd: Fix C++ link error on Solaris 8.
23296         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
23297
23298 2010-12-25  Bruno Haible  <bruno@clisp.org>
23299
23300         readlink doc: Mention an old glibc bug.
23301         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
23302
23303 2010-12-25  Bruno Haible  <bruno@clisp.org>
23304
23305         fcntl-h: Fix for use of C++ on glibc systems.
23306         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23307         also on glibc systems in C++ mode.
23308         Reported by Gary V. Vaughan <gary@gnu.org>.
23309
23310 2010-12-25  Bruno Haible  <bruno@clisp.org>
23311
23312         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23313         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23314
23315 2010-12-25  Bruno Haible  <bruno@clisp.org>
23316
23317         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23318         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23319         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23320         test whether truncl works according to ISO C 99 with IEC 60559.
23321         * m4/truncl-ieee.m4: New file.
23322         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23323         m4/signbit.m4.
23324         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23325
23326 2010-12-25  Bruno Haible  <bruno@clisp.org>
23327
23328         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23329         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23330         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23331         test whether ceill works according to ISO C 99 with IEC 60559.
23332         * m4/ceill-ieee.m4: New file.
23333         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23334         m4/signbit.m4.
23335         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23336
23337 2010-12-25  Bruno Haible  <bruno@clisp.org>
23338
23339         Ensure all prerequisites of <wchar.h> are included.
23340         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23341         before <wchar.h>.
23342         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23343         gl_MBRLEN_NUL_RETVAL): Likewise.
23344         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23345         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23346         AC_FUNC_MBRTOWC): Likewise.
23347         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23348         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23349         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23350         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23351         Likewise.
23352         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23353         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23354         (gl_WCHAR_H): Improve comments.
23355         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23356
23357 2010-12-25  Bruno Haible  <bruno@clisp.org>
23358
23359         strtok_r: Fix C syntax error in autoconf macro.
23360         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23361         characters in test program.
23362
23363 2010-12-24  Bruno Haible  <bruno@clisp.org>
23364
23365         ceil, trunc, round: Fix gcc warnings.
23366         * lib/ceil.c (MIN): Undefine before redefining.
23367         * lib/trunc.c (MIN): Likewise.
23368         * lib/round.c (MIN): Likewise.
23369         Include <math.h> first.
23370
23371 2010-12-24  Bruno Haible  <bruno@clisp.org>
23372
23373         select tests: Avoid failures on OSF/1 5.1.
23374         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23375         failure of closing the last socket; it may fail with ECONNRESET.
23376
23377 2010-12-24  Eric Blake  <eblake@redhat.com>
23378
23379         stdint: avoid HP-UX 10.20 preprocessor bug
23380         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23381         than #if.
23382         * tests/test-floor2.c (main): Likewise.
23383         Reported by Peter O'Gorman.
23384
23385         pipe: make obsoletion transition easier
23386         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23387         * modules/pipe (Files): Include revived file.
23388         (Include): Drop reference, to mirror getdate's behavior.
23389
23390 2010-12-24  Bruno Haible  <bruno@clisp.org>
23391
23392         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23393         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23394         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23395         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23396
23397 2010-12-24  Bruno Haible  <bruno@clisp.org>
23398
23399         gethostname: Ensure declaration on NonStop Kernel.
23400         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23401         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23402
23403 2010-12-24  Bruno Haible  <bruno@clisp.org>
23404
23405         sys_select: Ensure all necessary types on NonStop Kernel.
23406         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23407         include <sys/time.h>.
23408         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23409         NonStop Kernel.
23410         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23411
23412 2010-12-24  Bruno Haible  <bruno@clisp.org>
23413
23414         sys_select: Remove unneeded include.
23415         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23416         have <sys/select.h>.
23417
23418 2010-12-24  Bruno Haible  <bruno@clisp.org>
23419
23420         gethostname: Provide a fallback for HOST_NAME_MAX.
23421         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23422         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23423         instead.
23424         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23425
23426 2010-12-24  Bruno Haible  <bruno@clisp.org>
23427
23428         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23429         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23430         (SA_RESTART): Likewise.
23431         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23432
23433 2010-12-24  Bruno Haible  <bruno@clisp.org>
23434
23435         signal: Define NSIG.
23436         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23437         * tests/test-signal.c (nsig): New variable.
23438         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23439
23440 2010-12-24  Bruno Haible  <bruno@clisp.org>
23441
23442         rename, renameat: Avoid test failures on OSF/1 5.1.
23443         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23444         alternative error codes.
23445         * tests/test-renameat.c (main): Likewise.
23446
23447 2010-12-24  Bruno Haible  <bruno@clisp.org>
23448
23449         *printf: Detect large precisions bug on Solaris 10/SPARC.
23450         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23451         by Paul Eggert.
23452         * tests/test-snprintf-posix.h (test_function): Add this test code here
23453         too.
23454         * tests/test-sprintf-posix.h (test_function): Likewise.
23455         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23456         * tests/test-vasprintf-posix.c (test_function): Likewise.
23457         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23458         around by gnulib.
23459         * doc/posix-functions/printf.texi: Likewise.
23460         * doc/posix-functions/snprintf.texi: Likewise.
23461         * doc/posix-functions/sprintf.texi: Likewise.
23462         * doc/posix-functions/vfprintf.texi: Likewise.
23463         * doc/posix-functions/vprintf.texi: Likewise.
23464         * doc/posix-functions/vsnprintf.texi: Likewise.
23465         * doc/posix-functions/vsprintf.texi: Likewise.
23466         * doc/posix-functions/dprintf.texi: Undo last commit.
23467         * doc/posix-functions/vdprintf.texi: Likewise.
23468
23469 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23470
23471         tests: port test-fdutimensat.c to Solaris 8
23472         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23473         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23474         On Solaris 8, it fails with errno == ENOSYS, because there is no
23475         futimens (so it can't use the fd), and there is no lutimens (so it
23476         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23477
23478         vsnprintf: make more consistent with snprintf; doc fixes
23479
23480         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23481         the byte count return problem was promoted from the snprintf-posix
23482         to the snprintf module.
23483         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23484         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23485         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23486         * tests/test-snprintf.c (main): Check the byte count returned.
23487         * tests/test-vsnprintf.c (main): Likewise.
23488
23489 2010-12-23  Eric Blake  <eblake@redhat.com>
23490
23491         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23492         * modules/sigpipe (License): Relax license.
23493
23494 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23495
23496         doc: document Solaris printf bug with large float precisions
23497         * doc/posix-functions/dprintf.texi (dprintf):
23498         * doc/posix-functions/fprintf.texi (fprintf):
23499         * doc/posix-functions/printf.texi (printf):
23500         * doc/posix-functions/snprintf.texi (snprintf):
23501         * doc/posix-functions/sprintf.texi (sprintf):
23502         * doc/posix-functions/vdprintf.texi (vdprintf):
23503         * doc/posix-functions/vfprintf.texi (vfprintf):
23504         * doc/posix-functions/vprintf.texi (vprintf):
23505         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23506         * doc/posix-functions/vsprintf.texi (vsprintf):
23507         Mention that these functions mishandle large floating point
23508         precisions on Solaris 10.  The same bug is also present in Solaris
23509         8, and I assume earlier.  This causes "cd gnulib-tests; make
23510         check" to fail on Solaris 8 (and I assume, later) when building
23511         the latest coreutils, in test-vasprintf-posix's call to
23512         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23513         the wide flavors (e.g., wprintf) so this patch just updates the
23514         documentation for the narrow ones.
23515
23516         test-posixtm.c: add two tests
23517         * tests/test-posixtm.c: Add two tests, to highlight the
23518         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23519         around this bug; this is merely to document it.
23520
23521 2010-12-22  Bruno Haible  <bruno@clisp.org>
23522
23523         getlogin_r: Work around portability problem on OSF/1.
23524         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23525         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23526         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23527         test for a truncated result.
23528         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23529         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23530         * modules/getlogin_r (Depends-on): Add memchr.
23531         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23532
23533 2010-12-22  Bruno Haible  <bruno@clisp.org>
23534
23535         ptsname: Avoid test failure on OSF/1 5.1.
23536         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23537         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23538         (same_slave): New function.
23539         (main): Use it to compare ptsname's result with the expected file name.
23540
23541 2010-12-22  Bruno Haible  <bruno@clisp.org>
23542
23543         Port extended stdio modules to HP NonStop Kernel.
23544         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23545         macros.
23546         * lib/fbufmode.c: Update comments.
23547         * lib/fflush.c: Likewise.
23548         * lib/fpurge.c: Likewise.
23549         * lib/freadable.c: Likewise.
23550         * lib/freadahead.c: Likewise.
23551         * lib/freading.c: Likewise.
23552         * lib/freadptr.c: Likewise.
23553         * lib/freadseek.c: Likewise.
23554         * lib/fseeko.c: Likewise.
23555         * lib/fseterr.c: Likewise.
23556         * lib/fwritable.c: Likewise.
23557         * lib/fwriting.c: Likewise.
23558         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23559
23560 2010-12-22  Bruno Haible  <bruno@clisp.org>
23561
23562         ttyname_r: Work around bug on OSF/1 5.1.
23563         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23564         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23565         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23566         present.
23567         * lib/ttyname_r.c (ttyname_r): Update comments.
23568
23569 2010-12-22  Bruno Haible  <bruno@clisp.org>
23570
23571         round: Implement result sign according to IEEE 754.
23572         * lib/round.c (MIN, MINUS_ZERO): New macros.
23573         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23574         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23575         * tests/test-round-ieee.c (main): Likewise.
23576         * tests/test-roundl-ieee.c (main): Likewise.
23577
23578         trunc: Implement result sign according to IEEE 754.
23579         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23580         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23581         * tests/test-trunc2.c: Include minus-zero.h.
23582         (MINUS_ZERO): New macro.
23583         (trunc_reference): Keep in sync with lib/trunc.c.
23584         * tests/test-truncf2.c: Include minus-zero.h.
23585         (MINUS_ZERO): New macro.
23586         (truncf_reference): Keep in sync with lib/trunc.c.
23587         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23588         * tests/test-trunc-ieee.c (main): Likewise.
23589         * tests/test-truncl-ieee.c (main): Likewise.
23590
23591         ceil: Implement result sign according to IEEE 754.
23592         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23593         (FUNC): Return -0.0 for -1 < x < 0.
23594         * tests/test-ceil2.c: Include minus-zero.h.
23595         (MINUS_ZERO): New macro.
23596         (ceil_reference): Keep in sync with lib/ceil.c.
23597         * tests/test-ceilf2.c: Include minus-zero.h.
23598         (MINUS_ZERO): New macro.
23599         (ceilf_reference): Keep in sync with lib/ceil.c.
23600         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23601         * tests/test-ceil-ieee.c (main): Likewise.
23602         * tests/test-ceill-ieee.c (main): Likewise.
23603
23604         floor: Implement result sign according to IEEE 754.
23605         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23606         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23607         * tests/test-floorf2.c (floorf_reference): Likewise.
23608         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23609         * tests/test-floor-ieee.c (main): Likewise.
23610         * tests/test-floorl-ieee.c (main): Likewise.
23611
23612 2010-12-22  Bruno Haible  <bruno@clisp.org>
23613
23614         getaddrinfo: Update doc.
23615         * doc/posix-functions/gai_strerror.texi: Return type is also different
23616         on AIX and HP-UX.
23617
23618 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23619
23620         getaddrinfo, inet_ntop: Update doc for Solaris.
23621         * doc/posix-functions/gai_strerror.texi: Return type is also an
23622         issue on Solaris 9 and earlier.
23623         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23624         on Solaris 10 and earlier.
23625
23626 2010-12-21  Bruno Haible  <bruno@clisp.org>
23627
23628         New module 'roundl-ieee'.
23629         * modules/roundl-ieee: New file.
23630         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23631         test whether roundl works according to ISO C 99 with IEC 60559.
23632         * m4/roundl-ieee.m4: New file.
23633         * modules/roundl-ieee-tests: New file.
23634         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23635         * tests/test-roundl.c (main): Remove signbit tests.
23636         * modules/roundl-tests (Depends-on): Remove signbit.
23637         * doc/posix-functions/roundl.texi: Mention the new module.
23638
23639 2010-12-21  Bruno Haible  <bruno@clisp.org>
23640
23641         New module 'truncl-ieee'.
23642         * modules/truncl-ieee: New file.
23643         * modules/truncl-ieee-tests: New file.
23644         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23645         * tests/test-truncl.c (main): Remove signbit tests.
23646         * modules/truncl-tests (Depends-on): Remove signbit.
23647         * doc/posix-functions/truncl.texi: Mention the new module.
23648
23649 2010-12-21  Bruno Haible  <bruno@clisp.org>
23650
23651         New module 'ceill-ieee'.
23652         * modules/ceill-ieee: New file.
23653         * modules/ceill-ieee-tests: New file.
23654         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23655         * tests/test-ceill.c (main): Remove signbit tests.
23656         * modules/ceill-tests (Depends-on): Remove signbit.
23657         * doc/posix-functions/ceill.texi: Mention the new module.
23658
23659 2010-12-21  Bruno Haible  <bruno@clisp.org>
23660
23661         New module 'floorl-ieee'.
23662         * modules/floorl-ieee: New file.
23663         * modules/floorl-ieee-tests: New file.
23664         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23665         * tests/test-floorl.c (main): Remove signbit tests.
23666         * modules/floorl-tests (Depends-on): Remove signbit.
23667         * doc/posix-functions/floorl.texi: Mention the new module.
23668
23669 2010-12-21  Bruno Haible  <bruno@clisp.org>
23670
23671         New module 'round-ieee'.
23672         * modules/round-ieee: New file.
23673         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23674         whether round works according to ISO C 99 with IEC 60559.
23675         * m4/round-ieee.m4: New file.
23676         * modules/round-ieee-tests: New file.
23677         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23678         * tests/test-round1.c (main): Remove signbit tests.
23679         * modules/round-tests (Depends-on): Remove 'signbit'.
23680         * doc/posix-functions/round.texi: Mention the new module.
23681
23682 2010-12-21  Bruno Haible  <bruno@clisp.org>
23683
23684         New module 'trunc-ieee'.
23685         * modules/trunc-ieee: New file.
23686         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23687         whether trunc works according to ISO C 99 with IEC 60559.
23688         * m4/trunc-ieee.m4: New file.
23689         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23691         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23692         * modules/trunc-ieee-tests: New file.
23693         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23694         * tests/test-trunc1.c (main): Remove signbit tests.
23695         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23696         * doc/posix-functions/trunc.texi: Mention the new module.
23697
23698 2010-12-21  Bruno Haible  <bruno@clisp.org>
23699
23700         New module 'ceil-ieee'.
23701         * modules/ceil-ieee: New file.
23702         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23703         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23704         ISO C 99 with IEC 60559.
23705         * m4/ceil-ieee.m4: New file.
23706         * modules/ceil (Files): Add lib/ceil.c.
23707         (Depends-on): Add 'float'.
23708         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23709         * lib/math.in.h (ceil): New declaration.
23710         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23711         REPLACE_CEIL.
23712         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23713         * modules/ceil-ieee-tests: New file.
23714         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23715         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23716         * doc/posix-functions/ceil.texi: Mention the new module.
23717
23718 2010-12-21  Bruno Haible  <bruno@clisp.org>
23719
23720         New module 'floor-ieee'.
23721         * modules/floor-ieee: New file.
23722         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23723         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23724         ISO C 99 with IEC 60559.
23725         * m4/floor-ieee.m4: New file.
23726         * modules/floor (Files): Add lib/floor.c.
23727         (Depends-on): Add 'float'.
23728         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23729         * lib/math.in.h (floor): New declaration.
23730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23731         REPLACE_FLOOR.
23732         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23733         * modules/floor-ieee-tests: New file.
23734         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23735         * tests/test-math-c++.cc: Check the signature of 'floor'.
23736         * doc/posix-functions/floor.texi: Mention the new module.
23737
23738 2010-12-21  Bruno Haible  <bruno@clisp.org>
23739
23740         New module 'roundf-ieee'.
23741         * modules/roundf-ieee: New file.
23742         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23743         test whether roundf works according to ISO C 99 with IEC 60559.
23744         * m4/roundf-ieee.m4: New file.
23745         * modules/roundf-ieee-tests: New file.
23746         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23747         * tests/test-roundf1.c (main): Remove signbit tests.
23748         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23749         * doc/posix-functions/roundf.texi: Mention the new module.
23750
23751 2010-12-21  Bruno Haible  <bruno@clisp.org>
23752
23753         New module 'truncf-ieee'.
23754         * modules/truncf-ieee: New file.
23755         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23756         test whether truncf works according to ISO C 99 with IEC 60559.
23757         * m4/truncf-ieee.m4: New file.
23758         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23760         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23761         * modules/truncf-ieee-tests: New file.
23762         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23763         * tests/test-truncf1.c (main): Remove signbit tests.
23764         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23765         * doc/posix-functions/truncf.texi: Mention the new module.
23766
23767 2010-12-21  Bruno Haible  <bruno@clisp.org>
23768
23769         New module 'ceilf-ieee'.
23770         * modules/ceilf-ieee: New file.
23771         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23772         test whether ceilf works according to ISO C 99 with IEC 60559.
23773         * m4/ceilf-ieee.m4: New file.
23774         * modules/ceilf-ieee-tests: New file.
23775         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23776         * tests/test-ceilf1.c (main): Remove signbit tests.
23777         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23778         * doc/posix-functions/ceilf.texi: Mention the new module.
23779
23780 2010-12-21  Bruno Haible  <bruno@clisp.org>
23781
23782         New module 'floorf-ieee'.
23783         * modules/floorf-ieee: New file.
23784         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23785         test whether floorf works according to ISO C 99 with IEC 60559.
23786         * m4/floorf-ieee.m4: New file.
23787         * modules/floorf-ieee-tests: New file.
23788         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23789         * tests/test-floorf1.c (main): Remove signbit tests.
23790         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23791         * doc/posix-functions/floorf.texi: Mention the new module.
23792
23793 2010-12-21  Bruno Haible  <bruno@clisp.org>
23794
23795         Support for minus zero in autoconf macros.
23796         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23797         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23798         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23799         * tests/minus-zero.h: Update comments.
23800
23801 2010-12-21  Bruno Haible  <bruno@clisp.org>
23802
23803         Tests for module 'ceil'.
23804         * modules/ceil-tests: New file.
23805         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23806         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23807
23808 2010-12-21  Bruno Haible  <bruno@clisp.org>
23809
23810         Tests for module 'floor'.
23811         * modules/floor-tests: New file.
23812         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23813         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23814
23815 2010-12-21  Bruno Haible  <bruno@clisp.org>
23816
23817         math: Fix indentation.
23818         * lib/math.in.h (floorf): Fix indentation.
23819
23820 2010-12-21  Bruno Haible  <bruno@clisp.org>
23821
23822         Fix cross-compilation guesses on Solaris.
23823         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23824         not match "solaris2.10".
23825         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23826         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23827         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23828
23829 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23830
23831         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23832         This fixes a problem observed with the latest coreutils snapshot
23833         that caused a test to fail on Solaris 8.  src/csplit.c's call
23834         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23835         earlier, instead of returning the number of bytes that would have
23836         been generated; this causes csplit to incorrectly report memory
23837         exhaustion.
23838         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23839         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23840         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23841         comments to match.
23842         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23843         Fix typo in matching older versions of Solaris: "solaris2.10"
23844         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23845         only for guessing while cross-compiling.
23846         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23847
23848 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23849
23850         ftoastr: fix comment again
23851         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23852         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23853         Also, simplify example a bit by using flags = 0.
23854
23855 2010-12-20  Bruno Haible  <bruno@clisp.org>
23856
23857         round*, trunc*: Update documentation regarding glibc.
23858         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23859         * doc/posix-functions/round.texi: Likewise.
23860         * doc/posix-functions/roundl.texi: Likewise.
23861         * doc/posix-functions/truncf.texi: Likewise.
23862         * doc/posix-functions/trunc.texi: Likewise.
23863         * doc/posix-functions/truncl.texi: Likewise.
23864
23865 2010-12-20  Bruno Haible  <bruno@clisp.org>
23866
23867         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23868         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23869         * doc/posix-functions/round.texi: Likewise.
23870         * doc/posix-functions/roundl.texi: Likewise.
23871
23872 2010-12-20  Bruno Haible  <bruno@clisp.org>
23873
23874         ttyname_r: Add missing declaration on HP-UX 11.
23875         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23876         HAVE_TTYNAME_R.
23877         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23878         declared. Set HAVE_TTYNAME_R always.
23879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23880         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23881         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23882         HAVE_TTYNAME_R.
23883         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23884
23885 2010-12-20  Bruno Haible  <bruno@clisp.org>
23886
23887         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23888         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23889         * doc/posix-functions/getlogin_r.texi: Likewise.
23890         * tests/test-getlogin.c: Include <errno.h>.
23891         (main): Avoid test failure on HP-UX 11.11.
23892         * tests/test-getlogin_r.c (main): Likewise.
23893
23894 2010-12-20  Bruno Haible  <bruno@clisp.org>
23895
23896         getlogin_r: Add missing declaration on HP-UX 11.
23897         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23898         declared also when it exists as a function.
23899         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23900
23901 2010-12-20  Bruno Haible  <bruno@clisp.org>
23902
23903         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23904         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23905         through wcrtomb.
23906
23907 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23908
23909         ftoastr: fix comment
23910         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23911         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23912
23913 2010-12-19  Bruno Haible  <bruno@clisp.org>
23914
23915         isnan: Ensure it is a macro.
23916         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23917         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23918         Solaris.
23919
23920 2010-12-19  Bruno Haible  <bruno@clisp.org>
23921
23922         ldexpl test: Fix link error on OSF/1 5.1.
23923         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23924
23925 2010-12-19  Bruno Haible  <bruno@clisp.org>
23926
23927         wctype: Make it work in C++ mode on OSF/1 5.1.
23928         * lib/wctype.in.h (iswblank): Declare but not define here.
23929         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23930         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23931         * modules/wctype (Files): Add lib/iswblank.c.
23932
23933 2010-12-19  Bruno Haible  <bruno@clisp.org>
23934
23935         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23936         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23937         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23938
23939 2010-12-19  Bruno Haible  <bruno@clisp.org>
23940
23941         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23942         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23943         _POSIX_PII_SOCKET.
23944         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23945         * doc/posix-functions/recvfrom.texi: Likewise.
23946         * doc/posix-functions/send.texi: Likewise.
23947         * doc/posix-functions/sendto.texi: Likewise.
23948
23949 2010-12-19  Bruno Haible  <bruno@clisp.org>
23950
23951         tcgetsid: Add missing declaration on OSF/1 5.1.
23952         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23953         HAVE_TCGETSID.
23954         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23955         Don't set HAVE_TCGETSID.
23956         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23957         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23958         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23959         HAVE_TCGETSID.
23960         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23961
23962 2010-12-19  Bruno Haible  <bruno@clisp.org>
23963
23964         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23965         * lib/stdio.in.h: During the include_next statement, let recursive
23966         includes of this file include only the system header file.
23967
23968 2010-12-19  Bruno Haible  <bruno@clisp.org>
23969
23970         iconv_open: Fix regression from 2010-12-04.
23971         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23972         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23973
23974 2010-12-19  Bruno Haible  <bruno@clisp.org>
23975
23976         stdbool test: Avoid a gcc warning.
23977         * tests/test-stdbool.c (main): Fail if e1 is false.
23978         Reported by Jim Meyering.
23979
23980 2010-12-19  Jim Meyering  <meyering@redhat.com>
23981
23982         setenv: restore to working order
23983         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23984         mistakenly removed.
23985         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23986         HAVE_SETENV.
23987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23988         HAVE_SETENV.
23989
23990 2010-12-19  Bruno Haible  <bruno@clisp.org>
23991
23992         Document some different function declarations on OSF/1 5.1.
23993         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23994         * doc/posix-functions/inet_ntop.texi: Likewise.
23995         * doc/posix-functions/gethostname.texi: Likewise.
23996         * lib/unistd.in.h (gethostname): Update comment.
23997
23998 2010-12-19  Bruno Haible  <bruno@clisp.org>
23999
24000         doc: Mention vasprintf-posix module.
24001         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
24002         the 'vasprintf-posix' module.
24003         * doc/glibc-functions/vasprintf.texi: Likewise.
24004
24005 2010-12-19  Bruno Haible  <bruno@clisp.org>
24006
24007         unsetenv: Add missing declaration on OSF/1 5.1.
24008         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
24009         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
24010         Don't set HAVE_UNSETENV. In the test program, set _BSD.
24011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
24012         not HAVE_UNSETENV.
24013         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
24014         HAVE_UNSETENV.
24015         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
24016
24017 2010-12-19  Bruno Haible  <bruno@clisp.org>
24018
24019         setenv: Add missing declaration on OSF/1 5.1.
24020         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
24021         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
24022         declared. Don't set HAVE_SETENV.
24023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
24024         not HAVE_SETENV.
24025         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
24026         HAVE_SETENV.
24027         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
24028
24029 2010-12-19  Bruno Haible  <bruno@clisp.org>
24030
24031         nl_langinfo tests: Avoid gcc warning.
24032         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
24033
24034 2010-12-19  Bruno Haible  <bruno@clisp.org>
24035
24036         mknod: Avoid error in C++ mode on OSF/1 with GCC.
24037         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
24038         _GL_CXXALIAS_SYS.
24039
24040 2010-12-19  Bruno Haible  <bruno@clisp.org>
24041
24042         stdbool: Relax test.
24043         * tests/test-stdbool.c (e): Don't require that casts from a variable's
24044         address to 'bool' work in static initializer, for compilers other than
24045         GCC.
24046
24047 2010-12-19  Bruno Haible  <bruno@clisp.org>
24048
24049         ftello: Add missing declaration on OSF/1 5.1.
24050         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
24051         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
24052         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
24053         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
24054         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
24055
24056 2010-12-19  Bruno Haible  <bruno@clisp.org>
24057
24058         fseeko: Add missing declaration on OSF/1 5.1.
24059         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
24060         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
24061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
24062         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
24063         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
24064
24065 2010-12-19  Bruno Haible  <bruno@clisp.org>
24066
24067         fchdir: Add missing declaration on OSF/1 5.1.
24068         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
24069         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
24070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
24071         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
24072         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
24073
24074 2010-12-19  Bruno Haible  <bruno@clisp.org>
24075
24076         relocatable-prog-wrapper: Separate from relocatable-prog.
24077         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
24078         uninstall-relocwrapper rule here.
24079         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
24080         Reported by Ian Beckwith <ianb@erislabs.net>.
24081
24082 2010-12-19  Bruno Haible  <bruno@clisp.org>
24083
24084         unistr/u8-mbsnlen: Add missing dependency.
24085         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
24086         Reported by Ian Beckwith <ianb@erislabs.net>.
24087
24088 2010-12-19  Bruno Haible  <bruno@clisp.org>
24089
24090         iconv: Make it possible again to use this module without 'iconv-h'.
24091         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
24092         if it is not defined.
24093         Reported by Ian Beckwith <ianb@erislabs.net>.
24094
24095 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
24096
24097         acl: port to Solaris 8 when copying from tmpfs to ufs
24098         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
24099         error number.  Problem observed on Solaris 8 with latest
24100         coreutils, with "mv A B", where A is on a tmpfs file system and B
24101         is on a ufs file system.  This caused coreutils' mv/part-symlink
24102         test to fail.
24103
24104         tests: set fail=0 at start
24105         * tests/init.sh (setup_): Move fail=0 initialization here ...
24106         (mktempd_): ... from here, so that tests can rely on fail being
24107         set to 0 initially.  This fixes a problem in coreutils; see:
24108         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
24109
24110 2010-12-18  Bruno Haible  <bruno@clisp.org>
24111
24112         memmem-simple: Stylistic changes.
24113         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
24114         Fix preprocessor directive indentation.
24115
24116 2010-12-15  Pádraig Brady <P@draigBrady.com>
24117
24118         memmem, memmem-simple: reorganize and expand empty needle check
24119         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
24120         functional checks to memmem-simple so that one has a fully functional
24121         memmem by using just this module.
24122         Restrict the performance only check to the memmem module.
24123         Also expand the empty needle check to ensure the correct
24124         pointer is returned, not just a non NULL pointer.
24125         * doc/glibc-functions/memmem.texi: Rearrange the portability
24126         documentation to correlate with the rearranged checks.
24127         Clarify exactly how the memmem and memmem-simple modules
24128         relate to each other.
24129
24130 2010-12-15  Pádraig Brady <P@draigBrady.com>
24131             Bruno Haible  <bruno@clisp.org>
24132
24133         Improve cross-compilation guesses for uClibc.
24134         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
24135         that uClibc does not have the glibc bug.
24136         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
24137         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
24138
24139 2010-12-14  Eric Blake  <eblake@redhat.com>
24140
24141         configmake: provide fallbacks for oldest supported autotools
24142         * m4/configmake.m4: New file.
24143         * modules/configmake (Files): Ship it.
24144         (configure.ac): Use it to guarantee fallbacks.
24145
24146 2010-12-13  Pádraig Brady <P@draigBrady.com>
24147
24148         read-file: Improve handling of large files
24149         * lib/read-file.c (fread_file): Minimize realloc()s
24150         for regular files, and better manage sizes around SIZE_MAX.
24151
24152 2010-12-13  Eric Blake  <eblake@redhat.com>
24153
24154         cloexec, fcntl: relax license
24155         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
24156         consent from all contributors.
24157         * modules/fcntl (License): Likewise.
24158
24159 2010-12-10  Bruno Haible  <bruno@clisp.org>
24160
24161         Tests for module 'pipe-posix'.
24162         * modules/pipe-posix-tests: New file.
24163         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
24164
24165 2010-12-10  Bruno Haible  <bruno@clisp.org>
24166
24167         pipe-posix: Make it work in C++ mode.
24168         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
24169         (pipe): Use common idiom, not a macro definition.
24170         * lib/pipe.c: New file.
24171         * m4/pipe.m4: New file.
24172         * modules/pipe-posix (Description): Enhance.
24173         (Files): Add lib/pipe.c, m4/pipe.m4.
24174         (configure.ac): Invoke gl_FUNC_PIPE.
24175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
24176         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
24177         * tests/test-unistd-c++.cc: Check the signature of pipe.
24178
24179 2010-12-10  Bruno Haible  <bruno@clisp.org>
24180
24181         Rename module 'pipe' to 'spawn-pipe'.
24182         * modules/spawn-pipe: New file, renamed from modules/pipe.
24183         (Files, configure.ac, Makefile.am): Update.
24184         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
24185         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
24186         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
24187         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
24188         "spawn-pipe.h" instead of "pipe.h".
24189         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
24190         to gl_SPAWN_PIPE.
24191         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
24192         (Files, Makefile.am): Update.
24193         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
24194         Update.
24195         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
24196         Include "spawn-pipe.h" instead of "pipe.h".
24197         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
24198         * lib/javacomp.c: Likewise.
24199         * lib/javaversion.c: Likewise.
24200         * lib/pipe-filter-gi.c: Likewise.
24201         * lib/pipe-filter-ii.c: Likewise.
24202         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
24203         * modules/javacomp (Depends-on): Likewise.
24204         * modules/javaversion (Depends-on): Likewise.
24205         * modules/pipe-filter-gi (Depends-on): Likewise.
24206         * modules/pipe-filter-ii (Depends-on): Likewise.
24207         * MODULES.html.sh (Executing programs): Update.
24208         * NEWS: Mention the change.
24209
24210 2010-12-10  Eric Blake  <eblake@redhat.com>
24211
24212         pipe-posix: new module
24213         * modules/pipe-posix: New file.
24214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
24215         (gl_UNISTD_H): Check for declaration.
24216         * modules/unistd (Makefile.am): Substitute it.
24217         * lib/unistd.in.h (pipe): Provide it for mingw.
24218         * doc/posix-functions/pipe.texi (pipe): Update documentation.
24219         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
24220
24221 2010-12-07  Bruno Haible  <bruno@clisp.org>
24222
24223         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
24224         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
24225         u8_strcmp_gnu.
24226         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
24227
24228 2010-12-06  Bruno Haible  <bruno@clisp.org>
24229
24230         Update internal documentation.
24231         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
24232
24233 2010-12-04  Bruno Haible  <bruno@clisp.org>
24234
24235         Put more information about failed tests into the test return codes.
24236         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
24237         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
24238         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
24239         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
24240         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
24241         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24242         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24243         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
24244         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
24245         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24246         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
24247         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
24248         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
24249         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24250         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
24251         returns a bit mask.
24252         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
24253         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
24254         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
24255         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
24256         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24257         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
24258         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24259         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
24260         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
24261         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
24262         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24263         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
24264         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24265         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
24266         * m4/link.m4 (gl_FUNC_LINK): Likewise.
24267         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
24268         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
24269         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
24270         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24271         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
24272         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24273         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24274         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
24275         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24276         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24277         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
24278         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
24279         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
24280         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
24281         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
24282         gl_PRINTF_PRECISION): Likewise.
24283         * m4/regex.m4 (gl_REGEX): Likewise.
24284         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
24285         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
24286         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
24287         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
24288         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24289         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24290         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
24291         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
24292         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
24293         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24294         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
24295         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
24296         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
24297         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
24298         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
24299         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
24300         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
24301         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24302         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
24303         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
24304         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
24305         enumerated value.
24306         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
24307
24308 2010-12-04  Bruno Haible  <bruno@clisp.org>
24309
24310         Update for Solaris 11 2010-11.
24311         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24312         Express, released in November 2010.
24313
24314 2010-12-04  Bruno Haible  <bruno@clisp.org>
24315
24316         nproc: Relax license.
24317         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24318         and Paul Eggert.
24319         Requested by Ludovic Courtès <ludo@gnu.org>.
24320
24321 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24322
24323         utimecmp: fine-grained src to nearby coarse-grained dest
24324
24325         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24326         and the source is on a file system with higher-resolution time
24327         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24328         not work, and the time stamps are close together, the algorithm to
24329         determine the exact resolution from the read-back mtime was buggy:
24330         it had a "!=" where it should have had an "==".  This bug has been
24331         in the code ever since it was introduced to gnulib.
24332         Problem reported by Dan Jacobson in
24333         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24334
24335 2010-11-30  Bruno Haible  <bruno@clisp.org>
24336
24337         strerror_r-posix: Fix autoconf test.
24338         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24339
24340 2010-11-28  Bruno Haible  <bruno@clisp.org>
24341             Paul Eggert  <eggert@cs.ucla.edu>
24342
24343         Tests for module 'getdomainname'.
24344         * modules/getdomainname-tests: New file.
24345         * tests/test-getdomainname.c: New file, based on
24346         tests/test-gethostname.c.
24347
24348 2010-11-28  Bruno Haible  <bruno@clisp.org>
24349             Paul Eggert  <eggert@cs.ucla.edu>
24350
24351         getdomainname: Use the system function when possible.
24352         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24353         (getdomainname): Replace if needed. Provide the declaration if it is
24354         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24355         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24356         (getdomainname): When the system has getdomainname, call the system
24357         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24358         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24359         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24360         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24361         the function if its second argument is of type 'int' or if it is found
24362         in libnsl.
24363         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24364         <sys/systeminfo.h> and sysinfo().
24365         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24367         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24368         HAVE_GETDOMAINNAME.
24369         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24370         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24371         * doc/glibc-functions/getdomainname.texi: Document the problems with
24372         the getdomainname declaration.
24373
24374 2010-11-28  Bruno Haible  <bruno@clisp.org>
24375
24376         sys_socket: Ensure ss_family field on AIX.
24377         * lib/sys_socket.in.h (ss_family): New macro definition.
24378         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24379         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24380         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24381         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24382         * modules/sys_socket (Makefile.am): Substitute
24383         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24384         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24385
24386 2010-11-27  Bruno Haible  <bruno@clisp.org>
24387
24388         readline: Improve configure output.
24389         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24390         "checking for readline..." result understandable.
24391
24392 2010-11-27  Bruno Haible  <bruno@clisp.org>
24393
24394         *printf-posix: Detect a bug on Solaris 10/x86.
24395         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24396         for floating-point output.
24397         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24398         directive.
24399         * tests/test-snprintf-posix.h (test_function): Likewise.
24400         * tests/test-sprintf-posix.h (test_function): Likewise.
24401         * tests/test-vasprintf-posix.c (test_function): Likewise.
24402         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24403         * doc/posix-functions/printf.texi: Likewise.
24404         * doc/posix-functions/snprintf.texi: Likewise.
24405         * doc/posix-functions/sprintf.texi: Likewise.
24406         * doc/posix-functions/vfprintf.texi: Likewise.
24407         * doc/posix-functions/vprintf.texi: Likewise.
24408         * doc/posix-functions/vsnprintf.texi: Likewise.
24409         * doc/posix-functions/vsprintf.texi: Likewise.
24410         * doc/glibc-functions/obstack_printf.texi: Likewise.
24411         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24412
24413 2010-11-27  Bruno Haible  <bruno@clisp.org>
24414
24415         Fix link error when module libunistring-optional is in use.
24416         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24417         * modules/striconveha-tests (Makefile.am): Likewise.
24418
24419 2010-11-27  Bruno Haible  <bruno@clisp.org>
24420
24421         regex: Mention link dependencies.
24422         * modules/regex (Link): New section.
24423         * modules/rpmatch (Link): Likewise.
24424         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24425
24426 2010-11-27  Bruno Haible  <bruno@clisp.org>
24427
24428         ftoastr: Fix compilation error on Solaris.
24429         * lib/ftoastr.c: Include <config.h>.
24430
24431 2010-11-27  Bruno Haible  <bruno@clisp.org>
24432
24433         getloadavg: Update documentation.
24434         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24435
24436 2010-11-27  Bruno Haible  <bruno@clisp.org>
24437
24438         sys_socket: Fix test whether the functions are declared.
24439         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24440         not <sys/select.h>.
24441
24442 2010-11-27  Bruno Haible  <bruno@clisp.org>
24443
24444         getpass: Make sure to get system declaration on some platforms.
24445         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24446         gl_USE_SYSTEM_EXTENSIONS.
24447         * modules/getpass (Depends-on): Add extensions.
24448
24449 2010-11-26  Bruno Haible  <bruno@clisp.org>
24450
24451         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24452         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24453         'iconv' module is present.
24454         (ICONV_CONST): New macro.
24455         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24456         ICONV_CONST.
24457         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24458         set ICONV_CONST.
24459         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24460         here.
24461         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24462         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24463         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24464         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24465         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24466         present.
24467
24468 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24469
24470         ftoastr: comment fix
24471         * lib/ftoastr.c: "little" -> "little or no" in comment
24472
24473 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24474
24475         stdint: port to GCC 4.3 + OSX + Octave
24476         On this platform, stdint.h is buggy and defines int64_t to long
24477         long int.  The replacement defined it to long int, causing
24478         problems with C++ style name mangling.  Instead, trust the system
24479         definition if INT64_MAX is defined, and likewise for the unsigned
24480         variant.   Problem reported by Jarno Rajahalme in
24481         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24482         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24483         and don't mess with int64_t and INT64_MAX in this case.
24484         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24485
24486 2010-11-24  Bruno Haible  <bruno@clisp.org>
24487
24488         doc: Corrections regarding MacOS X 10.4 and 10.5.
24489         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24490         MacOS X.
24491         Reported by Simon Josefsson.
24492
24493 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24494
24495         Uninstall ".bin" files installed by relocwrapper.
24496         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24497         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24498         unless it is already there.
24499
24500 2010-11-21  Bruno Haible  <bruno@clisp.org>
24501
24502         Update for NetBSD 5.0.
24503         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24504         NetBSD; the test fails on NetBSD 5.0.
24505         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24506         about NetBSD.
24507
24508 2010-11-21  Bruno Haible  <bruno@clisp.org>
24509
24510         Update for HP-UX 11.23 and HP-UX 11.31.
24511         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24512         HP-UX.
24513
24514 2010-11-21  Bruno Haible  <bruno@clisp.org>
24515
24516         Update for MacOS X 10.5.
24517         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24518         MacOS X; the test fails on MacOS X 10.5.8.
24519         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24520         about MacOS X.
24521
24522 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24523
24524         bootstrap: add bootstrap_sync option.
24525         See discussion at
24526         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24527         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24528         * build-aux/bootstrap: Accept --bootstrap-sync to update
24529         bootstrap if it is not identical to the local gnulib's
24530         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24531         enable this by default.  Accept --no-bootstrap-sync to disable
24532         it.
24533
24534 2010-11-20  Bruno Haible  <bruno@clisp.org>
24535
24536         Ensure that <features.h> is included before __GLIBC__ is tested.
24537         * lib/printf-parse.h: Include <features.h>.
24538         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24539         Reported by Mike Frysinger <vapier@gentoo.org>.
24540
24541         Ensure that <features.h> is included before __GLIBC__ is tested.
24542         * lib/wchar.in.h: Include <features.h>.
24543         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24544         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24545         Reported by Mike Frysinger <vapier@gentoo.org>.
24546
24547         Ensure that <features.h> is included before __GLIBC__ is tested.
24548         * lib/arpa_inet.in.h: Include <features.h>.
24549         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24550         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24551         Reported by Mike Frysinger <vapier@gentoo.org>.
24552
24553         Ensure that <features.h> is included before __GLIBC__ is tested.
24554         * build-aux/link-warning.h: Include <features.h>.
24555         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24556         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24557         Reported by Mike Frysinger <vapier@gentoo.org>.
24558
24559         Ensure that <features.h> is included before __GLIBC__ is tested.
24560         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24561         Reported by Mike Frysinger <vapier@gentoo.org>.
24562
24563 2010-11-20  Bruno Haible  <bruno@clisp.org>
24564
24565         memmem: Fix autoconf test.
24566         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24567
24568 2010-11-20  Bruno Haible  <bruno@clisp.org>
24569
24570         Port to uClibc.
24571         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24572         * lib/fcntl.in.h: Likewise.
24573         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24574         * lib/mbrtowc.c (mbrtowc): Likewise.
24575         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24576         * lib/strerror_r.c: Likewise.
24577         * lib/unistr/u8-strnlen.c: Likewise.
24578         * lib/vasnprintf.c (decimal_point_char): Likewise.
24579         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24580         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24581         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24582         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24583         * tests/test-sigaction.c (handler, main): Likewise.
24584         * lib/freading.h: Treat uClibc like a non-glibc platform.
24585         * lib/freading.c: Likewise.
24586         * lib/gettext.h: Likewise.
24587         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24588         Likewise.
24589         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24590         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24591         * lib/propername.c (proper_name_utf8): Likewise.
24592         * lib/spawn.in.h: Likewise.
24593         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24594         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24595         mem_cd_iconveh_internal): Likewise.
24596         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24597         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24598         strstr, strcasestr): Likewise.
24599         * lib/unicodeio.c (unicode_to_mb): Likewise.
24600         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24601         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24602         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24603         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24604         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24605         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24606         * lib/unistr/u8-stpncpy.c: Likewise.
24607         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24608         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24609         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24610         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24611         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24612         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24613         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24614         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24615         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24616         Likewise.
24617         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24618         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24619         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24620         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24621         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24622         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24623         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24624         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24625         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24626         * tests/test-striconveha.c (main): Likewise.
24627         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24628         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24629         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24630         * doc/posix-functions/getline.texi: Likewise.
24631         Reported by Mike Frysinger <vapier@gentoo.org>.
24632
24633 2010-11-20  Bruno Haible  <bruno@clisp.org>
24634
24635         nproc: Fix condition.
24636         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24637         HAVE_PTHREAD_AFFINITY_NP.
24638
24639 2010-11-20  Bruno Haible  <bruno@clisp.org>
24640
24641         Fix a comment.
24642         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24643
24644 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24645
24646         ftoastr: don't assume snprintf
24647         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24648         Implement a subset of snprintf here, by using sprintf safely.
24649         * modules/ftoastr (Depends-on): Remove snprintf.
24650
24651 2010-11-19  Jim Meyering  <meyering@redhat.com>
24652
24653         test-rename.h: fix compilation failure
24654         * tests/test-rename.h (test_rename): Add omitted "}".
24655
24656 2010-11-17  Jim Meyering  <meyering@redhat.com>
24657
24658         maint.mk: add a URL discussing the no-@acronym policy
24659         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24660
24661 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24662
24663         ftoastr: depend on snprintf, improve comments
24664         * lib/ftoastr.c: Also mention Loitsch's draft.
24665         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24666         needed in the current implementation, but it might simplify
24667         speeding up the code later.
24668         * modules/ftoastr: Depend on snprintf; this improves portability.
24669         Suggested by Bruno Haible in the same email.
24670
24671         ftoastr: port to hosts lacking strtof and strtold
24672         Problem reported by Bruno Haible in
24673         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24674         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24675         environment and strtold (and presumably strtof) are not available.
24676         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24677         (configure.ac): Require gl_C99_STRTOLD.
24678
24679 2010-11-18  Bruno Haible  <bruno@clisp.org>
24680
24681         c-strtold: Avoid link error on AIX 7.
24682         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24683         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24684         (gl_C_STRTOLD): Test whether strtold_l exists.
24685         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24686
24687 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24688
24689         intprops: new macro INT_BITS_STRLEN_BOUND
24690         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24691         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24692         not exposed.  Also, it uses a slightly tighter bound than before;
24693         though this makes no practical difference, we might as well be as
24694         tight as we easily can.
24695
24696         ftoastr: new module, for lossless conversion of floats to short strings
24697         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24698         * modules/ftoastr: New files.
24699
24700 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24701
24702         bootstrap: port to Solaris sed
24703         * build-aux/bootstrap (get_version): Port to Solaris sed.
24704         See Ralf Wildenhues's note in
24705         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24706
24707 2010-11-14  Jim Meyering  <meyering@redhat.com>
24708
24709         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24710         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24711         and move definition closer to sole use.
24712
24713 2010-11-13  Jim Meyering  <meyering@redhat.com>
24714
24715         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24716         Now we require at least autoconf-2.59, which means the work-around
24717         is no longer needed.
24718         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24719         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24720         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24721         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24722         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24723
24724 2010-11-13  Bruno Haible  <bruno@clisp.org>
24725
24726         rename, renameat: Avoid test failures at NFS mounted locations.
24727         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24728         functions.
24729         (test_rename): Use assert_nonexistent.
24730         * tests/test-rename.c: Include <dirent.h>.
24731         * tests/test-renameat.c: Likewise.
24732         Reported by Gary V. Vaughan <gary@gnu.org>.
24733
24734         rename, renameat: Document Linux bug with NFS
24735         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24736         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24737         * doc/posix-functions/renameat.texi: Likewise.
24738         Suggested by Eric Blake.
24739
24740 2010-11-13  Bruno Haible  <bruno@clisp.org>
24741
24742         rename test: Add comments.
24743         * tests/test-rename.h (test_rename): Add structure and comments.
24744
24745 2010-11-13  Eric Blake  <eblake@redhat.com>
24746
24747         maintainer-makefile: cover a few more files
24748         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24749         scripts generated within C files, for libvirt.
24750
24751 2010-11-13  Bruno Haible  <bruno@clisp.org>
24752
24753         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24754         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24755         character, return the number of bytes that belong together, not always
24756         1.
24757         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24758         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24759         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24760         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24761         number of bytes of an invalid character.
24762         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24763         (main): Invoke it.
24764         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24765         results.
24766         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24767         malformed byte sequences.
24768         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24769         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24770         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24771         Reported by Ben Pfaff and Paolo Bonzini.
24772
24773 2010-11-13  Bruno Haible  <bruno@clisp.org>
24774
24775         openat: Work around glibc bug with fchownat() and empty file names.
24776         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24777         (gl_FUNC_FCHOWNAT): Invoke it.
24778         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24779         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24780         Reported by Gary V. Vaughan <gary@gnu.org>.
24781
24782 2010-11-13  Bruno Haible  <bruno@clisp.org>
24783
24784         openat: Ensure autoconf macro ordering.
24785         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24786         gl_USE_SYSTEM_EXTENSIONS.
24787         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24788
24789 2010-11-13  Bruno Haible  <bruno@clisp.org>
24790
24791         Update comments.
24792         * lib/unistr/u8-check.c: Update file name in comments.
24793         * lib/unistr/u8-mblen.c: Likewise.
24794         * lib/unistr/u8-prev.c: Likewise.
24795         * lib/unistr/u8-strmblen.c: Likewise.
24796         * lib/unistr/u8-strmbtouc.c: Likewise.
24797
24798 2010-11-13  Jim Meyering  <meyering@redhat.com>
24799
24800         tests: avoid test failure on Solaris 10 due to lack of PATH export
24801         * tests/test-update-copyright.sh: Don't forget to export PATH.
24802
24803         init.sh: ensure that IFS is defined, just in case...
24804         * tests/init.sh (setup_): Ensure that IFS is defined,
24805         so that saving and restoring it works as expected.  This
24806         appears to be useful at least for an old version of dash
24807         from a long time ago (RH 6).  See here for details:
24808         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24809
24810         maint.mk: tighten "test a == b" check
24811         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24812         test to files that contain something like #!/bin/sh.
24813         Without this, coreutils would get two false positives in
24814         the comments of C source files.
24815
24816 2010-11-12  Eric Blake  <eblake@redhat.com>
24817
24818         bootstrap: fix typo in previous attempt
24819         * build-aux/bootstrap (buildreq): Correct the grouping.
24820         Reported by Paul Eggert.
24821
24822         maintainer-makefile: prohibit test x == x
24823         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24824         Based on a report by Matthias Bolte.
24825
24826         bootstrap: allow FreeBSD gzip
24827         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24828         which has no '.' and goes to stderr.
24829         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24830         Reported by Matthias Bolte.
24831
24832         maintainer-makefile: check for i18n setup
24833         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24834         will likely work.
24835
24836 2010-11-12  Bruno Haible  <bruno@clisp.org>
24837
24838         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24839         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24840         * lib/nanosleep.c (nanosleep): Likewise.
24841
24842 2010-11-11  Bruno Haible  <bruno@clisp.org>
24843
24844         fcntl-h: Fix for use of C++ on glibc systems.
24845         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24846         also on glibc systems in C++ mode.
24847         Reported by Gary V. Vaughan <gary@gnu.org>.
24848
24849 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24850
24851         mknod: avoid false failure with dash
24852         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24853
24854 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24855
24856         unlink: Fix "is it should" typo in diagnostic.
24857         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24858         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24859
24860 2010-11-11  Bruno Haible  <bruno@clisp.org>
24861
24862         Tests for module 'strerror_r-posix'.
24863         * modules/strerror_r-posix-tests: New file.
24864         * tests/test-strerror_r.c: New file.
24865         * tests/test-string-c++.cc: Check the signature of strerror_r.
24866
24867         New module 'strerror_r-posix'.
24868         * lib/string.in.h (strerror_r): New declaration.
24869         * lib/strerror_r.c: New file.
24870         * m4/strerror_r.m4: New file.
24871         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24872         of strerror_r.
24873         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24874         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24875         * modules/strerror_r-posix: New file.
24876         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24877         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24878         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24879         portability problems.
24880
24881 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24882
24883         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24884         line is also considered for output. Quoted function name in shell
24885         command, so temporary files for functions like MyClass::operator()
24886         are removed correctly without errors.
24887
24888 2010-11-09  Bruno Haible  <bruno@clisp.org>
24889
24890         * doc/posix-functions/strerror.texi: List more failing platforms.
24891
24892         * doc/posix-functions/strerror.texi: Add a comment.
24893
24894 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24895
24896         fdopendir: fix bug on MacOS X when low on file descriptors
24897
24898         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24899         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24900         All callers changed.
24901         (fdopendir): Invoke save_cwd at the top level, not after using
24902         multiple dup() calls to use up file descriptors.  Then retry
24903         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24904         less than the maximum number of open file descriptors, because
24905         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24906         on Mac OS X 10.6.4 for tar 1.24
24907         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24908         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24909         and for tar 1.25
24910         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24911
24912 2010-11-07  Bruno Haible  <bruno@clisp.org>
24913
24914         vasnprintf: Support I flag on glibc systems.
24915         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24916         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24917         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24918         snprintf function.
24919         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24920         glibc systems.
24921         * tests/test-vasnprintf-posix3.c: New file.
24922         * modules/vasnprintf-posix-tests (Files): Add it.
24923         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24924
24925 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24926
24927         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24928         * MODULES.html.sh: For compiler warnings, use name
24929         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24930
24931 2010-11-05  Eric Blake  <eblake@redhat.com>
24932
24933         ceil, floor: avoid spurious failure with icc
24934         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24935         [denormals-as-zero] when optimizing without -mieee-fp option.
24936         * tests/test-floorf2.c (floorf_reference): Likewise.
24937         * tests/test-ceilf1.c (dummy): New function.
24938         (main): Use it to outsmart icc's optimization.
24939         * tests/test-floorf1.c (dummy, main): Likewise.
24940
24941         tests: require working signbit
24942         * modules/ceilf-tests (Depends-on): Add signbit.
24943         * modules/ceill-tests (Depends-on): Likewise.
24944         * modules/floorf-tests (Depends-on): Likewise.
24945         * modules/floorl-tests (Depends-on): Likewise.
24946         * modules/round-tests (Depends-on): Likewise.
24947         * modules/roundf-tests (Depends-on): Likewise.
24948         * modules/roundl-tests (Depends-on): Likewise.
24949         * modules/trunc-tests (Depends-on): Likewise.
24950         * modules/truncf-tests (Depends-on): Likewise.
24951         * modules/truncl-tests (Depends-on): Likewise.
24952
24953         strtod: work around icc bug
24954         * lib/strtod.c (minus_zero): Define to working value.
24955         (strtod): Use it to avoid icc bug.
24956
24957         copysign: enhance tests
24958         * modules/copysign-tests (Files): Add minus-zero.h.
24959         * tests/test-copysign.c (main): Also test zeros.
24960
24961 2010-11-04  Eric Blake  <eblake@redhat.com>
24962
24963         ceil, floor, round, trunc: enhance tests of -0
24964         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24965         * tests/test-ceill.c (main): Likewise.
24966         * tests/test-floorf1.c (main): Likewise.
24967         * tests/test-floorl.c (main): Likewise.
24968         * tests/test-round1.c (main): Likewise.
24969         * tests/test-roundf1.c (main): Likewise.
24970         * tests/test-roundl.c (main): Likewise.
24971         * tests/test-trunc1.c (main): Likewise.
24972         * tests/test-truncf1.c (main): Likewise.
24973         * tests/test-truncl.c (main): Likewise.
24974
24975 2010-11-04  Eric Blake  <eblake@redhat.com>
24976
24977         frexp, tests: work around ICC bug with -zero
24978         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24979         works with more compilers.
24980         * tests/minus-zero.h: New file.
24981         * modules/ceilf-tests (Files): Include it.
24982         * modules/ceill-tests (Files): Likewise.
24983         * modules/floorf-tests (Files): Likewise.
24984         * modules/floorl-tests (Files): Likewise.
24985         * modules/frexp-nolibm-tests (Files): Likewise.
24986         * modules/frexp-tests (Files): Likewise.
24987         * modules/frexpl-nolibm-tests (Files): Likewise.
24988         * modules/frexpl-tests (Files): Likewise.
24989         * modules/isnan-tests (Files): Likewise.
24990         * modules/isnand-nolibm-tests (Files): Likewise.
24991         * modules/isnand-tests (Files): Likewise.
24992         * modules/isnanf-nolibm-tests (Files): Likewise.
24993         * modules/isnanf-tests (Files): Likewise.
24994         * modules/isnanl-nolibm-tests (Files): Likewise.
24995         * modules/isnanl-tests (Files): Likewise.
24996         * modules/round-tests (Files): Likewise.
24997         * modules/roundf-tests (Files): Likewise.
24998         * modules/roundl-tests (Files): Likewise.
24999         * modules/ldexpl-tests (Files): Likewise.
25000         * modules/signbit-tests (Files): Likewise.
25001         * modules/snprintf-posix-tests (Files): Likewise.
25002         * modules/sprintf-posix-tests (Files): Likewise.
25003         * modules/strtod-tests (Files): Likewise.
25004         * modules/trunc-tests (Files): Likewise.
25005         * modules/truncf-tests (Files): Likewise.
25006         * modules/truncl-tests (Files): Likewise.
25007         * modules/vsnprintf-posix-tests (Files): Likewise.
25008         * modules/vsprintf-posix-tests (Files): Likewise.
25009         * modules/vasnprintf-posix-tests (Files): Likewise.
25010         * modules/vasprintf-posix-tests (Files): Likewise.
25011         * tests/test-ceilf1.c (main): Use it.
25012         * tests/test-ceill.c (main): Likewise.
25013         * tests/test-floorf1.c (main): Likewise.
25014         * tests/test-floorl.c (main): Likewise.
25015         * tests/test-frexp.c (main): Likewise.
25016         * tests/test-frexpl.c (main): Likewise.
25017         * tests/test-isnan.c (main): Likewise.
25018         * tests/test-isnand.h (main): Likewise.
25019         * tests/test-isnanf.h (main): Likewise.
25020         * tests/test-isnanl.h (main): Likewise.
25021         * tests/test-ldexpl.c (main): Likewise.
25022         * tests/test-round.c (main): Likewise.
25023         * tests/test-roundf.c (main): Likewise.
25024         * tests/test-roundl.c (main): Likewise.
25025         * tests/test-signbit.c (test_signbitf, test_signbitd)
25026         (test_signbitl): Likewise.
25027         * tests/test-snprintf-posix.h (test_function): Likewise.
25028         * tests/test-sprintf-posix.h (test_function): Likewise.
25029         * tests/test-strtod.c (main): Likewise.
25030         * tests/test-trunc1.c (main): Likewise.
25031         * tests/test-truncf1.c (main): Likewise.
25032         * tests/test-truncl.c (main): Likewise.
25033
25034         isnanl: work around icc bug
25035         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
25036
25037 2010-11-03  Eric Blake  <eblake@redhat.com>
25038
25039         tests: fix compiler warnings
25040         * tests/test-getopt.h (test_getopt): Fix condition.
25041         * tests/test-getopt_long.h (test_getopt_long): Likewise.
25042         * tests/test-pipe2.c (main): Likewise.
25043         * tests/test-quotearg-simple.c (main): Avoid icc warning.
25044
25045         utimens: fix broken m4 test
25046         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
25047
25048 2010-10-28  Bruno Haible  <bruno@clisp.org>
25049
25050         posix_spawn*, getdtablesize: Relax license.
25051         * modules/posix_spawn (License): Change to LGPLv2+.
25052         * modules/posix_spawnp (License): Likewise.
25053         * modules/posix_spawn-internal (License): Likewise.
25054         * modules/posix_spawnattr_init (License): Likewise.
25055         * modules/posix_spawnattr_getflags (License): Likewise.
25056         * modules/posix_spawnattr_setflags (License): Likewise.
25057         * modules/posix_spawnattr_getpgroup (License): Likewise.
25058         * modules/posix_spawnattr_setpgroup (License): Likewise.
25059         * modules/posix_spawnattr_getschedparam (License): Likewise.
25060         * modules/posix_spawnattr_setschedparam (License): Likewise.
25061         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
25062         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
25063         * modules/posix_spawnattr_getsigdefault (License): Likewise.
25064         * modules/posix_spawnattr_setsigdefault (License): Likewise.
25065         * modules/posix_spawnattr_getsigmask (License): Likewise.
25066         * modules/posix_spawnattr_setsigmask (License): Likewise.
25067         * modules/posix_spawnattr_destroy (License): Likewise.
25068         * modules/posix_spawn_file_actions_init (License): Likewise.
25069         * modules/posix_spawn_file_actions_addclose (License): Likewise.
25070         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
25071         * modules/posix_spawn_file_actions_addopen (License): Likewise.
25072         * modules/posix_spawn_file_actions_destroy (License): Likewise.
25073         * modules/getdtablesize (License): Likewise.
25074         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
25075
25076 2010-10-26  Bruno Haible  <bruno@clisp.org>
25077
25078         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
25079         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
25080         Cygwin and mingw.
25081         Suggested by Eric Blake.
25082
25083 2010-10-26  Bruno Haible  <bruno@clisp.org>
25084
25085         stdio: Work around compilation error due to renameat() on Solaris 10.
25086         * lib/stdio.in.h: Include <unistd.h> on Solaris.
25087         * lib/renameat.c: Don't include <unistd.h> here.
25088         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
25089         Reported by Paul Eggert and Eric Blake.
25090
25091 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
25092
25093         renameat: port to Solaris 10, which declares renameat in unistd.h
25094
25095         * lib/renameat.c: Include unistd.h before stdio.h, because
25096         Solaris 10 declares renameat in unistd.h.  Problem encountered
25097         when building GNU tar 1.24 on Solaris 10.
25098
25099 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25100
25101         fdopendir: fix C89 compilation
25102         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
25103         compilers.
25104
25105 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
25106
25107         inttostr: simplify by removing unnecessary redundancy
25108         * lib/anytostr.c: Don't include verify.h.
25109         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
25110         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
25111         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
25112         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
25113         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
25114         Likewise.
25115         * modules/inttostr (Depends-on): Remove 'verify'.
25116
25117 2010-10-23  Bruno Haible  <bruno@clisp.org>
25118
25119         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
25120         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
25121         Reported by Eric Blake.
25122
25123 2010-10-23  Bruno Haible  <bruno@clisp.org>
25124
25125         Tests: Fix LOCALE_JA on MirBSD 10.
25126         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
25127         to an UTF-8 locale.
25128         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
25129         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25130         Reported by Eric Blake.
25131
25132 2010-10-21  Bruno Haible  <bruno@clisp.org>
25133
25134         nl_langinfo test: Avoid test failure on NetBSD 5.
25135         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
25136         Reported by Eric Blake.
25137
25138 2010-10-21  Eric Blake  <eblake@redhat.com>
25139
25140         c-stack: work around libsigsegv 2.8 bug
25141         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
25142         overflow on at least PowerPC64.
25143
25144 2010-10-17  Bruno Haible  <bruno@clisp.org>
25145
25146         userspec: Drop redundant file.
25147         * modules/userspec (Files): Remove lib/inttostr.h.
25148
25149 2010-10-17  Bruno Haible  <bruno@clisp.org>
25150
25151         nl_langinfo tests: Silence some warnings.
25152         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
25153         Reported by Jim Meyering.
25154
25155 2010-10-17  Bruno Haible  <bruno@clisp.org>
25156
25157         Make use of GCC's attribute __alloc_size__.
25158         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
25159         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
25160         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
25161         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
25162         __alloc_size__.
25163         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
25164         Suggested by Jim Meyering.
25165
25166 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
25167
25168         bootstrap: anchor .gitignore entries.
25169         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
25170         with...
25171         (insert_vc_ignore): ... this new function, which prepends `/' to
25172         all .gitignore entries before passing them to
25173         insert_sorted_if_absent.
25174
25175 2010-10-16  Bruno Haible  <bruno@clisp.org>
25176
25177         nextafter: Fix configure check.
25178         * modules/nextafter (configure.ac): Correct expected prototype.
25179
25180 2010-10-16  Bruno Haible  <bruno@clisp.org>
25181
25182         termios: Update documentation.
25183         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
25184
25185 2010-10-16  Bruno Haible  <bruno@clisp.org>
25186
25187         tests: Make them compile with TinyCC.
25188         * tests/test-strstr.c (main): Remove parentheses around array
25189         initializer.
25190
25191 2010-10-15  Eric Blake  <eblake@redhat.com>
25192
25193         ignore-value: make header idempotent
25194         * lib/ignore-value.h: Add double-inclusion guards.
25195         Reported by Stefan Berger.
25196
25197 2010-10-15  Jim Meyering  <meyering@redhat.com>
25198
25199         GNUmakefile: handle "stable" target, not "major"
25200         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
25201         lists in maint.mk and announce-gen.  Without this, "make stable"
25202         would fail to ensure that $(VERSION) is up to date.
25203
25204 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
25205
25206         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
25207         & co.
25208
25209 2010-10-14  Bruno Haible  <bruno@clisp.org>
25210
25211         vasnprintf: Don't set errno to 0.
25212         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
25213         block that sets it to 0.
25214         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
25215
25216 2010-10-14  Bruno Haible  <bruno@clisp.org>
25217
25218         socketlib: Fix.
25219         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
25220         gl_PREREQ_SYS_H_WINSOCK2.
25221         Reported by Ian Beckwith <ianb@erislabs.net>.
25222
25223 2010-10-13  Jim Meyering  <meyering@redhat.com>
25224
25225         test-select-stdin.c: avoid warn_unused_result warnings
25226         * tests/test-select-stdin.c: Include "macros.h".
25227         ASSERT that read and fflush succeed.
25228
25229 2010-10-13  Jim Meyering  <meyering@redhat.com>
25230
25231         git-version-gen: do require git-VC'd files in cwd
25232         * build-aux/git-version-gen: Reject a git version string
25233         if there are no commits associated with the current directory.
25234         This avoids an unlikely false-positive (unrelated dir whose parent
25235         repository also contains a tag matching v*), as pointed out
25236         by Giuseppe Scrivano in
25237         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
25238
25239 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
25240
25241         argv-iter: omit nonconforming declaration
25242         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
25243         enum arg_iter_err declaration, which doesn't conform to C99.
25244         Solaris 10 cc warns about this.
25245
25246 2010-10-13  Eric Blake  <eblake@redhat.com>
25247
25248         termios: fix compilation on mingw
25249         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
25250         (gl_TERMIOS_H): Adjust it on mingw.
25251         * modules/termios (Makefile.am): Substitute new key.
25252         * lib/termios.in.h (includes): Make include_next conditional.
25253         * doc/posix-headers/termios.texi (termios.h): Update
25254         documentation.
25255         Reported by Daniel P. Berrange.
25256
25257 2010-10-13  Jim Meyering  <meyering@redhat.com>
25258
25259         git-version-gen: don't require that .git/ be in the current dir
25260         * build-aux/git-version-gen: Adjust this script so that it works
25261         when run from any working directory beneath the top-level .git/-
25262         containing directory.  Inspired by a patch from Giuseppe Scrivano,
25263         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
25264
25265         test-select: avoid warn_unused_result warnings
25266         * tests/test-select.c: Include "macros.h".
25267         ASSERT that each call to read, write, and pipe succeeds.
25268         While not technically required, also check each "close".
25269         * modules/select-tests (Files): Add tests/macros.h.
25270
25271         test-symlinkat: remove declaration of unused local
25272         * tests/test-symlinkat.c (main): Remove unused local, "buf".
25273
25274         test-inttostr: avoid shadowing warnings
25275         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
25276         and use malloc rather than the stack for the same reason as
25277         mentioned in the comment justifying the other allocation.
25278
25279 2010-10-11  Bruno Haible  <bruno@clisp.org>
25280
25281         stdlib: Allow multiple gnulib generated replacements to coexist.
25282         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
25283         Reported by Sam Steingold <sds@gnu.org>.
25284
25285 2010-10-11  Jim Meyering  <meyering@redhat.com>
25286
25287         fix a documentation typo
25288         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
25289
25290 2010-10-11  Eric Blake  <eblake@redhat.com>
25291
25292         futimens: work around Solaris 11 bug
25293         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
25294         * tests/test-futimens.h (test_futimens): Enhance, rather than
25295         weaken test.
25296         * doc/posix-functions/futimens.texi (futimens): Document the bug.
25297
25298 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
25299
25300         Indentation.
25301         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
25302         higher-level operators more to the left.
25303
25304 2010-10-11  Jim Meyering  <meyering@redhat.com>
25305
25306         test-futimens: avoid unwarranted test failure on Solaris 5.11
25307         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
25308         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
25309         because it tries to dereference the NULL name argument.
25310
25311 2010-10-11  Bruno Haible  <bruno@clisp.org>
25312
25313         Indentation.
25314         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25315         indentation.
25316
25317 2010-10-11  Jim Meyering  <meyering@redhat.com>
25318
25319         spawn.in.h: make indentation consistent with parentheses
25320         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25321         Make indentation consistent with parentheses.
25322
25323 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25324
25325         Fix mismatched parens in previous commit
25326         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25327         parens.
25328
25329 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25330
25331         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25332
25333         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25334         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25335         * lib/malloca.c: Include "verify.h".
25336         (verify1): Remove, replacing with a verify call.
25337         * lib/relocwrapper.c (verify1): Likewise.
25338         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25339         Likewise.
25340         * modules/malloca (Depends-on): Add 'verify'.
25341         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25342         * modules/vasnprintf (Depends-on): Add 'verify'.
25343         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25344         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25345         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25346         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25347         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25348         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25349         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25350
25351         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25352
25353         Formerly the style was sometimes 2*X - 1, because the C standard
25354         was wrongly thought to disallow ?: in integral constant expressions.
25355         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25356         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25357         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25358         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25359         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25360         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25361         verify that time_t cannot be floating.
25362
25363 2010-10-08  Eric Blake  <eblake@redhat.com>
25364
25365         time: enforce recent POSIX ruling that time_t is integral
25366         * lib/time.in.h (__time_t_must_be_integral): Detect any
25367         problematic systems, allowing the rest of gnulib to assume POSIX.
25368
25369 2010-10-08  Jim Meyering  <meyering@redhat.com>
25370
25371         fdopendir: fix a bug on systems lacking openat and /proc support
25372         OpenBSD 4.7 is one such system.  The most noticeable effect was
25373         failure of any application making nontrivial use of fts: rm, du,
25374         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25375           ./rm: traversal failed: `a': Bad file descriptor
25376         Debugging that, you see that even though FD 6 was closed just
25377         prior to the opendir call in fd_clone_opendir, its resulting
25378         dir->dd_fd was 8, rather than the expected value of 6:
25379
25380         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25381         93                close (fd);
25382         (gdb) n
25383         94                dir = fd_clone_opendir (dupfd);
25384         (gdb) n
25385         95                saved_errno = errno;
25386         (gdb) p dir->dd_fd
25387         $11 = 8
25388
25389         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25390         The problem is that on OpenBSD, fd_clone_opendir has to resort
25391         to using the old-style save/restore CWD mechanism, due to its
25392         lack of openat/proc support, and *that* would steal the FD (6)
25393         that opendir was supposed to use.
25394
25395         The fix is to squirrel away the desired FD so that save_cwd uses a
25396         different one, and then free the dest FD right before calling opendir.
25397         That guarantees opendir will use the required file descriptor.
25398
25399         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25400
25401 2010-10-08  Bruno Haible  <bruno@clisp.org>
25402
25403         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25404         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25405
25406 2010-10-08  Bruno Haible  <bruno@clisp.org>
25407
25408         nanosleep: Make replacement POSIX compliant.
25409         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25410         is out of range.
25411         Reported by Jim Meyering.
25412
25413 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25414
25415         bootstrap: add hook for altering gnulib.mk, for Bison
25416         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25417         the Bison bootstrapping process can rewrite file names and variables
25418         in this file before later parts of 'bootstrap' use the file.
25419         Bison wants to include lib/gnulib.mk from the top-level makefile,
25420         so it needs the file names in this file to be relative to the top
25421         level, not relative to lib; plus it needs variable names to be
25422         rewritten.
25423         (slurp): Use the new function.
25424
25425         bootstrap: reformat for readability
25426         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25427
25428 2010-10-08  Eric Blake  <eblake@redhat.com>
25429
25430         docs: update cygwin progress
25431         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25432         1.7.7.
25433         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25434         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25435         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25436         * doc/posix-functions/carg.texi (carg): Likewise.
25437         * doc/posix-functions/cargf.texi (cargf): Likewise.
25438         * doc/posix-functions/casin.texi (casin): Likewise.
25439         * doc/posix-functions/casinf.texi (casinf): Likewise.
25440         * doc/posix-functions/casinh.texi (casinh): Likewise.
25441         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25442         * doc/posix-functions/catan.texi (catan): Likewise.
25443         * doc/posix-functions/catanf.texi (catanf): Likewise.
25444         * doc/posix-functions/catanh.texi (catanh): Likewise.
25445         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25446         * doc/posix-functions/ccos.texi (ccos): Likewise.
25447         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25448         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25449         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25450         * doc/posix-functions/cexp.texi (cexp): Likewise.
25451         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25452         * doc/posix-functions/cimag.texi (cimag): Likewise.
25453         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25454         * doc/posix-functions/clog.texi (clog): Likewise.
25455         * doc/posix-functions/clogf.texi (clogf): Likewise.
25456         * doc/posix-functions/conj.texi (conj): Likewise.
25457         * doc/posix-functions/conjf.texi (conjf): Likewise.
25458         * doc/posix-functions/cpow.texi (cpow): Likewise.
25459         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25460         * doc/posix-functions/cproj.texi (cproj): Likewise.
25461         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25462         * doc/posix-functions/creal.texi (creal): Likewise.
25463         * doc/posix-functions/crealf.texi (crealf): Likewise.
25464         * doc/posix-functions/csin.texi (csin): Likewise.
25465         * doc/posix-functions/csinf.texi (csinf): Likewise.
25466         * doc/posix-functions/csinh.texi (csinh): Likewise.
25467         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25468         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25469         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25470         * doc/posix-functions/ctan.texi (ctan): Likewise.
25471         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25472         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25473         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25474         * doc/posix-headers/complex.texi (complex.h): Likewise.
25475
25476 2010-10-07  Jim Meyering  <meyering@redhat.com>
25477
25478         parse-datetime: avoid compilation failure on OpenBSD 4.7
25479         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25480         This works around a compilation failure on OpenBSD 4.7:
25481         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25482
25483 2010-10-07  Eric Blake  <eblake@redhat.com>
25484
25485         docs: update cygwin progress
25486         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25487         1.7.6.
25488         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25489         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25490         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25491         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25492         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25493         Likewise.
25494         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25495         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25496         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25497         Likewise.
25498         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25499         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25500         Likewise.
25501         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25502         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25503         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25504         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25505         Likewise.
25506         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25507         Likewise.
25508         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25509
25510         docs: update parse-datetime history
25511         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25512         documentation of this function's history and alternatives.
25513
25514         cygwin: use more robust version check
25515         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25516         exclude an eventual cygwin 1.9.1.
25517         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25518         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25519         (gl_FUNC_STRCASESTR): Likewise.
25520         Reported by Bruno Haible.
25521
25522 2010-10-06  Bruno Haible  <bruno@clisp.org>
25523
25524         string, sys_select: Avoid #including large headers unless necessary.
25525         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25526         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25527         OSF/1, BeOS, Haiku.
25528         Reported by Jim Meyering.
25529
25530 2010-10-05  Eric Blake  <eblake@redhat.com>
25531
25532         memmem, strstr, strcasestr: fix bug with long periodic needle
25533         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25534         periodic needle having false positive.
25535         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25536         and cygwin 1.7.7.
25537         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25538         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25539         (gl_FUNC_STRCASESTR): Likewise.
25540         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25541         * tests/test-memmem.c (main): Expose the bug.
25542         * tests/test-strcasestr.c (main): Likewise.
25543         * tests/test-strstr.c (main): Likewise.
25544         * tests/test-c-strcasestr.c (main): Likewise.
25545         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25546         * doc/posix-functions/strstr.texi (strstr): Likewise.
25547         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25548         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25549
25550 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25551
25552         parse-datetime: do some more renaming
25553         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25554         parse_datetime, not get_date.  Mention the renaming.
25555         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25556         in comments.
25557         * m4/bison.m4: Likewise.
25558
25559 2010-10-05  Eric Blake  <eblake@redhat.com>
25560
25561         parse-datetime: better name than get_date
25562         * NEWS: Reword the deprecation notice.
25563         * modules/get_date: Rename to modules/parse-datetime.
25564         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25565         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25566         * lib/get_date.y: Rename to lib/parse-datetime.y.
25567         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25568         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25569         * doc/getdate.texi: Provide fallback wrapper.
25570         * lib/getdate.h: Move guts, and wrap...
25571         * lib/parse-datetime.h: ...new file.
25572         * lib/parse-datetime.y (get_date): Rename...
25573         (parse_datetime): ...to this.
25574         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25575         (gl_PARSE_DATETIME): ...to this.
25576         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25577         documentation.
25578         * modules/getdate (Files): Provide fallback docs and header.
25579         (Notice, Depends-on): Update references.
25580         * tests/test-parse-datetime.c: Likewise.
25581         * DEPENDENCIES: Likewise.
25582         * MODULES.html.sh (Date and time <time.h>): Likewise.
25583         * doc/parse-datetime.texi (Date input formats)
25584         (Authors of parse_datetime): Likewise.
25585         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25586         (Include): Likewise.
25587         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25588         * gnulib-tool: Likewise.
25589         * m4/bison.m4 (gl_BISON): Likewise.
25590         Suggested by Bruno Haible.
25591
25592 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25593
25594         more ports to Solaris tr, which needs [] around ranges
25595         * gnulib-tool: Solaris tr needs [] around ranges.
25596         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25597         * tests/test-pipe-filter-gi1.c (main): Likewise.
25598         * tests/test-pipe-filter-ii1.c (main): Likewise.
25599
25600 2010-10-05  Eric Blake  <eblake@redhat.com>
25601
25602         bootstrap: fix Solaris regression
25603         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25604         around ranges.
25605         Reported by Pádraig Brady.
25606
25607         bootstrap: work with pkg-config
25608         * build-aux/bootstrap (check_versions): Also transliterate - in
25609         prerequisite name.
25610         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25611         prerequisites that were already found, to avoid confusion.
25612         Reported by Justin Clift.
25613
25614         faccessat: remove unused wrappers
25615         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25616         presence of these wrappers dragged in -lgen on Solaris.
25617         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25618
25619 2010-10-05  Jim Meyering  <meyering@redhat.com>
25620
25621         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25622         * Makefile (sc_pragma_columns): New syntax-check rule.
25623
25624 2010-10-04  Bruno Haible  <bruno@clisp.org>
25625
25626         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25627         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25628         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25629         Reported by Bruce Korb and Eric Blake.
25630
25631 2010-10-04  Bruno Haible  <bruno@clisp.org>
25632
25633         threadlib: Make option --with-libpth-prefix work.
25634         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25635         use $LIBPTH, not just -lpth.
25636
25637 2010-10-04  Bruno Haible  <bruno@clisp.org>
25638
25639         Avoid line length limitation from HP NonStop system header files.
25640         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25641         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25642         * lib/ctype.in.h: Likewise.
25643         * lib/dirent.in.h: Likewise.
25644         * lib/errno.in.h: Likewise.
25645         * lib/fcntl.in.h: Likewise.
25646         * lib/float.in.h: Likewise.
25647         * lib/getopt.in.h: Likewise.
25648         * lib/iconv.in.h: Likewise.
25649         * lib/inttypes.in.h: Likewise.
25650         * lib/langinfo.in.h: Likewise.
25651         * lib/locale.in.h: Likewise.
25652         * lib/math.in.h: Likewise.
25653         * lib/netdb.in.h: Likewise.
25654         * lib/netinet_in.in.h: Likewise.
25655         * lib/poll.in.h: Likewise.
25656         * lib/pthread.in.h: Likewise.
25657         * lib/pty.in.h: Likewise.
25658         * lib/sched.in.h: Likewise.
25659         * lib/se-selinux.in.h: Likewise.
25660         * lib/search.in.h: Likewise.
25661         * lib/signal.in.h: Likewise.
25662         * lib/spawn.in.h: Likewise.
25663         * lib/stdarg.in.h: Likewise.
25664         * lib/stddef.in.h: Likewise.
25665         * lib/stdint.in.h: Likewise.
25666         * lib/stdio.in.h: Likewise.
25667         * lib/stdlib.in.h: Likewise.
25668         * lib/string.in.h: Likewise.
25669         * lib/strings.in.h: Likewise.
25670         * lib/sys_file.in.h: Likewise.
25671         * lib/sys_ioctl.in.h: Likewise.
25672         * lib/sys_select.in.h: Likewise.
25673         * lib/sys_socket.in.h: Likewise.
25674         * lib/sys_stat.in.h: Likewise.
25675         * lib/sys_time.in.h: Likewise.
25676         * lib/sys_times.in.h: Likewise.
25677         * lib/sys_utsname.in.h: Likewise.
25678         * lib/sys_wait.in.h: Likewise.
25679         * lib/sysexits.in.h: Likewise.
25680         * lib/termios.in.h: Likewise.
25681         * lib/time.in.h: Likewise.
25682         * lib/unistd.in.h: Likewise.
25683         * lib/wchar.in.h: Likewise.
25684         * lib/wctype.in.h: Likewise.
25685         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25686         * modules/ctype (Makefile.am): Likewise.
25687         * modules/dirent (Makefile.am): Likewise.
25688         * modules/errno (Makefile.am): Likewise.
25689         * modules/fcntl-h (Makefile.am): Likewise.
25690         * modules/float (Makefile.am): Likewise.
25691         * modules/getopt-posix (Makefile.am): Likewise.
25692         * modules/iconv-h (Makefile.am): Likewise.
25693         * modules/inttypes (Makefile.am): Likewise.
25694         * modules/langinfo (Makefile.am): Likewise.
25695         * modules/locale (Makefile.am): Likewise.
25696         * modules/math (Makefile.am): Likewise.
25697         * modules/netdb (Makefile.am): Likewise.
25698         * modules/netinet_in (Makefile.am): Likewise.
25699         * modules/poll-h (Makefile.am): Likewise.
25700         * modules/pthread (Makefile.am): Likewise.
25701         * modules/pty (Makefile.am): Likewise.
25702         * modules/sched (Makefile.am): Likewise.
25703         * modules/search (Makefile.am): Likewise.
25704         * modules/selinux-h (Makefile.am): Likewise.
25705         * modules/signal (Makefile.am): Likewise.
25706         * modules/spawn (Makefile.am): Likewise.
25707         * modules/stdarg (Makefile.am): Likewise.
25708         * modules/stddef (Makefile.am): Likewise.
25709         * modules/stdint (Makefile.am): Likewise.
25710         * modules/stdio (Makefile.am): Likewise.
25711         * modules/stdlib (Makefile.am): Likewise.
25712         * modules/string (Makefile.am): Likewise.
25713         * modules/strings (Makefile.am): Likewise.
25714         * modules/sys_file (Makefile.am): Likewise.
25715         * modules/sys_ioctl (Makefile.am): Likewise.
25716         * modules/sys_select (Makefile.am): Likewise.
25717         * modules/sys_socket (Makefile.am): Likewise.
25718         * modules/sys_stat (Makefile.am): Likewise.
25719         * modules/sys_time (Makefile.am): Likewise.
25720         * modules/sys_times (Makefile.am): Likewise.
25721         * modules/sys_utsname (Makefile.am): Likewise.
25722         * modules/sys_wait (Makefile.am): Likewise.
25723         * modules/sysexits (Makefile.am): Likewise.
25724         * modules/termios (Makefile.am): Likewise.
25725         * modules/time (Makefile.am): Likewise.
25726         * modules/unistd (Makefile.am): Likewise.
25727         * modules/wchar (Makefile.am): Likewise.
25728         * modules/wctype (Makefile.am): Likewise.
25729
25730 2010-10-04  Bruno Haible  <bruno@clisp.org>
25731
25732         read-file tests: Avoid a test failure on NonStop Kernel.
25733         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25734         a regular file.
25735         Reported by Joachim Schmitz <schmitz@hp.com>.
25736
25737 2010-10-03  Bruno Haible  <bruno@clisp.org>
25738
25739         gnulib-tool: Fixes for --create-testdir with --libtool.
25740         * gnulib-tool (func_get_automake_snippet): Don't augment
25741         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25742         an executable.
25743         (func_create_testdir): Handle module 'alloca' like func_import.
25744         Reported by Bruce Korb <bruce.korb@gmail.com>.
25745
25746 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25747
25748         Avoid some lines longer than 80 characters.
25749         * lib/stdint.in.h: Break long comment lines.
25750         * lib/math.in.h: Likewise.
25751         (_GL_NUM_UINT_WORDS): New macro, for readability.
25752         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25753         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25754         * lib/stdlib.in.h: Likewise.
25755         * lib/spawn.in.h: Likewise.
25756         * lib/sys_socket.in.h: Update an URL.
25757         * lib/sys_stat.in.h: Break long line.
25758
25759 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25760
25761         Improve pmccabe2html.
25762         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25763         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25764         when the sources change. Remove the line in the HTML about "Used
25765         ranges" (which implied that there might be other unused ranges),
25766         rename "Resume" to "Summary" (easier to understand for more users).
25767         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25768         styles, and some unnecessary blank lines.
25769
25770 2010-10-03  Bruno Haible  <bruno@clisp.org>
25771             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25772
25773         acl: Add support for ACLs on NonStop Kernel.
25774         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25775         Check whether the function aclsort() exists.
25776         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25777         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25778         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25779         (acl_nontrivial [HAVE_ACLSORT]: New function.
25780         (file_has_acl): Implement for NonStop Kernel.
25781         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25782         (qset_acl): Implement for NonStop Kernel.
25783         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25784         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25785         (main): Implement for NonStop Kernel.
25786         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25787         Kernel. Handle this flavor.
25788         * tests/test-set-mode-acl.sh: Likewise.
25789         * tests/test-copy-acl.sh: Likewise.
25790         * tests/test-copy-file.sh: Likewise.
25791
25792 2010-10-03  Bruno Haible  <bruno@clisp.org>
25793
25794         Info about ACLs on NonStop Kernel.
25795         * doc/acl-resources.txt: Add info about NonStop Kernel.
25796         References by Joachim Schmitz <schmitz@hp.com>.
25797
25798 2010-10-02  Bruno Haible  <bruno@clisp.org>
25799
25800         Define missing EDQUOT on NonStop Kernel.
25801         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25802         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25803         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25804         missing.
25805         * doc/posix-headers/errno.texi: Mention the NSK bug.
25806         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25807         Reported by Joachim Schmitz <schmitz@hp.com>.
25808
25809 2010-10-02  Bruno Haible  <bruno@clisp.org>
25810
25811         Update doc for POSIX:2008.
25812         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25813         Update URL of POSIX specification.
25814
25815 2010-10-02  Bruno Haible  <bruno@clisp.org>
25816
25817         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25818         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25819         from gnulib, not from Automake.
25820
25821 2010-10-02  Bruno Haible  <bruno@clisp.org>
25822
25823         New module 'system-posix'.
25824         * modules/system-posix: New file.
25825         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25826         module is present.
25827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25828         GNULIB_SYSTEM_POSIX.
25829         * modules/stdlib (Depends-on): Remove sys_wait.
25830         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25831         * doc/posix-functions/system.texi: Mention the new module.
25832         * doc/posix-headers/stdlib.texi: Likewise.
25833         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25834         define test_sys_wait_macros to a no-op.
25835         Reported by Sam Steingold <sds@gnu.org>.
25836
25837 2010-09-30  Bruno Haible  <bruno@clisp.org>
25838
25839         More renaming from 'getdate' to 'get_date'.
25840         * doc/get_date.texi: Renamed from doc/getdate.texi.
25841         * modules/get_date (Files): Update.
25842         * MODULES.html.sh (Date and time <time.h>): Update.
25843         * DEPENDENCIES: Update.
25844         * gnulib-tool: Update comment.
25845         * m4/bison.m4 (gl_BISON): Likewise.
25846         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25847
25848 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25849
25850         bootstrap: support ACLOCAL_FLAGS during aclocal
25851         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25852         can add additional -I dir for third-party .m4 files.
25853
25854 2010-09-30  Eric Blake  <eblake@redhat.com>
25855
25856         bootstrap: use glibtoolize on MacOS
25857         * build-aux/bootstrap (check_versions): Convert libtool into
25858         libtoolize.
25859         (tool search): Move libtool check earlier, and look for
25860         glibtoolize for MacOS.
25861         (gnulib_tool_options): Auto-add --libtool when appropriate.
25862         Reported by Justin Clift.
25863
25864         poll: fix typo that broke test on MacOS
25865         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25866         Reported by Justin Clift.
25867
25868         getdate: rename to get_date
25869         Note: getdate.h is not renamed, to minimize client impact.
25870         * modules/getdate: Mark obsolete.  Move old contents...
25871         * modules/get_date: ...to new module name.
25872         * modules/getdate-tests: Move...
25873         * modules/get_date-tests: ...here.
25874         * m4/getdate.m4: Move...
25875         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25876         * lib/getdate.y: Move...
25877         * lib/get_date.y: ...here.
25878         * tests/test-getdate.c: Move...
25879         * tests/test-get_date.c: ...here.
25880         * doc/posix-functions/getdate.texi (getdate): Update name.
25881         * NEWS: Mention the change.
25882
25883 2010-09-29  Bruno Haible  <bruno@clisp.org>
25884
25885         Separate the module 'waitpid' from the module 'sys_wait'.
25886         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25887         present.
25888         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25889         gl_MODULE_INDICATOR_FOR_TESTS.
25890         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25891         * modules/sys_wait (Depends-on): Remove waitpid.
25892         (Makefile.am): Substitute GNULIB_WAITPID.
25893         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25894         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25895         signature only if the 'waitpid' module is present.
25896         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25897         * NEWS: Mention the change.
25898         * modules/grantpt (Depends-on): Add waitpid.
25899         * modules/wait-process (Depends-on): Likewise.
25900
25901 2010-09-29  Bruno Haible  <bruno@clisp.org>
25902
25903         More tests for module 'sys_wait'.
25904         * modules/sys_wait-c++-tests: New file.
25905         * tests/test-sys_wait-c++.cc: New file.
25906         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25907         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25908
25909 2010-09-29  Bruno Haible  <bruno@clisp.org>
25910
25911         New module 'waitpid'.
25912         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25913         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25914         Don't include <process.h>.
25915         (waitpid): Declare only, using modern idiom.
25916         * m4/waitpid.m4: New file.
25917         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25918         * modules/waitpid: New file.
25919         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25920         (Makefile.am): Update.
25921         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25922
25923 2010-09-28  Bruno Haible  <bruno@clisp.org>
25924
25925         poll: Assume ANSI C.
25926         * lib/poll.c (poll): Use an ANSI C declaration.
25927
25928 2010-09-28  Bruno Haible  <bruno@clisp.org>
25929
25930         poll-h: Create poll.h on all platforms.
25931         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25932         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25933         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25934         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25935         (gl_REPLACE_POLL_H): Don't set POLL_H.
25936         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25937         * modules/poll-h (Depends-on): Add include_next.
25938         (Makefile.am): Create poll.h unconditionally. Substitute also
25939         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25940
25941 2010-09-28  Bruno Haible  <bruno@clisp.org>
25942
25943         Tests for module 'poll-h'.
25944         * modules/poll-h-c++-tests: New file.
25945         * tests/test-poll-h-c++.cc: New file.
25946
25947         Tests for module 'poll-h'.
25948         * modules/poll-h-tests: New file.
25949         * tests/test-poll-h.c: New file.
25950
25951 2010-09-28  Bruno Haible  <bruno@clisp.org>
25952
25953         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25954         * modules/poll-h (Depends-on): Add 'extensions'.
25955
25956 2010-09-28  Bruno Haible  <bruno@clisp.org>
25957
25958         New module 'poll-h'.
25959         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25960         (poll): Use modern idiom.
25961         * modules/poll-h: New file.
25962         * modules/poll (Files): Remove lib/poll.in.h.
25963         (Depends-on): Add poll-h.
25964         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25965         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25966         * m4/poll_h.m4: New file.
25967         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25968         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25969         and invoke gl_REPLACE_POLL_H.
25970         * lib/poll.c: Use common idiom.
25971         * tests/test-poll.c: Likewise.
25972         * doc/posix-headers/poll.texi: Mention the poll-h module.
25973         Suggested by Eric Blake.
25974
25975 2010-09-26  Bruno Haible  <bruno@clisp.org>
25976
25977         sys_wait: Implement WSTOPSIG.
25978         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25979         Reported by Simon Josefsson.
25980
25981 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25982
25983         stdlib, sys_wait: Avoid compilation error on mingw.
25984         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25985
25986 2010-09-26  Bruno Haible  <bruno@clisp.org>
25987
25988         stdlib tests: Avoid code duplication.
25989         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25990         * modules/sys_wait-tests (Files): Likewise.
25991         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25992         * tests/test-stdlib.c: Include test-sys_wait.h.
25993         (main): Invoke test_sys_wait_macros.
25994         * tests/test-sys_wait.c: Include test-sys_wait.h.
25995         (main): Invoke test_sys_wait_macros.
25996
25997 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25998
25999         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
26000         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
26001         sure Windows sockets are working before calling getaddrinfo.
26002         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
26003         * doc/gnulib.texi (Windows sockets): Fix typo.
26004
26005 2010-09-25  Bruno Haible  <bruno@clisp.org>
26006
26007         Tests for module 'regex-quote'.
26008         * modules/regex-quote-tests: New file.
26009         * tests/test-regex-quote.c: New file.
26010
26011         New module 'regex-quote'.
26012         * lib/regex-quote.h: New file.
26013         * lib/regex-quote.c: New file.
26014         * modules/regex-quote: New file.
26015         Suggested by Reuben Thomas <rrt@sc3d.org>.
26016
26017 2010-09-24  Bruno Haible  <bruno@clisp.org>
26018
26019         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
26020         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
26021
26022 2010-09-23  Bruno Haible  <bruno@clisp.org>
26023
26024         setenv: Relax license.
26025         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
26026         Blake.
26027         Requested by Eric Blake.
26028
26029 2010-09-22  Bruno Haible  <bruno@clisp.org>
26030
26031         termios: Relax license.
26032         * modules/termios (License): Change to LGPLv2+.
26033         Requested by Eric Blake.
26034
26035 2010-09-22  Bruno Haible  <bruno@clisp.org>
26036
26037         threadlib: Allow the package to change the default to 'no'.
26038         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
26039         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
26040         Reported by Paul Eggert.
26041
26042 2010-09-22  Pádraig Brady  <P@draigbrady.com>
26043             Bruno Haible  <bruno@clisp.org>
26044
26045         Fix endless loop in mbmemcasecoll.
26046         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
26047         byte.
26048         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
26049
26050 2010-09-22  Bruno Haible  <bruno@clisp.org>
26051
26052         Tests for module 'memcoll'.
26053         * modules/memcoll-tests: New file.
26054         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
26055
26056         memcoll, xmemcoll: Clarify size vs. length.
26057         * modules/memcoll.c (memcoll0): Clarify specification.
26058         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
26059         passed to collate_error.
26060
26061 2010-09-22  Bruno Haible  <bruno@clisp.org>
26062
26063         Tests for module 'memcasecmp'.
26064         * modules/memcasecmp-tests: New file.
26065         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
26066
26067 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
26068
26069         * lib/pthread.in.h: Add split double-inclusion guard, and include
26070         system <pthread.h> if there is one.  Use @@-style as in other
26071         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
26072         pthread.h doesn't.
26073         (pthread_mutexattr_destroy, pthread_mutexattr_init):
26074         (pthread_mutexattr_settype, pthread_mutex_trylock):
26075         New static inline functions, if there's no system <pthread.h>.
26076         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
26077         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
26078         Approximate with mutexes if the system lacks spinlocks, as in
26079         MacOS.
26080         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
26081         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
26082         @@-style.  Check for spinlocks separately.
26083         (gl_PTHREAD_DEFAULTS): New macro.
26084         * modules/pthread: Redo to use a more typical style for in.h files.
26085
26086 2010-09-21  Eric Blake  <eblake@redhat.com>
26087
26088         net_if: enhance tests
26089         * tests/test-net_if.c (main): Move signature checks earlier.
26090         Print failures to stderr.
26091         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
26092         Document the bug that we do not yet fix.
26093
26094 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26095
26096         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
26097         about gnulib, not GSS.
26098
26099 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
26100
26101         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
26102         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
26103         for Emacs.
26104         * build-aux/pmccabe2html: Make Makefile.am example code more
26105         cut-and-paste friendly.
26106
26107 2010-09-21  Simon Josefsson  <simon@josefsson.org>
26108
26109         * tests/test-net_if.c: New file.
26110         * modules/net_if-tests: New file.
26111
26112 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
26113
26114         pthread: add pthread_spin_destroy
26115         * lib/pthread.in.h (pthread_spin_destroy): New function.
26116
26117 2010-09-19  Bruno Haible  <bruno@clisp.org>
26118
26119         gnulib-tool: Fix --help output.
26120         * gnulib-tool (func_usage): Fix help message.
26121         Reported by Reuben Thomas <rrt@sc3d.org>.
26122
26123 2010-09-18  Jim Meyering  <meyering@redhat.com>
26124
26125         maint.mk: avoid unexpanded \n in two diagnostics
26126         * top/maint.mk (sc_prohibit_always_true_header_tests):
26127         Don't use a literal \n in a halt=... assignment.  It would not be
26128         expanded, and the two \n bytes would appear in the diagnostic output
26129         rather than the desired newline.  Use halt=$$(printf ... instead.
26130         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26131
26132 2010-09-18  Bruno Haible  <bruno@clisp.org>
26133
26134         netinet_in: Doc tweak.
26135         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
26136         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26137
26138 2010-09-18  Jim Meyering  <meyering@redhat.com>
26139
26140         init.sh: correct an outdated comment
26141         * tests/init.sh (create_exe_shims_):  s/function/alias/
26142
26143         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
26144         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
26145         a file named "*.exe" is removed between the glob expansion and the
26146         processing of that oddly named file.
26147
26148 2010-09-17  Eric Blake  <eblake@redhat.com>
26149
26150         mirbsd: add some more support
26151         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
26152         in BSD family.
26153         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
26154         devices as OpenBSD.
26155         * m4/host-os.m4 (mirbsd): Add MirBSD.
26156
26157         tests: fix unportable assumption on sys/wait.h
26158         * tests/test-sys_wait.c (main): Relax test.
26159         * tests/test-stdlib.c (main): Likewise.
26160
26161         init.sh: accommodate directory with no .exes
26162         * tests/init.sh: Accomodate directory containing only scripts.
26163
26164         tests: avoid compiler warning
26165         * tests/test-stdlib.c (main): Use the variable.
26166
26167         fdutimens, fdutimensat: update signature, again
26168         * lib/utimens.h (gl_futimens): Delete, and move signature...
26169         (fdutimens): ...here.
26170         (fdutimensat): Rearrange signature.
26171         (lutimensat): Rename variable for clarity.
26172         * lib/fdutimensat.c (fdutimensat): Update signature.
26173         * lib/utimens.c (fdutimens): Likewise.
26174         (gl_futimens): Delete.
26175         (utimens, lutimens): Update callers.
26176         * lib/futimens.c (futimens): Likewise.
26177         * tests/test-fdutimensat.c: Likewise.
26178         * tests/test-utimens.c: Likewise.
26179         * tests/test-futimens.h: Update comment.
26180         * NEWS: Mention this.
26181         Suggested by Paul Eggert.
26182
26183 2010-09-17  Bruno Haible  <bruno@clisp.org>
26184
26185         Take over the maintenance of some older macros from Autoconf.
26186         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
26187         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
26188         GNU Autoconf.
26189         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
26190         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
26191
26192 2010-09-17  Eric Blake  <eblake@redhat.com>
26193
26194         fdutimensat: drop atflag validation
26195         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
26196         with valid fd, to close a race scenario where futimens is
26197         unsupported and FILE was replaced by a symlink.
26198         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
26199         accordingly.
26200         Suggested by Paul Eggert.
26201
26202 2010-09-16  Bruno Haible  <bruno@clisp.org>
26203
26204         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
26205         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
26206
26207 2010-09-16  Bruno Haible  <bruno@clisp.org>
26208
26209         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
26210         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
26211         login_tty exists.
26212         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26213
26214 2010-09-16  Bruno Haible  <bruno@clisp.org>
26215
26216         login_tty: Make the replacement code work on BSD systems.
26217         * lib/login_tty.c: Include <sys/ioctl.h>.
26218         (login_tty): Use ioctl TIOCSCTTY when available.
26219         * modules/login_tty (Depends-on): Add sys_ioctl.
26220         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26221
26222 2010-09-16  Bruno Haible  <bruno@clisp.org>
26223
26224         login_tty: Stricter unit test.
26225         * modules/login_tty-tests (Depends-on): Add tcgetsid.
26226         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
26227         and tcgetsid() after login_tty.
26228         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26229
26230 2010-09-16  Bruno Haible  <bruno@clisp.org>
26231
26232         New module 'tcgetsid'.
26233         * lib/tcgetsid.c: New file.
26234         * m4/tcgetsid.m4: New file.
26235         * modules/tcgetsid: New file.
26236         * modules/termios (Depends-on): Add c++defs, warn-on-use.
26237         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
26238         GNULIB_TCGETSID, HAVE_TCGETSID.
26239         * lib/termios.in.h: Include <sys/types.h>.
26240         (tcgetsid): New declaration.
26241         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
26242         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
26243         * doc/posix-functions/tcgetsid.texi: Mention the new module.
26244         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
26245
26246 2010-09-16  Bruno Haible  <bruno@clisp.org>
26247
26248         Tests for module 'termios'.
26249         * modules/termios-c++-tests: New file.
26250         * modules/termios-tests: New file.
26251         * tests/test-termios-c++.cc: New file.
26252         * tests/test-termios.c: New file.
26253
26254         New module 'termios'.
26255         * modules/termios: New file.
26256         * lib/termios.in.h: New file.
26257         * m4/termios_h.m4: New file.
26258         * doc/posix-headers/termios.texi: Mention the new module.
26259
26260 2010-09-16  Eric Blake  <eblake@redhat.com>
26261
26262         fdutimensat: add an atflag parameter
26263         * lib/fdutimensat.c (fdutimensat): Add new parameter.
26264         * lib/utimens.h (fdutimensat): Update prototype.
26265         * tests/test-fdutimensat.c: Adjust test to match.
26266         * NEWS: Document the change.
26267         Suggested by Paul Eggert.
26268
26269 2010-09-16  Bruno Haible  <bruno@clisp.org>
26270
26271         Fix typos in comments.
26272         * lib/striconveh.h: Fix typo in comment.
26273         * lib/login_tty.c (login_tty): Likewise.
26274
26275 2010-09-15  Bruno Haible  <bruno@clisp.org>
26276
26277         stdlib: clarify MirBSD WEXITSTATUS bug
26278         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
26279         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26280
26281 2010-09-15  Eric Blake  <eblake@redhat.com>
26282
26283         stdlib: work around MirBSD WEXITSTATUS bug
26284         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
26285         * modules/stdlib (Depends-on): Add sys_wait.
26286         * tests/test-sys_wait.c (main): Enhance test.
26287         * tests/test-stdlib.c (main): Likewise.
26288         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
26289
26290         docs: mention MacOS issue with WEXITSTATUS(constant)
26291         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
26292         issue.
26293         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
26294
26295         strnlen: add tests
26296         * modules/strnlen-tests: New file.
26297         * tests/test-strnlen.c: Likewise.
26298
26299 2010-09-14  Bruno Haible  <bruno@clisp.org>
26300
26301         unistr/base: Avoid link errors when module 'libunistring' is also used.
26302         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
26303         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
26304         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
26305         Declare also when HAVE_LIBUNISTRING is set.
26306         Reported by Pádraig Brady <P@draigbrady.com>.
26307
26308 2010-09-14  Eric Blake  <eblake@redhat.com>
26309
26310         test-rawmemchr: make more robust
26311         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26312         (Depends-on, configure.ac): Add needed prerequisites to use it.
26313         * modules/memchr-tests (Files, Depends-on, configure.ac):
26314         Likewise, to avoid implicit reliance on memchr module prereqs.
26315         * tests/test-memchr.c (main): Ensure proper masking.
26316         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26317         reads.
26318
26319         memchr: detect glibc Alpha bug
26320         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26321         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26322         Alpha.
26323         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26324         * tests/test-memchr.c (main): Enhance test.
26325         Reported by Nelson H. F. Beebe.
26326
26327 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26328
26329         fts, getcwd, glob: audit for dirfd returning -1
26330         * lib/fts.c (opendir): Remove #define; no longer used.
26331         (opendirat): New arg PDIR_FD.  All callers changed.
26332         (fts_build, _opendir2): Use new opendirat to avoid the need for
26333         dirfd, or for checking whether dirfd returns a negative value.
26334         Don't use opendir; always use openat followed by fdopendir.
26335         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26336         it.
26337         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26338         returns -1 here.
26339         * modules/fts (Depends-on): Remove dirfd.
26340         * modules/getcwd (Depends-on): Likewise.
26341
26342 2010-09-13  Eric Blake  <eblake@redhat.com>
26343
26344         float: fix broken MirBSD header
26345         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26346         * doc/posix-headers/float.texi (float.h): Document it.
26347
26348 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26349
26350         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26351         * lib/fts.c (opendirat): New arg extra_flags.
26352         (__opendir2): Use it to avoid following symlinks when opening
26353         a directory, if symlinks are not supposed to be followed.  See
26354         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26355
26356         fdopendir: preserve argument fd before returning
26357         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26358         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26359         (fdopendir): Use them, arranging for FD to be open to the same
26360         directory that it was when it started.  (It might be temporarily
26361         closed while fdopendir is running, so this not thread- or
26362         signal-safe.)  Be careful to do the right thing even when file
26363         descriptors are scarce and dup fails with errno == EMFILE.  See
26364         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26365
26366 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26367
26368         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26369         * NEWS: Document change.
26370         * m4/regex.m4: Disable test for regoff_t size.
26371
26372 2010-09-13  Jim Meyering  <meyering@redhat.com>
26373
26374         fts: don't operate on an invalid file descriptor after failed dup
26375         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26376         negative file descriptor.
26377
26378 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26379
26380         savedir: add streamsavedir, deprecate fdsavedir
26381         * NEWS: Mention deprecation of fdsavedir.
26382         * lib/savedir.c (streamsavedir): New extern function, whose name
26383         ends in "savedir" to be consistent with the others.  This differs
26384         from savedirstream in that it doesn't close its argument.  The
26385         next version of GNU tar will use this instead of fdsavedir, to
26386         avoid some race conditions and conserve file descriptors.
26387         (savedirstream): Reimplement as a wrapper around streamsavedir.
26388         (fdsavedir): Add a comment deprecating this function.  As far as
26389         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26390         * lib/savedir.h (streamsavedir): New decl.
26391         (fdsavedir): Add a comment deprecating this.
26392
26393 2010-09-10  Bruno Haible  <bruno@clisp.org>
26394
26395         langinfo: Fix last commit.
26396         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26397         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26398         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26399
26400 2010-09-10  Bruno Haible  <bruno@clisp.org>
26401
26402         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26403         * lib/progreloc.c (O_EXEC): Define fallback.
26404
26405 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26406
26407         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26408         * NEWS: Document recent changes to fcntl-h.
26409         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26410         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26411         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26412         Similarly for O_SEARCH; this last was already true, but not documented.
26413         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26414         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26415         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26416         Likewise.
26417         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26418         is zero, not whether it is defined.
26419         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26420         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26421         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26422
26423 2010-09-10  Bruno Haible  <bruno@clisp.org>
26424
26425         langinfo, nl_langinfo: Fix for IRIX 5.3.
26426         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26427         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26428         HAVE_LANGINFO_YESEXPR.
26429         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26430         HAVE_LANGINFO_YESEXPR.
26431         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26432         HAVE_LANGINFO_T_FMT_AMPM is 0.
26433         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26434         HAVE_LANGINFO_YESEXPR is 0.
26435         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26436         NOEXPR.
26437         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26438         * doc/posix-functions/nl_langinfo.texi: Likewise.
26439         Reported by Eric Blake.
26440
26441 2010-09-10  Bruno Haible  <bruno@clisp.org>
26442
26443         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26444         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26445         on FreeBSD 8.0 and OpenBSD 4.6.
26446         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26447         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26448         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26449         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26450         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26451         ac_includes_default.
26452         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26453
26454 2010-09-09  Eric Blake  <eblake@redhat.com>
26455
26456         strsignal: work around NetBSD bug
26457         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26458         * lib/string.in.h (includes): Likewise.
26459         * doc/posix-functions/strsignal.texi (strsignal): Document the
26460         bug.
26461         Reported by Nelson H. F. Beebe.
26462
26463         gnulib-tool: work with NetBSD /bin/sh
26464         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26465         (func_get_description, func_get_comment, func_get_status)
26466         (func_get_notice, func_get_applicability, func_get_filelist)
26467         (func_get_dependencies, func_get_autoconf_early_snippet)
26468         (func_get_autoconf_snippet, func_get_automake_snippet)
26469         (func_get_include_directive, func_get_link_directive)
26470         (func_get_license, func_get_maintainer, func_import): Avoid
26471         shell syntax errors from parsing syntax extensions.
26472
26473 2010-09-09  Bruno Haible  <bruno@clisp.org>
26474
26475         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26476         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26477         a reliable way to determine whether the 'alias' command works.
26478
26479 2010-09-08  Jim Meyering  <meyering@redhat.com>
26480
26481         init.sh: penalize a set-x-impaired shell; don't disqualify it
26482         * tests/init.sh: Too many shells corrupt application stderr when
26483         you set -x, so we can't afford to disqualify them, since at least
26484         on Irix-6.5, that would disqualify all bourne shells.
26485         Instead, use a two-pass approach.
26486         On the first pass, try to find a shell that meets the stricter
26487         condition that set -x does not corrupt stderr.
26488         If no shell meets the stricter condition, retest each candidate
26489         shell, but without that extra condition.  Finally, when
26490         VERBOSE=yes is requested and set -x might cause trouble, simply
26491         issue a warning and refrain from enabling debug output.
26492
26493 2010-09-08  Eric Blake  <eblake@redhat.com>
26494
26495         unsetenv: fix OpenBSD bug
26496         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26497         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26498         documentation.
26499         Reported by Jim Meyering.
26500
26501         strtod: work around IRIX 6.5 bug
26502         * lib/strtod.c (strtod): Reparse number on shorter string if
26503         exponent parse was invalid.
26504         * tests/test-strtod.c (main): Add check for "0x1p 2".
26505         Reported by Tom G. Christensen.
26506
26507         getopt: optimize previous patch
26508         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26509         empty variable.  Speed up awk script.
26510         Reported by Paolo Bonzini.
26511
26512 2010-09-08  Jim Meyering  <meyering@redhat.com>
26513
26514         test.sh: disqualify shells for which set -x corrupts stderr
26515         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26516         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26517         appear in stderr output.  For example, this command:
26518             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26519         prints "P=1" on those two systems:
26520
26521 2010-09-08  Bruno Haible  <bruno@clisp.org>
26522
26523         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26524         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26525         commands, because some shells ignore redirections when there is an
26526         error in the command lookup.
26527         Reported by Eric Blake.
26528
26529 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26530
26531         * lib/regex.h: Fix a mention of `regex_compile' (should be
26532         `re_compile_pattern').
26533         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26534         (re_set_registers): Correct name of parameter in comment.
26535
26536         * doc/regex.texi: Add documentation for missing syntax flags.
26537         Remove commented-out documentation of defunct syntax option
26538         RE_NO_EMPTY_ALTS.
26539         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26540         Add documentation of re_set_registers.
26541         Document trick to re-use a pattern buffer by setting fastmap manually.
26542         Update documentation of struct re_pattern_buffer per public members.
26543         Uncomment documentation of equivalence class operators and
26544         collating symbol operators, since they are now implemented,
26545         Explain leftmost-longest matching in relation to alternatives.
26546         Tidy documentation of substring matching.
26547         Remove POSIX documentation, which is done better in
26548         glibc, and refer the reader there. Keep BSD API documentation, as
26549         that is not readily available elsewhere.
26550
26551 2010-09-07  Eric Blake  <eblake@redhat.com>
26552
26553         getopt: handle POSIXLY_CORRECT set but not exported
26554         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26555         export state of POSIXLY_CORRECT, due to bash set -o posix.
26556         Reported by Dustin J. Mitchell.
26557
26558 2010-09-05  Bruno Haible  <bruno@clisp.org>
26559
26560         gnulib-tool: Highlight the changed options.
26561         * gnulib-tool (func_usage): Display the --import, --add-import,
26562         --remove-import explanations in bold font.
26563
26564 2010-09-06  Karl Berry  <karl@gnu.org>
26565
26566         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26567
26568 2010-09-05  Bruno Haible  <bruno@clisp.org>
26569
26570         uniwidth/width: Update comment.
26571         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26572         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26573
26574 2010-09-05  Bruno Haible  <bruno@clisp.org>
26575
26576         isinf, isnan: Relax license.
26577         * modules/isinf (License): Change from GPL to LGPL, with consent from
26578         Ben Pfaff.
26579         * modules/isnan (License): Likewise.
26580         Requested by Ludovic Courtès.
26581
26582 2010-09-04  Bruno Haible  <bruno@clisp.org>
26583
26584         gnulib-tool: Help migration from --import to --add-import or --update.
26585         * gnulib-tool: Emit a verbose error message when --import is used
26586         without any module name.
26587
26588 2010-09-04  Bruno Haible  <bruno@clisp.org>
26589
26590         Update doc about gnulib-tool.
26591         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26592         'gnulib-tool --update' in more detail.
26593         Reported by Eric Blake.
26594
26595 2010-09-04  Bruno Haible  <bruno@clisp.org>
26596
26597         gnulib-tool: Change --import. New options --add/remove-import.
26598         * gnulib-tool: New options --add-import, --remove-import.
26599         (func_usage): Document them.
26600         (have_associative): Define always.
26601         (func_import): In import mode, don't merge the specified settings with
26602         the cached settings. Implement remove-import mode.
26603         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26604         Explain when to use them versus --import.
26605         (Simple update): Use --add-import instead of --import.
26606         * NEWS: Mention the change.
26607
26608 2010-09-04  Bruno Haible  <bruno@clisp.org>
26609
26610         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26611         separate gnulib.mk.
26612
26613 2010-09-04  Bruno Haible  <bruno@clisp.org>
26614
26615         gnulib-tool: Don't talk about CVS any more.
26616         * gnulib-tool (func_usage, func_import): Write "version control"
26617         instead of CVS.
26618
26619 2010-09-04  Jim Meyering  <meyering@redhat.com>
26620
26621         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26622         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26623         false positives (whose names may be ill-chosen) when searching
26624         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26625         would cause a false-positive.
26626
26627         avoid coreutils "make distcheck" failure
26628         Coreutils tests with an absolute build directory name that contains
26629         a space.  Not quoting this directory name caused a failure.
26630         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26631         * tests/test-vc-list-files-cvs.sh: Likewise.
26632
26633 2010-09-04  Bruno Haible  <bruno@clisp.org>
26634
26635         gnulib-tool: Avoid error when run in a package without Makefile.am.
26636         * gnulib-tool: When collecting the m4dirs in a package that does not
26637         have a Makefile.am, eliminate those directories that contain no
26638         gnulib-cache.m4. Fix expression that counts these directories.
26639
26640 2010-09-04  Bruno Haible  <bruno@clisp.org>
26641
26642         update-copyright test: Improve output when perl is missing or too old.
26643         * tests/test-update-copyright.sh: Move test of Perl version down after
26644         the test whether Perl exists. Provide an explanation relating Perl's
26645         error message to Automake's SKIP: message.
26646
26647 2010-09-04  Bruno Haible  <bruno@clisp.org>
26648
26649         Don't augment PATH in TESTS_ENVIRONMENT.
26650         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26651         set abs_aux_dir instead of augmenting PATH.
26652         * modules/vc-list-files-tests (Makefile.am): Likewise.
26653         * tests/test-update-copyright.sh: Augment PATH here.
26654         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26655         path_prepend_.
26656         * tests/test-vc-list-files-git.sh: Likewise.
26657
26658 2010-09-04  Jim Meyering  <meyering@redhat.com>
26659
26660         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26661         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26662
26663 2010-09-04  Bruno Haible  <bruno@clisp.org>
26664
26665         strdup: Fix compilation error in C++ mode.
26666         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26667         the macro.
26668
26669 2010-09-04  Bruno Haible  <bruno@clisp.org>
26670
26671         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26672         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26673         macro into a function.
26674         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26675
26676 2010-09-04  Bruno Haible  <bruno@clisp.org>
26677
26678         Set PATH_SEPARATOR the same way autoconf does.
26679         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26680         the value of PATH_SEPARATOR the same way autoconf-generated configure
26681         scripts do.
26682         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26683         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26684
26685 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26686
26687         Set PATH_SEPARATOR the same way autoconf does.
26688         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26689         the same way autoconf-generated configure scripts do.
26690         * posix-modules: Likewise.
26691
26692 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26693
26694         hash: fix safe_hasher const typo
26695         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26696         const; otherwise, there is a type error later.
26697
26698 2010-09-02  Jim Meyering  <meyering@redhat.com>
26699
26700         test-update-copyright.sh: require perl 5.8.0
26701         * tests/test-update-copyright.sh: Require 5.8.0,
26702         which Tom G. Christensen has confirmed is adequate,
26703         while 5.6.1 is not.
26704
26705 2010-09-02  Eric Blake  <eblake@redhat.com>
26706
26707         tests: init.sh improvements for re-exec'ing with zsh
26708         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26709         -vx through shell re-exec.
26710         Reported by Tom G. Christensen.
26711
26712         wctype: fix typo in previous commit
26713         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26714         Reported by Ludovic Courtès.
26715
26716 2010-09-02  Jim Meyering  <meyering@redhat.com>
26717
26718         test-update-copyright.sh: skip test if Perl is too old
26719         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26720         Reported by Tom G. Christensen.
26721
26722 2010-09-02  Bruno Haible  <bruno@clisp.org>
26723
26724         wctype: Avoid compilation error on IRIX 6.5.30.
26725         * lib/wctype.in.h (iswblank): Declare with a replacement if
26726         REPLACE_ISWBLANK is set.
26727         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26728         declared. Set REPLACE_ISWBLANK.
26729         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26730         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26731         * doc/posix-headers/wctype.texi: Likewise.
26732         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26733
26734 2010-09-01  Bruno Haible  <bruno@clisp.org>
26735
26736         New module 'socketlib'.
26737         * modules/socketlib: New file.
26738         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26739         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26740         * modules/sockets (Depends-on): Add socketlib.
26741         Suggested by Sam Steingold <sds@gnu.org>.
26742
26743 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26744
26745         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26746
26747         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26748         when one needs search access to a directory but not read access.
26749         On systems where it is available, it works in some cases where
26750         O_RDONLY does not, namely on directories that are searchable but
26751         not readable, and which need only to be searchable.  If O_SEARCH
26752         is not available, fall back to the traditional method of using
26753         O_RDONLY.
26754
26755         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26756         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26757         when opening a directory that needs only to be searchable.
26758         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26759         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26760         * lib/openat-proc.c (openat_proc_name): Likewise.
26761         * lib/openat.c (openat_needs_fchdir): Likewise.
26762         * lib/save-cwd.c (save_cwd): Likewise.
26763         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26764
26765 2010-08-28  Bruno Haible  <bruno@clisp.org>
26766
26767         New module 'host-cpu-c-abi'.
26768         * modules/host-cpu-c-abi: New file.
26769         * m4/host-cpu-c-abi.m4: New file, based on part of
26770         clisp/src/m4/general.m4.
26771         Requested by Sam Steingold <sds@gnu.org>.
26772
26773 2010-08-31  Eric Blake  <eblake@redhat.com>
26774         and Jim Meyering  <meyering@redhat.com>
26775
26776         hash: factor, and guard against misbehaving hasher function
26777         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26778         of table->hasher's return value.  Also protect against a hash value
26779         so large that adding it to table->bucket results in a NULL pointer.
26780         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26781         Use it in place of open-coded check-and-abort.
26782
26783 2010-08-30  Bruno Haible  <bruno@clisp.org>
26784
26785         hash: silence spurious clang warning
26786         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26787         Reported by Eric Blake.
26788
26789 2010-08-30  Eric Blake  <eblake@redhat.com>
26790
26791         strstr, memmem, strcasestr: avoid leaked shell message
26792         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26793         FreeBSD.
26794         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26795         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26796
26797         tests: silence clang warning
26798         * tests/test-malloca.c (do_allocation): Avoid dead store.
26799
26800 2010-08-29  Bruno Haible  <bruno@clisp.org>
26801
26802         gettext: Fix recent mistake.
26803         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26804
26805 2010-08-29  Bruno Haible  <bruno@clisp.org>
26806
26807         selinux-h: Offer a --without-selinux option.
26808         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26809         --without-selinux was specified, skip all tests and define
26810         HAVE_SELINUX_SELINUX_H to 0.
26811         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26812         set LIB_SELINUX to empty.
26813         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26814         gl_LIBSELINUX. If --without-selinux was specified, replace
26815         selinux/context.h.
26816         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26817
26818 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26819             Bruno Haible  <bruno@clisp.org>
26820
26821         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26822         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26823         of HAVE_REALLOC.
26824         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26825         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26826         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26827         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26828
26829 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26830             Bruno Haible  <bruno@clisp.org>
26831
26832         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26833         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26834         HAVE_CALLOC.
26835         * lib/xmalloc.c: Update accordingly.
26836         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26837         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26838         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26839
26840 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26841             Bruno Haible  <bruno@clisp.org>
26842
26843         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26844         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26845         HAVE_MALLOC.
26846         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26847         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26848         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26849
26850 2010-08-29  Bruno Haible  <bruno@clisp.org>
26851
26852         Update modules list.
26853         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26854         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26855         (String handling <string.h>): Add astrxfrm.
26856         (File system functions): Add readlinkat.
26857
26858 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26859
26860         Tests for module 'realloc-gnu'.
26861         * modules/realloc-gnu-tests: New file.
26862         * tests/test-realloc-gnu.c: New file.
26863
26864         Tests for module 'calloc-gnu'.
26865         * modules/calloc-gnu-tests: New file.
26866         * tests/test-calloc-gnu.c: New file.
26867
26868         Tests for module 'malloc-gnu'.
26869         * modules/malloc-gnu-tests: New file.
26870         * tests/test-malloc-gnu.c: New file.
26871
26872 2010-08-28  Bruno Haible  <bruno@clisp.org>
26873
26874         Rename module 'realloc' -> 'realloc-gnu'.
26875         * modules/realloc-gnu: New file, copied from modules/realloc.
26876         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26877         obsolete.
26878         * modules/mgetgroups (Depends-on): Update.
26879         * doc/posix-functions/realloc.texi: Update.
26880         * NEWS: Mention the change.
26881
26882         Rename module 'calloc' -> 'calloc-gnu'.
26883         * modules/calloc-gnu: New file, copied from modules/calloc.
26884         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26885         obsolete.
26886         * doc/posix-functions/calloc.texi: Update.
26887         * NEWS: Mention the change.
26888
26889         Rename module 'malloc' -> 'malloc-gnu'.
26890         * modules/malloc-gnu: New file, copied from modules/malloc.
26891         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26892         obsolete.
26893         * modules/argp (Depends-on): Update.
26894         * modules/regex (Depends-on): Update.
26895         * doc/posix-functions/malloc.texi: Update.
26896         * NEWS: Mention the change.
26897
26898 2010-08-28  Eric Blake  <eblake@redhat.com>
26899
26900         pread, pwrite: add missing dependency
26901         * modules/pread (Depends-on): Add extensions.
26902         * modules/pwrite (Depends-on): Likewise.
26903
26904 2010-08-28  Bruno Haible  <bruno@clisp.org>
26905
26906         unistr/u*-strchr: Fix tests dependencies.
26907         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26908         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26909         Reported by Ian Beckwith <ianb@erislabs.net>.
26910
26911 2010-08-28  Bruno Haible  <bruno@clisp.org>
26912
26913         read-file: Don't occupy too much unused memory.
26914         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26915
26916 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26917             Eric Blake  <eblake@redhat.com>
26918             Bruno Haible  <bruno@clisp.org>
26919
26920         read-file: Avoid memory reallocations with regular files.
26921         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26922         (fread_file): With regular files, use the remaining length as the
26923         initial buffer size.  Check against overflow.
26924         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26925         sys_stat.
26926
26927 2010-08-28  Bruno Haible  <bruno@clisp.org>
26928
26929         ftello: Relax license.
26930         * modules/ftello (License): Relax to LGPLv2+.
26931         Reported by Eric Blake.
26932
26933 2010-08-28  Bruno Haible  <bruno@clisp.org>
26934
26935         Avoid relocwrapper link errors due to gnulib replacement functions.
26936         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26937         function.
26938         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26939
26940 2010-08-28  Bruno Haible  <bruno@clisp.org>
26941
26942         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26943         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26944         defined.
26945         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26946         Suggested by Eric Blake.
26947
26948 2010-08-28  Bruno Haible  <bruno@clisp.org>
26949
26950         sys_socket, netdb: Ensure socklen_t gets defined.
26951         * modules/sys_socket (Depends-on): Add socklen.
26952         * modules/netdb (Depends-on): Likewise.
26953         * modules/getaddrinfo (Depends-on): Remove socklen.
26954         * modules/getsockopt (Depends-on): Likewise.
26955         * modules/setsockopt (Depends-on): Likewise.
26956         * tests/test-sys_socket.c: Check that socklen_t is defined.
26957         * tests/test-netdb.c: Likewise.
26958         * m4/socklen.m4: Update comments.
26959         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26960
26961 2010-08-27  Eric Blake  <eblake@redhat.com>
26962
26963         login_tty: add missing dependency
26964         * modules/login_tty (Depends-on): Add pty.
26965
26966 2010-08-26  Eric Blake  <eblake@redhat.com>
26967
26968         lib-symbol-versions: fix m4 quoting
26969         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26970         format for AC_LINK_IFELSE.
26971
26972         glob: fix compile test
26973         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26974
26975         btowc: fix missing file
26976         * modules/btowc (Files): Also ship locale-fr.m4.
26977
26978         lseek: fix link test
26979         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26980         AC_LINK_IFELSE.
26981
26982         include_next: silence autoconf 2.68 warning
26983         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26984         AC_COMPILE_IFELSE as special.
26985         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26986         autoconf < 2.68.
26987
26988         acl: fix compilation test
26989         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26990         AC_COMPILE_IFELSE.
26991
26992 2010-08-26  Bruno Haible  <bruno@clisp.org>
26993
26994         Modernize AC_TRY_RUN invocations.
26995         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26996         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26997         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26998         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26999         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
27000         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27001         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27002         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27003         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27004         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27005         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27006         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27007         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27008         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27009         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27010         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
27011         gl_MBRLEN_NUL_RETVAL): Likewise.
27012         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
27013         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
27014         Likewise.
27015         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27016         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27017         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27018         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27019         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
27020         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
27021         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
27022         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
27023         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
27024         Likewise.
27025         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
27026         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
27027         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27028         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27029         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27030         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27031         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27032         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
27033         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
27034         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27035
27036 2010-08-26  Bruno Haible  <bruno@clisp.org>
27037
27038         Modernize AC_TRY_LINK invocations.
27039         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
27040         AC_TRY_LINK.
27041         * m4/argp.m4 (gl_ARGP): Likewise.
27042         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
27043         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
27044         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27045         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27046         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27047         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
27048         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
27049         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
27050         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27051         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
27052         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27053         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
27054         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
27055         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
27056         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
27057         * m4/hostent.m4 (gl_HOSTENT): Likewise.
27058         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27059         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
27060         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
27061         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
27062         Likewise.
27063         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
27064         Likewise.
27065         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
27066         Likewise.
27067         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
27068         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
27069         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
27070         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
27071         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
27072         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27073         * m4/servent.m4 (gl_SERVENT): Likewise.
27074         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
27075         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
27076         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
27077         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
27078         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
27079         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
27080         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27081         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27082         * modules/tsearch-tests (configure.ac): Likewise.
27083
27084 2010-08-26  Bruno Haible  <bruno@clisp.org>
27085
27086         Modernize AC_TRY_COMPILE invocations.
27087         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
27088         AC_TRY_COMPILE.
27089         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
27090         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
27091         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
27092         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
27093         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
27094         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
27095         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27096         * m4/lock.m4 (gl_LOCK): Likewise.
27097         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
27098         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
27099         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
27100         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27101         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
27102         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
27103         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
27104         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
27105         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
27106         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
27107         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
27108         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
27109         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
27110         extraneous semicolon.
27111
27112 2010-08-26  Jim Meyering  <meyering@redhat.com>
27113
27114         stat-time: relax license LGPL
27115         * modules/stat-time (License): Change from GPL to LGPL,
27116         with consent from all contributors, for use in libguile.
27117         Requested by Ludovic Courtès.
27118
27119 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
27120
27121         poll: return immediately on POLLHUP.
27122         * lib/poll.c (poll): Always set timeout before wait_timeout is
27123         computed.
27124
27125 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27126
27127         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
27128         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
27129         rmdir ("dir/.//"), unlinkat.
27130
27131 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27132
27133         stdbool: avoid spurious failure with modern xlc
27134         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27135
27136 2010-08-24  Bruno Haible  <bruno@clisp.org>
27137
27138         getloadavg: simplify code
27139         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
27140         gl_have_func. Update comments.
27141
27142 2010-08-24  Eric Blake  <eblake@redhat.com>
27143
27144         getloadavg: don't define SVR4 on cygwin
27145         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
27146         only define SVR4 when -lkvm is required.
27147         Reported by Yaakov Selkowitz.
27148
27149 2010-08-24  Bruno Haible  <bruno@clisp.org>
27150
27151         priv-set: fix comment
27152         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
27153
27154 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27155
27156         priv-set: fix comments
27157         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
27158         to match code, as suggested by David Bartley in:
27159         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
27160
27161 2010-08-23  Eric Blake  <eblake@redhat.com>
27162
27163         stdbool: avoid rejecting clang
27164         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
27165         * tests/test-stdbool.c: Enable more tests if using the system
27166         <stdbool.h> instead of the gnulib replacement.
27167         (main): Move xlc bug test to a runtime test for all compilers.
27168         Reported by Anders Kaseorg.
27169
27170         argz: fix shell quoting issue
27171         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
27172         Reported by Charles Wilson.
27173
27174 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
27175             Erik Faye-Lund <kusmabite@gmail.com>
27176
27177         poll, select: handle ERROR_BROKEN_PIPE.
27178         * lib/poll.c (win32_compute_revents): Return POLLHUP when
27179         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27180         * lib/select.c (win32_compute_revents): Do not mark a pipe
27181         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
27182
27183 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
27184
27185         fts: allow compilation with C++
27186         * lib/fts_.h: Specify extern "C" linkage with C++.
27187
27188 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27189
27190         Fix gnulib-tool sed script de-commentation for AIX sed.
27191         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
27192         sed.
27193
27194 2010-08-17  Eric Blake  <eblake@redhat.com>
27195
27196         test-stddef: test for (some) offsetof bugs
27197         * tests/test-stddef.c: Enhance test to ensure correct type of
27198         offsetof.
27199         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
27200         that we are not fixing at this time.
27201
27202 2010-08-15  Bruno Haible  <bruno@clisp.org>
27203
27204         stpncpy: Allow stpncpy to be defined as a macro.
27205         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
27206         if it's already correctly declared.
27207         * lib/string.in.h (stpncpy): Undefine before redefining.
27208         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
27209
27210 2010-08-14  Bruno Haible  <bruno@clisp.org>
27211
27212         Rename module 'memxfrm' to 'amemxfrm'.
27213         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
27214         (amemxfrm): Renamed from memxfrm.
27215         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
27216         (amemxfrm): Renamed from memxfrm.
27217         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
27218         * NEWS: Mention the change.
27219         * MODULES.html.sh (String handling <string.h>): Update.
27220         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
27221         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
27222         * lib/unicase/u16-casexfrm.c: Likewise.
27223         * lib/unicase/u32-casexfrm.c: Likewise.
27224         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
27225         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
27226         * lib/uninorm/u16-normxfrm.c: Likewise.
27227         * lib/uninorm/u32-normxfrm.c: Likewise.
27228         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
27229         memxfrm.
27230         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
27231         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
27232         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
27233         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
27234         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
27235         Suggested by Paul Eggert.
27236
27237 2010-08-14  Bruno Haible  <bruno@clisp.org>
27238
27239         Tests for module 'astrxfrm'.
27240         * modules/astrxfrm-tests: New file.
27241         * tests/test-astrxfrm.c: New file.
27242
27243         New module 'astrxfrm'.
27244         * lib/astrxfrm.h: New file.
27245         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
27246         * modules/astrxfrm: New file.
27247
27248 2010-08-14  Reuben Thomas <rrt@sc3d.org>
27249
27250         regex: Tweak doc.
27251         * doc/regex.texi (Overview): Don't mention regex.c.
27252         (GNU Regular Expression Compiling): Likewise.
27253         (Match-end-of-line Operator): Mention 'not_eol'.
27254
27255 2010-08-14  Brian Gough  <bjg@gnu.org>
27256             Bruno Haible  <bruno@clisp.org>
27257
27258         git-merge-changelog: add doc relating to use with bzr and hg.
27259         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
27260
27261 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
27262
27263         pthread: fix pthread.h creation for srcdir != builddir
27264         * modules/pthread (Makefile.am): Fix the rule to work also in a
27265         non-srcdir build.
27266
27267 2010-08-13  Karl Berry  <karl@gnu.org>
27268
27269         * doc/regex.texi (Predefined Syntaxes): @smallexample.
27270         * doc/posix-*/*: force line break before @url of POSIX
27271         specifications.
27272         Suggested by Werner Lemberg.
27273
27274 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
27275
27276         strtod: fix const diagnostic
27277         * lib/strtod.c (strtod): Don't assign const char * to char *,
27278         as this elicits a warning from GCC when warnings are enabled.
27279
27280 2010-08-10  Pádraig Brady <P@draigbrady.com>
27281         and Eric Blake  <eblake@redhat.com>
27282
27283         copy-acl: ignore ENOTSUP on HP-UX
27284         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
27285         so that it is available for HP-UX.
27286         * lib/copy-acl.c (qcopy_acl): Use it.
27287         Reported by Patrick M. Callahan.
27288
27289 2010-08-10  Eric Blake  <eblake@redhat.com>
27290
27291         open, chown: relax license
27292         * modules/open (License): Change to LGPLv2+, with consent by all
27293         authors, for use in augeas.
27294         * modules/chown (License): Likewise.
27295         * modules/lchown (Likewise): Likewise.
27296         Requested by Adam Stokes.
27297
27298 2010-08-09  Karl Berry  <karl@gnu.org>
27299
27300         * build-aux/ar-lib: new file, import from Automake.
27301         * config/srclist.txt: autocheck for updates.
27302
27303 2010-08-09  Eric Blake  <eblake@redhat.com>
27304
27305         readlinkat: adjust client modules
27306         * modules/areadlinkat (Depends-on): Use readlinkat, not
27307         symlinkat.
27308         * modules/areadlinkat-with-size (Depends-on): Likewise.
27309
27310         mknod: be more vocal about danger of running tests as root
27311         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27312         root, since that is just asking for problems.
27313         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27314
27315         readlinkat: split into its own module
27316         * modules/symlinkat: Split readlinkat...
27317         * modules/readlinkat: ...into separate module.
27318         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27319         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27320         * lib/symlinkat.c (readlinkat): Move...
27321         * lib/readlinkat.c: ...into new file.
27322         * modules/symlinkat-tests: Split readlinkat test...
27323         * modules/readlinkat-tests: ...into separate module.
27324         * tests/test-symlinkat.c: Split...
27325         * tests/test-readlinkat.c: ...into new file.
27326         * NEWS: Document the split.
27327         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27328         * lib/unistd.in.h (readlinkat): Likewise.
27329         Suggested by Bruno Haible.
27330
27331 2010-08-08  Bruno Haible  <bruno@clisp.org>
27332
27333         memxfrm: Speed up.
27334         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27335         that usually only one call to strxfrm is necessary for each string
27336         part.
27337         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27338
27339 2010-08-07  Karl Berry  <karl@gnu.org>
27340
27341         * doc/posix-headers/limits.texi,
27342         * doc/posix-functions/malloc.texi,
27343         * doc/posix-functions/strsignal.texi: missing @item.
27344         * doc/ld-version-script.texi: spurious leading i.
27345         * doc/regex.texi (Interval Operators): no commas inside @var.
27346
27347 2010-08-01  Bruno Haible  <bruno@clisp.org>
27348
27349         Integrate the regex documentation.
27350         * doc/gnulib.texi: Define 'cn' index.
27351         (Regular expressions): New a chapter that includes regex.texi and
27352         regexprops-generic.texi.
27353         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27354         syntax.
27355
27356         Whitespace cleanup.
27357         * doc/regex.texi: Remove trailing spaces.
27358
27359         Add regex documentation.
27360         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27361         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27362         Written by Kathy A. Hargreaves and Karl Berry.
27363
27364 2010-08-01  Bruno Haible  <bruno@clisp.org>
27365
27366         link: Update documentation.
27367         * doc/posix-functions/link.texi: Update regarding Solaris.
27368
27369 2010-07-31  Bruno Haible  <bruno@clisp.org>
27370
27371         Update modules list.
27372         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27373         (String handling <string.h>): Add memcmp2, memxfrm.
27374         (Container data structures): Add xlist, xsublist, xoset.
27375         (Core language properties): Add alignof, unused-parameter.
27376         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27377         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27378         (Unibyte characters <ctype.h>): New section.
27379         (String handling <string.h>): New section.
27380         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27381         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27382         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27383         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27384         tan, tanh, tanl, y0, y1, yn.
27385         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27386         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27387         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27388         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27389         unlockpt, vdprintf, vdprintf-posix.
27390         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27391         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27392         xconcat-filename.
27393         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27394         getdtablesize, pipe2, pipe2-safer.
27395         (Security): New section.
27396         (Networking functions): Add accept4.
27397         (Signal handling): Add sigpipe.
27398         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27399         mbmemcasecoll.
27400         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27401         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27402         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27403         pipe-filter-ii.
27404         (Misc): Add argp-version-etc, login_tty, parse-duration.
27405
27406 2010-07-31  Bruno Haible  <bruno@clisp.org>
27407
27408         Improve doc in MODULES.html.
27409         * modules/linkat (Description): Add the word "function".
27410         * modules/mkfifo (Description): Likewise.
27411         * modules/mknod (Description): Likewise.
27412         * modules/remove (Description): Likewise.
27413         * modules/renameat (Description): Likewise.
27414         * modules/stat (Description): Likewise.
27415         * modules/symlink (Description): Likewise.
27416         * modules/unlink (Description): Likewise.
27417
27418 2010-07-31  Bruno Haible  <bruno@clisp.org>
27419
27420         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27421         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27422         option --enable/disable-c++ instead of --enable/disable-cxx.
27423         * NEWS: Mention the change.
27424
27425 2010-07-31  Bruno Haible  <bruno@clisp.org>
27426
27427         readlink, areadlink: Relax test a bit.
27428         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27429         alternative to ENOTDIR.
27430         * tests/test-areadlink.h (test_areadlink): Likewise.
27431         Reported by Rainer Tammer.
27432
27433 2010-07-31  Bruno Haible  <bruno@clisp.org>
27434
27435         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27436         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27437         character, perform the search using U_STRCHR.
27438         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27439         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27440         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27441         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27442         Suggested by Paolo Bonzini.
27443
27444 2010-07-31  Bruno Haible  <bruno@clisp.org>
27445
27446         unistr/u*-strstr: Fix dependencies.
27447         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27448         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27449         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27450
27451 2010-07-31  Bruno Haible  <bruno@clisp.org>
27452
27453         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27454         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27455         the beginning of the loop.
27456         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27457         cases in 'switch' statement.
27458
27459         unistr/u8-strchr: Fix several bugs.
27460         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27461         the string. When not found, return NULL, not a pointer near the end.
27462
27463         More tests for unistr/u8-strchr.
27464         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27465         that the function does not read past the first occurrence of the byte
27466         being searched.
27467         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27468         * tests/unistr/test-u16-strchr.c (main): New function.
27469         * tests/unistr/test-u32-strchr.c (main): New function.
27470
27471 2010-07-31  Bruno Haible  <bruno@clisp.org>
27472
27473         posix-modules: Ignore backup files of documentation files.
27474         * posix-modules: grep only through files named *.texi.
27475
27476 2010-07-31  Bruno Haible  <bruno@clisp.org>
27477
27478         symlinkat: Fix documentation.
27479         * doc/posix-functions/readlinkat.texi: Fix module name.
27480
27481 2010-07-31  Bruno Haible  <bruno@clisp.org>
27482
27483         fchownat: Replace also when chown has the trailing slash bug.
27484         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27485         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27486         introduced on 2010-04-10.
27487         Reported by Rainer Tammer.
27488
27489 2010-07-31  Bruno Haible  <bruno@clisp.org>
27490
27491         linkat: Work around AIX 7.1 bug.
27492         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27493         whether linkat handles trailing slash correctly. If not, replace linkat
27494         and define LINKAT_TRAILING_SLASH_BUG.
27495         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27496         check whether (fd1,file1) points to a directory if file1 or file2 ends
27497         in a slash. Code taken from lib/link.c.
27498         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27499         Reported by Rainer Tammer.
27500
27501 2010-07-31  Bruno Haible  <bruno@clisp.org>
27502
27503         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27504         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27505         This disables an xlc optimization that was causing wrong test results.
27506         Reported by Rainer Tammer.
27507
27508 2010-07-31  Bruno Haible  <bruno@clisp.org>
27509
27510         iconv: Work around AIX 6.1..7.1 bug.
27511         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27512         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27513         cross-compiling, guess no on all versions of AIX.
27514         Reported by Rainer Tammer.
27515
27516 2010-07-31  Bruno Haible  <bruno@clisp.org>
27517
27518         readlink: Relax test a bit.
27519         * tests/test-readlink.h (test_readlink): Allow different errno value
27520         when readlink is called with a file name that ends in / and refers to
27521         a file.
27522         Suggested by Eric Blake.
27523         Reported by Rainer Tammer.
27524
27525 2010-07-31  Bruno Haible  <bruno@clisp.org>
27526
27527         copysign: Does not require -lm on glibc systems.
27528         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27529         gl_COMMON_DOUBLE_MATHFUNC.
27530         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27531
27532 2010-07-31  Bruno Haible  <bruno@clisp.org>
27533
27534         duplocale: Work around AIX 7.1 bug.
27535         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27536         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27537         * lib/duplocale.c (rpl_duplocale): Update comment.
27538         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27539         Reported by Rainer Tammer.
27540
27541 2010-07-30  Bruno Haible  <bruno@clisp.org>
27542
27543         dirfd: Avoid link error on AIX 7.1.
27544         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27545         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27546         exist, set REPLACE_DIRFD.
27547         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27548         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27549         * doc/posix-functions/dirfd.texi: Update.
27550         Reported by Rainer Tammer.
27551
27552 2010-07-30  Eric Blake  <eblake@redhat.com>
27553
27554         strtod: next round of AIX fixes
27555         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27556         exponent.
27557         * tests/test-strtod.c (main): Enhance tests.
27558         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27559         Reported by Rainer Tammer.
27560
27561         futimens: fix configure check
27562         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27563         Reported by Bruno Haible.
27564
27565 2010-07-30  Bruno Haible  <bruno@clisp.org>
27566
27567         getline: Update regarding AIX.
27568         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27569         Reported by Rainer Tammer.
27570
27571 2010-07-30  Bruno Haible  <bruno@clisp.org>
27572
27573         wcwidth: Drop replacement on AIX 7.
27574         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27575         AIX 7.
27576         Reported by Rainer Tammer.
27577
27578 2010-07-30  Bruno Haible  <bruno@clisp.org>
27579
27580         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27581         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27582         a 'char *'.
27583         Reported by Rainer Tammer.
27584
27585 2010-07-30  Bruno Haible  <bruno@clisp.org>
27586
27587         unlink: Update regarding AIX.
27588         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27589         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27590         Reported by Rainer Tammer.
27591
27592 2010-07-30  Bruno Haible  <bruno@clisp.org>
27593
27594         symlink: Update regarding AIX.
27595         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27596         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27597         Reported by Rainer Tammer.
27598
27599 2010-07-30  Bruno Haible  <bruno@clisp.org>
27600
27601         strndup: Update regarding AIX.
27602         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27603         AIX 7.
27604         Reported by Rainer Tammer.
27605
27606 2010-07-30  Bruno Haible  <bruno@clisp.org>
27607
27608         stat: Update regarding AIX.
27609         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27610         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27611         Reported by Rainer Tammer.
27612
27613 2010-07-30  Bruno Haible  <bruno@clisp.org>
27614
27615         truncl: Fix autoconf test.
27616         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27617         whether truncl works.
27618         Reported by Rainer Tammer.
27619
27620 2010-07-30  Bruno Haible  <bruno@clisp.org>
27621
27622         round: Update regarding AIX.
27623         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27624         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27625         Reported by Rainer Tammer.
27626
27627 2010-07-30  Bruno Haible  <bruno@clisp.org>
27628
27629         rename: Update regarding AIX.
27630         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27631         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27632         Reported by Rainer Tammer.
27633
27634 2010-07-30  Bruno Haible  <bruno@clisp.org>
27635
27636         printf.m4: Update regarding AIX.
27637         * m4/printf.m4: Update comments regarding AIX.
27638         Reported by Rainer Tammer.
27639
27640 2010-07-30  Bruno Haible  <bruno@clisp.org>
27641
27642         iconv: Update regarding AIX.
27643         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27644         AIX 7.
27645         Reported by Rainer Tammer.
27646
27647 2010-07-30  Bruno Haible  <bruno@clisp.org>
27648
27649         getopt: Update regarding AIX.
27650         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27651         no on AIX.
27652         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27653         Reported by Rainer Tammer.
27654
27655 2010-07-30  Bruno Haible  <bruno@clisp.org>
27656
27657         ldexpl; Update regarding AIX.
27658         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27659         on AIX 7.
27660         Reported by Rainer Tammer.
27661
27662 2010-07-30  Bruno Haible  <bruno@clisp.org>
27663
27664         frexpl: Update regarding AIX.
27665         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27666         on AIX 7.
27667         Reported by Rainer Tammer.
27668
27669 2010-07-30  Bruno Haible  <bruno@clisp.org>
27670
27671         open, fopen: Update regarding AIX.
27672         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27673         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27674         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27675         * doc/posix-functions/fopen.texi: Likewise.
27676         Reported by Rainer Tammer.
27677
27678 2010-07-30  Bruno Haible  <bruno@clisp.org>
27679
27680         chown: Update doc regarding AIX.
27681         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27682         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27683         Reported by Rainer Tammer.
27684
27685 2010-07-30  Eric Blake  <eblake@redhat.com>
27686
27687         strtod: fix bug in replacement function on AIX
27688         * lib/strtod.c (strtod): Special case broken "0x" parse in
27689         underlying strtod.
27690         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27691         * doc/posix-functions/strtod.texi (strtod): Likewise.
27692         Reported by Rainer Tammer.
27693
27694 2010-07-30  Bruno Haible  <bruno@clisp.org>
27695
27696         mbrlen: Fix cross-compilation guess for AIX.
27697         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27698         guess. Leftover from 2008-12-22.
27699
27700 2010-07-30  Bruno Haible  <bruno@clisp.org>
27701
27702         mbrtowc: Fix cross-compilation guess for AIX.
27703         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27704         guess. Leftover from 2008-12-21.
27705
27706 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27707
27708         init.sh: work around trap limitation of some shells
27709         * tests/init.sh (setup_): Move exit trap outside of shell function.
27710
27711 2010-07-29  Eric Blake  <eblake@redhat.com>
27712
27713         strtod: aid debugging
27714         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27715         understanding why strtod is rejected.
27716
27717 2010-07-28  Bruno Haible  <bruno@clisp.org>
27718
27719         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27720         * lib/unistr/u8-chr.c: Include <string.h>.
27721         * tests/unistr/test-u8-chr.c: Likewise.
27722         * tests/unistr/test-u16-chr.c: Likewise.
27723         * tests/unistr/test-u32-chr.c: Likewise.
27724         * tests/unistr/test-u8-strchr.c: Likewise.
27725         * tests/unistr/test-u16-strchr.c: Likewise.
27726         * tests/unistr/test-u32-strchr.c: Likewise.
27727         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27728         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27729         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27730         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27731
27732 2010-07-28  Bruno Haible  <bruno@clisp.org>
27733
27734         Use spaces for indentation, not tabs.
27735         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27736
27737 2010-07-27  Bruno Haible  <bruno@clisp.org>
27738
27739         mbspcasecmp: Fix function specification.
27740         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27741         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27742         Reported by Eric Blake <eblake@redhat.com>.
27743
27744 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27745
27746         timespec: use cast and not conditional, as truncation isn't possible
27747         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27748         instead of a conditional.  Comment about the situation in more detail.
27749         This undoes most of the 2009-10-29 patch.
27750
27751 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27752
27753         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27754         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27755         * lib/unistr/u8-strchr.c: Likewise.
27756         * modules/unistr/u8-chr: Depend on memchr.
27757
27758         unistr/u*-strchr: add tests
27759         * modules/unistr/u8-strchr-tests: New file.
27760         * modules/unistr/u16-strchr-tests: New file.
27761         * modules/unistr/u32-strchr-tests: New file.
27762         * tests/unistr/test-strchr.h: New file.
27763         * tests/unistr/test-u8-strchr.c: New file.
27764         * tests/unistr/test-u16-strchr.c: New file.
27765         * tests/unistr/test-u32-strchr.c: New file.
27766
27767         unistr/u*-chr: test multibyte sequences more
27768         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27769         test vector.
27770         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27771         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27772         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27773
27774         unistr/u*-chr: test multibyte sequences
27775         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27776
27777         unistr/u*-chr: prepare for multibyte tests
27778         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27779         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27780         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27781         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27782         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27783         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27784
27785 2010-07-18  Bruno Haible  <bruno@clisp.org>
27786
27787         unistr/u8-strchr: Optimize non-ASCII argument case.
27788         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27789         because the first byte often matches anyway.
27790         Reported by Pádraig Brady <P@draigbrady.com>.
27791
27792 2010-07-15  Karl Berry  <karl@gnu.org>
27793
27794         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27795
27796 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27797
27798         getcwd: on Solaris, work better if ancestors are inaccessible
27799         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27800         buffer and size, try again with a large buffer.  This works better
27801         on Solaris, since its getcwd succeeds even if the path to the root
27802         is inaccessible, and this is helpful in common cases such as .zfs
27803         hidden directories.  Problem reported by J Chapman Flack in
27804         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27805         Use system getcwd if it's declared, not merely if it's partly
27806         working; use the partly-working test only to avoid needless effort
27807         if the system getcwd fails.
27808         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27809         comment that was already obsolete and is now even more obsolete.
27810         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27811         now might call strdup.
27812
27813 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27814
27815         pthread: Add enough so that coreutils/src/sort.c compiles.
27816         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27817         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27818         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27819         Include <sys/types.h>, in case it defines pthread_t.
27820         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27821         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27822         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27823         (pthread_rwlockattr_t, pthread_spinlock_t):
27824         New typedefs, if HAVE_PTHREAD_T is not defined.
27825         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27826         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27827         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27828         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27829         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27830         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27831         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27832         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27833         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27834         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27835         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27836         New macros.
27837         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27838         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27839         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27840         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27841         (pthread_spin_unlock): New dummy functions.
27842         (pthread_create): Return EAGAIN; don't set errno.
27843         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27844         require AC_C_INLINE.
27845         * modules/pthread (Depends-on): Add sched, time.
27846         (pthread.h): Use AM_V_GEN.
27847
27848 2010-07-13  Bruno Haible  <bruno@clisp.org>
27849
27850         striconveh: Don't malloc memory if the result buffer is sufficient.
27851         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27852         buffer if its size is sufficient.
27853         Reported by Ludovic Courtès <ludo@gnu.org>.
27854
27855 2010-07-13  Bruno Haible  <bruno@clisp.org>
27856
27857         strtod: Add safety check.
27858         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27859
27860 2010-07-12  Bruno Haible  <bruno@clisp.org>
27861
27862         Unify tests that set gl_cv_func_ldexpl_no_libm.
27863         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27864         gl_FUNC_LDEXPL.
27865         (gl_FUNC_LDEXPL): Invoke it.
27866         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27867
27868 2010-07-12  Bruno Haible  <bruno@clisp.org>
27869
27870         Unify tests that set gl_cv_func_ldexp_no_libm.
27871         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27872         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27873         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27874         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27875         * modules/strtod (Files): Add m4/ldexp.m4.
27876
27877 2010-07-12  Bruno Haible  <bruno@clisp.org>
27878
27879         Unify tests that set gl_cv_func_frexpl_no_libm.
27880         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27881         gl_FUNC_FREXPL_NO_LIBM.
27882         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27883         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27884
27885 2010-07-12  Bruno Haible  <bruno@clisp.org>
27886
27887         Unify tests that set gl_cv_func_frexp_no_libm.
27888         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27889         gl_FUNC_FREXP_NO_LIBM.
27890         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27891         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27892
27893 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27894
27895         memcoll: clarify sizes versus lengths, document better, and tweak perf
27896         * lib/memcoll.c (strcoll_loop, memcoll0):
27897         Improve quality of descriptive comments.  Name variables
27898         consistently as to whether they are lengths (which do not include
27899         terminating null) versus sizes (which do).
27900         * lib/xmemcoll.c (xmemcoll0): Likewise.
27901         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27902         returned when s1size == 0; this is easier to compile and saves
27903         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27904
27905 2010-07-12  Bruno Haible  <bruno@clisp.org>
27906
27907         Tests for module '_Exit'.
27908         * modules/_Exit-tests: New file.
27909         * tests/test-_Exit.sh: New file.
27910         * tests/test-_Exit.c: New file.
27911
27912         New module '_Exit'.
27913         * lib/stdlib.in.h (__attribute__): New macro.
27914         (_Exit): New declaration.
27915         * lib/_Exit.c: New file.
27916         * m4/_Exit.m4: New file.
27917         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27918         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27919         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27920         * modules/_Exit: New file.
27921         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27922         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27923
27924 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27925
27926         strtod: make it more-accurate typically, and don't require libm
27927         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27928         Include limits.h.  Don't include string.h.
27929         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27930         (locale_isspace): New function, so that no casts are needed to
27931         check whether *s is a space.
27932         (ldexp): Provide an unused dummy if not available.
27933         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27934         (strtod): Use them.  This implementation prefers to use the
27935         underlying strtod if available, falling back on our own code
27936         only to fix known bugs.  This is more likely to produce an
27937         accurate result.  Also, it avoids the use of libm functions.
27938         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27939         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27940         was absent, but it caused a test failure with coreutils.
27941         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27942         with libm.
27943         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27944         * modules/strtod-tests (Makefile.am): Likewise.
27945
27946 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27947             Bruno Haible  <bruno@clisp.org>
27948
27949         unistr/u8-strchr: Optimize ASCII argument case.
27950         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27951
27952 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27953
27954         (x)memcoll: minor tweaks
27955         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27956         is after the type that it qualifies.
27957         (memcoll0): Likewise.
27958         * lib/memcoll.h (memcoll0): Likewise.
27959         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27960         * lib/xmemcoll.h (xmemcoll0): Likewise.
27961         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27962         differs from memcoll in that the NUL byte is part of the argument.
27963         Omit the abort-checks, as performance is a real issue here.  Plus,
27964         the checks were wrong anyway (an off-by-one error).  Omit local
27965         variable 'diff', as it's a bit clearer that way.
27966         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27967         no longer needed.
27968
27969 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27970
27971         (x)memcoll: speedup when input is known to be NUL delimited
27972         * lib/memcoll.c: Include stdlib.
27973         (memcoll0): New function.
27974         (strcoll_loop): New function, refactored for use in both memcoll
27975         and memcoll0.
27976         * lib/memcoll.h (memcoll0): Add prototype.
27977         * lib/xmemcoll.c (xmemcoll0): New function.
27978         (collate_error): New function, refactored for use in both xmemcoll
27979         and xmemcoll0.
27980         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27981         * m4/memcoll.m4: add inline invocation.
27982
27983 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27984
27985         * build-aux/bootstrap: Remove any local translations
27986         from the translation project synchronization directory,
27987         so that local only translations are not distributed.
27988
27989 2010-07-04  Bruno Haible  <bruno@clisp.org>
27990
27991         fsusage: Clarify which code applies to which platforms.
27992         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27993         platform.
27994         * lib/fsusage.c (get_fs_usage): Likewise.
27995
27996 2010-07-04  Bruno Haible  <bruno@clisp.org>
27997
27998         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27999         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
28000         Reported by Martin Lambers <marlam@marlam.de>.
28001
28002 2010-07-04  Jim Meyering  <meyering@redhat.com>
28003
28004         hash: once again explicitly disallow insertion of NULL
28005         * lib/hash.c (hash_insert0): Reinstate just-removed test:
28006         inserting a NULL pointer cannot work with these functions.
28007         Add a comment with details.
28008         This reverts part of the 2010-07-01 commit, 5bef1a35
28009         "hash: extend module to deal with non-pointer keys".
28010
28011 2010-07-01  Bruno Haible  <bruno@clisp.org>
28012
28013         stdbool: Update doc.
28014         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
28015         Info from Christian Weisgerber <naddy@mips.inka.de>.
28016
28017 2010-07-01  Jim Meyering  <meyering@redhat.com>
28018
28019         hash: extend module to deal with non-pointer keys
28020         * lib/hash.c (hash_insert0): New interface, much like hash_insert
28021         but that allows insertion of non-pointer entries.
28022         Do not disallow an ENTRY value of NULL.
28023         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
28024         * lib/hash.h (hash_insert0): Declare.
28025
28026 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28027
28028         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
28029         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
28030         not present (i.e. with autoconf 2.59 and when using gettextize, not
28031         gnulib), require AC_GNU_SOURCE instead.
28032
28033 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
28034
28035         idpriv-drop: Fix tests.
28036         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
28037         not to the test-idpriv-droptemp program.
28038
28039 2010-06-29  Bruno Haible  <bruno@clisp.org>
28040
28041         string: Fix syntax error with g++ 2.96.
28042         * lib/string.in.h (__pure__): Remove definition.
28043         (_GL_ATTRIBUTE_PURE): New macro.
28044         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
28045         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
28046         Reported by Christian Weisgerber <naddy@mips.inka.de>.
28047
28048 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
28049
28050         unitypes: Fix bug introduced on 2010-05-18.
28051         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
28052
28053 2010-06-22  Eric Blake  <eblake@redhat.com>
28054
28055         memmem: slight optimization
28056         * lib/str-two-way.h (critical_factorization): Update comments.
28057         Reduce work during factorization phase.
28058         Reported by Carlos Bueno <carlos@bueno.org>.
28059
28060 2010-06-21  Bruno Haible  <bruno@clisp.org>
28061
28062         Fix HAVE_CALLOC_POSIX misnomer.
28063         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
28064         !HAVE_CALLOC_POSIX.
28065         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
28066         HAVE_CALLOC_POSIX.
28067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
28068         instead of HAVE_CALLOC_POSIX.
28069         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
28070         HAVE_CALLOC_POSIX.
28071
28072         Use modern idiom for calloc() replacement.
28073         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
28074         AC_FUNC_CALLOC.
28075         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
28076         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
28077         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28078         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
28079         (gl_REPLACE_CALLOC): New macro.
28080
28081 2010-06-21  Bruno Haible  <bruno@clisp.org>
28082
28083         Fix HAVE_REALLOC_POSIX misnomer.
28084         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
28085         !HAVE_REALLOC_POSIX.
28086         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
28087         HAVE_REALLOC_POSIX.
28088         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
28089         instead of HAVE_REALLOC_POSIX.
28090         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
28091         HAVE_REALLOC_POSIX.
28092
28093         Use modern idiom for realloc() replacement.
28094         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
28095         AC_FUNC_REALLOC.
28096         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
28097         Autoconf's AC_FUNC_REALLOC.
28098         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28099         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
28100         (gl_REPLACE_REALLOC): New macro.
28101         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28102
28103 2010-06-21  Bruno Haible  <bruno@clisp.org>
28104
28105         Fix HAVE_MALLOC_POSIX misnomer.
28106         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
28107         !HAVE_MALLOC_POSIX.
28108         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
28109         HAVE_MALLOC_POSIX.
28110         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
28111         instead of HAVE_MALLOC_POSIX.
28112         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
28113         HAVE_MALLOC_POSIX.
28114
28115         Use modern idiom for malloc() replacement.
28116         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
28117         AC_FUNC_MALLOC.
28118         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
28119         Autoconf's AC_FUNC_MALLOC.
28120         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
28121         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
28122         (gl_REPLACE_MALLOC): New macro.
28123         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
28124
28125 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
28126
28127         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
28128         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
28129         This macro takes 3 arguments, not 4.
28130
28131 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
28132
28133         ipv6: fix detection under mingw
28134         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
28135         in6_addr.
28136
28137 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
28138
28139         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
28140         that strtod() works when cross-compiling to a glibc version known
28141         to work.
28142
28143 2010-06-15  Bruno Haible  <bruno@clisp.org>
28144
28145         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
28146
28147 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
28148
28149         select: Correct timeout.
28150         * lib/select.c (rpl_select): Compute wait_timeout correctly.
28151
28152 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28153
28154         git-version-gen: init shell var to avoid env var influence
28155         * build-aux/git-version-gen (v): Init shell var to empty.
28156
28157 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
28158
28159         priv-set: Don't assume that priv.h exists merely because getppriv does.
28160         See Jan Andersen's bug report about AIX 5L in
28161         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
28162         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
28163         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
28164         * lib/priv-set.h: Likewise.
28165         * tests/test-priv-set.c: Likewise.
28166
28167 2010-06-13  Bruno Haible  <bruno@clisp.org>
28168
28169         relocatable: Make it easier to test whether to install wrappers.
28170         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
28171         RELOCATABLE_VIA_WRAPPER.
28172
28173 2010-06-13  Bruno Haible  <bruno@clisp.org>
28174
28175         gnulib-tool: Display specified modules and dependencies differently.
28176         * gnulib-tool (func_show_module_list): New function.
28177         (func_import, func_create_testdir): Invoke it.
28178         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
28179
28180 2010-06-13  Bruno Haible  <bruno@clisp.org>
28181
28182         gnulib-tool: Align code of func_import and func_create_testdir.
28183         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
28184         specified_modules.
28185
28186 2010-06-12  Jim Meyering  <meyering@redhat.com>
28187
28188         test-inttostr: avoid spurious failure on Solaris 9
28189         * tests/test-inttostr.c (main): Skip the test when snprintf fails
28190         to accept "%ju".  Reported by Bruno Haible.
28191
28192 2010-06-11  Jim Meyering  <meyering@redhat.com>
28193
28194         test-sys_socket: mark variables as used more readably
28195         * tests/test-sys_socket.c (main): Mark otherwise unused variables
28196         as "used" explicitly via (void) statement casts.  This is more
28197         readable than using them in an artificial return expression.
28198         Suggestion from Bruno Haible.
28199
28200 2010-06-11  Bruno Haible  <bruno@clisp.org>
28201
28202         Avoid some more warnings from "gcc -Wwrite-strings".
28203         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
28204         to 'const char *'.
28205         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
28206         * tests/test-c-strcasestr.c (main): Likewise.
28207         * tests/test-mbscasestr1.c (main): Likewise.
28208         * tests/test-mbscasestr2.c (main): Likewise.
28209         * tests/test-memmem.c (main): Likewise.
28210         * tests/test-strstr.c (main): Likewise.
28211         * tests/test-strcasestr.c (main): Likewise.
28212
28213 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28214
28215         init.sh: change framework_failure_ to fail with status 99, not 1
28216         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
28217         automake's parallel-tests rule that this is an unexpected failure,
28218         even if the test is listed in XFAIL_TESTS.
28219
28220 2010-06-11  Jim Meyering  <meyering@redhat.com>
28221
28222         test-inttostr: avoid warnings about 4-6KB literal strings
28223         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
28224         Include "macros.h", for its definition of ASSERT.
28225         (CK): s/assert/ASSERT/
28226         * modules/inttostr-tests (Files): Add macros.h.
28227
28228         init.sh: don't use $ME_ or skip_ before they are defined
28229         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
28230         their first uses.  Also hoist their companions: warn_, fail_,
28231         framework_failure_, $stderr_fileno.  Prompted by a patch from
28232         Stefano Lattarini.
28233
28234         test-sys_socket: avoid set-but-not-used warnings from gcc
28235         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
28236         avoid warning about set-but-not-used variables.
28237
28238         test-xvasprintf: avoid 'const' discard warnings
28239         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
28240         "const" when assigning from literal strings.
28241         (test_xasprintf): Add "void" in function argument list to placate
28242         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
28243
28244         tests: avoid compilation warnings in argmatch and exclude tests...
28245         in packages that define ARGMATCH_DIE_DECL, like coreutils.
28246         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
28247         Since it always exits, declare with the "noreturn" attribute.
28248         * tests/test-argmatch.c: Likewise.
28249
28250         tests: avoid 'const' discard warnings in mbsstr tests
28251         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
28252         * tests/test-mbsstr2.c (main): Likewise.
28253
28254         test-verify: avoid warning from gcc's -Wmissing-declarations
28255         * tests/test-verify.c (function): Declare to be static.
28256
28257         test-inttostr.c: include <string.h> for use of strcmp
28258         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
28259
28260         test-linkat: avoid failed assertion on "other" architectures
28261         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
28262         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
28263         sparc: https://bugs.launchpad.net/bugs/591968
28264
28265 2010-06-11  Jim Meyering  <meyering@redhat.com>
28266
28267         printf.m4: avoid autoconf's "Expanded Before Required" warning
28268         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
28269         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
28270         autoconf warning.
28271
28272 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
28273
28274         Replacement header templates are now named with ".in", not "_".
28275         * doc/gnulib-intro.texi: Correct.
28276
28277 2010-06-10  Jim Meyering  <meyering@redhat.com>
28278
28279         inttostr-tests: depend on snprintf, not snprintf-posix
28280         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
28281         snprintf-posix, to avoid this aclocal failure:
28282           missing file gnulib-tests/vasnprintf.c
28283           configure.ac:45: error: expected source file, required through \
28284           AC_LIBSOURCES, not found
28285
28286 2010-06-10  Jim Meyering  <meyering@redhat.com>
28287
28288         inttostr: add a new function, inttostr, and tests
28289         The namesake function was not available.  The existence of the
28290         template file, inttostr.c makes its addition nontrivial.
28291         * lib/anytostr.c: Rename from inttostr.c.
28292         (anytostr): Rename from inttostr.
28293         * lib/inttostr.c: New file.
28294         * modules/inttostr (Files): Add anytostr.c.
28295         (Makefile.am): Set lib_SOURCES instead of ...
28296         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
28297         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
28298         * lib/offtostr.c: Likewise.
28299         * lib/uinttostr.c: Likewise.
28300         * lib/umaxtostr.c: Likewise.
28301         * modules/inttostr-tests: New file.
28302         * tests/test-inttostr.c: New file.  Test these functions.
28303
28304 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
28305             Bruno Haible  <bruno@clisp.org>
28306
28307         Add "Extending Gnulib" chapter to manual.
28308         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
28309         chapter.
28310         (Extending Gnulib): New chapter.
28311         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28312         chapter.
28313
28314 2010-06-09  Bruno Haible  <bruno@clisp.org>
28315
28316         Avoid relocwrapper link errors due to gnulib replacement functions.
28317         * lib/areadlink.c: Use the system's malloc, realloc functions.
28318         (areadlink): Set errno to ENOMEM explicitly.
28319         * modules/areadlink (Depends-on): Remove malloc-posix.
28320         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28321
28322 2010-06-09  Bruno Haible  <bruno@clisp.org>
28323
28324         Avoid relocwrapper link errors due to gnulib replacement functions.
28325         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28326         * lib/malloca.c: Likewise.
28327         * lib/relocatable.c: Likewise.
28328         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28329         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28330         * lib/setenv.c: Use the system's malloc, realloc functions.
28331         * lib/strerror.c: Use the system's sprintf function.
28332         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28333
28334 2010-06-04  Bruno Haible  <bruno@clisp.org>
28335
28336         Prefer documented low-level autoconf macro names.
28337         * m4/lib-link.m4: Use m4_translit instead of translit.
28338         * m4/environ.m4: Likewise.
28339         * m4/mathfunc.m4: Likewise.
28340         * m4/onceonly.m4: Likewise.
28341         * m4/stdint.m4: Likewise.
28342         Suggested by Eric Blake.
28343
28344 2010-06-04  Martin Lambers  <marlam@marlam.de>
28345             Bruno Haible  <bruno@clisp.org>
28346
28347         havelib: Allow library names with '+' characters.
28348         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28349         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28350
28351 2010-06-09  Bruno Haible  <bruno@clisp.org>
28352
28353         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28354         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28355         realloc failed.
28356
28357 2010-06-08  Peter Simons  <simons@cryp.to>
28358
28359         maint.mk: make the news-check rule more configurable
28360         * top/maint.mk (news-check-lines-spec): New variable.
28361         (news-check): Use "sed -n 1,10p" in place of "head".
28362
28363 2010-06-07  Jim Meyering  <meyering@redhat.com>
28364
28365         do-release-commit-and-tag: fix typo in --help
28366         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28367
28368         regex: avoid new dead-code warning with gcc-4.6.0
28369         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28370         if-block containing a while-loop.  It's been unused for at least
28371         5 years.
28372
28373 2010-06-05  Bruno Haible  <bruno@clisp.org>
28374
28375         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28376         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28377
28378 2010-06-04  Bruno Haible  <bruno@clisp.org>
28379
28380         Update to GNU gettext 0.18.1.
28381         * modules/gettext (configure.ac): Require gettext infrastructure from
28382         version 0.18.1.
28383
28384 2010-06-03  Bruno Haible  <bruno@clisp.org>
28385
28386         Don't use AC_LIBOBJ with file names in subdirectories.
28387         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28388         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28389         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28390         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28391         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28392         gl_LIBUNISTRING_LIBSOURCE.
28393         (Makefile.am): Augment lib_SOURCES here, conditionally.
28394         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28395
28396 2010-06-03  Bruno Haible  <bruno@clisp.org>
28397
28398         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28399         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28400         expansion does not end with a newline.
28401         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28402         unnecessary newline.
28403
28404 2010-06-03  Bruno Haible  <bruno@clisp.org>
28405
28406         Reduce dependencies.
28407         * tests/test-quotearg.h: New file, extracted from
28408         tests/test-quotearg.c.
28409         * tests/test-quotearg-simple.c: New file, extracted from
28410         tests/test-quotearg.c.
28411         * tests/test-quotearg.c: Don't include <ctype.h>.
28412         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28413         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28414         use_quote_double_quotes, use_quotearg_colon): Moved to
28415         tests/test-quotearg.h.
28416         (results_g, flag_results, custom_quotes, custom_results): Moved
28417         to tests/test-quotearg-simple.c.
28418         (main): Moved the part that does not depend on gettext to
28419         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28420         performed.
28421         * modules/quotearg-simple: New file.
28422         * modules/quotearg-simple-tests: New file.
28423         * modules/quotearg (Depends-on): Add quotearg-simple.
28424         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28425         (Files): Add tests/test-quotearg.h.
28426         Reported by Paolo Bonzini.
28427
28428 2010-06-03  Bruno Haible  <bruno@clisp.org>
28429
28430         Reduce dependencies.
28431         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28432
28433 2010-06-03  Bruno Haible  <bruno@clisp.org>
28434
28435         time: Undefine more broken macros.
28436         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28437         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28438         Reported by Eric Blake.
28439
28440 2010-06-03  Bruno Haible  <bruno@clisp.org>
28441
28442         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28443         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28444         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28445         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28446         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28447         Reported by Ludovic Courtès <ludo@gnu.org>.
28448
28449 2010-06-02  Eric Blake  <eblake@redhat.com>
28450
28451         time: work with mingw + pthreads-win32 library
28452         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28453         if timespec is defined only in pthread.h.
28454         * modules/time (Makefile.am): Substitute it.
28455         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28456         <pthread.h>, when needed.
28457         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28458         from the library.
28459
28460 2010-05-31  Bruno Haible  <bruno@clisp.org>
28461
28462         Avoid expanding two macros in the wrong order.
28463         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28464         gl_LIBUNISTRING if it is defined.
28465         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28466         autoconf >= 2.64.
28467         Reported by Ludovic Courtès <ludo@gnu.org>.
28468
28469 2010-05-27  Jim Meyering  <meyering@redhat.com>
28470
28471         maint.mk: also prohibit "#undef" of always-defined symbols
28472         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28473         Allow more than one space before the symbol name.
28474         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28475         the regexp uses alternation.
28476
28477 2010-05-26  Eric Blake  <eblake@redhat.com>
28478
28479         maint.mk: avoid echo -e
28480         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28481         Convert all uses of echo -* to printf.
28482         Reported by Matthias Bolte.
28483
28484 2010-05-25  Bruno Haible  <bruno@clisp.org>
28485
28486         Update to GNU gettext 0.18, part 2.
28487         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28488         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28489
28490 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28491
28492         Add missing include in test-pwrite.c.
28493         * tests/test-pwrite.c: Include string.h, for strcmp.
28494
28495 2010-05-24  Bruno Haible  <bruno@clisp.org>
28496
28497         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28498
28499 2010-05-24  Bruno Haible  <bruno@clisp.org>
28500
28501         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28502         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28503         iconveh_error argument.
28504         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28505         U_STRCONV_TO_LOCALE.
28506         * lib/unistr/u16-strcoll.c: Likewise.
28507         * lib/unistr/u32-strcoll.c: Likewise.
28508         * modules/unistr/u8-strcoll (Depends-on): Add
28509         uniconv/u8-strconv-to-enc, localcharset. Remove
28510         uniconv/u8-strconv-to-locale.
28511         (configure.ac): Bump version number.
28512         * modules/unistr/u16-strcoll (Depends-on): Add
28513         uniconv/u16-strconv-to-enc, localcharset. Remove
28514         uniconv/u16-strconv-to-locale.
28515         (configure.ac): Bump version number.
28516         * modules/unistr/u32-strcoll (Depends-on): Add
28517         uniconv/u32-strconv-to-enc, localcharset. Remove
28518         uniconv/u32-strconv-to-locale.
28519         (configure.ac): Bump version number.
28520
28521 2010-05-24  Bruno Haible  <bruno@clisp.org>
28522
28523         Avoid a test failure on NetBSD 5.0.
28524         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28525         an iconv() bug.
28526
28527 2010-05-24  Bruno Haible  <bruno@clisp.org>
28528
28529         Adjust #include directive style.
28530         * modules/regex (Includes): Recommend to write <regex.h>.
28531
28532 2010-05-24  Bruno Haible  <bruno@clisp.org>
28533
28534         regex: Don't require alloca.
28535         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28536         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28537         only inside if (0).
28538
28539 2010-05-23  Jim Meyering  <meyering@redhat.com>
28540
28541         test-renameat.c: include <sys/stat.h>
28542         * tests/test-renameat.c: Include <sys/stat.h>; required for
28543         definition of S_IS* macros.
28544
28545 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28546
28547         Update maintainer documentation for 'relocatable-prog' module.
28548         * doc/relocatable-maint.texi: Update.
28549         Comments by Bruno Haible.
28550
28551 2010-05-23  Bruno Haible  <bruno@clisp.org>
28552
28553         git-merge-changelog: Enable --split-merged-entry by default.
28554         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28555         (usage): Don't mention this option any more.
28556         Reported by Ralf Wildenhues.
28557
28558 2010-05-23  Jim Meyering  <meyering@redhat.com>
28559
28560         test-pwrite: do not leave behind a test file named "out"
28561         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28562         The trivial-looking use of init.sh is really necessary.
28563         It ensures that the temporary file, "out", is created in
28564         a temporary directory, and removed upon termination.
28565         * tests/test-pwrite.sh: Re-add file.
28566         * modules/pwrite-tests: Reference it.
28567
28568 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28569
28570         Fix output redirection buglet in init.sh.
28571         * tests/init.sh: Fix redirection of stderr.
28572
28573 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28574
28575         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28576
28577 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28578
28579         * modules/valgrind-tests: New file.
28580         * m4/valgrind-tests.m4: New file.
28581         * doc/valgrind-tests.texi: New file.
28582         * doc/gnulib.texi (Running self-tests under valgrind): New
28583         section.
28584
28585 2010-05-19  Bruno Haible  <bruno@clisp.org>
28586
28587         Clean up dead code in recent commit.
28588         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28589         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28590         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28591         Suggested by Paolo Bonzini.
28592
28593 2010-05-19  Bruno Haible  <bruno@clisp.org>
28594
28595         Avoid valgrind error reports from libunistring.
28596         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28597         * modules/libunistring (Files): Add it.
28598         * modules/libunistring-optional (Files): Likewise.
28599
28600 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28601             Bruno Haible  <bruno@clisp.org>
28602
28603         New module 'libunistring-optional'.
28604         * modules/libunistring-optional: New file.
28605         * m4/libunistring-base.m4: New file.
28606         * m4/libunistring-optional.m4: New file.
28607         * lib/unicase.in.h: Renamed from lib/unicase.h.
28608         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28609         * lib/unictype.in.h: Renamed from lib/unictype.h.
28610         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28611         * lib/uniname.in.h: Renamed from lib/uniname.h.
28612         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28613         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28614         * lib/unistr.in.h: Renamed from lib/unistr.h.
28615         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28616         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28617         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28618         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28619         gl_LIBUNISTRING. If the library was found, determine the installed
28620         version and set LIBUNISTRING_VERSION.
28621         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28622         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28623         handle a configuration option --with-included-libunistring.
28624         * modules/libunistring (Files): Add m4/absolute-header.m4.
28625         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28626         Add m4/libunistring-base.m4.
28627         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28628         (Makefile.am): Build unicase.h from unicase.in.h.
28629         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28630         Add m4/libunistring-base.m4.
28631         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28632         (Makefile.am): Build uniconv.h from uniconv.in.h.
28633         * modules/unictype/base (Files): Use unictype.in.h instead of
28634         unictype.h. Add m4/libunistring-base.m4.
28635         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28636         (Makefile.am): Build unictype.h from unictype.in.h.
28637         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28638         Add m4/libunistring-base.m4.
28639         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28640         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28641         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28642         Add m4/libunistring-base.m4.
28643         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28644         (Makefile.am): Build uniname.h from uniname.in.h.
28645         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28646         Add m4/libunistring-base.m4.
28647         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28648         (Makefile.am): Build uninorm.h from uninorm.in.h.
28649         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28650         unistdio.h. Add m4/libunistring-base.m4.
28651         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28652         (Makefile.am): Build unistdio.h from unistdio.in.h.
28653         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28654         Add m4/libunistring-base.m4.
28655         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28656         (Makefile.am): Build unistr.h from unistr.in.h.
28657         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28658         Add m4/libunistring-base.m4.
28659         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28660         (Makefile.am): Build unitypes.h from unitypes.in.h.
28661         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28662         Add m4/libunistring-base.m4.
28663         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28664         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28665         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28666         uniwidth.h. Add m4/libunistring-base.m4.
28667         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28668         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28669         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28670         instead of augmenting lib_SOURCES.
28671         * modules/unicase/empty-suffix-context: Likewise.
28672         * modules/unicase/locale-language: Likewise.
28673         * modules/unicase/tolower: Likewise.
28674         * modules/unicase/totitle: Likewise.
28675         * modules/unicase/toupper: Likewise.
28676         * modules/unicase/u8-casecmp: Likewise.
28677         * modules/unicase/u8-casecoll: Likewise.
28678         * modules/unicase/u8-casefold: Likewise.
28679         * modules/unicase/u8-casexfrm: Likewise.
28680         * modules/unicase/u8-ct-casefold: Likewise.
28681         * modules/unicase/u8-ct-tolower: Likewise.
28682         * modules/unicase/u8-ct-totitle: Likewise.
28683         * modules/unicase/u8-ct-toupper: Likewise.
28684         * modules/unicase/u8-is-cased: Likewise.
28685         * modules/unicase/u8-is-casefolded: Likewise.
28686         * modules/unicase/u8-is-lowercase: Likewise.
28687         * modules/unicase/u8-is-titlecase: Likewise.
28688         * modules/unicase/u8-is-uppercase: Likewise.
28689         * modules/unicase/u8-prefix-context: Likewise.
28690         * modules/unicase/u8-suffix-context: Likewise.
28691         * modules/unicase/u8-tolower: Likewise.
28692         * modules/unicase/u8-totitle: Likewise.
28693         * modules/unicase/u8-toupper: Likewise.
28694         * modules/unicase/u16-casecmp: Likewise.
28695         * modules/unicase/u16-casecoll: Likewise.
28696         * modules/unicase/u16-casefold: Likewise.
28697         * modules/unicase/u16-casexfrm: Likewise.
28698         * modules/unicase/u16-ct-casefold: Likewise.
28699         * modules/unicase/u16-ct-tolower: Likewise.
28700         * modules/unicase/u16-ct-totitle: Likewise.
28701         * modules/unicase/u16-ct-toupper: Likewise.
28702         * modules/unicase/u16-is-cased: Likewise.
28703         * modules/unicase/u16-is-casefolded: Likewise.
28704         * modules/unicase/u16-is-lowercase: Likewise.
28705         * modules/unicase/u16-is-titlecase: Likewise.
28706         * modules/unicase/u16-is-uppercase: Likewise.
28707         * modules/unicase/u16-prefix-context: Likewise.
28708         * modules/unicase/u16-suffix-context: Likewise.
28709         * modules/unicase/u16-tolower: Likewise.
28710         * modules/unicase/u16-totitle: Likewise.
28711         * modules/unicase/u16-toupper: Likewise.
28712         * modules/unicase/u32-casecmp: Likewise.
28713         * modules/unicase/u32-casecoll: Likewise.
28714         * modules/unicase/u32-casefold: Likewise.
28715         * modules/unicase/u32-casexfrm: Likewise.
28716         * modules/unicase/u32-ct-casefold: Likewise.
28717         * modules/unicase/u32-ct-tolower: Likewise.
28718         * modules/unicase/u32-ct-totitle: Likewise.
28719         * modules/unicase/u32-ct-toupper: Likewise.
28720         * modules/unicase/u32-is-cased: Likewise.
28721         * modules/unicase/u32-is-casefolded: Likewise.
28722         * modules/unicase/u32-is-lowercase: Likewise.
28723         * modules/unicase/u32-is-titlecase: Likewise.
28724         * modules/unicase/u32-is-uppercase: Likewise.
28725         * modules/unicase/u32-prefix-context: Likewise.
28726         * modules/unicase/u32-suffix-context: Likewise.
28727         * modules/unicase/u32-tolower: Likewise.
28728         * modules/unicase/u32-totitle: Likewise.
28729         * modules/unicase/u32-toupper: Likewise.
28730         * modules/unicase/ulc-casecmp: Likewise.
28731         * modules/unicase/ulc-casecoll: Likewise.
28732         * modules/unicase/ulc-casexfrm: Likewise.
28733         * modules/uniconv/u8-conv-from-enc: Likewise.
28734         * modules/uniconv/u8-conv-to-enc: Likewise.
28735         * modules/uniconv/u8-strconv-from-enc: Likewise.
28736         * modules/uniconv/u8-strconv-from-locale: Likewise.
28737         * modules/uniconv/u8-strconv-to-enc: Likewise.
28738         * modules/uniconv/u8-strconv-to-locale: Likewise.
28739         * modules/uniconv/u16-conv-from-enc: Likewise.
28740         * modules/uniconv/u16-conv-to-enc: Likewise.
28741         * modules/uniconv/u16-strconv-from-enc: Likewise.
28742         * modules/uniconv/u16-strconv-from-locale: Likewise.
28743         * modules/uniconv/u16-strconv-to-enc: Likewise.
28744         * modules/uniconv/u16-strconv-to-locale: Likewise.
28745         * modules/uniconv/u32-conv-from-enc: Likewise.
28746         * modules/uniconv/u32-conv-to-enc: Likewise.
28747         * modules/uniconv/u32-strconv-from-enc: Likewise.
28748         * modules/uniconv/u32-strconv-from-locale: Likewise.
28749         * modules/uniconv/u32-strconv-to-enc: Likewise.
28750         * modules/uniconv/u32-strconv-to-locale: Likewise.
28751         * modules/unictype/bidicategory-byname: Likewise.
28752         * modules/unictype/bidicategory-name: Likewise.
28753         * modules/unictype/bidicategory-of: Likewise.
28754         * modules/unictype/bidicategory-test: Likewise.
28755         * modules/unictype/block-list: Likewise.
28756         * modules/unictype/block-test: Likewise.
28757         * modules/unictype/category-C: Likewise.
28758         * modules/unictype/category-Cc: Likewise.
28759         * modules/unictype/category-Cf: Likewise.
28760         * modules/unictype/category-Cn: Likewise.
28761         * modules/unictype/category-Co: Likewise.
28762         * modules/unictype/category-Cs: Likewise.
28763         * modules/unictype/category-L: Likewise.
28764         * modules/unictype/category-Ll: Likewise.
28765         * modules/unictype/category-Lm: Likewise.
28766         * modules/unictype/category-Lo: Likewise.
28767         * modules/unictype/category-Lt: Likewise.
28768         * modules/unictype/category-Lu: Likewise.
28769         * modules/unictype/category-M: Likewise.
28770         * modules/unictype/category-Mc: Likewise.
28771         * modules/unictype/category-Me: Likewise.
28772         * modules/unictype/category-Mn: Likewise.
28773         * modules/unictype/category-N: Likewise.
28774         * modules/unictype/category-Nd: Likewise.
28775         * modules/unictype/category-Nl: Likewise.
28776         * modules/unictype/category-No: Likewise.
28777         * modules/unictype/category-P: Likewise.
28778         * modules/unictype/category-Pc: Likewise.
28779         * modules/unictype/category-Pd: Likewise.
28780         * modules/unictype/category-Pe: Likewise.
28781         * modules/unictype/category-Pf: Likewise.
28782         * modules/unictype/category-Pi: Likewise.
28783         * modules/unictype/category-Po: Likewise.
28784         * modules/unictype/category-Ps: Likewise.
28785         * modules/unictype/category-S: Likewise.
28786         * modules/unictype/category-Sc: Likewise.
28787         * modules/unictype/category-Sk: Likewise.
28788         * modules/unictype/category-Sm: Likewise.
28789         * modules/unictype/category-So: Likewise.
28790         * modules/unictype/category-Z: Likewise.
28791         * modules/unictype/category-Zl: Likewise.
28792         * modules/unictype/category-Zp: Likewise.
28793         * modules/unictype/category-Zs: Likewise.
28794         * modules/unictype/category-and: Likewise.
28795         * modules/unictype/category-and-not: Likewise.
28796         * modules/unictype/category-byname: Likewise.
28797         * modules/unictype/category-name: Likewise.
28798         * modules/unictype/category-none: Likewise.
28799         * modules/unictype/category-of: Likewise.
28800         * modules/unictype/category-or: Likewise.
28801         * modules/unictype/category-test: Likewise.
28802         * modules/unictype/combining-class: Likewise.
28803         * modules/unictype/ctype-alnum: Likewise.
28804         * modules/unictype/ctype-alpha: Likewise.
28805         * modules/unictype/ctype-blank: Likewise.
28806         * modules/unictype/ctype-cntrl: Likewise.
28807         * modules/unictype/ctype-digit: Likewise.
28808         * modules/unictype/ctype-graph: Likewise.
28809         * modules/unictype/ctype-lower: Likewise.
28810         * modules/unictype/ctype-print: Likewise.
28811         * modules/unictype/ctype-punct: Likewise.
28812         * modules/unictype/ctype-space: Likewise.
28813         * modules/unictype/ctype-upper: Likewise.
28814         * modules/unictype/ctype-xdigit: Likewise.
28815         * modules/unictype/decimal-digit: Likewise.
28816         * modules/unictype/digit: Likewise.
28817         * modules/unictype/mirror: Likewise.
28818         * modules/unictype/numeric: Likewise.
28819         * modules/unictype/property-alphabetic: Likewise.
28820         * modules/unictype/property-ascii-hex-digit: Likewise.
28821         * modules/unictype/property-bidi-arabic-digit: Likewise.
28822         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28823         * modules/unictype/property-bidi-block-separator: Likewise.
28824         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28825         * modules/unictype/property-bidi-common-separator: Likewise.
28826         * modules/unictype/property-bidi-control: Likewise.
28827         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28828         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28829         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28830         * modules/unictype/property-bidi-european-digit: Likewise.
28831         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28832         * modules/unictype/property-bidi-left-to-right: Likewise.
28833         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28834         * modules/unictype/property-bidi-other-neutral: Likewise.
28835         * modules/unictype/property-bidi-pdf: Likewise.
28836         * modules/unictype/property-bidi-segment-separator: Likewise.
28837         * modules/unictype/property-bidi-whitespace: Likewise.
28838         * modules/unictype/property-byname: Likewise.
28839         * modules/unictype/property-combining: Likewise.
28840         * modules/unictype/property-composite: Likewise.
28841         * modules/unictype/property-currency-symbol: Likewise.
28842         * modules/unictype/property-dash: Likewise.
28843         * modules/unictype/property-decimal-digit: Likewise.
28844         * modules/unictype/property-default-ignorable-code-point: Likewise.
28845         * modules/unictype/property-deprecated: Likewise.
28846         * modules/unictype/property-diacritic: Likewise.
28847         * modules/unictype/property-extender: Likewise.
28848         * modules/unictype/property-format-control: Likewise.
28849         * modules/unictype/property-grapheme-base: Likewise.
28850         * modules/unictype/property-grapheme-extend: Likewise.
28851         * modules/unictype/property-grapheme-link: Likewise.
28852         * modules/unictype/property-hex-digit: Likewise.
28853         * modules/unictype/property-hyphen: Likewise.
28854         * modules/unictype/property-id-continue: Likewise.
28855         * modules/unictype/property-id-start: Likewise.
28856         * modules/unictype/property-ideographic: Likewise.
28857         * modules/unictype/property-ids-binary-operator: Likewise.
28858         * modules/unictype/property-ids-trinary-operator: Likewise.
28859         * modules/unictype/property-ignorable-control: Likewise.
28860         * modules/unictype/property-iso-control: Likewise.
28861         * modules/unictype/property-join-control: Likewise.
28862         * modules/unictype/property-left-of-pair: Likewise.
28863         * modules/unictype/property-line-separator: Likewise.
28864         * modules/unictype/property-logical-order-exception: Likewise.
28865         * modules/unictype/property-lowercase: Likewise.
28866         * modules/unictype/property-math: Likewise.
28867         * modules/unictype/property-non-break: Likewise.
28868         * modules/unictype/property-not-a-character: Likewise.
28869         * modules/unictype/property-numeric: Likewise.
28870         * modules/unictype/property-other-alphabetic: Likewise.
28871         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28872         * modules/unictype/property-other-grapheme-extend: Likewise.
28873         * modules/unictype/property-other-id-continue: Likewise.
28874         * modules/unictype/property-other-id-start: Likewise.
28875         * modules/unictype/property-other-lowercase: Likewise.
28876         * modules/unictype/property-other-math: Likewise.
28877         * modules/unictype/property-other-uppercase: Likewise.
28878         * modules/unictype/property-paired-punctuation: Likewise.
28879         * modules/unictype/property-paragraph-separator: Likewise.
28880         * modules/unictype/property-pattern-syntax: Likewise.
28881         * modules/unictype/property-pattern-white-space: Likewise.
28882         * modules/unictype/property-private-use: Likewise.
28883         * modules/unictype/property-punctuation: Likewise.
28884         * modules/unictype/property-quotation-mark: Likewise.
28885         * modules/unictype/property-radical: Likewise.
28886         * modules/unictype/property-sentence-terminal: Likewise.
28887         * modules/unictype/property-soft-dotted: Likewise.
28888         * modules/unictype/property-space: Likewise.
28889         * modules/unictype/property-terminal-punctuation: Likewise.
28890         * modules/unictype/property-test: Likewise.
28891         * modules/unictype/property-titlecase: Likewise.
28892         * modules/unictype/property-unassigned-code-value: Likewise.
28893         * modules/unictype/property-unified-ideograph: Likewise.
28894         * modules/unictype/property-uppercase: Likewise.
28895         * modules/unictype/property-variation-selector: Likewise.
28896         * modules/unictype/property-white-space: Likewise.
28897         * modules/unictype/property-xid-continue: Likewise.
28898         * modules/unictype/property-xid-start: Likewise.
28899         * modules/unictype/property-zero-width: Likewise.
28900         * modules/unictype/scripts: Likewise.
28901         * modules/unictype/syntax-c-ident: Likewise.
28902         * modules/unictype/syntax-c-whitespace: Likewise.
28903         * modules/unictype/syntax-java-ident: Likewise.
28904         * modules/unictype/syntax-java-whitespace: Likewise.
28905         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28906         * modules/unilbrk/u8-width-linebreaks: Likewise.
28907         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28908         * modules/unilbrk/u16-width-linebreaks: Likewise.
28909         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28910         * modules/unilbrk/u32-width-linebreaks: Likewise.
28911         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28912         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28913         * modules/uniname/uniname: Likewise.
28914         * modules/uninorm/canonical-decomposition: Likewise.
28915         * modules/uninorm/composition: Likewise.
28916         * modules/uninorm/decomposing-form: Likewise.
28917         * modules/uninorm/decomposition: Likewise.
28918         * modules/uninorm/filter: Likewise.
28919         * modules/uninorm/nfc: Likewise.
28920         * modules/uninorm/nfd: Likewise.
28921         * modules/uninorm/nfkc: Likewise.
28922         * modules/uninorm/nfkd: Likewise.
28923         * modules/uninorm/u8-normalize: Likewise.
28924         * modules/uninorm/u8-normcmp: Likewise.
28925         * modules/uninorm/u8-normcoll: Likewise.
28926         * modules/uninorm/u8-normxfrm: Likewise.
28927         * modules/uninorm/u16-normalize: Likewise.
28928         * modules/uninorm/u16-normcmp: Likewise.
28929         * modules/uninorm/u16-normcoll: Likewise.
28930         * modules/uninorm/u16-normxfrm: Likewise.
28931         * modules/uninorm/u32-normalize: Likewise.
28932         * modules/uninorm/u32-normcmp: Likewise.
28933         * modules/uninorm/u32-normcoll: Likewise.
28934         * modules/uninorm/u32-normxfrm: Likewise.
28935         * modules/unistdio/u8-asnprintf: Likewise.
28936         * modules/unistdio/u8-asprintf: Likewise.
28937         * modules/unistdio/u8-snprintf: Likewise.
28938         * modules/unistdio/u8-sprintf: Likewise.
28939         * modules/unistdio/u8-u8-asnprintf: Likewise.
28940         * modules/unistdio/u8-u8-asprintf: Likewise.
28941         * modules/unistdio/u8-u8-snprintf: Likewise.
28942         * modules/unistdio/u8-u8-sprintf: Likewise.
28943         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28944         * modules/unistdio/u8-u8-vasprintf: Likewise.
28945         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28946         * modules/unistdio/u8-u8-vsprintf: Likewise.
28947         * modules/unistdio/u8-vasnprintf: Likewise.
28948         * modules/unistdio/u8-vasprintf: Likewise.
28949         * modules/unistdio/u8-vsnprintf: Likewise.
28950         * modules/unistdio/u8-vsprintf: Likewise.
28951         * modules/unistdio/u16-asnprintf: Likewise.
28952         * modules/unistdio/u16-asprintf: Likewise.
28953         * modules/unistdio/u16-snprintf: Likewise.
28954         * modules/unistdio/u16-sprintf: Likewise.
28955         * modules/unistdio/u16-u16-asnprintf: Likewise.
28956         * modules/unistdio/u16-u16-asprintf: Likewise.
28957         * modules/unistdio/u16-u16-snprintf: Likewise.
28958         * modules/unistdio/u16-u16-sprintf: Likewise.
28959         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28960         * modules/unistdio/u16-u16-vasprintf: Likewise.
28961         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28962         * modules/unistdio/u16-u16-vsprintf: Likewise.
28963         * modules/unistdio/u16-vasnprintf: Likewise.
28964         * modules/unistdio/u16-vasprintf: Likewise.
28965         * modules/unistdio/u16-vsnprintf: Likewise.
28966         * modules/unistdio/u16-vsprintf: Likewise.
28967         * modules/unistdio/u32-asnprintf: Likewise.
28968         * modules/unistdio/u32-asprintf: Likewise.
28969         * modules/unistdio/u32-snprintf: Likewise.
28970         * modules/unistdio/u32-sprintf: Likewise.
28971         * modules/unistdio/u32-u32-asnprintf: Likewise.
28972         * modules/unistdio/u32-u32-asprintf: Likewise.
28973         * modules/unistdio/u32-u32-snprintf: Likewise.
28974         * modules/unistdio/u32-u32-sprintf: Likewise.
28975         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28976         * modules/unistdio/u32-u32-vasprintf: Likewise.
28977         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28978         * modules/unistdio/u32-u32-vsprintf: Likewise.
28979         * modules/unistdio/u32-vasnprintf: Likewise.
28980         * modules/unistdio/u32-vasprintf: Likewise.
28981         * modules/unistdio/u32-vsnprintf: Likewise.
28982         * modules/unistdio/u32-vsprintf: Likewise.
28983         * modules/unistdio/ulc-asnprintf: Likewise.
28984         * modules/unistdio/ulc-asprintf: Likewise.
28985         * modules/unistdio/ulc-fprintf: Likewise.
28986         * modules/unistdio/ulc-snprintf: Likewise.
28987         * modules/unistdio/ulc-sprintf: Likewise.
28988         * modules/unistdio/ulc-vasnprintf: Likewise.
28989         * modules/unistdio/ulc-vasprintf: Likewise.
28990         * modules/unistdio/ulc-vfprintf: Likewise.
28991         * modules/unistdio/ulc-vsnprintf: Likewise.
28992         * modules/unistdio/ulc-vsprintf: Likewise.
28993         * modules/unistr/u8-check: Likewise.
28994         * modules/unistr/u8-chr: Likewise.
28995         * modules/unistr/u8-cmp: Likewise.
28996         * modules/unistr/u8-cmp2: Likewise.
28997         * modules/unistr/u8-cpy: Likewise.
28998         * modules/unistr/u8-cpy-alloc: Likewise.
28999         * modules/unistr/u8-endswith: Likewise.
29000         * modules/unistr/u8-mblen: Likewise.
29001         * modules/unistr/u8-mbsnlen: Likewise.
29002         * modules/unistr/u8-mbtouc: Likewise.
29003         * modules/unistr/u8-mbtouc-unsafe: Likewise.
29004         * modules/unistr/u8-mbtoucr: Likewise.
29005         * modules/unistr/u8-move: Likewise.
29006         * modules/unistr/u8-next: Likewise.
29007         * modules/unistr/u8-prev: Likewise.
29008         * modules/unistr/u8-set: Likewise.
29009         * modules/unistr/u8-startswith: Likewise.
29010         * modules/unistr/u8-stpcpy: Likewise.
29011         * modules/unistr/u8-stpncpy: Likewise.
29012         * modules/unistr/u8-strcat: Likewise.
29013         * modules/unistr/u8-strchr: Likewise.
29014         * modules/unistr/u8-strcmp: Likewise.
29015         * modules/unistr/u8-strcoll: Likewise.
29016         * modules/unistr/u8-strcpy: Likewise.
29017         * modules/unistr/u8-strcspn: Likewise.
29018         * modules/unistr/u8-strdup: Likewise.
29019         * modules/unistr/u8-strlen: Likewise.
29020         * modules/unistr/u8-strmblen: Likewise.
29021         * modules/unistr/u8-strmbtouc: Likewise.
29022         * modules/unistr/u8-strncat: Likewise.
29023         * modules/unistr/u8-strncmp: Likewise.
29024         * modules/unistr/u8-strncpy: Likewise.
29025         * modules/unistr/u8-strnlen: Likewise.
29026         * modules/unistr/u8-strpbrk: Likewise.
29027         * modules/unistr/u8-strrchr: Likewise.
29028         * modules/unistr/u8-strspn: Likewise.
29029         * modules/unistr/u8-strstr: Likewise.
29030         * modules/unistr/u8-strtok: Likewise.
29031         * modules/unistr/u8-to-u16: Likewise.
29032         * modules/unistr/u8-to-u32: Likewise.
29033         * modules/unistr/u8-uctomb: Likewise.
29034         * modules/unistr/u16-check: Likewise.
29035         * modules/unistr/u16-chr: Likewise.
29036         * modules/unistr/u16-cmp: Likewise.
29037         * modules/unistr/u16-cmp2: Likewise.
29038         * modules/unistr/u16-cpy: Likewise.
29039         * modules/unistr/u16-cpy-alloc: Likewise.
29040         * modules/unistr/u16-endswith: Likewise.
29041         * modules/unistr/u16-mblen: Likewise.
29042         * modules/unistr/u16-mbsnlen: Likewise.
29043         * modules/unistr/u16-mbtouc: Likewise.
29044         * modules/unistr/u16-mbtouc-unsafe: Likewise.
29045         * modules/unistr/u16-mbtoucr: Likewise.
29046         * modules/unistr/u16-move: Likewise.
29047         * modules/unistr/u16-next: Likewise.
29048         * modules/unistr/u16-prev: Likewise.
29049         * modules/unistr/u16-set: Likewise.
29050         * modules/unistr/u16-startswith: Likewise.
29051         * modules/unistr/u16-stpcpy: Likewise.
29052         * modules/unistr/u16-stpncpy: Likewise.
29053         * modules/unistr/u16-strcat: Likewise.
29054         * modules/unistr/u16-strchr: Likewise.
29055         * modules/unistr/u16-strcmp: Likewise.
29056         * modules/unistr/u16-strcoll: Likewise.
29057         * modules/unistr/u16-strcpy: Likewise.
29058         * modules/unistr/u16-strcspn: Likewise.
29059         * modules/unistr/u16-strdup: Likewise.
29060         * modules/unistr/u16-strlen: Likewise.
29061         * modules/unistr/u16-strmblen: Likewise.
29062         * modules/unistr/u16-strmbtouc: Likewise.
29063         * modules/unistr/u16-strncat: Likewise.
29064         * modules/unistr/u16-strncmp: Likewise.
29065         * modules/unistr/u16-strncpy: Likewise.
29066         * modules/unistr/u16-strnlen: Likewise.
29067         * modules/unistr/u16-strpbrk: Likewise.
29068         * modules/unistr/u16-strrchr: Likewise.
29069         * modules/unistr/u16-strspn: Likewise.
29070         * modules/unistr/u16-strstr: Likewise.
29071         * modules/unistr/u16-strtok: Likewise.
29072         * modules/unistr/u16-to-u32: Likewise.
29073         * modules/unistr/u16-to-u8: Likewise.
29074         * modules/unistr/u16-uctomb: Likewise.
29075         * modules/unistr/u32-check: Likewise.
29076         * modules/unistr/u32-chr: Likewise.
29077         * modules/unistr/u32-cmp: Likewise.
29078         * modules/unistr/u32-cmp2: Likewise.
29079         * modules/unistr/u32-cpy: Likewise.
29080         * modules/unistr/u32-cpy-alloc: Likewise.
29081         * modules/unistr/u32-endswith: Likewise.
29082         * modules/unistr/u32-mblen: Likewise.
29083         * modules/unistr/u32-mbsnlen: Likewise.
29084         * modules/unistr/u32-mbtouc: Likewise.
29085         * modules/unistr/u32-mbtouc-unsafe: Likewise.
29086         * modules/unistr/u32-mbtoucr: Likewise.
29087         * modules/unistr/u32-move: Likewise.
29088         * modules/unistr/u32-next: Likewise.
29089         * modules/unistr/u32-prev: Likewise.
29090         * modules/unistr/u32-set: Likewise.
29091         * modules/unistr/u32-startswith: Likewise.
29092         * modules/unistr/u32-stpcpy: Likewise.
29093         * modules/unistr/u32-stpncpy: Likewise.
29094         * modules/unistr/u32-strcat: Likewise.
29095         * modules/unistr/u32-strchr: Likewise.
29096         * modules/unistr/u32-strcmp: Likewise.
29097         * modules/unistr/u32-strcoll: Likewise.
29098         * modules/unistr/u32-strcpy: Likewise.
29099         * modules/unistr/u32-strcspn: Likewise.
29100         * modules/unistr/u32-strdup: Likewise.
29101         * modules/unistr/u32-strlen: Likewise.
29102         * modules/unistr/u32-strmblen: Likewise.
29103         * modules/unistr/u32-strmbtouc: Likewise.
29104         * modules/unistr/u32-strncat: Likewise.
29105         * modules/unistr/u32-strncmp: Likewise.
29106         * modules/unistr/u32-strncpy: Likewise.
29107         * modules/unistr/u32-strnlen: Likewise.
29108         * modules/unistr/u32-strpbrk: Likewise.
29109         * modules/unistr/u32-strrchr: Likewise.
29110         * modules/unistr/u32-strspn: Likewise.
29111         * modules/unistr/u32-strstr: Likewise.
29112         * modules/unistr/u32-strtok: Likewise.
29113         * modules/unistr/u32-to-u16: Likewise.
29114         * modules/unistr/u32-to-u8: Likewise.
29115         * modules/unistr/u32-uctomb: Likewise.
29116         * modules/uniwbrk/u8-wordbreaks: Likewise.
29117         * modules/uniwbrk/u16-wordbreaks: Likewise.
29118         * modules/uniwbrk/u32-wordbreaks: Likewise.
29119         * modules/uniwbrk/ulc-wordbreaks: Likewise.
29120         * modules/uniwbrk/wordbreak-property: Likewise.
29121         * modules/uniwidth/u8-strwidth: Likewise.
29122         * modules/uniwidth/u8-width: Likewise.
29123         * modules/uniwidth/u16-strwidth: Likewise.
29124         * modules/uniwidth/u16-width: Likewise.
29125         * modules/uniwidth/u32-strwidth: Likewise.
29126         * modules/uniwidth/u32-width: Likewise.
29127         * modules/uniwidth/width: Likewise.
29128         * modules/unicase/cased-tests (Makefile.am): Link all test programs
29129         with $(LIBUNISTRING).
29130         * modules/unicase/ignorable-tests: Likewise.
29131         * modules/unicase/locale-language-tests: Likewise.
29132         * modules/unicase/tolower-tests: Likewise.
29133         * modules/unicase/totitle-tests: Likewise.
29134         * modules/unicase/toupper-tests: Likewise.
29135         * modules/unicase/u8-casecmp-tests: Likewise.
29136         * modules/unicase/u8-casecoll-tests: Likewise.
29137         * modules/unicase/u8-casefold-tests: Likewise.
29138         * modules/unicase/u8-is-cased-tests: Likewise.
29139         * modules/unicase/u8-is-casefolded-tests: Likewise.
29140         * modules/unicase/u8-is-lowercase-tests: Likewise.
29141         * modules/unicase/u8-is-titlecase-tests: Likewise.
29142         * modules/unicase/u8-is-uppercase-tests: Likewise.
29143         * modules/unicase/u8-tolower-tests: Likewise.
29144         * modules/unicase/u8-totitle-tests: Likewise.
29145         * modules/unicase/u8-toupper-tests: Likewise.
29146         * modules/unicase/u16-casecmp-tests: Likewise.
29147         * modules/unicase/u16-casecoll-tests: Likewise.
29148         * modules/unicase/u16-casefold-tests: Likewise.
29149         * modules/unicase/u16-is-cased-tests: Likewise.
29150         * modules/unicase/u16-is-casefolded-tests: Likewise.
29151         * modules/unicase/u16-is-lowercase-tests: Likewise.
29152         * modules/unicase/u16-is-titlecase-tests: Likewise.
29153         * modules/unicase/u16-is-uppercase-tests: Likewise.
29154         * modules/unicase/u16-tolower-tests: Likewise.
29155         * modules/unicase/u16-totitle-tests: Likewise.
29156         * modules/unicase/u16-toupper-tests: Likewise.
29157         * modules/unicase/u32-casecmp-tests: Likewise.
29158         * modules/unicase/u32-casecoll-tests: Likewise.
29159         * modules/unicase/u32-casefold-tests: Likewise.
29160         * modules/unicase/u32-is-cased-tests: Likewise.
29161         * modules/unicase/u32-is-casefolded-tests: Likewise.
29162         * modules/unicase/u32-is-lowercase-tests: Likewise.
29163         * modules/unicase/u32-is-titlecase-tests: Likewise.
29164         * modules/unicase/u32-is-uppercase-tests: Likewise.
29165         * modules/unicase/u32-tolower-tests: Likewise.
29166         * modules/unicase/u32-totitle-tests: Likewise.
29167         * modules/unicase/u32-toupper-tests: Likewise.
29168         * modules/unicase/ulc-casecmp-tests: Likewise.
29169         * modules/unicase/ulc-casecoll-tests: Likewise.
29170         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
29171         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
29172         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
29173         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
29174         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
29175         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
29176         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
29177         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
29178         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
29179         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
29180         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
29181         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
29182         * modules/unictype/bidicategory-byname-tests: Likewise.
29183         * modules/unictype/bidicategory-name-tests: Likewise.
29184         * modules/unictype/bidicategory-of-tests: Likewise.
29185         * modules/unictype/bidicategory-test-tests: Likewise.
29186         * modules/unictype/block-list-tests: Likewise.
29187         * modules/unictype/block-of-tests: Likewise.
29188         * modules/unictype/block-test-tests: Likewise.
29189         * modules/unictype/category-C-tests: Likewise.
29190         * modules/unictype/category-Cc-tests: Likewise.
29191         * modules/unictype/category-Cf-tests: Likewise.
29192         * modules/unictype/category-Cn-tests: Likewise.
29193         * modules/unictype/category-Co-tests: Likewise.
29194         * modules/unictype/category-Cs-tests: Likewise.
29195         * modules/unictype/category-L-tests: Likewise.
29196         * modules/unictype/category-Ll-tests: Likewise.
29197         * modules/unictype/category-Lm-tests: Likewise.
29198         * modules/unictype/category-Lo-tests: Likewise.
29199         * modules/unictype/category-Lt-tests: Likewise.
29200         * modules/unictype/category-Lu-tests: Likewise.
29201         * modules/unictype/category-M-tests: Likewise.
29202         * modules/unictype/category-Mc-tests: Likewise.
29203         * modules/unictype/category-Me-tests: Likewise.
29204         * modules/unictype/category-Mn-tests: Likewise.
29205         * modules/unictype/category-N-tests: Likewise.
29206         * modules/unictype/category-Nd-tests: Likewise.
29207         * modules/unictype/category-Nl-tests: Likewise.
29208         * modules/unictype/category-No-tests: Likewise.
29209         * modules/unictype/category-P-tests: Likewise.
29210         * modules/unictype/category-Pc-tests: Likewise.
29211         * modules/unictype/category-Pd-tests: Likewise.
29212         * modules/unictype/category-Pe-tests: Likewise.
29213         * modules/unictype/category-Pf-tests: Likewise.
29214         * modules/unictype/category-Pi-tests: Likewise.
29215         * modules/unictype/category-Po-tests: Likewise.
29216         * modules/unictype/category-Ps-tests: Likewise.
29217         * modules/unictype/category-S-tests: Likewise.
29218         * modules/unictype/category-Sc-tests: Likewise.
29219         * modules/unictype/category-Sk-tests: Likewise.
29220         * modules/unictype/category-Sm-tests: Likewise.
29221         * modules/unictype/category-So-tests: Likewise.
29222         * modules/unictype/category-Z-tests: Likewise.
29223         * modules/unictype/category-Zl-tests: Likewise.
29224         * modules/unictype/category-Zp-tests: Likewise.
29225         * modules/unictype/category-Zs-tests: Likewise.
29226         * modules/unictype/category-and-not-tests: Likewise.
29227         * modules/unictype/category-and-tests: Likewise.
29228         * modules/unictype/category-byname-tests: Likewise.
29229         * modules/unictype/category-name-tests: Likewise.
29230         * modules/unictype/category-none-tests: Likewise.
29231         * modules/unictype/category-of-tests: Likewise.
29232         * modules/unictype/category-or-tests: Likewise.
29233         * modules/unictype/category-test-withtable-tests: Likewise.
29234         * modules/unictype/combining-class-tests: Likewise.
29235         * modules/unictype/ctype-alnum-tests: Likewise.
29236         * modules/unictype/ctype-alpha-tests: Likewise.
29237         * modules/unictype/ctype-blank-tests: Likewise.
29238         * modules/unictype/ctype-cntrl-tests: Likewise.
29239         * modules/unictype/ctype-digit-tests: Likewise.
29240         * modules/unictype/ctype-graph-tests: Likewise.
29241         * modules/unictype/ctype-lower-tests: Likewise.
29242         * modules/unictype/ctype-print-tests: Likewise.
29243         * modules/unictype/ctype-punct-tests: Likewise.
29244         * modules/unictype/ctype-space-tests: Likewise.
29245         * modules/unictype/ctype-upper-tests: Likewise.
29246         * modules/unictype/ctype-xdigit-tests: Likewise.
29247         * modules/unictype/decimal-digit-tests: Likewise.
29248         * modules/unictype/digit-tests: Likewise.
29249         * modules/unictype/mirror-tests: Likewise.
29250         * modules/unictype/numeric-tests: Likewise.
29251         * modules/unictype/property-alphabetic-tests: Likewise.
29252         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
29253         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
29254         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
29255         * modules/unictype/property-bidi-block-separator-tests: Likewise.
29256         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
29257         * modules/unictype/property-bidi-common-separator-tests: Likewise.
29258         * modules/unictype/property-bidi-control-tests: Likewise.
29259         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
29260         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
29261         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
29262         * modules/unictype/property-bidi-european-digit-tests: Likewise.
29263         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
29264         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
29265         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
29266         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
29267         * modules/unictype/property-bidi-pdf-tests: Likewise.
29268         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
29269         * modules/unictype/property-bidi-whitespace-tests: Likewise.
29270         * modules/unictype/property-byname-tests: Likewise.
29271         * modules/unictype/property-combining-tests: Likewise.
29272         * modules/unictype/property-composite-tests: Likewise.
29273         * modules/unictype/property-currency-symbol-tests: Likewise.
29274         * modules/unictype/property-dash-tests: Likewise.
29275         * modules/unictype/property-decimal-digit-tests: Likewise.
29276         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
29277         * modules/unictype/property-deprecated-tests: Likewise.
29278         * modules/unictype/property-diacritic-tests: Likewise.
29279         * modules/unictype/property-extender-tests: Likewise.
29280         * modules/unictype/property-format-control-tests: Likewise.
29281         * modules/unictype/property-grapheme-base-tests: Likewise.
29282         * modules/unictype/property-grapheme-extend-tests: Likewise.
29283         * modules/unictype/property-grapheme-link-tests: Likewise.
29284         * modules/unictype/property-hex-digit-tests: Likewise.
29285         * modules/unictype/property-hyphen-tests: Likewise.
29286         * modules/unictype/property-id-continue-tests: Likewise.
29287         * modules/unictype/property-id-start-tests: Likewise.
29288         * modules/unictype/property-ideographic-tests: Likewise.
29289         * modules/unictype/property-ids-binary-operator-tests: Likewise.
29290         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
29291         * modules/unictype/property-ignorable-control-tests: Likewise.
29292         * modules/unictype/property-iso-control-tests: Likewise.
29293         * modules/unictype/property-join-control-tests: Likewise.
29294         * modules/unictype/property-left-of-pair-tests: Likewise.
29295         * modules/unictype/property-line-separator-tests: Likewise.
29296         * modules/unictype/property-logical-order-exception-tests: Likewise.
29297         * modules/unictype/property-lowercase-tests: Likewise.
29298         * modules/unictype/property-math-tests: Likewise.
29299         * modules/unictype/property-non-break-tests: Likewise.
29300         * modules/unictype/property-not-a-character-tests: Likewise.
29301         * modules/unictype/property-numeric-tests: Likewise.
29302         * modules/unictype/property-other-alphabetic-tests: Likewise.
29303         * modules/unictype/property-other-default-ignorable-code-point-tests:
29304         Likewise.
29305         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
29306         * modules/unictype/property-other-id-continue-tests: Likewise.
29307         * modules/unictype/property-other-id-start-tests: Likewise.
29308         * modules/unictype/property-other-lowercase-tests: Likewise.
29309         * modules/unictype/property-other-math-tests: Likewise.
29310         * modules/unictype/property-other-uppercase-tests: Likewise.
29311         * modules/unictype/property-paired-punctuation-tests: Likewise.
29312         * modules/unictype/property-paragraph-separator-tests: Likewise.
29313         * modules/unictype/property-pattern-syntax-tests: Likewise.
29314         * modules/unictype/property-pattern-white-space-tests: Likewise.
29315         * modules/unictype/property-private-use-tests: Likewise.
29316         * modules/unictype/property-punctuation-tests: Likewise.
29317         * modules/unictype/property-quotation-mark-tests: Likewise.
29318         * modules/unictype/property-radical-tests: Likewise.
29319         * modules/unictype/property-sentence-terminal-tests: Likewise.
29320         * modules/unictype/property-soft-dotted-tests: Likewise.
29321         * modules/unictype/property-space-tests: Likewise.
29322         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29323         * modules/unictype/property-test-tests: Likewise.
29324         * modules/unictype/property-titlecase-tests: Likewise.
29325         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29326         * modules/unictype/property-unified-ideograph-tests: Likewise.
29327         * modules/unictype/property-uppercase-tests: Likewise.
29328         * modules/unictype/property-variation-selector-tests: Likewise.
29329         * modules/unictype/property-white-space-tests: Likewise.
29330         * modules/unictype/property-xid-continue-tests: Likewise.
29331         * modules/unictype/property-xid-start-tests: Likewise.
29332         * modules/unictype/property-zero-width-tests: Likewise.
29333         * modules/unictype/scripts-tests: Likewise.
29334         * modules/unictype/syntax-c-ident-tests: Likewise.
29335         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29336         * modules/unictype/syntax-java-ident-tests: Likewise.
29337         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29338         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29339         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29340         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29341         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29342         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29343         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29344         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29345         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29346         * modules/uniname/uniname-tests: Likewise.
29347         * modules/uninorm/canonical-decomposition-tests: Likewise.
29348         * modules/uninorm/compat-decomposition-tests: Likewise.
29349         * modules/uninorm/composition-tests: Likewise.
29350         * modules/uninorm/decomposing-form-tests: Likewise.
29351         * modules/uninorm/decomposition-tests: Likewise.
29352         * modules/uninorm/filter-tests: Likewise.
29353         * modules/uninorm/nfc-tests: Likewise.
29354         * modules/uninorm/nfd-tests: Likewise.
29355         * modules/uninorm/nfkc-tests: Likewise.
29356         * modules/uninorm/nfkd-tests: Likewise.
29357         * modules/uninorm/u8-normcmp-tests: Likewise.
29358         * modules/uninorm/u8-normcoll-tests: Likewise.
29359         * modules/uninorm/u16-normcmp-tests: Likewise.
29360         * modules/uninorm/u16-normcoll-tests: Likewise.
29361         * modules/uninorm/u32-normcmp-tests: Likewise.
29362         * modules/uninorm/u32-normcoll-tests: Likewise.
29363         * modules/unistdio/u8-asnprintf-tests: Likewise.
29364         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29365         * modules/unistdio/u8-vasprintf-tests: Likewise.
29366         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29367         * modules/unistdio/u8-vsprintf-tests: Likewise.
29368         * modules/unistdio/u16-asnprintf-tests: Likewise.
29369         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29370         * modules/unistdio/u16-vasprintf-tests: Likewise.
29371         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29372         * modules/unistdio/u16-vsprintf-tests: Likewise.
29373         * modules/unistdio/u32-asnprintf-tests: Likewise.
29374         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29375         * modules/unistdio/u32-vasprintf-tests: Likewise.
29376         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29377         * modules/unistdio/u32-vsprintf-tests: Likewise.
29378         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29379         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29380         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29381         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29382         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29383         * modules/unistr/u8-check-tests: Likewise.
29384         * modules/unistr/u8-chr-tests: Likewise.
29385         * modules/unistr/u8-cmp-tests: Likewise.
29386         * modules/unistr/u8-cmp2-tests: Likewise.
29387         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29388         * modules/unistr/u8-cpy-tests: Likewise.
29389         * modules/unistr/u8-mblen-tests: Likewise.
29390         * modules/unistr/u8-mbsnlen-tests: Likewise.
29391         * modules/unistr/u8-mbtouc-tests: Likewise.
29392         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29393         * modules/unistr/u8-mbtoucr-tests: Likewise.
29394         * modules/unistr/u8-move-tests: Likewise.
29395         * modules/unistr/u8-next-tests: Likewise.
29396         * modules/unistr/u8-prev-tests: Likewise.
29397         * modules/unistr/u8-set-tests: Likewise.
29398         * modules/unistr/u8-stpcpy-tests: Likewise.
29399         * modules/unistr/u8-stpncpy-tests: Likewise.
29400         * modules/unistr/u8-strcat-tests: Likewise.
29401         * modules/unistr/u8-strcmp-tests: Likewise.
29402         * modules/unistr/u8-strcoll-tests: Likewise.
29403         * modules/unistr/u8-strcpy-tests: Likewise.
29404         * modules/unistr/u8-strdup-tests: Likewise.
29405         * modules/unistr/u8-strlen-tests: Likewise.
29406         * modules/unistr/u8-strmblen-tests: Likewise.
29407         * modules/unistr/u8-strmbtouc-tests: Likewise.
29408         * modules/unistr/u8-strncat-tests: Likewise.
29409         * modules/unistr/u8-strncmp-tests: Likewise.
29410         * modules/unistr/u8-strncpy-tests: Likewise.
29411         * modules/unistr/u8-strnlen-tests: Likewise.
29412         * modules/unistr/u8-to-u16-tests: Likewise.
29413         * modules/unistr/u8-to-u32-tests: Likewise.
29414         * modules/unistr/u8-uctomb-tests: Likewise.
29415         * modules/unistr/u16-check-tests: Likewise.
29416         * modules/unistr/u16-chr-tests: Likewise.
29417         * modules/unistr/u16-cmp-tests: Likewise.
29418         * modules/unistr/u16-cmp2-tests: Likewise.
29419         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29420         * modules/unistr/u16-cpy-tests: Likewise.
29421         * modules/unistr/u16-mblen-tests: Likewise.
29422         * modules/unistr/u16-mbsnlen-tests: Likewise.
29423         * modules/unistr/u16-mbtouc-tests: Likewise.
29424         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29425         * modules/unistr/u16-mbtoucr-tests: Likewise.
29426         * modules/unistr/u16-move-tests: Likewise.
29427         * modules/unistr/u16-next-tests: Likewise.
29428         * modules/unistr/u16-prev-tests: Likewise.
29429         * modules/unistr/u16-set-tests: Likewise.
29430         * modules/unistr/u16-stpcpy-tests: Likewise.
29431         * modules/unistr/u16-stpncpy-tests: Likewise.
29432         * modules/unistr/u16-strcat-tests: Likewise.
29433         * modules/unistr/u16-strcmp-tests: Likewise.
29434         * modules/unistr/u16-strcoll-tests: Likewise.
29435         * modules/unistr/u16-strcpy-tests: Likewise.
29436         * modules/unistr/u16-strdup-tests: Likewise.
29437         * modules/unistr/u16-strlen-tests: Likewise.
29438         * modules/unistr/u16-strmblen-tests: Likewise.
29439         * modules/unistr/u16-strmbtouc-tests: Likewise.
29440         * modules/unistr/u16-strncat-tests: Likewise.
29441         * modules/unistr/u16-strncmp-tests: Likewise.
29442         * modules/unistr/u16-strncpy-tests: Likewise.
29443         * modules/unistr/u16-strnlen-tests: Likewise.
29444         * modules/unistr/u16-to-u32-tests: Likewise.
29445         * modules/unistr/u16-to-u8-tests: Likewise.
29446         * modules/unistr/u16-uctomb-tests: Likewise.
29447         * modules/unistr/u32-check-tests: Likewise.
29448         * modules/unistr/u32-chr-tests: Likewise.
29449         * modules/unistr/u32-cmp-tests: Likewise.
29450         * modules/unistr/u32-cmp2-tests: Likewise.
29451         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29452         * modules/unistr/u32-cpy-tests: Likewise.
29453         * modules/unistr/u32-mblen-tests: Likewise.
29454         * modules/unistr/u32-mbsnlen-tests: Likewise.
29455         * modules/unistr/u32-mbtouc-tests: Likewise.
29456         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29457         * modules/unistr/u32-mbtoucr-tests: Likewise.
29458         * modules/unistr/u32-move-tests: Likewise.
29459         * modules/unistr/u32-next-tests: Likewise.
29460         * modules/unistr/u32-prev-tests: Likewise.
29461         * modules/unistr/u32-set-tests: Likewise.
29462         * modules/unistr/u32-stpcpy-tests: Likewise.
29463         * modules/unistr/u32-stpncpy-tests: Likewise.
29464         * modules/unistr/u32-strcat-tests: Likewise.
29465         * modules/unistr/u32-strcmp-tests: Likewise.
29466         * modules/unistr/u32-strcoll-tests: Likewise.
29467         * modules/unistr/u32-strcpy-tests: Likewise.
29468         * modules/unistr/u32-strdup-tests: Likewise.
29469         * modules/unistr/u32-strlen-tests: Likewise.
29470         * modules/unistr/u32-strmblen-tests: Likewise.
29471         * modules/unistr/u32-strmbtouc-tests: Likewise.
29472         * modules/unistr/u32-strncat-tests: Likewise.
29473         * modules/unistr/u32-strncmp-tests: Likewise.
29474         * modules/unistr/u32-strncpy-tests: Likewise.
29475         * modules/unistr/u32-strnlen-tests: Likewise.
29476         * modules/unistr/u32-to-u16-tests: Likewise.
29477         * modules/unistr/u32-to-u8-tests: Likewise.
29478         * modules/unistr/u32-uctomb-tests: Likewise.
29479         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29480         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29481         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29482         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29483         * modules/uniwidth/u8-strwidth-tests: Likewise.
29484         * modules/uniwidth/u8-width-tests: Likewise.
29485         * modules/uniwidth/u16-strwidth-tests: Likewise.
29486         * modules/uniwidth/u16-width-tests: Likewise.
29487         * modules/uniwidth/u32-strwidth-tests: Likewise.
29488         * modules/uniwidth/u32-width-tests: Likewise.
29489         * modules/uniwidth/width-tests: Likewise.
29490
29491 2010-05-18  Richard Jones  <rjones@redhat.com>
29492
29493         doc: users.txt: list hivex
29494         * users.txt: Add hivex.
29495
29496 2010-05-18  Richard Jones  <rjones@redhat.com>
29497
29498         doc: users.txt: list febootstrap
29499         * users.txt: Add febootstrap.
29500
29501 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29502
29503         bootstrap: fix an error when gnulib is not used as a git submodule
29504         * build-aux/bootstrap (gnulib_path): If its length is zero then
29505         assign "gnulib" to it.
29506         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29507
29508 2010-05-16  Bruno Haible  <bruno@clisp.org>
29509
29510         Avoid autoconf warnings about AM_ICONV.
29511         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29512         2.64.
29513
29514 2010-05-16  Bruno Haible  <bruno@clisp.org>
29515
29516         absolute-header: Make the macro usable in more situations.
29517         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29518         from gl_ABSOLUTE_HEADER.
29519         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29520
29521 2010-05-16  James Youngman  <jay@gnu.org>
29522
29523         doc: update users.txt
29524         * users.txt: Add CSSC.
29525
29526 2010-05-16  Jim Meyering  <meyering@redhat.com>
29527
29528         init.sh: fix an error in the previous change; add more comments
29529         * tests/init.sh: Compare exit code in loop against 9, not 2.
29530         Patch by Bruno Haible.
29531         Make the two tests more similar by adding an empty "then" clause.
29532         Add comments.
29533
29534         init.sh: avoid unnecessary shell re-exec
29535         * tests/init.sh: Improve the re-exec-required check to first test the
29536         current shell.  If it passes the test, do not search for a shell that
29537         does pass, and do not re-exec.  This test is particularly contorted to
29538         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29539         of $(...) evokes a syntax error and causes immediate shell exit with
29540         status 2.  Bruno Haible reported that the re-exec made it impossible
29541         to single-step through any init.sh-using script.
29542
29543 2010-05-16  Bruno Haible  <bruno@clisp.org>
29544
29545         Fix collision between gnulib's and libintl's printf replacements.
29546         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29547         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29548         (printf): When using GNU C, map the __printf__ function to rpl_printf
29549         via __asm__. When not using GNU C, define rpl_printf instead of
29550         __printf__.
29551         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29552         commit.
29553         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29554         commit.
29555         * m4/asm-underscore.m4: New file.
29556         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29557         * modules/stdio (Files): Add m4/asm-underscore.m4.
29558         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29559         Reported by Ben Pfaff.
29560
29561 2010-05-16  Bruno Haible  <bruno@clisp.org>
29562
29563         verify: Avoid skipping the test on openSUSE 11.0.
29564         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29565
29566 2010-05-13  Bruno Haible  <bruno@clisp.org>
29567
29568         Avoid useless warnings from G++.
29569         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29570         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29571         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29572
29573 2010-05-11  Jim Meyering  <meyering@redhat.com>
29574
29575         maint.mk: tweak preceding change
29576         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29577         regexps tighter by anchoring at EOL, and make the new group "shy"
29578         for slightly decreased overhead.
29579
29580 2010-05-11  Eric Blake  <eblake@redhat.com>
29581
29582         maint.mk: gnulib doesn't guarantee NSIG
29583         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29584
29585 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29586
29587         test-pwrite.c: Remove unused variable declaration.
29588         * tests/test-pwrite.c (main): Remove read_buf declaration.
29589
29590         Remove useless test-pwrite.sh file.
29591         * tests/test-pwrite.sh: Delete file.
29592         * modules/pwrite-tests: Remove references.
29593         Reported by Bruno Haible.
29594
29595 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29596
29597         init.sh: fix a typo
29598         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29599
29600 2010-05-10  Jim Meyering  <meyering@redhat.com>
29601
29602         maint.mk: avoid using a temporary file in the always-defined-macros check
29603         * top/maint.mk (.re-defmac): Remove rule.
29604         (gl_trap_): Remove definition.
29605         (sc_prohibit_always-defined_macros): Rewrite not to create and
29606         depend on a temporary file.  Instead, depend on GNU grep's ability
29607         to read a list of regular expressions from stdin when given "-f -".
29608
29609 2010-05-09  Bruno Haible  <bruno@clisp.org>
29610
29611         Update to GNU gettext 0.18, part 1.
29612         * m4/gettext.m4: Update to GNU gettext 0.18.
29613         * m4/intl.m4: Likewise.
29614         * m4/po.m4: Likewise.
29615         * modules/gettext (Files): Add m4/fcntl-o.m4.
29616         (configure.ac): Require gettext infrastructure from version 0.18.
29617
29618 2010-05-09  Jim Meyering  <meyering@redhat.com>
29619
29620         init.sh: enable MALLOC_PERTURB_
29621         * tests/init.sh: Enable glibc's malloc-perturbing option.
29622
29623         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29624         With my recent change in init.sh from the two-line form:
29625             -#   : ${srcdir=.}
29626             -#   . "$srcdir/init.sh"; path_prepend_ .
29627             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29628         I noticed that using the one-line form would cause this test
29629         to fail with a false-positive, or to stop working altogether,
29630         depending on whether help-version changed or all the tests did.
29631         * top/maint.mk (_hv_regex): Remove this definition.
29632         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29633         (_hv_regex_strong): Use a stronger regex to check for conformance.
29634         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29635         Give a separate diagnostic for lack of conforming use.
29636
29637         maint.mk: prohibit definition of symbols defined by gnulib
29638         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29639         definition of symbols defined by gnulib.
29640
29641 2010-05-09  Bruno Haible  <bruno@clisp.org>
29642
29643         acl: Avoid test failure on Cygwin-hosted mingw.
29644         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29645
29646 2010-05-09  Bruno Haible  <bruno@clisp.org>
29647
29648         error: Use system's fcntl function.
29649         * lib/error.c (fcntl): Undefine.
29650
29651 2010-05-09  Jim Meyering  <meyering@redhat.com>
29652
29653         verify: adjust formatting to be more consistent
29654         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29655         argument-list '('s, and after one comma.
29656
29657 2010-05-09  Bruno Haible  <bruno@clisp.org>
29658
29659         error: More reliable output on mingw.
29660         * lib/error.c: Include <windows.h>.
29661         (is_open): New function.
29662         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29663         defined.
29664
29665 2010-05-09  Bruno Haible  <bruno@clisp.org>
29666
29667         vasnprintf: Fix syntax errors in libintl build on mingw.
29668         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29669         pad_ourselves and prec_ourselves after use.
29670
29671 2010-05-08  Bruno Haible  <bruno@clisp.org>
29672
29673         * lib/config.charset: Update comments for Cygwin 1.7.
29674         * lib/localcharset.c: Likewise.
29675
29676 2010-05-07  Jim Meyering  <meyering@redhat.com>
29677
29678         init.sh: improve comments
29679         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29680         . "${srcdir=.}/init.sh"; path_prepend_ .
29681         Add a note about path_prepend_ and the alternative of using
29682         TESTS_ENVIRONMENT.
29683
29684 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29685
29686         exclude: Unescape hashed patterns in wildcard mode.
29687         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29688         to the hash list.
29689         * tests/test-exclude8.sh: New test case.
29690         * modules/exclude-tests: Add new test.
29691
29692 2010-05-05  Eric Blake  <eblake@redhat.com>
29693
29694         verify: automate tests
29695         * modules/verify-tests: New module.
29696         * tests/test-verify.sh: New file.
29697         * tests/test-verify.c: Guard each negative test with a unique id.
29698         Also avoid warning about unused left hand of comma expressions.
29699
29700 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29701
29702         Further improvements to verify.h, suggested by Eric Blake.
29703         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29704         the GL_* versions, to avoid collision with OpenGL.
29705         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29706         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29707         than testing merely whether it's defined.
29708
29709         Modify verify.h to pacify gcc -Wredundant_decls.
29710         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29711         These use the prefix "GL_" since they're likely to be useful elsewhere.
29712         We may need to break them out into a different .h file.
29713         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29714         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29715         of verify_function__.
29716
29717 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29718
29719         Tests for module pwrite.
29720         * modules/pwrite-tests: New file.
29721         * tests/test-pwrite.sh: New file.
29722         * tests/test-pwrite.c: New file.
29723
29724         New module pwrite.
29725         * lib/unistd.in.h (pwrite): New declaration.
29726         * lib/pwrite.c: New file, from glibc with modifications.
29727         * m4/pwrite.m4: New file.
29728         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29729         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29730         REPLACE_PWRITE.
29731         * modules/pwrite: New file.
29732         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29733         REPLACE_PWRITE.
29734         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29735         * doc/posix-functions/pwrite.texi: Mention the new module.
29736
29737 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29738
29739         pread: Update documentation.
29740         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29741
29742 2010-05-04  Eric Blake  <eblake@redhat.com>
29743
29744         docs: update cygwin progress
29745         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29746         this bug.
29747         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29748         Added in cygwin 1.7.2.
29749         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29750         Likewise.
29751         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29752         Likewise.
29753         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29754         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29755         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29756         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29757         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29758         Mention nproc module.
29759         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29760         bug in cygwin 1.7.5 addition.
29761         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29762         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29763         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29764         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29765         1.7.5.
29766         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29767         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29768         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29769         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29770         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29771         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29772         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29773         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29774         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29775         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29776         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29777         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29778         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29779         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29780         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29781         Likewise.
29782         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29783         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29784         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29785         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29786         Likewise.
29787         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29788         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29789         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29790         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29791         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29792         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29793         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29794         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29795         Likewise.
29796         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29797         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29798         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29799         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29800         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29801         Likewise.
29802         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29803         Likewise.
29804         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29805         Likewise.
29806         * doc/glibc-functions/xdrrec_endofrecord.texi
29807         (xdrrec_endofrecord): Likewise.
29808         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29809         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29810         Likewise.
29811         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29812         Likewise.
29813
29814 2010-05-04  Jim Meyering  <meyering@redhat.com>
29815
29816         gendocs.sh: make its "-s FILE" option more useful
29817         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29818         $PACKAGE to reflect the probably-different basename of "FILE".
29819
29820 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29821
29822         bootstrap: don't ignore download_po_files failure
29823         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29824         failure.
29825
29826 2010-05-03  Jim Meyering  <meyering@redhat.com>
29827
29828         maint.mk: allow to pass options to gendocs.sh
29829         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29830         (gendocs_options_): New overridable variable.
29831
29832         gnu-web-doc-update: don't ignore configure or build failure
29833         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29834
29835         announce-gen: backslash-escape '@'s in --help output
29836         * build-aux/announce-gen: Fix syntax errors.
29837
29838         maint.mk, announce-gen: allow project-specific announcement mail headers
29839         * top/maint.mk (translation_project_): Define default.
29840         (announcement_Cc_, announcement_mail_headers_): Likewise.
29841         (announcement): Invoke announce-gen with new --mail-headers option.
29842         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29843
29844         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29845         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29846         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29847         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29848         line in the "err2" output file when running "make check" in verbose
29849         mode (i.e., with set -x enabled).
29850
29851 2010-05-03  Bruno Haible  <bruno@clisp.org>
29852
29853         wctob: Fix for weird platforms.
29854         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29855         argument value.
29856
29857 2010-05-03  Jim Meyering  <meyering@redhat.com>
29858
29859         maint.mk: prohibit unwarranted use of <strings.h>
29860         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29861         strings.h in a file that does not also use strcasecmp, strncasecmp,
29862         ffs or ffsll.
29863
29864         maint.mk: remove obsolete comments
29865         * top/maint.mk: Remove stale, commented-out rules.
29866
29867 2010-05-02  Bruno Haible  <bruno@clisp.org>
29868
29869         wcwidth: Declare also when it's aliased.
29870         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29871         macro.
29872
29873 2010-05-02  Bruno Haible  <bruno@clisp.org>
29874
29875         Fix regression from 2010-04-25.
29876         * gnulib-tool (func_modules_transitive_closure): Check the status of
29877         all modules, not only of the tests that are of the form foo-tests where
29878         foo is a module.
29879
29880 2010-05-02  Bruno Haible  <bruno@clisp.org>
29881
29882         wctob: Work around nasty Cygwin 1.7.2 bug.
29883         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29884         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29885
29886 2010-05-01  Bruno Haible  <bruno@clisp.org>
29887
29888         fpurge: Sharper test.
29889         * tests/test-fpurge.c (main): Add one more ftell check.
29890         * modules/fpurge-tests (Depends-on): Add ftell.
29891         Suggested by Eric Blake.
29892
29893 2010-05-01  Bruno Haible  <bruno@clisp.org>
29894
29895         ftello: Another test.
29896         * tests/test-ftello3.c: New file.
29897         * modules/ftello-tests (Files): Add it.
29898         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29899         MOSTLYCLEANFILES.
29900
29901         ftell: Another test.
29902         * tests/test-ftell3.c: New file.
29903         * modules/ftell-tests (Files): Add it.
29904         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29905         MOSTLYCLEANFILES.
29906
29907 2010-05-01  Bruno Haible  <bruno@clisp.org>
29908
29909         ftell, ftello: Work around Solaris bug.
29910         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29911         * lib/ftello.c: Include stdio-impl.h.
29912         (ftello): On Solaris, when _IOWRT is set, compute the result without
29913         looking at _IOREAD.
29914         * modules/ftello (Files): Add lib/stdio-impl.h.
29915         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29916         * doc/posix-functions/ftello.texi: Likewise.
29917         Reported by Eric Blake.
29918
29919 2010-05-01  Bruno Haible  <bruno@clisp.org>
29920
29921         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29922         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29923         the _IOWRT flag is also set.
29924
29925 2010-05-01  Bruno Haible  <bruno@clisp.org>
29926
29927         Fix doc about a HP-UX stdio bug.
29928         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29929         * doc/posix-functions/ftello.texi: Likewise.
29930
29931 2010-05-01  Bruno Haible  <bruno@clisp.org>
29932
29933         lseek test: Fix failure on Solaris.
29934         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29935         output.
29936
29937 2010-04-30  Jim Meyering  <meyering@redhat.com>
29938
29939         bootstrap: don't ignore failure to generate po*/Makevars
29940         * build-aux/bootstrap (with_gettext): Don't ignore failure
29941         to create po/Makevars or runtime-po/Makevars.
29942
29943 2010-04-29  Eric Blake  <eblake@redhat.com>
29944
29945         headers: relax license to LGPLv2+
29946         * modules/fcntl-h (License): Relax license.
29947         * modules/getopt-posix (License): Likewise.
29948         * modules/locale (License): Likewise.
29949         * modules/math (License): Likewise.
29950         * modules/pty (License): Likewise.
29951         * modules/sched (License): Likewise.
29952         * modules/search (License): Likewise.
29953         * modules/spawn (License): Likewise.
29954         * modules/stdarg (License): Likewise.
29955         * modules/sysexits (License): Likewise.
29956
29957 2010-04-29  Jim Meyering  <meyering@redhat.com>
29958
29959         inttypes: relax license to LGPLv2+
29960         * modules/inttypes (License): Relax license.
29961
29962 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29963
29964         * top/maint.mk (indent): Run twice to produce idempotent results.
29965
29966 2010-04-28  Bruno Haible  <bruno@clisp.org>
29967
29968         getdate: Generate getdate.c in the source directory.
29969         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29970         MOSTLYCLEANFILES.
29971         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29972
29973 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29974
29975         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29976         is not declared as a const *; avoid warnings in that case.
29977
29978 2010-04-28  Eric Blake  <eblake@redhat.com>
29979
29980         canonicalize-lgpl: avoid compiler warning
29981         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29982         declaration' / 'extraneous semicolon' warning with some compilers.
29983         Reported by Andreas Gruenbacher.
29984
29985 2010-04-28  Jim Meyering  <meyering@redhat.com>
29986
29987         init.sh: ensure a more reliable exit status when exiting via trap
29988         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29989         Inspired by patches from Dmitry V. Levin.
29990         Also trap on signal 3 (SIGQUIT).
29991
29992 2010-04-27  Bruno Haible  <bruno@clisp.org>
29993
29994         Update doc about utimes().
29995         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29996         'utimens' module.
29997         Reported by Andreas Gruenbacher <agruen@suse.de>.
29998
29999 2010-04-27  Eric Blake  <eblake@redhat.com>
30000
30001         full-read, full-write: relax license
30002         * modules/full-read (License): Drop to LGPLv2+.
30003         * modules/full-write (License): Likewise.
30004         * modules/safe-read (License): Likewise.
30005         * modules/safe-write (License): Likewise.
30006
30007         pthread: mention library for linking
30008         * modules/pthread (Link): Mention $(LIB_PTHREAD).
30009
30010 2010-04-27  Jim Meyering  <meyering@redhat.com>
30011
30012         maint.mk: fix a bug introduced in last change
30013         * top/maint.mk (gl_assured_headers_): Now that all names are on
30014         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
30015         is not anchored to end of word, it should be adequate.
30016
30017         maint.mk: avoid side-effect in latest syntax-check
30018         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
30019         to run commands via $(shell...), and hence to incur cost only when
30020         the new rule is actually run.
30021
30022         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
30023         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
30024         and use that to create a regexp used to detect all #if HAVE_..._H uses.
30025         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
30026         (gl_assured_headers_, az_, AZ_): Define.
30027         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
30028
30029 2010-04-26  Jim Meyering  <jim@meyering.net>
30030             Bruno Haible  <bruno@clisp.org>
30031
30032         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
30033         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
30034         Prompted by an exchange with Gilles Espinasse.
30035
30036 2010-04-26  Jim Meyering  <meyering@redhat.com>
30037
30038         git-version-gen: aesthetic tweak
30039         * build-aux/git-version-gen: Use "$nl" rather than a literal,
30040         so that the command remains on a single line.
30041
30042 2010-04-26  Eric Blake  <eblake@redhat.com>
30043
30044         git-version-gen: allow use on EBCDIC hosts
30045         * build-aux/git-version-gen (dirty): Use literal rather than tying
30046         ourselves to ascii.
30047         Reported by Steve Goetze.
30048
30049 2010-04-25  Bruno Haible  <bruno@clisp.org>
30050
30051         netdb: Add support for GNULIB_POSIXCHECK.
30052         * lib/netdb.in.h: Include warn-on-use.h.
30053         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
30054         functions are used when GNULIB_POSIXCHECK is defined and the
30055         getaddrinfo module is not in use.
30056         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
30057         freeaddrinfo, gai_strerror, getnameinfo are declared.
30058         * modules/netdb (Depends-on): Add warn-on-use.
30059         (Makefile.am): Include warn-on-use.h in netdb.h.
30060
30061 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
30062
30063         build: avoid "make check" failure without .git/ directory
30064         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
30065         there is no .git/ directory.
30066
30067 2010-04-25  Bruno Haible  <bruno@clisp.org>
30068
30069         ptsname: Fix misuse of ttyname_r.
30070         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
30071         of errno.
30072
30073 2010-04-25  Bruno Haible  <bruno@clisp.org>
30074
30075         ttyname_r: Make it work on Solaris 10.
30076         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
30077         if the system function has the POSIX declaration. Test whether the
30078         function fails if the buffer is less than 128 bytes large.
30079         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
30080         system's ttyname_r function. Provide a reasonably large buffer.
30081         * modules/ttyname_r (Depends-on): Add extensions.
30082         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
30083
30084 2010-04-25  Bruno Haible  <bruno@clisp.org>
30085
30086         Use the 'extensions' module for some more functions on Solaris.
30087         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
30088         module.
30089         * doc/posix-functions/ctime_r.texi: Likewise.
30090         * doc/posix-functions/getgrgid_r.texi: Likewise.
30091         * doc/posix-functions/getgrnam_r.texi: Likewise.
30092         * doc/posix-functions/getpwnam_r.texi: Likewise.
30093         * doc/posix-functions/getpwuid_r.texi: Likewise.
30094         * doc/posix-functions/readdir_r.texi: Likewise.
30095         * doc/posix-functions/sigwait.texi: Likewise.
30096         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
30097         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
30098
30099 2010-04-25  Bruno Haible  <bruno@clisp.org>
30100
30101         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
30102         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
30103         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
30104         * lib/ttyname_r.c: Include <limits.h>.
30105         (ttyname_r): Define using the system's ttyname_r function, if it exists
30106         and not on Solaris.
30107         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
30108         set.
30109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
30110         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
30111         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
30112         Reported by Simon Josefsson.
30113
30114 2010-04-25  Bruno Haible  <bruno@clisp.org>
30115
30116         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
30117         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
30118         * doc/posix-functions/ctime_r.texi: Likewise.
30119         * doc/posix-functions/getgrgid_r.texi: Likewise.
30120         * doc/posix-functions/getgrnam_r.texi: Likewise.
30121         * doc/posix-functions/getlogin_r.texi: Likewise.
30122         * doc/posix-functions/getpwnam_r.texi: Likewise.
30123         * doc/posix-functions/getpwuid_r.texi: Likewise.
30124         * doc/posix-functions/readdir_r.texi: Likewise.
30125         * doc/posix-functions/sigwait.texi: Likewise.
30126         * doc/posix-functions/ttyname_r.texi: Likewise.
30127         Reported by Simon Josefsson.
30128
30129 2010-04-25  Bruno Haible  <bruno@clisp.org>
30130
30131         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
30132         * gnulib-tool (func_usage): Document that --with-*-tests options apply
30133         also to --create-testdir.
30134         (func_acceptable): Don't consider the status of *-tests modules here.
30135         (func_modules_transitive_closure): Consider it here, before including a
30136         test module.
30137         (func_import, func_create_testdir): Set inc_all_direct_tests,
30138         inc_all_indirect_tests.
30139         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
30140         --create-testdir and --create-megatestdir.
30141
30142 2010-04-25  Bruno Haible  <bruno@clisp.org>
30143
30144         gnulib-tool: Add --without-*-tests options.
30145         * gnulib-tool (func_usage): Document the --without-*-tests options.
30146         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
30147         excl_unportable_tests): New variables.
30148         Fail if they are specified with --import or --update.
30149         (func_acceptable): Respect the excl_*_tests variables.
30150         (func_import): Set the excl_*_tests variables to empty.
30151
30152 2010-04-25  Simon Josefsson  <simon@josefsson.org>
30153             Bruno Haible  <bruno@clisp.org>
30154
30155         Work around a MacOS X 10.4 bug with openpty.
30156         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
30157         * tests/test-openpty.c (main): Close the master side explicitly.
30158
30159 2010-04-25  Bruno Haible  <bruno@clisp.org>
30160
30161         strnlen: Fix a C++ test error on MacOS X and Solaris.
30162         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
30163         the function is not declared.
30164         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
30165         Simon Josefsson.
30166
30167 2010-04-24  Bruno Haible  <bruno@clisp.org>
30168
30169         Avoid a gcc warning.
30170         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
30171         of correct type for %08lx directive.
30172         Reported by Eric Blake.
30173
30174 2010-04-24  Bruno Haible  <bruno@clisp.org>
30175
30176         vasnprintf: Correct errno value in case of out-of-memory.
30177         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
30178         or sprintf. Use the errno value from SNPRINTF or sprintf.
30179         Reported by Ian Beckwith <ianb@erislabs.net>.
30180
30181 2010-04-24  Bruno Haible  <bruno@clisp.org>
30182
30183         ansi-c++-opt: Find correct compiler when cross-compiling.
30184         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
30185         AC_CHECK_PROGS.
30186         Reported by Simon Josefsson.
30187
30188 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
30189
30190         vc-list-files: Add support for subversion
30191         * build-aux/vc-list-files: Use "svn list" to generate the list of
30192         files controlled by subversion.
30193
30194 2010-04-23  Jim Meyering  <meyering@redhat.com>
30195
30196         vc-list-files tests: convert to use init.sh
30197         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
30198         path_prepend_.
30199         Use Exit, not exit.
30200         Use skip_ rather than open coding it.
30201         Remove trap set-up and compare definitions.
30202         * tests/test-vc-list-files-git.sh: Likewise.
30203         * modules/vc-list-files-tests (Files): Add tests/init.sh.
30204
30205 2010-04-22  Simon Josefsson  <simon@josefsson.org>
30206
30207         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
30208         backup files.
30209
30210 2010-04-21  Simon Josefsson  <simon@josefsson.org>
30211
30212         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
30213
30214 2010-04-20  Eric Blake  <eblake@redhat.com>
30215
30216         tests: be robust to ignored SIGPIPE
30217         * tests/test-select-in.sh: Consume all output.
30218         * tests/test-lseek.sh: Check correct exit status, while avoiding
30219         EPIPE.
30220
30221 2010-04-20  Simon Josefsson  <simon@josefsson.org>
30222             Bruno Haible  <bruno@clisp.org>
30223
30224         visibility: Don't use -fvisibility if it leads to a warning.
30225         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
30226         yes, don't pretend that visibility works if it leads to a warning.
30227         Reported by Mike Gran <spk121@yahoo.com>.
30228
30229 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
30230
30231         * build-aux/bootstrap: Use "git -h" for testing for supported options
30232         instead of "git --help".  The short-form option only shows a summary,
30233         and doesn't layout the full man page.  Grep for the full option name
30234         in the summary, too.
30235
30236 2010-04-19  Bruno Haible  <bruno@clisp.org>
30237
30238         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
30239         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
30240         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
30241         mention of RELOCATABLE_STRIP.
30242         Reported by Sylvain Beucler <beuc@beuc.net>.
30243
30244 2010-04-19  Bruno Haible  <bruno@clisp.org>
30245
30246         * lib/diffseq.h: Fix typo in comment.
30247         Reported by Eric Blake.
30248
30249 2010-04-19  Bruno Haible  <bruno@clisp.org>
30250
30251         ioctl: Move autoconf macro to a .m4 file.
30252         * m4/ioctl.m4: New file, extracted from modules/ioctl.
30253         * modules/ioctl (Files): Add it.
30254         (configure.ac): Simply invoke gl_FUNC_IOCTL.
30255         Reported by Ian Beckwith <ianb@erislabs.net>.
30256
30257 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
30258             Bruno Haible  <bruno@clisp.org>
30259
30260         diffseq: Accommodate use-case with abstract arrays.
30261         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
30262         is not defined.
30263         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
30264         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
30265
30266 2010-04-18  Bruno Haible  <bruno@clisp.org>
30267
30268         * doc/posix-headers/stdbool.texi: More precise wording.
30269
30270 2010-04-17  Jim Meyering  <meyering@redhat.com>
30271
30272         maint.mk: use gnu-style indentation in an embedded perl script
30273         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
30274         Rename variable: s/two/last_two_bytes/
30275
30276 2010-04-16  Eric Blake  <eblake@redhat.com>
30277
30278         test-stdbool: skip test that fails with Solaris CC
30279         * tests/test-stdbool.c (f): Skip test that causes compilation
30280         error under buggy C++ compiler.
30281         * lib/stdbool.in.h: Document the limitation.
30282         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
30283
30284         setenv: allow compilation with C++
30285         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
30286         register keyword.
30287
30288         stdint: allow test to pass with C++
30289         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
30290
30291         getopt: allow compilation with C++
30292         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
30293         struct.
30294         * lib/getopt.c (_getopt_internal_r): Use correct type.
30295         Reported by Dagobert Michelson, via Joel E. Denny.
30296
30297 2010-04-16  Bruno Haible  <bruno@clisp.org>
30298
30299         Override netdb.h always.
30300         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
30301         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
30302         Reported by Ludovic Courtès <ludo@gnu.org>.
30303
30304 2010-04-15  Bruno Haible  <bruno@clisp.org>
30305
30306         openpty: Fix mistake from 2010-03-21.
30307         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
30308         Reported by Simon Josefsson.
30309
30310 2010-04-15  Eric Blake  <eblake@redhat.com>
30311
30312         test-forkpty: fix expected signature
30313         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30314         Reported by Simon Josefsson.
30315
30316 2010-04-15  Jim Meyering  <meyering@redhat.com>
30317
30318         maint.mk: texinfo_suffix_re_: correct the default regexp
30319         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30320
30321         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30322         make it configurable via texinfo_suffix_re_.
30323
30324 2010-04-14  Eric Blake  <eblake@redhat.com>
30325
30326         strtok_r: relax license to LGPLv2+
30327         * modules/strtok_r (License): Relax license.
30328         Reported by Matthias Bolte.
30329
30330 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30331
30332         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30333         version 1.4.4 by default instead of requiring the libgcrypt
30334         version used during build.  This makes it possible to use the
30335         application with older but still binary compatible libgcrypt
30336         versions.
30337
30338 2010-04-13  Eric Blake  <eblake@redhat.com>
30339
30340         getopt-gnu: match recent glibc fixes and posix ruling
30341         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30342         '+' handling, when requesting extensions.
30343         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30344         'W;' handling.
30345         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30346         * doc/posix-functions/getopt.texi (getopt): Document this.
30347         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30348         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30349         Likewise.
30350
30351         getopt: merge bug fixes from glibc
30352         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30353         diagnostics.  Honor '+:' correctly.  Reject ';'.
30354
30355         getopt-posix: detect MacOS bug
30356         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30357         optind when missing a required argument.
30358         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30359         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30360         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30361         Likewise.
30362
30363         getopt-posix: avoid spurious failure on Solaris
30364         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30365         an indicator that setting optind=1 is sufficient for reset.
30366
30367         getopt-posix: avoid spurious failure on FreeBSD
30368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30369         in POSIX mode, since the m4 test uses it.
30370
30371         gnulib-tool: silence warning on BSD sh
30372         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30373
30374 2010-04-13  Jim Meyering  <meyering@redhat.com>
30375
30376         doc: users.txt: GNU patch now uses gnulib
30377         * users.txt: Add patch.
30378
30379 2010-04-12  Jim Meyering  <meyering@redhat.com>
30380
30381         maint.mk: generate more concise timing data for syntax-check rules
30382         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30383         " done" from each line that reports a syntax-check test duration.
30384
30385 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30386
30387         git-version-gen: use "git update-index..." rather than "git status"
30388         * build-aux/git-version-gen: Use git update-index --refresh, not
30389         "git status".  With some versions of git, "git status" would fail
30390         to update the index and result in an unwarranted "-dirty" suffix.
30391
30392 2010-04-11  Jim Meyering  <meyering@redhat.com>
30393
30394         openat: correct formatting (no semantic change)
30395         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30396         Suggested by Bruno Haible.
30397
30398 2010-04-11  Bruno Haible  <bruno@clisp.org>
30399
30400         Stricter declaration checking in testdirs.
30401         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30402         If for_tests is true, augment AM_CPPFLAGS to define
30403         GNULIB_STRICT_CHECKING.
30404         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30405         GNULIB_STRICT_CHECKING is defined, verify that the function is
30406         declared.
30407
30408 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30409             Bruno Haible  <bruno@clisp.org>
30410
30411         libunistring: Improve configure output.
30412         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30413         Don't say "consider installing GNU libunistring" when checking again
30414         with libiconv.
30415
30416 2010-04-11  Bruno Haible  <bruno@clisp.org>
30417
30418         libunistring: Correct value of $LTLIBUNISTRING.
30419         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30420         correct the value of $LTLIBUNISTRING.
30421
30422 2010-04-11  Bruno Haible  <bruno@clisp.org>
30423
30424         havelib: Add static libraries to LIBS in the right order.
30425         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30426         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30427
30428 2010-04-11  Bruno Haible  <bruno@clisp.org>
30429
30430         libunistring: Detect libunistring also when it depends on libiconv.
30431         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30432         the second AC_LIB_HAVE_LINKFLAGS invocation.
30433
30434 2010-04-11  James Youngman  <jay@gnu.org>
30435
30436         close-stream: declare local scalars to be "const"
30437         * lib/close-stream.c (close_stream): Make boolean variables const
30438         to document the fact that we set but do not change them.
30439
30440 2010-04-11  Bruno Haible  <bruno@clisp.org>
30441
30442         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30443
30444 2010-04-11  Jim Meyering  <meyering@redhat.com>
30445
30446         maint.mk: don't include dist-check.mk
30447         * top/maint.mk: Remove bogus include directive.
30448
30449         maint.mk: improve empty-line-at-EOF check
30450         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30451         solution, rather than tail+Perl-based one.  The latter would read
30452         a few kilobytes from the end of each file, and did not handle empty
30453         files properly.
30454
30455         maint.mk: print the elapsed time for each syntax-check rule
30456         * top/maint.mk (sc_m_rules_): Save start time in a file.
30457         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30458         (local-check): Interpose the .z rules
30459
30460 2010-04-11  Jim Meyering  <meyering@redhat.com>
30461
30462         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30463         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30464         empty file with one that ends in an empty line.
30465
30466 2010-04-10  Bruno Haible  <bruno@clisp.org>
30467
30468         mkdir: Make it work on mingw64.
30469         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30470         * lib/mkdir.c: Update comment.
30471         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
30472
30473 2010-04-10  Bruno Haible  <bruno@clisp.org>
30474
30475         Don't override improved macro from newer autoconf.
30476         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30477         autoconf >= 2.62.
30478         Reported by Joel E. Denny <jdenny@clemson.edu>.
30479
30480 2010-04-10  Jim Meyering  <meyering@redhat.com>
30481
30482         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30483         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30484
30485         maint.mk: correct a diagnostic
30486         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30487         in diagnostic; now use $prohibit.
30488
30489 2010-04-10  Bruno Haible  <address@hidden>
30490
30491         fchownat: Fix a C++ test error on Solaris 8.
30492         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30493         the function does not exist.
30494
30495 2010-04-10  Bruno Haible  <bruno@clisp.org>
30496
30497         vasnprintf: Add more tests.
30498         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30499         (test_function): Test converting an invalid wide string.
30500
30501         vasnprintf: Correct handling of unconvertible wide string arguments.
30502         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30503         VASNPRINTF.
30504         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30505         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30506         smaller than the expected maximum need for the directive. Set errno to
30507         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30508         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30509         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30510         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30511         * modules/vasnprintf (Files): Add m4/printf.m4.
30512         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30513
30514 2010-04-10  Bruno Haible  <bruno@clisp.org>
30515
30516         vasnprintf: Fix crash in %ls directive.
30517         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30518         string is passed as argument to %ls, with no precision and no width.
30519         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30520
30521 2010-04-10  Bruno Haible  <bruno@clisp.org>
30522
30523         vasnprintf: Fix multiple test failures on mingw.
30524         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30525         _snprintf, or snwprintf, not _snwprintf.
30526
30527 2010-04-10  Bruno Haible  <bruno@clisp.org>
30528
30529         write: Fix a C++ test error on mingw.
30530         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30531
30532 2010-04-10  Bruno Haible  <bruno@clisp.org>
30533
30534         vasnprintf test: Reduce code duplication.
30535         * tests/test-vasnprintf.c (test_function): New function, extracted from
30536         test_vasnprintf.
30537         (test_vasnprintf, test_asnprintf): Invoke it.
30538
30539 2010-04-10  Bruno Haible  <bruno@clisp.org>
30540
30541         strnlen: Fix warning in C++ mode on MacOS X.
30542         * lib/string.in.h (strnlen): Use the modern idiom.
30543         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30544         defining strnlen as a macro already in <config.h>.
30545         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30546         REPLACE_STRNLEN.
30547         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30548         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30549
30550 2010-04-08  James Youngman  <jay@gnu.org>
30551
30552         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30553         the example.
30554
30555 2010-04-09  Jim Meyering  <meyering@redhat.com>
30556
30557         maint.mk: print better diagnostic when there is no $(_hv_file)
30558         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30559         announce that when $(_hv_file) (aka help-version) does not exist.
30560
30561         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30562         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30563         not try to interpret its random input bytes.  Jarno Rajahalme reported
30564         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30565         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30566         (mktempd_): Likewise, just in case.
30567
30568         ftruncate: add two years to projected module removal date: 2012
30569         * m4/ftruncate.m4: Adjust comments.
30570
30571         ftruncate: mark module as obsolete; even MinGW provides it, now
30572         * modules/ftruncate (Status): Obsolete.
30573         (Notice): Say that.
30574         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30575         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30576
30577 2010-04-08  Bruno Haible  <bruno@clisp.org>
30578
30579         Fix side effects from tests-related modules.
30580         * modules/dprintf-posix (Comment): New section.
30581         * modules/fprintf-posix (Comment): Likewise.
30582         * modules/obstack-printf-posix (Comment): Likewise.
30583         * modules/printf-posix (Comment): Likewise.
30584         * modules/snprintf-posix (Comment): Likewise.
30585         * modules/sprintf-posix (Comment): Likewise.
30586         * modules/vasnprintf-posix (Comment): Likewise.
30587         * modules/vasprintf-posix (Comment): Likewise.
30588         * modules/vdprintf-posix (Comment): Likewise.
30589         * modules/vfprintf-posix (Comment): Likewise.
30590         * modules/vprintf-posix (Comment): Likewise.
30591         * modules/vsnprintf-posix (Comment): Likewise.
30592         * modules/vsprintf-posix (Comment): Likewise.
30593         * modules/xprintf-posix (Comment): Likewise.
30594         * modules/xvasprintf-posix (Comment): Likewise.
30595         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30596         * modules/floorf-tests (Depends-on): Likewise.
30597         * modules/round-tests (Depends-on): Likewise.
30598         * modules/roundf-tests (Depends-on): Likewise.
30599         * modules/trunc-tests (Depends-on): Likewise.
30600         * modules/truncf-tests (Depends-on): Likewise.
30601         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30602         'fprintf-posix' module is not present.
30603         * tests/test-floorf2.c (check): Likewise.
30604         * tests/test-trunc2.c (check): Likewise.
30605         * tests/test-truncf2.c (check): Likewise.
30606         * tests/test-round2.c (equal): Likewise.
30607         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30608
30609 2010-04-07  Karl Berry  <karl@gnu.org>
30610
30611         * config/srclist.txt,
30612         * config/srclistvars.sh,
30613         * config/srclist-update: doc fixes.
30614
30615 2010-04-07  Jim Meyering  <meyering@redhat.com>
30616
30617         maint.mk: add a PATH crosschecking syntax-check rule
30618         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30619         Useful if you use a test like the one in help-version (coreutils,
30620         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30621         printed by prog --version.
30622
30623 2010-04-06  Bruno Haible  <bruno@clisp.org>
30624
30625         Fix link error on mingw.
30626         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30627         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30628
30629 2010-04-06  Bruno Haible  <bruno@clisp.org>
30630
30631         Assume rmdir exists.
30632         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30633
30634 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30635
30636         doc: update users.txt
30637         * users.txt: Add gcal.
30638
30639 2010-04-06  Jim Meyering  <meyering@redhat.com>
30640
30641         init.sh: simply unset TMPDIR rather than risking env -i
30642         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30643         although it probably works fine on all Unix-based systems, some
30644         systems (Cygwin?) cannot tolerate a totally cleared environment.
30645         Suggestion from Eric Blake.
30646
30647 2010-04-06  Jim Meyering  <meyering@redhat.com>
30648
30649         init.sh: portability fix: use env's POSIX-specified -i option not -u
30650         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30651         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30652
30653 2010-04-05  Bruno Haible  <bruno@clisp.org>
30654
30655         btowc: Work around Cygwin 1.7.2 bug.
30656         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30657         does not map NUL to 0.
30658         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30659
30660 2010-04-05  Bruno Haible  <bruno@clisp.org>
30661
30662         Make the multithread modules work on Cygwin 1.7.2.
30663         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30664         imported symbols can be declared weak, so that it returns "no" on
30665         Cygwin 1.7.2.
30666
30667 2010-04-05  Bruno Haible  <bruno@clisp.org>
30668
30669         Use the module 'strncat'.
30670         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30671
30672         Tests for module 'strncat'.
30673         * modules/strncat-tests: New file.
30674         * tests/test-strncat.c: New file.
30675
30676         New module 'strncat'.
30677         * lib/string.in.h (strncat): New declaration.
30678         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30679         * m4/strncat.m4: New file, based on m4/memchr.m4.
30680         * modules/strncat: New file.
30681         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30682         is declared.
30683         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30684         REPLACE_STRNCAT.
30685         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30686         REPLACE_STRNCAT.
30687         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30688         module.
30689         * tests/test-string-c++.cc: Check signature of strncat.
30690
30691 2010-04-05  Jim Meyering  <meyering@redhat.com>
30692
30693         xstrtoumax-tests: convert to use init.sh
30694         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30695         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30696         Use Exit, not exit.
30697         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30698
30699         xstrtoimax-tests: convert to use init.sh
30700         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30701         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30702         Use Exit, not exit.
30703         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30704
30705 2010-04-05  Bruno Haible  <bruno@clisp.org>
30706
30707         sys_socket: Avoid #define replacements in C++ mode.
30708         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30709         warning to the function if possible, rather than #defining the symbol
30710         to a dysfunctional alias.
30711
30712 2010-04-05  Bruno Haible  <bruno@clisp.org>
30713
30714         fseeko: Fix C++ test error on mingw.
30715         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30716         gl_FUNC_FSEEKO.
30717         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30718         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30719         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30720         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30721
30722 2010-04-05  Bruno Haible  <bruno@clisp.org>
30723
30724         duplocale: Improve test output.
30725         * tests/test-duplocale.c (main): Print reason for skipped test.
30726
30727 2010-04-05  Bruno Haible  <bruno@clisp.org>
30728
30729         Assume rmdir exists.
30730         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30731         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30732
30733 2010-04-05  Bruno Haible  <bruno@clisp.org>
30734
30735         Fix link error on Solaris 8 with cc.
30736         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30737
30738 2010-04-05  Bruno Haible  <bruno@clisp.org>
30739
30740         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30741         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30742
30743 2010-04-05  Bruno Haible  <bruno@clisp.org>
30744
30745         vasprintf: Update documentation.
30746         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30747
30748 2010-04-05  Bruno Haible  <bruno@clisp.org>
30749
30750         ptsname: Improve test.
30751         * tests/test-ptsname.c (main): Also try the various master names of BSD
30752         systems.
30753
30754 2010-04-05  Bruno Haible  <bruno@clisp.org>
30755
30756         memchr: Avoid a possible C++ test error.
30757         * lib/string.in.h (memchr): Provide declaration if function is missing.
30758         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30759         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30760         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30761         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30762
30763 2010-04-05  Bruno Haible  <bruno@clisp.org>
30764
30765         strtok_r: Improve idiom.
30766         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30767         AC_LIBOBJ is used.
30768
30769 2010-04-05  Bruno Haible  <bruno@clisp.org>
30770
30771         strdup: Improve idiom.
30772         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30773         AC_LIBOBJ is used.
30774         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30775         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30776         when AC_LIBOBJ is used.
30777
30778 2010-04-05  Bruno Haible  <bruno@clisp.org>
30779
30780         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30781         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30782         don't set REPLACE_MBSINIT to 1.
30783         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30784         don't set REPLACE_MBRTOWC to 1.
30785         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30786         exist, don't set REPLACE_MBSRTOWCS to 1.
30787         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30788         exist, don't set REPLACE_MBSNRTOWCS to 1.
30789         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30790         don't set REPLACE_WCRTOMB to 1.
30791         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30792         exist, don't set REPLACE_WCSRTOMBS to 1.
30793         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30794         exist, don't set REPLACE_WCSNRTOMBS to 1.
30795
30796 2010-04-05  Bruno Haible  <bruno@clisp.org>
30797
30798         ldexpl: Improve idiom.
30799         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30800         make sure to set HAVE_DECL_LDEXPL to 0.
30801
30802 2010-04-05  Jim Meyering  <meyering@redhat.com>
30803
30804         xstrtol-tests: convert to use init.sh
30805         * modules/xstrtol-tests (Files): Add tests/init.sh.
30806         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30807         Use Exit, not exit.
30808         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30809
30810         atexit-tests: convert to use init.sh
30811         * modules/atexit-tests (Files): Add tests/init.sh.
30812         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30813         Use Exit, not exit.
30814         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30815
30816         init.sh: fix typo
30817         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30818
30819         init.sh: make it easier for a test script to write to the tty, ...
30820         when using automake's parallel-tests mode.
30821         * tests/init.sh (stderr_fileno_): Define overridable variable.
30822         (warn_): New function, to use it.
30823         (fail_, skip_, framework_failure_): Use warn_.
30824
30825 2010-04-04  Bruno Haible  <bruno@clisp.org>
30826
30827         btowc: Avoid warning.
30828         * lib/btowc.c: Include <stdlib.h>.
30829         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30830
30831 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30832             Bruno Haible  <bruno@clisp.org>
30833
30834         wchar: Port to NetBSD 1.5.
30835         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30836         * lib/wctype.in.h (WEOF): Likewise.
30837
30838 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30839             Bruno Haible  <bruno@clisp.org>
30840
30841         Port extended stdio to NetBSD 1.5.
30842         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30843         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30844         older.
30845
30846 2010-04-04  Bruno Haible  <bruno@clisp.org>
30847
30848         string: Remove unused substitution.
30849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30850         HAVE_DECL_STRERROR.
30851         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30852
30853 2010-04-04  Bruno Haible  <bruno@clisp.org>
30854
30855         strtod: Avoid a possible C++ test error.
30856         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30857         set REPLACE_STRTOD.
30858
30859 2010-04-04  Bruno Haible  <bruno@clisp.org>
30860
30861         strerror: Update documentation.
30862         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30863
30864 2010-04-04  Bruno Haible  <bruno@clisp.org>
30865
30866         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30867         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30868         _GL_CXXALIAS_SYS_CAST.
30869
30870 2010-04-04  Bruno Haible  <bruno@clisp.org>
30871
30872         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30873         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30874         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30875         REPLACE_FREXPL to 1.
30876         * doc/posix-functions/frexpl.texi: Update documentation.
30877
30878 2010-04-04  Bruno Haible  <bruno@clisp.org>
30879
30880         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30881         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30882
30883 2010-04-04  Bruno Haible  <bruno@clisp.org>
30884
30885         Implement nanosleep for native Windows.
30886         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30887
30888 2010-04-04  Bruno Haible  <bruno@clisp.org>
30889
30890         math: Fix some C++ test errors on Solaris 8.
30891         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30892
30893 2010-04-04  Bruno Haible  <bruno@clisp.org>
30894
30895         math: Fix some C++ test errors on Cygwin.
30896         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30897         truncl): Provide declaration if the system does not have it.
30898         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30899         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30900         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30901         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30902         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30903         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30904         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30905         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30906         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30907         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30908         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30909         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30910         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30911         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30912         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30913         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30915         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30916         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30917         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30918         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30919         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30920
30921 2010-04-04  Bruno Haible  <bruno@clisp.org>
30922
30923         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30924         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30925         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30926         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30927         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30928         * m4/isinf.m4 (gl_ISINF): Likewise.
30929         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30930
30931 2010-04-04  Bruno Haible  <bruno@clisp.org>
30932
30933         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30934         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30935
30936 2010-04-04  Bruno Haible  <bruno@clisp.org>
30937
30938         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30939         * modules/tmpfile (configure.ac): Update.
30940
30941         tmpfile: Fix C++ test error on mingw.
30942         * lib/stdio.in.h (tmpfile): New declaration.
30943         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30944         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30945         * modules/tmpfile (Depends-on): Add stdio.
30946         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30947         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30948         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30949         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30950         REPLACE_TMPFILE.
30951         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30952
30953 2010-04-04  Bruno Haible  <bruno@clisp.org>
30954
30955         ioctl: Fix C++ test error on mingw.
30956         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30957         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30958         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30959
30960 2010-04-03  Bruno Haible  <bruno@clisp.org>
30961
30962         wcwidth: Fix C++ test error on mingw.
30963         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30964         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30965         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30966
30967 2010-04-03  Bruno Haible  <bruno@clisp.org>
30968
30969         nanosleep: Fix C++ test error on mingw.
30970         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30971         * lib/time.in.h (nanosleep): Use modern idiom.
30972         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30973         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30974         REPLACE_NANOSLEEP to 1.
30975         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30976         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30977
30978 2010-04-03  Bruno Haible  <bruno@clisp.org>
30979
30980         strptime: Fix C++ test error on mingw.
30981         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30982         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30983         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30984         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30985         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30986         not REPLACE_STRPTIME.
30987         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30988         REPLACE_STRPTIME.
30989
30990 2010-04-03  Bruno Haible  <bruno@clisp.org>
30991
30992         timegm: Fix C++ test error on mingw.
30993         * lib/time.in.h (timegm): Use modern idiom.
30994         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30995         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30996         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30997         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30998
30999 2010-04-03  Bruno Haible  <bruno@clisp.org>
31000
31001         timegm: Assume declaration if function exists.
31002         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
31003         if it exists. Don't clobber ac_cv_func_timegm.
31004
31005 2010-04-03  Bruno Haible  <bruno@clisp.org>
31006
31007         time_r: Fix C++ test error on mingw.
31008         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
31009         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
31010         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
31011         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
31012         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
31013
31014 2010-04-03  Bruno Haible  <bruno@clisp.org>
31015
31016         time_r: Minor updates.
31017         * modules/time_r (Description): Mention the provided functions.
31018         * lib/time_r.c: Don't include <string.h>.
31019         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
31020         * doc/posix-functions/localtime_r.texi: Likewise.
31021
31022 2010-04-03  Bruno Haible  <bruno@clisp.org>
31023
31024         time: Fix regression introduced on 2010-03-08.
31025         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
31026         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
31027
31028 2010-04-03  Jim Meyering  <meyering@redhat.com>
31029
31030         maint.mk: don't silently disable project-specific syntax-check rules
31031         * top/maint.mk (_prohibit_regexp): Define, to help people realize
31032         that they need to convert their project-specific syntax-check rules
31033         to use the new _sc_search_regexp.
31034
31035 2010-04-03  Bruno Haible  <bruno@clisp.org>
31036
31037         fchdir: Fix regression introduced on 2010-03-08.
31038         * lib/unistd.in.h (fchdir): Fix declaration.
31039         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
31040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
31041         REPLACE_FCHDIR.
31042         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
31043         REPLACE_FCHDIR.
31044
31045 2010-04-03  Bruno Haible  <bruno@clisp.org>
31046
31047         getpagesize: Fix C++ test error on mingw.
31048         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
31049         system does not declare the function.
31050         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
31051         declared.
31052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31053         HAVE_DECL_GETPAGESIZE.
31054         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
31055
31056 2010-04-03  Bruno Haible  <bruno@clisp.org>
31057
31058         stdio: Make C++ tests work on mingw.
31059         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
31060         does not declare the function.
31061
31062 2010-04-03  Bruno Haible  <bruno@clisp.org>
31063
31064         ftello: Fix C++ test error on mingw.
31065         * lib/stdio.in.h (ftello): Use modern idiom.
31066         * lib/ftello.c (ftello): Renamed from rpl_ftello.
31067         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
31068         is missing and that it needs to be replaced.
31069         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
31070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
31071         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
31072
31073 2010-04-03  Bruno Haible  <bruno@clisp.org>
31074
31075         fseeko: Fix C++ test error on mingw.
31076         * lib/stdio.in.h (fseeko): Use modern idiom.
31077         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
31078         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
31079         is missing and that it needs to be replaced.
31080         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
31081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
31082         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
31083
31084 2010-04-03  Bruno Haible  <bruno@clisp.org>
31085
31086         mkstemp: Fix C++ test error on mingw.
31087         * lib/stdlib.in.h (mkstemp): Use modern idiom.
31088         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
31089         function is missing and that it needs to be replaced.
31090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
31091         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
31092
31093 2010-04-03  Bruno Haible  <bruno@clisp.org>
31094
31095         stpncpy: Fix C++ test error on mingw.
31096         * lib/string.in.h (stpncpy): Use modern idiom.
31097         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
31098         function is missing and that it needs to be replaced.
31099         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31100         REPLACE_STPNCPY.
31101         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
31102
31103 2010-04-03  Bruno Haible  <bruno@clisp.org>
31104
31105         sys_stat: Fix C++ test error on mingw.
31106         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
31107         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
31108
31109 2010-04-03  Bruno Haible  <bruno@clisp.org>
31110
31111         pty: Update doc.
31112         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
31113
31114 2010-04-03  Bruno Haible  <bruno@clisp.org>
31115
31116         unistd: Fix C++ test error on mingw.
31117         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
31118
31119 2010-04-03  Bruno Haible  <bruno@clisp.org>
31120
31121         Update doc regarding mingw.
31122         * doc/glibc-functions/openpty.texi: Update regarding mingw.
31123         * doc/glibc-functions/login_tty.texi: Likewise.
31124         * doc/glibc-functions/forkpty.texi: Likewise.
31125
31126 2010-04-03  Bruno Haible  <bruno@clisp.org>
31127
31128         stdlib: Avoid compilation failure of c-strtold on mingw.
31129         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
31130
31131 2010-04-03  Bruno Haible  <bruno@clisp.org>
31132
31133         locale: Make C++ tests work on Cygwin and mingw.
31134         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
31135         cannot provide the function.
31136         Reported by Simon Josefsson.
31137
31138 2010-04-03  Bruno Haible  <bruno@clisp.org>
31139
31140         localename: Port to MacOS X 10.6.
31141         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
31142         memory layout of the locales in MacOS X 10.6 as well.
31143         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
31144
31145 2010-04-02  Bruno Haible  <bruno@clisp.org>
31146
31147         gnulib-tool: Ensure that long-running tests are executed last.
31148         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
31149         running tests after the one for the other tests.
31150
31151 2010-04-02  Bruno Haible  <bruno@clisp.org>
31152
31153         gnulib-tool: Ensure the tests in the main directory are executed first.
31154         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
31155         start with the current directory.
31156
31157 2010-04-02  Bruno Haible  <bruno@clisp.org>
31158
31159         Tests for module 'havelib', moved here from GNU gettext.
31160         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
31161         modifications.
31162         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
31163         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
31164         with modifications.
31165         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
31166         modifications.
31167         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
31168         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
31169         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
31170         with modifications.
31171         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
31172         with modifications.
31173         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
31174         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
31175         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
31176         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
31177         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
31178         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
31179         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
31180         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
31181         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
31182         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
31183         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
31184         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
31185         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
31186         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
31187         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
31188         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
31189         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
31190         with modifications.
31191         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
31192         with modifications.
31193         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
31194         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
31195         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
31196         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
31197         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
31198         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
31199         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
31200         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
31201         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
31202         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
31203         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
31204         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
31205         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
31206         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
31207         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
31208         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
31209         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
31210         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
31211         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
31212         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
31213         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
31214         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
31215         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
31216         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
31217         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
31218         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
31219         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
31220         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
31221         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
31222         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
31223         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
31224         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
31225         * tests/havelib/rpathx/rpathx.c: New file, from
31226         gettext/autoconf-lib-link.
31227         * tests/havelib/rpathx/Makefile.am: New file, from
31228         gettext/autoconf-lib-link.
31229         * tests/havelib/rpathx/configure.ac: New file, from
31230         gettext/autoconf-lib-link with modifications.
31231         * tests/havelib/rpathy/rpathy.c: New file, from
31232         gettext/autoconf-lib-link.
31233         * tests/havelib/rpathy/Makefile.am: New file, from
31234         gettext/autoconf-lib-link.
31235         * tests/havelib/rpathy/configure.ac: New file, from
31236         gettext/autoconf-lib-link with modifications.
31237         * tests/havelib/rpathz/rpathz.c: New file, from
31238         gettext/autoconf-lib-link.
31239         * tests/havelib/rpathz/Makefile.am: New file, from
31240         gettext/autoconf-lib-link.
31241         * tests/havelib/rpathz/configure.ac: New file, from
31242         gettext/autoconf-lib-link with modifications.
31243         * tests/havelib/rpathlx/usex.c: New file, from
31244         gettext/autoconf-lib-link.
31245         * tests/havelib/rpathlx/Makefile.am: New file, from
31246         gettext/autoconf-lib-link.
31247         * tests/havelib/rpathlx/configure.ac: New file, from
31248         gettext/autoconf-lib-link with modifications.
31249         * tests/havelib/rpathly/usey.c: New file, from
31250         gettext/autoconf-lib-link.
31251         * tests/havelib/rpathly/Makefile.am: New file, from
31252         gettext/autoconf-lib-link.
31253         * tests/havelib/rpathly/configure.ac: New file, from
31254         gettext/autoconf-lib-link with modifications.
31255         * tests/havelib/rpathlz/usez.c: New file, from
31256         gettext/autoconf-lib-link.
31257         * tests/havelib/rpathlz/Makefile.am: New file, from
31258         gettext/autoconf-lib-link.
31259         * tests/havelib/rpathlz/configure.ac: New file, from
31260         gettext/autoconf-lib-link with modifications.
31261         * tests/havelib/rpathlyx/usey.c: New file, from
31262         gettext/autoconf-lib-link.
31263         * tests/havelib/rpathlyx/Makefile.am: New file, from
31264         gettext/autoconf-lib-link.
31265         * tests/havelib/rpathlyx/configure.ac: New file, from
31266         gettext/autoconf-lib-link with modifications.
31267         * tests/havelib/rpathlzyx/usez.c: New file, from
31268         gettext/autoconf-lib-link.
31269         * tests/havelib/rpathlzyx/Makefile.am: New file, from
31270         gettext/autoconf-lib-link.
31271         * tests/havelib/rpathlzyx/configure.ac: New file, from
31272         gettext/autoconf-lib-link with modifications.
31273         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
31274         with modifications.
31275
31276 2010-04-02  Bruno Haible  <bruno@clisp.org>
31277
31278         gnulib-tool: Create distributed built sources also for the tests.
31279         * gnulib-tool (func_create_testdir): Also generate distributed built
31280         sources in the tests directory.
31281
31282 2010-04-02  Bruno Haible  <bruno@clisp.org>
31283
31284         gnulib-tool: Obey user's environment variables.
31285         * gnulib-tool (func_create_testdir): When creating built sources,
31286         respect the environment variables for autoconf, automake, etc. given by
31287         the user.
31288
31289 2010-04-02  Bruno Haible  <bruno@clisp.org>
31290
31291         gnulib-tool: Provide the value of --m4-base to modules.
31292         * gnulib-tool (func_import, func_create_testdir): Emit a definition
31293         of gl_m4_base.
31294
31295 2010-04-02  Eric Blake  <eblake@redhat.com>
31296
31297         maint.mk: fix some fallout
31298         * NEWS: Document the incompatible change, and its effect on cfg.mk.
31299         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
31300
31301 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31302
31303         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
31304         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
31305         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
31306         (sc_cast_of_x_alloc_return_value): Likewise.
31307         (sc_cast_of_alloca_return_value): Likewise.
31308         (sc_space_tab): Likewise.
31309         (sc_prohibit_atoi_atof): Likewise.
31310         (sc_prohibit_magic_number_exit): Likewise.
31311         (sc_error_exit_success): Likewise.
31312         (sc_file_system): Likewise.
31313         (sc_prohibit_have_config_h): Likewise.
31314         (sc_require_config_h): Likewise.
31315         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31316         (sc_obsolete_symbols): Likewise.
31317         (sc_changelog): Likewise.
31318         (sc_program_name): Likewise.
31319         (sc_the_the): Likewise.
31320         (sc_trailing_blank): Likewise.
31321         (sc_two_space_separator_in_usage): Likewise.
31322         (sc_useless_cpp_parens): Likewise.
31323         (sc_GPL_version): Likewise.
31324         (sc_GFDL_version): Likewise.
31325         (sc_texinfo_acronym): Likewise.
31326         (sc_prohibit_cvs_keyword): Likewise.
31327         (sc_prohibit_stat_st_blocks): Likewise.
31328         (sc_prohibit_S_IS_definition): Likewise.
31329         (sc_redundant_const): Likewise.
31330         (sc_makefile_TAB_only_indentation): Likewise.
31331         (sc_m4_quote_check): Likewise.
31332         (sc_makefile_path_separator_check): Likewise.
31333         (sc_copyright_check): Likewise.
31334         (sc_Wundef_boolean): Likewise.
31335         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31336
31337         maint.mk: match 0 or more whitespace-before-function-call '('
31338         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31339         that have zero or two-and-more spaces between the function name
31340         and the open parenthesis.
31341         (sc_error_message_warn_fatal): Likewise.
31342         (sc_error_message_uppercase): Likewise.
31343         (sc_error_message_period): Likewise.
31344
31345 2010-03-31  Eric Blake  <eblake@redhat.com>
31346
31347         maint.mk: check for [ as well as test
31348         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31349         Based on a libvirt report by Matthias Bolte.
31350
31351         gnumakefile: don't squelch _version output
31352         * top/GNUmakefile (_version): Create one-shot dependency rather
31353         than using $(shell) when version must be regenerated.
31354         (_autoreconf): Run verbosely, by default.
31355
31356         sys_time: avoid compiler warnings
31357         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31358         unconditional, fixing regression from 2010-03-29.
31359         Reported by Simon Josefsson.
31360
31361 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31362
31363         maint.mk: s/_header_without_use/_sc_header_without_use/
31364         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31365         (sc_prohibit_assert_without_use): Use the new name.
31366         (sc_prohibit_close_stream_without_use): Likewise.
31367         (sc_prohibit_getopt_without_use): Likewise.
31368         (sc_prohibit_quotearg_without_use): Likewise.
31369         (sc_prohibit_quote_without_use): Likewise.
31370         (sc_prohibit_long_options_without_use): Likewise.
31371         (sc_prohibit_inttostr_without_use): Likewise.
31372         (sc_prohibit_ignore_value_without_use): Likewise.
31373         (sc_prohibit_error_without_use): Likewise.
31374         (sc_prohibit_xalloc_without_use): Likewise.
31375         (sc_prohibit_hash_without_use): Likewise.
31376         (sc_prohibit_hash_pjw_without_use): Likewise.
31377         (sc_prohibit_safe_read_without_use): Likewise.
31378         (sc_prohibit_argmatch_without_use): Likewise.
31379         (sc_prohibit_canonicalize_without_use): Likewise.
31380         (sc_prohibit_root_dev_ino_without_use): Likewise.
31381         (sc_prohibit_openat_without_use): Likewise.
31382         (sc_prohibit_c_ctype_without_use): Likewise.
31383         (sc_prohibit_signal_without_use): Likewise.
31384         (sc_prohibit_intprops_without_use): Likewise.
31385
31386 2010-03-30  Eric Blake  <eblake@redhat.com>
31387
31388         maint: improve module indicators
31389         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31390         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31391         columns, and avoid extra macro expansion.
31392
31393         fdopendir: work around FreeBSD bug
31394         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31395         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31396         * modules/dirent (Makefile.am): Substitute it.
31397         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31398         declaration.
31399         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31400         fix.
31401         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31402
31403 2010-03-29  Bruno Haible  <bruno@clisp.org>
31404
31405         Emit #pragma system_header after the inclusion guard, not before.
31406         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31407         guard that spans the entire file, not before. This enables an
31408         optimization in GCC's preprocessor.
31409         * lib/ctype.in.h: Likewise.
31410         * lib/dirent.in.h: Likewise.
31411         * lib/errno.in.h: Likewise.
31412         * lib/float.in.h: Likewise.
31413         * lib/getopt.in.h: Likewise.
31414         * lib/iconv.in.h: Likewise.
31415         * lib/langinfo.in.h: Likewise.
31416         * lib/locale.in.h: Likewise.
31417         * lib/math.in.h: Likewise.
31418         * lib/netdb.in.h: Likewise.
31419         * lib/netinet_in.in.h: Likewise.
31420         * lib/pty.in.h: Likewise.
31421         * lib/sched.in.h: Likewise.
31422         * lib/se-selinux.in.h: Likewise.
31423         * lib/search.in.h: Likewise.
31424         * lib/spawn.in.h: Likewise.
31425         * lib/stdarg.in.h: Likewise.
31426         * lib/stdint.in.h: Likewise.
31427         * lib/string.in.h: Likewise.
31428         * lib/strings.in.h: Likewise.
31429         * lib/sys_file.in.h: Likewise.
31430         * lib/sys_ioctl.in.h: Likewise.
31431         * lib/sys_time.in.h: Likewise.
31432         * lib/sys_times.in.h: Likewise.
31433         * lib/sys_utsname.in.h: Likewise.
31434         * lib/sys_wait.in.h: Likewise.
31435         * lib/sysexits.in.h: Likewise.
31436         * lib/wctype.in.h: Likewise.
31437
31438 2010-03-28  James Youngman  <jay@gnu.org>
31439
31440         save-cwd: don't leak a file descriptor when the caller execs.
31441         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31442         saved file descriptor.
31443         * modules/save-cwd (Depends-on): Depend on cloexec.
31444
31445 2010-03-29  Bruno Haible  <bruno@clisp.org>
31446
31447         Remove vestiges of fts-lgpl module.
31448         * lib/fts_.h: Assume GNULIB_FTS is 1.
31449         * lib/fts.c: Likewise.
31450         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31451
31452 2010-03-28  Bruno Haible  <bruno@clisp.org>
31453
31454         Fix definition of tests witness macro.
31455         * gnulib-tool (func_import): Fix definition of witness macro.
31456
31457 2010-03-28  Bruno Haible  <bruno@clisp.org>
31458
31459         Fix ioctl's protoype on glibc systems.
31460         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31461         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31462         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31463         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31464         signature. If not, arrange to replace the ioctl function.
31465         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31466         REPLACE_IOCTL.
31467         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31468         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31469         Reported by Ludovic Courtès <ludo@gnu.org>.
31470
31471 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31472
31473         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31474         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31475         made it so grep -r --include=GLOB* ... did not work.
31476
31477 2010-03-26  Jim Meyering  <meyering@redhat.com>
31478             Eric Blake  <eblake@redhat.com>
31479
31480         maint.mk: prohibit use of test's -o and -a operators
31481         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31482
31483 2010-03-28  Bruno Haible  <bruno@clisp.org>
31484
31485         Remove unused GNULIB_XYZ macro definitions.
31486         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31487         invocation.
31488
31489 2010-03-28  Bruno Haible  <bruno@clisp.org>
31490
31491         Mark privileged tests modules.
31492         * modules/idpriv-drop-tests (Status): New section.
31493         * modules/idpriv-droptemp-tests (Status): New section.
31494
31495 2010-03-28  Bruno Haible  <bruno@clisp.org>
31496
31497         Split C++ tests into separate tests modules.
31498         * modules/dirent-c++-tests: New file, extracted from
31499         modules/dirent-tests.
31500         * modules/dirent-tests: Depend on it.
31501         * modules/fcntl-h-c++-tests: New file, extracted from
31502         modules/fcntl-h-tests.
31503         * modules/fcntl-h-tests: Depend on it.
31504         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31505         * modules/glob-tests: Depend on it.
31506         * modules/iconv-h-c++-tests: New file, extracted from
31507         modules/iconv-h-tests.
31508         * modules/iconv-h-tests: Depend on it.
31509         * modules/langinfo-c++-tests: New file, extracted from
31510         modules/langinfo-tests.
31511         * modules/langinfo-tests: Depend on it.
31512         * modules/locale-c++-tests: New file, extracted from
31513         modules/locale-tests.
31514         * modules/locale-tests: Depend on it.
31515         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31516         * modules/math-tests: Depend on it.
31517         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31518         * modules/pty-tests: Depend on it.
31519         * modules/search-c++-tests: New file, extracted from
31520         modules/search-tests.
31521         * modules/search-tests: Depend on it.
31522         * modules/signal-c++-tests: New file, extracted from
31523         modules/signal-tests.
31524         * modules/signal-tests: Depend on it.
31525         * modules/spawn-c++-tests: New file, extracted from
31526         modules/spawn-tests.
31527         * modules/spawn-tests: Depend on it.
31528         * modules/stdio-c++-tests: New file, extracted from
31529         modules/stdio-tests.
31530         * modules/stdio-tests: Depend on it.
31531         * modules/stdlib-c++-tests: New file, extracted from
31532         modules/stdlib-tests.
31533         * modules/stdlib-tests: Depend on it.
31534         * modules/string-c++-tests: New file, extracted from
31535         modules/string-tests.
31536         * modules/string-tests: Depend on it.
31537         * modules/sys_ioctl-c++-tests: New file, extracted from
31538         modules/sys_ioctl-tests.
31539         * modules/sys_ioctl-tests: Depend on it.
31540         * modules/sys_select-c++-tests: New file, extracted from
31541         modules/sys_select-tests.
31542         * modules/sys_select-tests: Depend on it.
31543         * modules/sys_socket-c++-tests: New file, extracted from
31544         modules/sys_socket-tests.
31545         * modules/sys_socket-tests: Depend on it.
31546         * modules/sys_stat-c++-tests: New file, extracted from
31547         modules/sys_stat-tests.
31548         * modules/sys_stat-tests: Depend on it.
31549         * modules/sys_time-c++-tests: New file, extracted from
31550         modules/sys_time-tests.
31551         * modules/sys_time-tests: Depend on it.
31552         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31553         * modules/time-tests: Depend on it.
31554         * modules/unistd-c++-tests: New file, extracted from
31555         modules/unistd-tests.
31556         * modules/unistd-tests: Depend on it.
31557         * modules/wchar-c++-tests: New file, extracted from
31558         modules/wchar-tests.
31559         * modules/wchar-tests: Depend on it.
31560         * modules/wctype-c++-tests: New file, extracted from
31561         modules/wctype-tests.
31562         * modules/wctype-tests: Depend on it.
31563         Reported by Simon Josefsson.
31564
31565 2010-03-28  Bruno Haible  <bruno@clisp.org>
31566
31567         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31568         * gnulib-tool (func_exists_module): New function, extracted from
31569         func_verify_module.
31570         (func_verify_module): Use it.
31571         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31572         'foo' only if 'foo' exists.
31573         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31574         module.
31575
31576 2010-03-28  Bruno Haible  <bruno@clisp.org>
31577
31578         gnulib-tool: Add support for special categories of tests.
31579         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31580         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31581         (func_usage): Document them.
31582         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31583         inc_unportable_tests, inc_all_tests): New variables.
31584         (func_acceptable): Consider these variables.
31585         (func_modules_transitive_closure): Make it work when the 'Status' field
31586         consists of multiple words.
31587         (func_import): Store and restore the values of inc_cxx_tests,
31588         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31589         inc_all_tests in gnulib-comp.m4.
31590         (func_create_testdir): Set inc_all_tests to true.
31591         * doc/gnulib.texi (Extra tests modules): New section.
31592         Suggested by Jim Meyering.
31593
31594 2010-03-28  Bruno Haible  <bruno@clisp.org>
31595
31596         ansi-c++-opt: Allow turning off the C++ build by default.
31597         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31598         gl_CXX_CHOICE_DEFAULT_NO is defined.
31599         Requested by Eric Blake.
31600
31601 2010-03-28  Bruno Haible  <bruno@clisp.org>
31602
31603         unistd: Avoid #define replacements in C++ mode.
31604         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31605         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31606         setsockopt, shutdown, select): In C++, attach a warning to the function
31607         if possible, rather than #defining the symbol to a dysfunctional alias.
31608         Reported by John W. Eaton <jwe@gnu.org>.
31609
31610 2010-03-28  Bruno Haible  <bruno@clisp.org>
31611
31612         Fix link errors on mingw.
31613         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31614         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31615         $(LIBSOCKET).
31616         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31617         $(LIBSOCKET).
31618
31619 2010-03-28  Bruno Haible  <bruno@clisp.org>
31620             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31621
31622         lib-ignore: Determine different options for different compilers.
31623         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31624         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31625         Add comments.
31626         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31627         * NEWS: Mention the change.
31628
31629 2010-03-27  Bruno Haible  <bruno@clisp.org>
31630
31631         Remove unused GNULIB_XYZ macro definitions.
31632         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31633         * modules/fseek (configure.ac): Likewise.
31634         * modules/ioctl (configure.ac): Likewise.
31635         * modules/open (configure.ac): Likewise.
31636         * modules/stdlib-safer (configure.ac): Likewise.
31637
31638 2010-03-27  Bruno Haible  <bruno@clisp.org>
31639
31640         Add a remark about certain modules.
31641         * modules/malloc (Comment): New section.
31642         * modules/realloc (Comment): Likewise.
31643         * modules/sigpipe (Comment): Likewise.
31644
31645 2010-03-27  Bruno Haible  <bruno@clisp.org>
31646
31647         Resolve conflict between the two kinds of module indicators.
31648         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31649         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31650         * modules/canonicalize (configure.ac): Invoke
31651         gl_MODULE_INDICATOR_FOR_TESTS.
31652         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31653         GNULIB_XYZ.
31654         * tests/test-dirent-c++.cc: Likewise.
31655         * tests/test-dirent-safer.c: Likewise.
31656         * tests/test-dup2.c: Likewise.
31657         * tests/test-fchdir.c: Likewise.
31658         * tests/test-fcntl-h-c++.cc: Likewise.
31659         * tests/test-getopt.c: Likewise.
31660         * tests/test-getopt.h: Likewise.
31661         * tests/test-langinfo-c++.cc: Likewise.
31662         * tests/test-locale-c++.cc: Likewise.
31663         * tests/test-math-c++.cc: Likewise.
31664         * tests/test-pty-c++.cc: Likewise.
31665         * tests/test-search-c++.cc: Likewise.
31666         * tests/test-signal-c++.cc: Likewise.
31667         * tests/test-spawn-c++.cc: Likewise.
31668         * tests/test-stdio-c++.cc: Likewise.
31669         * tests/test-stdlib-c++.cc: Likewise.
31670         * tests/test-string-c++.cc: Likewise.
31671         * tests/test-sys_ioctl-c++.cc: Likewise.
31672         * tests/test-sys_select-c++.cc: Likewise.
31673         * tests/test-sys_socket-c++.cc: Likewise.
31674         * tests/test-sys_stat-c++.cc: Likewise.
31675         * tests/test-sys_time-c++.cc: Likewise.
31676         * tests/test-time-c++.cc: Likewise.
31677         * tests/test-unistd-c++.cc: Likewise.
31678         * tests/test-wchar-c++.cc: Likewise.
31679         * tests/uninorm/test-u8-nfc.c: Likewise.
31680         * tests/uninorm/test-u8-nfd.c: Likewise.
31681         * tests/uninorm/test-u8-nfkc.c: Likewise.
31682         * tests/uninorm/test-u8-nfkd.c: Likewise.
31683         * tests/uninorm/test-u16-nfc.c: Likewise.
31684         * tests/uninorm/test-u16-nfd.c: Likewise.
31685         * tests/uninorm/test-u16-nfkc.c: Likewise.
31686         * tests/uninorm/test-u16-nfkd.c: Likewise.
31687         * tests/uninorm/test-u32-nfc.c: Likewise.
31688         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31689         * tests/uninorm/test-u32-nfd.c: Likewise.
31690         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31691         * tests/uninorm/test-u32-nfkc.c: Likewise.
31692         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31693         * tests/uninorm/test-u32-nfkd.c: Likewise.
31694         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31695         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31696
31697 2010-03-27  Bruno Haible  <bruno@clisp.org>
31698
31699         Distinguish two kinds of module indicators.
31700         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31701         gl_MODULE_INDICATOR.
31702         (gl_MODULE_INDICATOR): New macro.
31703         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31704         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31705         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31706         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31707         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31708         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31709         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31710         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31711         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31712         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31713         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31714         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31715         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31716         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31717         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31718         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31719         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31720         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31721         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31722         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31723         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31724         * modules/cloexec (configure.ac): Likewise.
31725         * modules/getopt-gnu (configure.ac): Likewise.
31726         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31727         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31728         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31729         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31730
31731 2010-03-27  Bruno Haible  <bruno@clisp.org>
31732
31733         New module description field 'Comment'.
31734         * gnulib-tool: New option --extract-comment.
31735         (func_usage): Document it.
31736         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31737         (func_get_comment): New function.
31738         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31739
31740 2010-03-27  Bruno Haible  <bruno@clisp.org>
31741
31742         Addendum to 2010-02-07 commit.
31743         * gnulib-tool (func_usage): Document --extract-applicability option.
31744
31745 2010-03-27  Bruno Haible  <bruno@clisp.org>
31746
31747         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31748         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31749         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31750         rather than link errors.
31751
31752 2010-03-27  Bruno Haible  <bruno@clisp.org>
31753
31754         Avoid side effects from tests-related modules on the compilation of lib.
31755         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31756         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31757         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31758         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31759         macro.
31760         (func_import): Define a witness macro. Assign it a value that depends
31761         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31762         tests-related modules.
31763         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31764         Reported by Jim Meyering.
31765
31766 2010-03-27  Bruno Haible  <bruno@clisp.org>
31767
31768         Factorize common .m4 code.
31769         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31770         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31771         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31772         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31773         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31774         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31775         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31776         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31777         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31778         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31779         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31780         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31781         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31782         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31783         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31784         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31785         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31786         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31787         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31788         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31789         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31790         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31791         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31792         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31793         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31794         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31795         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31796         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31797         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31798         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31799         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31800         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31801
31802 2010-03-27  Bruno Haible  <bruno@clisp.org>
31803
31804         Fix a compilation error on Cygwin with g++ >= 4.3.
31805         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31806         if it is undefined or if we alias it to chmod.
31807         (lstat): Don't warn about the use of this function if it is undefined
31808         or if we alias it to stat.
31809         Reported by Simon Josefsson.
31810
31811 2010-03-27  Bruno Haible  <bruno@clisp.org>
31812
31813         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31814         * modules/getlogin (configure.ac): Update.
31815
31816         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31817         * modules/getlogin_r (configure.ac): Update.
31818
31819         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31820         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31821         * modules/inet_ntop (configure.ac): Update.
31822
31823         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31824         * modules/inet_pton (configure.ac): Update.
31825
31826         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31827         * modules/mbslen (configure.ac): Update.
31828
31829         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31830         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31831         * modules/forkpty (configure.ac): Update.
31832         * modules/openpty (configure.ac): Update.
31833
31834 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31835
31836         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31837         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31838
31839 2010-03-25  Eric Blake  <eblake@redhat.com>
31840
31841         maint: use pragma consistently across replacement headers
31842         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31843         * lib/dirent.in.h (system_header): Likewise.
31844         * lib/errno.in.h (system_header): Likewise.
31845         * lib/float.in.h (system_header): Likewise.
31846         * lib/getopt.in.h (system_header): Likewise.
31847         * lib/iconv.in.h (system_header): Likewise.
31848         * lib/inttypes.in.h (system_header): Likewise.
31849         * lib/langinfo.in.h (system_header): Likewise.
31850         * lib/locale.in.h (system_header): Likewise.
31851         * lib/math.in.h (system_header): Likewise.
31852         * lib/netdb.in.h (system_header): Likewise.
31853         * lib/netinet_in.in.h (system_header): Likewise.
31854         * lib/pty.in.h (system_header): Likewise.
31855         * lib/sched.in.h (system_header): Likewise.
31856         * lib/se-selinux.in.h (system_header): Likewise.
31857         * lib/search.in.h (system_header): Likewise.
31858         * lib/spawn.in.h (system_header): Likewise.
31859         * lib/stdarg.in.h (system_header): Likewise.
31860         * lib/stdint.in.h (system_header): Likewise.
31861         * lib/string.in.h (system_header): Likewise.
31862         * lib/strings.in.h (system_header): Likewise.
31863         * lib/sys_file.in.h (system_header): Likewise.
31864         * lib/sys_ioctl.in.h (system_header): Likewise.
31865         * lib/sys_socket.in.h (system_header): Likewise.
31866         * lib/sys_times.in.h (system_header): Likewise.
31867         * lib/sys_utsname.in.h (system_header): Likewise.
31868         * lib/sys_wait.in.h (system_header): Likewise.
31869         * lib/sysexits.in.h (system_header): Likewise.
31870         * lib/unistd.in.h (system_header): Likewise.
31871         * lib/wctype.in.h (system_header): Likewise.
31872
31873         arpa/inet: fix mingw compilation warning
31874         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31875         Reported by Matthew Bolte.
31876
31877 2010-03-25  Bruno Haible  <bruno@clisp.org>
31878
31879         Avoid collision between gnulib wrapper and libintl wrapper.
31880         * lib/printf.c (printf): Don't define if a printf wrapper is already
31881         defined in intl/printf.c.
31882         Reported by Michel Boaventura <michel@michelboaventura.com>.
31883
31884 2010-03-25  Bruno Haible  <bruno@clisp.org>
31885
31886         Use ANSI C.
31887         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31888
31889 2010-03-25  Bruno Haible  <bruno@clisp.org>
31890
31891         Minor formatting changes.
31892         * lib/acosl.c: Insert space before function argument list.
31893         * lib/argz.c: Likewise.
31894         * lib/asinl.c: Likewise.
31895         * lib/expl.c: Likewise.
31896         * lib/gen-uni-tables.c: Likewise.
31897         * lib/gettext.h: Likewise.
31898         * lib/glthread/lock.h: Likewise.
31899         * lib/tanl.c: Likewise.
31900         * lib/uniname/uniname.c: Likewise.
31901         * tests/test-idpriv-drop.c: Likewise.
31902         * tests/test-idpriv-droptemp.c: Likewise.
31903         * tests/test-lock.c: Likewise.
31904         * tests/test-tls.c: Likewise.
31905         * lib/argp-help.c: Insert space before function-like macro argument
31906         list.
31907         * lib/memcmp.c: Likewise.
31908         * tests/test-base64.c: Likewise.
31909         * lib/localename.c: Insert space before sizeof's argument list.
31910         * lib/safe-alloc.h: Likewise.
31911         * lib/file-set.h: Insert space before macro argument list.
31912         * tests/test-argp.c: Likewise.
31913         * lib/argp-namefrob.h: Insert space before function parameter list.
31914         * lib/getaddrinfo.c: Likewise.
31915         * lib/netdb.in.h: Likewise.
31916         * lib/parse-duration.h: Likewise.
31917         * lib/parse-duration.c: Likewise.
31918         * lib/poll.c: Likewise.
31919         * lib/select.c: Likewise.
31920         * lib/trim.h: Likewise.
31921         * tests/test-usleep.c: Likewise.
31922         * lib/ldexpl.c: Insert space before function parameter list and before
31923         function argument list.
31924         * lib/logl.c: Likewise.
31925         * lib/sqrtl.c: Likewise.
31926         * lib/trim.c: Likewise.
31927         * lib/cosl.c: Use GNU style indentation. Insert space before function
31928         argument list.
31929         * lib/sinl.c: Likewise.
31930         * lib/tsearch.c: Insert space after 'for'.
31931         Reported by Jim Meyering.
31932
31933 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31934
31935         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31936         config header before grepping, as it's not present before
31937         autoreconf/configure are run.  Reported by Simon Josefsson.
31938
31939 2010-03-23  Bruno Haible  <bruno@clisp.org>
31940
31941         pt_chown: Make it work with automake < 1.11.
31942         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31943         Reported by Simon Josefsson.
31944
31945 2010-03-23  Bruno Haible  <bruno@clisp.org>
31946
31947         pt_chown: Don't depend on GPLed modules.
31948         * lib/pt_chown.c: Don't include idpriv.h.
31949         (main): Don't drop privileges.
31950         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31951         Reported by Simon Josefsson.
31952
31953 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31954
31955         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31956         suggestions from karl@freefriends.org (Karl Berry).
31957
31958 2010-03-22  Eric Blake  <eblake@redhat.com>
31959
31960         gethostname: further tweaks
31961         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31962         are overriding gethostname.
31963         Suggested by Bruno Haible.
31964
31965 2010-03-21  Bruno Haible  <bruno@clisp.org>
31966
31967         Fix comments.
31968         * lib/forkpty.c (rpl_forkpty): Fix comment.
31969         * lib/openpty.c (rpl_openpty): Likewise.
31970         Reported by Eric Blake.
31971
31972 2010-03-22  Eric Blake  <eblake@redhat.com>
31973
31974         gethostname: fix build on mingw
31975         * lib/unistd.in.h (includes): Work around fact that mingw
31976         <winsock2.h> re-includes <unistd.h>, by avoiding any
31977         redeclarations if we are being included by <winsock2.h>.
31978         Reported by Matthias Bolte.
31979
31980 2010-03-21  Bruno Haible  <bruno@clisp.org>
31981
31982         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31983         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31984         modifications.
31985         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31986         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31987         provide the replacement.
31988         * modules/forkpty (Depends-on): Add openpty, login_tty.
31989         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31990         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31991         * doc/glibc-functions/forkpty.texi: More supported platforms.
31992         * config/srclist.txt: Add forkpty.c (commented).
31993
31994 2010-03-21  Bruno Haible  <bruno@clisp.org>
31995
31996         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31997         (Makefile.am): Verify that PTY_LIB is defined.
31998
31999         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
32000
32001 2010-03-21  Bruno Haible  <bruno@clisp.org>
32002
32003         Tests for module 'login_tty'.
32004         * modules/login_tty-tests: New file.
32005         * tests/test-login_tty.c: New file.
32006
32007         New module 'login_tty'.
32008         * lib/login_tty.c: New file.
32009         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
32010         * modules/login_tty: New file.
32011         * doc/glibc-functions/login_tty.texi: Mention the new module.
32012
32013 2010-03-21  Bruno Haible  <bruno@clisp.org>
32014
32015         login_tty: Documentation.
32016         * doc/glibc-functions/login_tty.texi: New file.
32017         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
32018
32019 2010-03-21  Bruno Haible  <bruno@clisp.org>
32020
32021         pty: Consistent macro naming.
32022         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
32023         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
32024         * modules/pty (configure.ac): Update.
32025
32026 2010-03-21  Bruno Haible  <bruno@clisp.org>
32027
32028         Tests for openpty: Make stricter.
32029         * tests/test-openpty.c (main): Add test of canonical processing and
32030         erase.
32031         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
32032
32033         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
32034         * lib/openpty.c (openpty): New replacement function.
32035         * lib/pty.in.h: Include <termios.h>.
32036         (openpty): Update declaration. Add comments.
32037         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
32038         is not declared, arrange to provide the replacement. Check for _getpty
32039         and posix_openpt.
32040         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
32041         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
32042         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
32043         * modules/pty-tests (test_pty_c___LDADD): New variable.
32044         * doc/glibc-functions/openpty.texi: More supported platforms.
32045
32046 2010-03-21  Bruno Haible  <bruno@clisp.org>
32047
32048         setenv: Tweaks.
32049         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
32050         the test program.
32051         * doc/posix-functions/setenv.texi: Update platforms list.
32052
32053 2010-03-21  Bruno Haible  <bruno@clisp.org>
32054
32055         New module 'unlockpt'.
32056         * lib/unlockpt.c: New file, from glibc with modifications.
32057         * m4/unlockpt.m4: New file.
32058         * modules/unlockpt: New file.
32059         * lib/stdlib.in.h (unlockpt): New declaration.
32060         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
32061         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
32062         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
32063         HAVE_UNLOCKPT.
32064         * doc/posix-functions/unlockpt.texi: Mention the new module.
32065         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
32066         * config/srclist.txt: Add unlockpt.c (commented).
32067
32068 2010-03-21  Jim Meyering  <meyering@redhat.com>
32069
32070         maint.mk: prohibit inclusion of "intprops.h" without use
32071         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
32072
32073 2010-03-21  Bruno Haible  <bruno@clisp.org>
32074
32075         New module 'grantpt'.
32076         * lib/grantpt.c: New file, from glibc with modifications.
32077         * m4/grantpt.m4: New file.
32078         * modules/grantpt: New file.
32079         * lib/stdlib.in.h (grantpt): New declaration.
32080         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
32081         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
32082         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
32083         HAVE_GRANTPT.
32084         * doc/posix-functions/grantpt.texi: Mention the new module.
32085         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
32086         * config/srclist.txt: Add grantpt.c (commented).
32087
32088 2010-03-21  Bruno Haible  <bruno@clisp.org>
32089
32090         New module 'pt_chown'.
32091         * lib/pt_chown.c: New file, from glibc with modifications.
32092         * lib/pty-private.h: New file, from glibc with modifications.
32093         * modules/pt_chown: New file.
32094         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
32095
32096 2010-03-21  Bruno Haible  <bruno@clisp.org>
32097
32098         Tests for module 'ptsname'.
32099         * modules/ptsname-tests: New file.
32100         * tests/test-ptsname.c: New file.
32101
32102         New module 'ptsname'.
32103         * lib/ptsname.c: New file, from glibc with modifications.
32104         * m4/ptsname.m4: New file.
32105         * modules/ptsname: New file.
32106         * lib/stdlib.in.h (ptsname): New declaration.
32107         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
32108         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
32109         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
32110         HAVE_PTSNAME.
32111         * doc/posix-functions/ptsname.texi: Mention the new module.
32112         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
32113         * config/srclist.txt: Add ptsname.c (commented).
32114
32115 2010-03-21  Bruno Haible  <bruno@clisp.org>
32116
32117         Tests for module 'ttyname_r'.
32118         * modules/ttyname_r-tests: New file.
32119         * tests/test-ttyname_r.c: New file.
32120
32121         New module 'ttyname_r'.
32122         * lib/ttyname_r.c: New file.
32123         * m4/ttyname_r.m4: New file.
32124         * modules/ttyname_r: New file.
32125         * lib/unistd.in.h (ttyname_r): New declaration.
32126         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
32127         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
32128         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
32129         HAVE_TTYNAME_R.
32130         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
32131         * doc/posix-functions/ttyname_r.texi: Mention the new module.
32132
32133 2010-03-20  Bruno Haible  <bruno@clisp.org>
32134
32135         signal: Undefine macro definitions in C++ mode.
32136         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
32137         sigfillset): Undefine macro definitions from the system header in C++
32138         mode.
32139         Reported by John W. Eaton <jwe@gnu.org>.
32140
32141 2010-03-20  Bruno Haible  <bruno@clisp.org>
32142
32143         Ensure no #include statements inside extern "C" { ... }.
32144         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
32145         contain #include statements.
32146         * lib/time.in.h: Likewise.
32147
32148 2010-03-20  Bruno Haible  <bruno@clisp.org>
32149
32150         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
32151         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
32152         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
32153         Reported by John W. Eaton <jwe@gnu.org>.
32154
32155 2010-03-20  Bruno Haible  <bruno@clisp.org>
32156
32157         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
32158         Reported by Jim Meyering.
32159
32160 2010-03-20  Bruno Haible  <bruno@clisp.org>
32161
32162         pipe: Set errno upon failure.
32163         * lib/pipe.h: Specify that when -1 is returned, errno is set.
32164         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
32165         errno value in error message.
32166
32167 2010-03-20  Bruno Haible  <bruno@clisp.org>
32168             Jim Meyering  <meyering@redhat.com>
32169
32170         lchown: Avoid "unused variable" warning.
32171         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
32172
32173 2010-03-20  Bruno Haible  <bruno@clisp.org>
32174
32175         Work around unlink() bug on MacOS X 10.5.6.
32176         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
32177         attempting to unlink a parent directory.
32178         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
32179         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
32180         activate for the replacement function.
32181         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
32182
32183 2010-03-20  Bruno Haible  <bruno@clisp.org>
32184
32185         Fix link errors on Solaris 8.
32186         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
32187         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
32188
32189 2010-03-19  Jim Meyering  <meyering@redhat.com>
32190
32191         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
32192         The _LIBC implementation of build_range_exp correctly honors the
32193         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
32194         However, the non-_LIBC implementation would ignore that syntax-bit
32195         flag and return REG_ERANGE unconditionally.
32196         This change makes it honor that flag.
32197         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
32198         Make two pointer parameters "const".
32199         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
32200         (parse_bracket_exp): Update caller.
32201
32202         regex.m4: correct the reversed range endpoint ([b-a]) test
32203         * m4/regex.m4: When requiring that [b-a] evoke failure,
32204         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
32205         test pass once again for x86-based systems.
32206
32207 2010-03-19  Bruno Haible  <bruno@clisp.org>
32208
32209         scandir: Fix link error on Solaris 8.
32210         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
32211         macros.
32212
32213 2010-03-19  Bruno Haible  <bruno@clisp.org>
32214
32215         getusershell: Fix documentation.
32216         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
32217         module.
32218         * doc/glibc-functions/setusershell.texi: Likewise.
32219
32220         getusershell: Provide declaration, missing on Solaris 9.
32221         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
32222         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
32223         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
32224         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
32225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32226         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
32227         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
32228         HAVE_GETUSERSHELL.
32229         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
32230
32231 2010-03-19  Bruno Haible  <bruno@clisp.org>
32232
32233         wctype: Provide iswblank function.
32234         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
32235         exists and is fine.
32236         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
32237         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
32238         * tests/test-wctype.c (main): Re-enable the iswblank tests.
32239         * doc/posix-functions/iswblank.texi: Update.
32240
32241 2010-03-19  Bruno Haible  <bruno@clisp.org>
32242
32243         Tests of module 'pty' in C++ mode.
32244         * modules/pty-tests: New file.
32245         * tests/test-pty-c++.cc: New file.
32246         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32247
32248 2010-03-19  Eric Blake  <eblake@redhat.com>
32249
32250         logb: fix documentation
32251         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
32252         1.5 declaration bug.
32253
32254         forkpty, openpty: prefer glibc's const-safe prototype
32255         * lib/forkpty.c (rpl_forkpty): New file.
32256         * lib/openpty.c (rpl_openpty): Likewise.
32257         * modules/forkpty (Files): Distribute it.
32258         * modules/openpty (Files): Likewise.
32259         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
32260         check...
32261         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
32262         replacement for for non-const BSD signature.
32263         * modules/pty (Makefile.am): Substitute witnesses.
32264         * lib/pty.in.h (forkpty, openpty): Declare replacements.
32265         * tests/test-forkpty.c: Update signature check.
32266         * tests/test-openpty.c: Likewise.
32267         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
32268         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32269
32270         forkpty, openpty: split functions into new modules
32271         * modules/pty (Makefile.am): Substitute new witnesses.
32272         (Libraries): Move library detection...
32273         * modules/forkpty: ...into new module.
32274         * modules/openpty: Another new module.
32275         * modules/pty-tests: Rename and split...
32276         * modules/forkpty-tests: ...to this...
32277         * modules/openpty-tests: ...and this.
32278         * tests/test-pty.c: Rename and split...
32279         * tests/test-forkpty.c: ...to this...
32280         * tests/test-openpty.c: ...and this.
32281         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
32282         (gl_PTY): Split library searching...
32283         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
32284         (gl_FORKPTY, gl_OPENPTY): New macros.
32285         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
32286         * NEWS: Mention the split.
32287         * MODULES.html.sh (Misc): Document the modules.
32288         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
32289         * doc/glibc-functions/openpty.texi (openpty): Likewise.
32290
32291         pty: improve replacement header
32292         * lib/pty.in.h: New file.
32293         * modules/pty (Files): Ship it.
32294         (Makefile.am): Always build replacement.
32295         * m4/pty.m4: Rename...
32296         * m4/pty_h.m4: ...to this.
32297         (gl_PTY): Modernize setting of witness macros; update check of
32298         forkpty to take proper advantage of cache.
32299         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
32300
32301         getopt: avoid compiler warning
32302         * lib/getopt.c (attribute_hidden): Remove unused macro.
32303
32304 2010-03-18  Bruno Haible  <bruno@clisp.org>
32305
32306         Fix link errors on Solaris 8.
32307         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
32308         * modules/search-tests (test_search_c___LDADD): Likewise.
32309         * modules/signal-tests (test_signal_c___LDADD): Likewise.
32310         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
32311         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32312         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32313         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32314         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32315         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32316
32317 2010-03-18  Bruno Haible  <bruno@clisp.org>
32318
32319         Fix bug introduced on 2010-03-14.
32320         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32321         (gl_SPAWN_H): Require it.
32322         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32323         Reported by Simon Josefsson.
32324
32325 2010-03-18  Bruno Haible  <bruno@clisp.org>
32326
32327         Fix typo introduced on 2009-12-31.
32328         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32329         posix_spawn_file_actions_adddup2.
32330
32331 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32332         and Eric Blake  <eblake@redhat.com>
32333
32334         test-vc-list-files-git: make more robust
32335         * tests/test-vc-list-files-git.sh: Unset problematic environment
32336         variables.  Chain commands together.
32337
32338 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32339
32340         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32341         `AC_CHECK_DECL' invocation.
32342
32343 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32344
32345         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32346         appears before executable statements. Suggested by Petr Sumbera
32347         <Petr.Sumbera@Sun.COM>.
32348
32349 2010-03-14  Bruno Haible  <bruno@clisp.org>
32350
32351         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32352         portability problems. Instead use a simpler test.
32353         (main): Check that invalid arguments are rejected only on Linux.
32354
32355 2010-03-14  Bruno Haible  <bruno@clisp.org>
32356
32357         Fix bug introduced on 2009-12-31.
32358         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32359         gl_PREREQ_SYS_H_WINSOCK2 always.
32360         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32361         SYS_SOCKET_H variable.
32362         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32363         Update comments.
32364         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32365         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32366         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32367         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32368         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32369
32370 2010-03-14  Bruno Haible  <bruno@clisp.org>
32371
32372         Fix values returned by sinl, cosl.
32373         * lib/trigl.h: Add specification comments.
32374         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32375         that combines the values from the precomputed table with the values of
32376         the Chebyshev polynomials.
32377
32378 2010-03-14  Bruno Haible  <bruno@clisp.org>
32379
32380         Fix compilation error when modules 'posix_spawn[p]' are not used.
32381         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32382         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32383
32384 2010-03-14  Bruno Haible  <bruno@clisp.org>
32385
32386         Fix compilation error on mingw when module 'time_r' is not used.
32387         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32388         is 1.
32389         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32390         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32391         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32392         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32393
32394 2010-03-14  Bruno Haible  <bruno@clisp.org>
32395
32396         Fix compilation error with Sun C.
32397         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32398         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32399         instead of GCC specific ULONG_LONG_MAX.
32400         * lib/xstrtoll.c: Likewise.
32401         * lib/xstrtoull.c: Likewise.
32402
32403 2010-03-13  Bruno Haible  <bruno@clisp.org>
32404
32405         Allow the user to disable C++ code and tests.
32406         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32407         (gl_PROG_ANSI_CXX): Require it.
32408
32409 2010-03-13  Bruno Haible  <bruno@clisp.org>
32410
32411         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32412         cases.
32413
32414 2010-03-13  Bruno Haible  <bruno@clisp.org>
32415
32416         Test that gnulib does not break the standard C++ headers.
32417         * tests/test-locale-c++2.cc: New file.
32418         * modules/locale-tests (Files): Add it.
32419         (Makefile.am): Compile it for test-locale-c++.
32420         * tests/test-math-c++2.cc: New file.
32421         * modules/math-tests (Files): Add it.
32422         (Makefile.am): Compile it for test-math-c++.
32423         * tests/test-signal-c++2.cc: New file.
32424         * modules/signal-tests (Files): Add it.
32425         (Makefile.am): Compile it for test-signal-c++.
32426         * tests/test-stdio-c++2.cc: New file.
32427         * modules/stdio-tests (Files): Add it.
32428         (Makefile.am): Compile it for test-stdio-c++.
32429         * tests/test-stdlib-c++2.cc: New file.
32430         * modules/stdlib-tests (Files): Add it.
32431         (Makefile.am): Compile it for test-stdlib-c++.
32432         * tests/test-string-c++2.cc: New file.
32433         * modules/string-tests (Files): Add it.
32434         (Makefile.am): Compile it for test-string-c++.
32435         * tests/test-time-c++2.cc: New file.
32436         * modules/time-tests (Files): Add it.
32437         (Makefile.am): Compile it for test-time-c++.
32438         Reported by John W. Eaton <jwe@gnu.org>.
32439
32440 2010-03-13  Bruno Haible  <bruno@clisp.org>
32441
32442         * gnulib-tool (func_usage): Clarify which options are available for
32443         --create-testdir and --create-megatestdir.
32444
32445 2010-03-13  Bruno Haible  <bruno@clisp.org>
32446
32447         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32448         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32449         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32450         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32451         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32452         when appropriate.
32453         Reported by Jim Meyering.
32454
32455 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32456
32457         * gnulib-tool (func_import): Explain origin of code.
32458
32459 2010-03-12  Bruno Haible  <bruno@clisp.org>
32460
32461         Fix problem with automake's definition of CXXLINK.
32462         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32463         Reported by Simon Josefsson and Ludovic Courtès.
32464
32465 2010-03-12  Bruno Haible  <bruno@clisp.org>
32466
32467         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32468         stable releases.
32469
32470 2010-03-11  Bruno Haible  <bruno@clisp.org>
32471
32472         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32473         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32474         whether the system provides one variant or multiple variants of the
32475         function.
32476         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32477         C++ compilers.
32478         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32479         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32480         Reported by Jim Meyering.
32481
32482 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32483
32484         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32485
32486 2010-03-08  Bruno Haible  <bruno@clisp.org>
32487
32488         gnulib-tool: Add support for --libtool in --create-testdir.
32489         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32490         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32491
32492 2010-03-08  Eric Blake  <eblake@redhat.com>
32493
32494         gnulib-tool.texi: mention possibility of git submodule
32495         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32496         submodules.
32497         * doc/.gitignore: Ignore another generated file.
32498
32499 2010-03-08  Karl Berry  <karl@gnu.org>
32500
32501         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32502         of committing gnulib files while skipping others.
32503
32504 2010-03-07  Bruno Haible  <bruno@clisp.org>
32505
32506         Tests of module 'wctype' in C++ mode.
32507         * tests/test-wctype-c++.cc: New file.
32508         * modules/wctype-tests (Files): Add it and tests/signature.h.
32509         (Depends-on): Add ansi-c++-opt.
32510         (Makefile.am): Arrange to compile and run test-wctype-c++.
32511
32512         Tests of module 'wchar' in C++ mode.
32513         * tests/test-wchar-c++.cc: New file.
32514         * modules/wchar-tests (Files): Add it and tests/signature.h.
32515         (Depends-on): Add ansi-c++-opt.
32516         (Makefile.am): Arrange to compile and run test-wchar-c++.
32517         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32518         gl_MODULE_INDICATOR.
32519
32520         Tests of module 'unistd' in C++ mode.
32521         * tests/test-unistd-c++.cc: New file.
32522         * modules/unistd-tests (Files): Add it and tests/signature.h.
32523         (Depends-on): Add ansi-c++-opt.
32524         (Makefile.am): Arrange to compile and run test-unistd-c++.
32525         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32526         gl_MODULE_INDICATOR.
32527
32528         Tests of module 'time' in C++ mode.
32529         * tests/test-time-c++.cc: New file.
32530         * modules/time-tests (Files): Add it and tests/signature.h.
32531         (Depends-on): Add ansi-c++-opt.
32532         (Makefile.am): Arrange to compile and run test-time-c++.
32533         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32534
32535         Tests of module 'sys_time' in C++ mode.
32536         * tests/test-sys_time-c++.cc: New file.
32537         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32538         (Depends-on): Add ansi-c++-opt.
32539         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32540         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32541         gl_MODULE_INDICATOR.
32542
32543         Tests of module 'sys_stat' in C++ mode.
32544         * tests/test-sys_stat-c++.cc: New file.
32545         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32546         (Depends-on): Add ansi-c++-opt.
32547         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32548         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32549         gl_MODULE_INDICATOR.
32550
32551         Tests of module 'sys_socket' in C++ mode.
32552         * tests/test-sys_socket-c++.cc: New file.
32553         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32554         (Depends-on): Add ansi-c++-opt.
32555         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32556         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32557         gl_MODULE_INDICATOR.
32558
32559         Tests of module 'sys_select' in C++ mode.
32560         * tests/test-sys_select-c++.cc: New file.
32561         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32562         (Depends-on): Add ansi-c++-opt.
32563         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32564         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32565         gl_MODULE_INDICATOR.
32566
32567         Tests of module 'sys_ioctl' in C++ mode.
32568         * tests/test-sys_ioctl-c++.cc: New file.
32569         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32570         (Depends-on): Add ansi-c++-opt.
32571         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32572         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32573         gl_MODULE_INDICATOR.
32574
32575         Tests of module 'string' in C++ mode.
32576         * tests/test-string-c++.cc: New file.
32577         * modules/string-tests (Files): Add it and tests/signature.h.
32578         (Depends-on): Add ansi-c++-opt.
32579         (Makefile.am): Arrange to compile and run test-string-c++.
32580         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32581         gl_MODULE_INDICATOR.
32582
32583         Tests of module 'stdlib' in C++ mode.
32584         * tests/test-stdlib-c++.cc: New file.
32585         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32586         (Depends-on): Add ansi-c++-opt.
32587         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32588         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32589         gl_MODULE_INDICATOR.
32590
32591         Tests of module 'stdio' in C++ mode.
32592         * tests/test-stdio-c++.cc: New file.
32593         * modules/stdio-tests (Files): Add it and tests/signature.h.
32594         (Depends-on): Add ansi-c++-opt.
32595         (Makefile.am): Arrange to compile and run test-stdio-c++.
32596         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32597         gl_MODULE_INDICATOR.
32598
32599         Tests of module 'spawn' in C++ mode.
32600         * tests/test-spawn-c++.cc: New file.
32601         * modules/spawn-tests (Files): Add it and tests/signature.h.
32602         (Depends-on): Add ansi-c++-opt.
32603         (Makefile.am): Arrange to compile and run test-spawn-c++.
32604         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32605         gl_MODULE_INDICATOR.
32606
32607         Tests of module 'signal' in C++ mode.
32608         * tests/test-signal-c++.cc: New file.
32609         * modules/signal-tests (Files): Add it and tests/signature.h.
32610         (Depends-on): Add ansi-c++-opt.
32611         (Makefile.am): Arrange to compile and run test-signal-c++.
32612         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32613         gl_MODULE_INDICATOR.
32614
32615         Tests of module 'search' in C++ mode.
32616         * tests/test-search-c++.cc: New file.
32617         * modules/search-tests (Files): Add it and tests/signature.h.
32618         (Depends-on): Add ansi-c++-opt.
32619         (Makefile.am): Arrange to compile and run test-search-c++.
32620         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32621         gl_MODULE_INDICATOR.
32622
32623         Tests of module 'math' in C++ mode.
32624         * tests/test-math-c++.cc: New file.
32625         * modules/math-tests (Files): Add it and tests/signature.h.
32626         (Depends-on): Add ansi-c++-opt.
32627         (Makefile.am): Arrange to compile and run test-math-c++.
32628         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32629
32630         Tests of module 'locale' in C++ mode.
32631         * tests/test-locale-c++.cc: New file.
32632         * modules/locale-tests (Files): Add it and tests/signature.h.
32633         (Depends-on): Add ansi-c++-opt.
32634         (Makefile.am): Arrange to compile and run test-locale-c++.
32635         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32636         gl_MODULE_INDICATOR.
32637
32638         Tests of module 'langinfo' in C++ mode.
32639         * tests/test-langinfo-c++.cc: New file.
32640         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32641         (Depends-on): Add ansi-c++-opt.
32642         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32643         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32644         gl_MODULE_INDICATOR.
32645
32646         Tests of module 'iconv-h' in C++ mode.
32647         * tests/test-iconv-h-c++.cc: New file.
32648         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32649         (Depends-on): Add ansi-c++-opt.
32650         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32651
32652         Tests of module 'glob' in C++ mode.
32653         * tests/test-glob-c++.cc: New file.
32654         * modules/glob-tests (Files): Add it.
32655         (Depends-on): Add ansi-c++-opt.
32656         (Makefile.am): Arrange to compile and run test-glob-c++.
32657
32658         Tests of module 'fcntl-h' in C++ mode.
32659         * tests/test-fcntl-h-c++.cc: New file.
32660         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32661         (Depends-on): Add ansi-c++-opt.
32662         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32663         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32664         gl_MODULE_INDICATOR.
32665
32666         Tests of module 'dirent' in C++ mode.
32667         * tests/test-dirent-c++.cc: New file.
32668         * modules/dirent-tests (Files): Add it and tests/signature.h.
32669         (Depends-on): Add ansi-c++-opt.
32670         (Makefile.am): Arrange to compile and run test-dirent-c++.
32671         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32672         gl_MODULE_INDICATOR.
32673
32674         New module 'ansi-c++-opt'.
32675         * modules/ansi-c++-opt: New file.
32676         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32677
32678         Document C++ namespace mode.
32679         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32680
32681         wctype: Avoid #define replacements in C++ mode.
32682         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32683         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32684         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32685         In C++, define a namespaced alias symbol.
32686         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32687         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32688         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32689         rule.
32690
32691         wchar: Avoid #define replacements in C++ mode.
32692         * lib/wchar.in.h: Include c++defs.h.
32693         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32694         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32695         symbol.
32696         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32697         * modules/wchar (Depends-on): Add c++defs.
32698         (Makefile.am): Update wchar.h rule.
32699
32700         unistd: Avoid #define replacements in C++ mode.
32701         * lib/unistd.in.h: Include c++defs.h.
32702         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32703         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32704         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32705         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32706         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32707         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32708         symbol.
32709         (environ): Update.
32710         * modules/unistd (Depends-on): Add c++defs.
32711         (Makefile.am): Update unistd.h rule.
32712
32713         time: Avoid #define replacements in C++ mode.
32714         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32715         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32716         define a namespaced alias symbol.
32717         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32718         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32719         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32720         * modules/time (Depends-on): Add c++defs, warn-on-use.
32721         (Makefile.am): Update time.h rule.
32722         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32723         * modules/nanosleep (configure.ac): Likewise.
32724         * modules/strptime (configure.ac): Likewise.
32725         * modules/timegm (configure.ac): Likewise.
32726
32727         sys_time: Avoid #define replacements in C++ mode.
32728         * lib/sys_time.in.h: Include c++defs.h.
32729         (gettimeofday): In C++, define a namespaced alias symbol.
32730         * modules/sys_time (Depends-on): Add c++defs.
32731         (Makefile.am): Update sys/time.h rule.
32732
32733         sys_stat: Avoid #define replacements in C++ mode.
32734         * lib/sys_stat.in.h: Include c++defs.h.
32735         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32736         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32737         namespaced alias symbol.
32738         In C++, define a namespaced alias symbol.
32739         * modules/sys_stat (Depends-on): Add c++defs.
32740         (Makefile.am): Update sys/stat.h rule.
32741
32742         sys_socket: Avoid #define replacements in C++ mode.
32743         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32744         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32745         definitions also when the system has a <sys/socket.h>.
32746         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32747         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32748         In C++, define a namespaced alias symbol.
32749         * modules/sys_socket (Depends-on): Add c++defs.
32750         (Makefile.am): Update sys/socket.h rule.
32751
32752         sys_select: Avoid #define replacements in C++ mode.
32753         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32754         definitions also when the system has a <sys/select.h>.
32755         (select): In C++, define a namespaced alias symbol.
32756         * modules/sys_select (Depends-on): Add c++defs.
32757         (Makefile.am): Update sys/select.h rule.
32758
32759         sys_ioctl: Avoid #define replacements in C++ mode.
32760         * lib/sys_ioctl.in.h: Include c++defs.h.
32761         (ioctl): In C++, define a namespaced alias symbol.
32762         * modules/sys_ioctl (Depends-on): Add c++defs.
32763         (Makefile.am): Update sys/ioctl.h rule.
32764
32765         string: Avoid #define replacements in C++ mode.
32766         * lib/string.in.h: Include c++defs.h.
32767         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32768         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32769         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32770         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32771         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32772         * modules/string (Depends-on): Add c++defs.
32773         (Makefile.am): Update string.h rule.
32774
32775         stdlib: Avoid #define replacements in C++ mode.
32776         * lib/stdlib.in.h: Include c++defs.h.
32777         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32778         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32779         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32780         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32781         symbol.
32782         * modules/stdlib (Depends-on): Add c++defs.
32783         (Makefile.am): Update stdlib.h rule.
32784
32785         stdio: Avoid #define replacements in C++ mode.
32786         * lib/stdio.in.h: Include c++defs.h.
32787         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32788         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32789         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32790         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32791         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32792         namespaced alias symbol.
32793         * modules/stdio (Depends-on): Add c++defs.
32794         (Makefile.am): Update stdio.h rule.
32795
32796         spawn: Avoid #define replacements in C++ mode.
32797         * lib/spawn.in.h: Include c++defs.h.
32798         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32799         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32800         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32801         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32802         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32803         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32804         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32805         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32806         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32807         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32808         In C++, define a namespaced alias symbol.
32809         * modules/spawn (Depends-on): Add c++defs.
32810         (Makefile.am): Update spawn.h rule.
32811
32812         signal: Avoid #define replacements in C++ mode.
32813         * lib/signal.in.h: Include c++defs.h.
32814         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32815         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32816         namespaced alias symbol.
32817         * modules/signal (Depends-on): Add c++defs.
32818         (Makefile.am): Update signal.h rule.
32819
32820         search: Avoid #define replacements in C++ mode.
32821         * lib/search.in.h: Include c++defs.h.
32822         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32823         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32824         symbol.
32825         * modules/search (Depends-on): Add c++defs.
32826         (Makefile.am): Update search.h rule.
32827
32828         math: Avoid #define replacements in C++ mode.
32829         * lib/math.in.h: Include c++defs.h.
32830         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32831         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32832         trunc, truncl): In C++, define a namespaced alias symbol.
32833         * modules/math (Depends-on): Add c++defs.
32834         (Makefile.am): Update math.h rule.
32835
32836         locale: Avoid #define replacements in C++ mode.
32837         * lib/locale.in.h: Include c++defs.h.
32838         (duplocale): In C++, define a namespaced alias symbol.
32839         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32840         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32841         * modules/locale (Depends-on): Add c++defs.
32842         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32843
32844         langinfo: Avoid #define replacements in C++ mode.
32845         * lib/langinfo.in.h: Include c++defs.h.
32846         (nl_langinfo): In C++, define a namespaced alias symbol.
32847         * modules/langinfo (Depends-on): Add c++defs.
32848         (Makefile.am): Update langinfo.h rule.
32849
32850         iconv-h: Avoid #define replacements in C++ mode.
32851         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32852         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32853         symbol.
32854         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32855         whenever iconv is present.
32856         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32857         (Makefile.am): Update iconv.h rule.
32858
32859         glob: Avoid #define replacements in C++ mode.
32860         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32861         (_gl_glob_errfunc_fn): New type.
32862         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32863         symbol.
32864         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32865         (Makefile.am): Update glob.h rule.
32866
32867         fcntl-h: Avoid #define replacements in C++ mode.
32868         * lib/fcntl.in.h: Include c++defs.h.
32869         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32870         * modules/fcntl-h (Depends-on): Add c++defs.
32871         (Makefile.am): Update fcntl.h rule.
32872
32873         dirent: Avoid #define replacements in C++ mode.
32874         * lib/dirent.in.h: Include c++defs.h.
32875         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32876         namespaced alias symbol.
32877         (dirfd): Update declaration.
32878         * modules/dirent (Depends-on): Add c++defs.
32879         (Makefile.am): Update dirent.h rule.
32880
32881         ctype: Make it usable in C++ code.
32882         * lib/ctype.in.h: Include c++defs.h.
32883         (isblank): Declare as extern "C".
32884         * modules/ctype (Depends-on): Add c++defs.
32885         (Makefile.am): Update ctype.h rule.
32886
32887         New module 'c++defs'.
32888         * modules/c++defs: New file.
32889         * build-aux/c++defs.h: New file.
32890         Reported by John W. Eaton <jwe@gnu.org>.
32891
32892 2010-03-07  Bruno Haible  <bruno@clisp.org>
32893
32894         logb: Provide missing declaration for Cygwin.
32895         * lib/math.in.h (logb): New declaration.
32896         * m4/logb.m4: New file.
32897         * modules/logb (Files): Add m4/logb.m4.
32898         (Depends-on): Add math.
32899         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32900         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32902         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32903         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32904
32905 2010-03-07  Bruno Haible  <bruno@clisp.org>
32906
32907         Fix test-cond link error.
32908         * tests/test-cond.c: Include <stdio.h>.
32909
32910 2010-03-07  Bruno Haible  <bruno@clisp.org>
32911
32912         Fix test-dirent-safer link error.
32913         * modules/dirent-safer-tests (Makefile.am): Define
32914         test_dirent_safer_LDADD.
32915
32916 2010-03-07  Bruno Haible  <bruno@clisp.org>
32917
32918         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32919         among default module list.
32920
32921 2010-03-07  Bruno Haible  <bruno@clisp.org>
32922
32923         Fix link error on platforms with GNU libiconv.
32924         * modules/unistr/u8-strcoll-tests (Makefile): Define
32925         test_u8_strcoll_LDADD.
32926         * modules/unistr/u16-strcoll-tests (Makefile): Define
32927         test_u16_strcoll_LDADD.
32928         * modules/unistr/u32-strcoll-tests (Makefile): Define
32929         test_u32_strcoll_LDADD.
32930
32931 2010-03-07  Bruno Haible  <bruno@clisp.org>
32932
32933         Use POSIX declarations for socket functions.
32934         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32935         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32936         rpl_sendto): Change declaration to match POSIX.
32937         * lib/connect.c (rpl_connect): Likewise.
32938         * lib/accept.c (rpl_accept): Likewise.
32939         * lib/bind.c (rpl_bind): Likewise.
32940         * lib/getpeername.c (rpl_getpeername): Likewise.
32941         * lib/getsockname.c (rpl_getsockname): Likewise.
32942         * lib/recv.c (rpl_recv): Likewise.
32943         * lib/send.c (rpl_send): Likewise.
32944         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32945         * lib/sendto.c (rpl_sendto): Likewise.
32946
32947 2010-03-06  Bruno Haible  <bruno@clisp.org>
32948
32949         Clarify access, euidaccess, faccessat.
32950         * doc/posix-functions/faccessat.texi: Mention security problem under
32951         "Other problems", not "Portability problems".
32952         * doc/posix-functions/access.texi: Likewise. Mention a related security
32953         problem.
32954         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32955         * lib/euidaccess.c: Add comments about platforms.
32956         * lib/unistd.in.h (access, euidaccess): Add warnings.
32957
32958 2010-03-07  Bruno Haible  <bruno@clisp.org>
32959
32960         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32961         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32962         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32963         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32964         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32965         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32966         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32967         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32968         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32969         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32970         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32971         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32972         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32973         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32974         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32975         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32976         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32977         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32978         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32979         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32980         Likewise.
32981         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32982         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32983         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32984         Likewise.
32985         * tests/test-spawn.c (main): Make it work when
32986         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32987
32988 2010-03-07  Bruno Haible  <bruno@clisp.org>
32989
32990         Fix incorrect Makefile.am generation in German locale.
32991         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32992         Execute sed command with character range in C locale.
32993
32994 2010-03-06  Bruno Haible  <bruno@clisp.org>
32995
32996         Tests for module 'iconv-h'.
32997         * modules/iconv-h-tests: New file.
32998         * tests/test-iconv-h.c: New file.
32999
33000         New module 'iconv-h'.
33001         * modules/iconv-h: New file.
33002         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
33003         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
33004         (configure.ac): Remove gl_ICONV_H.
33005         (Makefile.am): Remove rule for iconv.h.
33006
33007 2010-03-06  Bruno Haible  <bruno@clisp.org>
33008
33009         More consistent naming of *.m4 files.
33010         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
33011         * modules/wctype (Files): Update.
33012
33013         More consistent naming of *.m4 files.
33014         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
33015         * modules/wchar (Files): Update.
33016
33017 2010-03-06  Jim Meyering  <meyering@redhat.com>
33018
33019         euidaccess: relax license to LGPLv2+
33020         * modules/euidaccess (License): Relax to LGPLv2+.
33021
33022 2010-03-06  Bruno Haible  <bruno@clisp.org>
33023
33024         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
33025         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
33026         (Makefile.am): Augment lib_SOURCES instead.
33027
33028 2010-03-04  Jim Meyering  <meyering@redhat.com>
33029
33030         utime: remove obsolete module
33031         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
33032         unnecessary for years, and has been marked as obsolete for 10 months.
33033         * modules/utime: Remove file.
33034         * lib/utime.c: Remove file.
33035         * m4/utime.m4: Remove file.
33036         * m4/utimes-null.m4: Remove file.
33037         * doc/posix-functions/utime.texi (utime): Remove reference to
33038         the module.  Move the sole "fixed by gnulib" item into the
33039         "problems not fixed by Gnulib" list.
33040         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
33041
33042 2010-03-05  Simon Josefsson  <simon@josefsson.org>
33043
33044         * modules/exit (License): Relax license to LGPLv2+.
33045         (Status): Mark as obsolete.
33046         * NEWS: Mention deprecated 'exit' module.
33047         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
33048         of now obsolete 'exit'.
33049
33050 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33051
33052         fts-lgpl: remove unused module
33053         * modules/fts-lgpl: Remove.
33054         * MODULES.html.sh (func_all_modules): Adjust.
33055         * check-module (find_included_lib_files): Adjust.
33056         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
33057
33058 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
33059
33060         copy-acl: enhance Solaris ACL error handling
33061         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
33062         * lib/set-mode-acl.c (qset_acl): Likewise.
33063
33064 2010-03-02  Bruno Haible  <bruno@clisp.org>
33065
33066         spawn: Don't override the system defined values on FreeBSD 8.
33067         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
33068         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
33069         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
33070         if HAVE_POSIX_SPAWN is 1.
33071         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
33072
33073 2010-03-01  Bruno Haible  <bruno@clisp.org>
33074
33075         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
33076         regarding Automake.
33077
33078 2010-02-25  Bruno Haible  <bruno@clisp.org>
33079
33080         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
33081         * gnulib-tool: Define 'echo' as a function only before the ksh alias
33082         setting, not afterwards.
33083         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
33084
33085 2010-02-24  Eric Blake  <eblake@redhat.com>
33086
33087         bootstrap, git-version-gen: use timestamp
33088         * build-aux/git-version-gen (scriptversion): Force UTC.
33089         * build-aux/bootstrap (scriptversion): New variable.
33090
33091         bootstrap: allow older git
33092         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
33093         older than 1.6.4.  Requested by the libvirt project.
33094
33095 2010-02-23  Eric Blake  <eblake@redhat.com>
33096
33097         warn-on-use: work with old autoconf
33098         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
33099         AS_VAR semantics of autoconf 2.60.
33100         Reported by Bruno Haible.
33101
33102         bootstrap: improve some comments
33103         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
33104         clarification comments.
33105
33106         gettimeofday: provide correct function
33107         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
33108         when replacement is declared, otherwise provide gettimeofday.
33109         Reported by Michael Goffioul.
33110
33111 2010-02-23  Jim Meyering  <meyering@redhat.com>
33112
33113         lib-ignore: relax license to "unlimited", not LGPLv2+
33114         * modules/lib-ignore (License): Relax to "unlimited".
33115
33116 2010-02-23  Jim Meyering  <meyering@redhat.com>
33117
33118         lib-ignore: relax license to LGPLv2+
33119         * modules/lib-ignore (License): Relax to LGPLv2+.
33120
33121 2010-02-22  Eric Blake  <eblake@redhat.com>
33122
33123         lseek: avoid bash 3.2 broken pipe bug
33124         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
33125         warning from bash 3.2.
33126         Reported by Ben Pfaff, with analysis from Bruno Haible.
33127
33128         bootstrap: support non-FSF copyright holder
33129         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
33130         bootstrap.conf override of COPYRIGHT_HOLDER.
33131         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
33132
33133         bootstrap: interoperate with gettext 0.14.1
33134         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
33135
33136         bootstrap: allow for alternate submodule location
33137         * build-aux/bootstrap (gnulib_path): New variable; use instead of
33138         hardcoding submodule location.
33139         (gnulib_mk): Allow direct use of Makefile.am.
33140
33141         bootstrap: use GNULIB_SRCDIR to reduce disk usage
33142         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
33143         rather than reconfiguring where the submodule points.
33144
33145         gettimeofday: restore support for platforms that lack function
33146         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
33147         replacement if function is missing.
33148         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
33149         * modules/sys_time (Makefile.am): Substitute it.
33150         * lib/sys_time.in.h (gettimeofday): Check it.
33151         Reported by Michael Goffioul.
33152
33153 2010-02-21  Bruno Haible  <bruno@clisp.org>
33154
33155         * lib/stdio.in.h (obstack_printf): Fix typo.
33156
33157 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
33158
33159         vc-list-files: use bzr ls's -R option
33160         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
33161         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
33162
33163 2010-02-21  Jim Meyering  <meyering@redhat.com>
33164
33165         init.sh: fix EXEEXT shims to work also for names like test-prog
33166         * tests/init.sh: Re-exec a better shell, when needed.
33167         If the current shell lacks support for posix $(...), an init.sh-using
33168         test will now try to find a shell that supports that.  If EXEEXT is
33169         nonempty, we also require support for hyphen-in-alias-name and shell
33170         substitutions like ${var#glob}.  Failure to find such a shell results
33171         in a skipped test.
33172
33173 2010-02-21  Bruno Haible  <bruno@clisp.org>
33174
33175         Really work around around "broken pipe" error message from bash 3.2.
33176         * gnulib-tool (func_reset_sigpipe): Remove function.
33177         (echo): In bash 3.2, define to a function that uses printf.
33178         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
33179
33180 2010-02-20  Bruno Haible  <bruno@clisp.org>
33181
33182         Restore support for automake 1.9.6 with autoconf 2.61.
33183         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
33184         Reported by James Youngman <jay@gnu.org>.
33185
33186 2010-02-20  Bruno Haible  <bruno@clisp.org>
33187
33188         Improve *printf warning condition.
33189         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
33190         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
33191         and the function is overridden due to SIGPIPE emulation.
33192
33193 2010-02-20  Bruno Haible  <bruno@clisp.org>
33194
33195         * lib/stdio.in.h: Tweak comments.
33196
33197 2010-02-19  Bruno Haible  <bruno@clisp.org>
33198
33199         Make it easier to find modules. New gnulib-tool option '--find'.
33200         * gnulib-tool: New option --find.
33201         (func_usage): Document it.
33202         (func_sanitize_modulelist): New function, extracted from
33203         func_all_modules.
33204         (func_all_modules): Invoke it.
33205         * doc/gnulib-tool.texi (Which modules?): New node.
33206
33207 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
33208
33209         * lib/sys_select.in.h: Provide select replacement even if
33210         sys/select.h exists on a system, for Interix.
33211
33212 2010-02-18  Jim Meyering  <meyering@redhat.com>
33213
33214         init.sh: don't use $(...) just yet
33215         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
33216         to accommodate e.g., Solaris' /bin/sh.
33217
33218 2010-02-17  Bruno Haible  <bruno@clisp.org>
33219
33220         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
33221         Reported by Ludovic Courtès <ludo@gnu.org>.
33222
33223 2010-02-16  Simon Josefsson  <simon@josefsson.org>
33224
33225         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
33226         linking with -lintl.
33227
33228 2010-02-17  Simon Josefsson  <simon@josefsson.org>
33229
33230         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
33231         if not provided by the system's netdb.h.  Reported by
33232         ludo@gnu.org (Ludovic Courtès).
33233
33234 2010-02-15  Jim Meyering  <meyering@redhat.com>
33235
33236         init.sh: improve portability and efficiency
33237         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
33238         "dummy" in a for loop.
33239         Use '!', not '^' to select the complement of a character set used
33240         in a "case" statement.
33241         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
33242         Suggestions from Eric Blake.
33243
33244         init.sh: automatically accommodate programs with the .exe suffix
33245         Automatically arrange for an invocation of "prog" to execute the
33246         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
33247         may use the simpler "prog", yet still work when built on a system
33248         that requires specifying the added suffix.
33249         Do this by constructing a function named "prog" that invokes
33250         "prog.exe" for each .exe file in selected directories.
33251         * tests/init.sh (find_exe_basenames_): New function.
33252         (create_exe_shim_functions_): New function.
33253         (path_prepend_): Use it.
33254
33255         maint.mk: mark syntax-check sc_*.m rules as .PHONY
33256         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
33257         "make -t syntax-check" doesn't create a ton of sc_*.m files.
33258
33259 2010-02-14  Jim Meyering  <meyering@redhat.com>
33260
33261         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
33262         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
33263         (sc_prohibit_hash_pjw_without_use): New rule.
33264
33265         maint.mk: allow the default upload destination dir to be overridden
33266         * top/maint.mk (upload_dest_dir_): Define with a default that
33267         preserves the status quo.
33268         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
33269         Reported by Peter Simons.
33270
33271         maint.mk: prohibit inclusion of "hash.h" without_use
33272         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
33273
33274 2010-02-10  Jim Meyering  <meyering@redhat.com>
33275
33276         maint.mk: prohibit inclusion of "ignore-value.h" without_use
33277         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
33278
33279 2010-02-09  Eric Blake  <ebb9@byu.net>
33280         and Bruno Haible  <bruno@clisp.org>
33281
33282         obstack-printf-posix: ensure declaration
33283         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
33284         extracted from gl_FUNC_OBSTACK_PRINTF.
33285         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
33286         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
33287         Likewise.
33288         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
33289         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
33290         0.
33291
33292 2010-02-08  Bruno Haible  <bruno@clisp.org>
33293
33294         gnulib-tool: Fix typo in 2010-02-07 commit.
33295         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
33296         Reported by Eric Blake.
33297
33298 2010-02-07  Bruno Haible  <bruno@clisp.org>
33299
33300         gnulib-tool: Fix up caching patches.
33301         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
33302         option --no-cache. Use associative arrays when supported by the shell.
33303         (sed_comments): New variable.
33304         (modcache): Renamed from do_cache.
33305         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
33306         abbreviate unnecessarily.
33307         (have_associative): New variable.
33308         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
33309         way also for ksh and zsh.
33310         (func_init_sed_convert_to_cache_statements): New function, extracted
33311         from func_cache_lookup_module. Add support for associative arrays.
33312         Don't set the c_MODULE_cached variable here. Ignore all lines before
33313         the first field header. Remove only the final newline, not all trailing
33314         newlines. Support empty fields correctly. Limit the use of 'eval' to
33315         assignments.
33316         (func_get_description, func_get_status, func_get_notice,
33317         func_get_applicability, func_get_filelist, func_get_dependencies,
33318         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33319         func_get_automake_snippet, func_get_include_directive,
33320         func_get_link_directive, func_get_license, func_get_maintainer):
33321         Update documentation. List the unoptimized code first. Add support for
33322         associative arrays. Limit the use of 'eval' to assignments.
33323         (func_get_applicability): Undo stylistic pessimisations.
33324         (func_get_automake_snippet, func_get_include_directive): Reduce code
33325         duplication.
33326         (func_modules_transitive_closure, func_modules_add_dummy,
33327         func_modules_notice, func_modules_to_filelist, func_add_file,
33328         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33329         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33330         func_create_testdir, func_create_megatestdir): Update documentation.
33331
33332 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33333
33334         * gnulib-tool (func_cache_lookup_module): Store the module name
33335         belonging to the cache variable; error out if two different
33336         module names map to the same cache variable name.
33337
33338 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33339
33340         gnulib-tool: Make caching optional.
33341         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33342         Update matching short versions of --no-changelog.
33343         (func_usage): Update.
33344         (sed_extract_cache_prog): Renamed from ...
33345         (sed_extract_prog): ... this; revert to old extraction script.
33346         (func_get_description, func_get_status)
33347         (func_get_notice, func_get_applicability, func_get_filelist)
33348         (func_get_dependencies, func_get_autoconf_early_snippet)
33349         (func_get_autoconf_snippet, func_get_automake_snippet)
33350         (func_get_include_directive, func_get_link_directive)
33351         (func_get_license, func_get_maintainer): If $do_cache is false,
33352         use old, non-caching extraction scripts.
33353         Suggestion by Bruno Haible.
33354
33355 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33356
33357         gnulib-tool: cache module metainformation.
33358         * gnulib-tool (sed_extract_prog): Match newline before each
33359         header, and rewrite header to a shell variable suffix.
33360         (func_cache_var, func_cache_lookup_module): New functions,
33361         to turn a module name into a cache variable prefix, and to
33362         look up and cache module metainformation.
33363         (func_get_description, func_get_status)
33364         (func_get_notice, func_get_applicability, func_get_filelist)
33365         (func_get_dependencies, func_get_autoconf_early_snippet)
33366         (func_get_autoconf_snippet, func_get_automake_snippet)
33367         (func_get_include_directive, func_get_link_directive)
33368         (func_get_license, func_get_maintainer): Use
33369         func_cache_lookup_module.
33370
33371 2010-02-07  Bruno Haible  <bruno@clisp.org>
33372
33373         fnctl: Fix missing dependency.
33374         * modules/fcntl (Depends-on): Add getdtablesize.
33375         Reported by John W. Eaton <jwe@gnu.org>.
33376
33377 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33378
33379         Argp: fix recognition of short alias options.
33380
33381         * lib/argp-parse.c (convert_options): Fix improper use of
33382         `|' between character values.
33383         * tests/test-argp.c (group1_option): New alias option
33384         --read (-r).
33385         (group1_parser): Special handling for 'r'.
33386         (test15): New test case.
33387         (test_fun): Add test15.
33388         * tests/test-argp-2.sh: Update expected --help and --usage
33389         outputs.
33390
33391 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33392
33393         * tests/test-argp.c: Fix indentation.
33394
33395 2010-02-04  Eric Blake  <ebb9@byu.net>
33396
33397         gettimeofday: expose type of second argument
33398         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33399         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33400         * tests/test-gettimeofday.c: Use it to silence warning.
33401         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33402         the issue.
33403
33404 2010-02-03  Jim Meyering  <meyering@redhat.com>
33405
33406         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33407         * lib/regcomp.c (TYPE_SIGNED): Define.
33408         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33409
33410         regcomp.c: avoid a new -Wshadow warning
33411         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33412
33413 2010-02-01  Jim Meyering  <meyering@redhat.com>
33414
33415         removing useless parentheses in cpp #define directives
33416         For motivation, see commit c0221df4, "define STREQ(a,b)
33417         consistently, removing useless parentheses"
33418         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33419         * lib/mountlist.c (MNT_IGNORE): Likewise.
33420         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33421
33422 2010-02-01  Eric Blake  <ebb9@byu.net>
33423
33424         sys_time: use link-warning
33425         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33426         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33427         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33428         * modules/sys_time (Depends-on): Add warn-on-use.
33429         (Makefile.am): Always build replacement.
33430         (configure.ac): Update substitutions.
33431         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33432         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33433         bother with SYS_TIME_H.
33434         * modules/gettimeofday (configure.ac): Declare indicator.
33435         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33436         in use.
33437
33438         closein-tests: silence compiler warning
33439         * tests/test-closein.c (main): Ignore fread result.
33440         * modules/closein-tests (Depends-on): Add ignore-value.
33441
33442         tests: silence warning about system return
33443         * tests/test-areadlink-with-size.c (main): Ignore system result.
33444         * tests/test-areadlink.c (main): Likewise.
33445         * tests/test-areadlinkat-with-size.c (main): Likewise.
33446         * tests/test-areadlinkat.c (main): Likewise.
33447         * tests/test-canonicalize-lgpl.c (main): Likewise.
33448         * tests/test-canonicalize.c (main): Likewise.
33449         * tests/test-chown.c (main): Likewise.
33450         * tests/test-fchownat.c (main): Likewise.
33451         * tests/test-fdutimensat.c (main): Likewise.
33452         * tests/test-fstatat.c (main): Likewise.
33453         * tests/test-futimens.c (main): Likewise.
33454         * tests/test-lchown.c (main): Likewise.
33455         * tests/test-link.c (main): Likewise.
33456         * tests/test-linkat.c (main): Likewise.
33457         * tests/test-lstat.c (main): Likewise.
33458         * tests/test-mkdir.c (main): Likewise.
33459         * tests/test-mkdirat.c (main): Likewise.
33460         * tests/test-mkfifo.c (main): Likewise.
33461         * tests/test-mkfifoat.c (main): Likewise.
33462         * tests/test-mknod.c (main): Likewise.
33463         * tests/test-readlink.c (main): Likewise.
33464         * tests/test-remove.c (main): Likewise.
33465         * tests/test-rename.c (main): Likewise.
33466         * tests/test-renameat.c (main): Likewise.
33467         * tests/test-rmdir.c (main): Likewise.
33468         * tests/test-symlink.c (main): Likewise.
33469         * tests/test-symlinkat.c (main): Likewise.
33470         * tests/test-unlink.c (main): Likewise.
33471         * tests/test-unlinkat.c (main): Likewise.
33472         * tests/test-utimens.c (main): Likewise.
33473         * tests/test-utimensat.c (main): Likewise.
33474         * modules/areadlink-tests (Depends-on): Add ignore-value.
33475         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33476         * modules/areadlinkat-tests (Depends-on): Likewise.
33477         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33478         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33479         * modules/canonicalize-tests (Depends-on): Likewise.
33480         * modules/chown-tests (Depends-on): Likewise.
33481         * modules/fdutimensat-tests (Depends-on): Likewise.
33482         * modules/futimens-tests (Depends-on): Likewise.
33483         * modules/lchown-tests (Depends-on): Likewise.
33484         * modules/link-tests (Depends-on): Likewise.
33485         * modules/linkat-tests (Depends-on): Likewise.
33486         * modules/lstat-tests (Depends-on): Likewise.
33487         * modules/mkdir-tests (Depends-on): Likewise.
33488         * modules/mkfifo-tests (Depends-on): Likewise.
33489         * modules/mkfifoat-tests (Depends-on): Likewise.
33490         * modules/mknod-tests (Depends-on): Likewise.
33491         * modules/openat-tests (Depends-on): Likewise.
33492         * modules/readlink-tests (Depends-on): Likewise.
33493         * modules/remove-tests (Depends-on): Likewise.
33494         * modules/rename-tests (Depends-on): Likewise.
33495         * modules/renameat-tests (Depends-on): Likewise.
33496         * modules/rmdir-tests (Depends-on): Likewise.
33497         * modules/symlink-tests (Depends-on): Likewise.
33498         * modules/symlinkat-tests (Depends-on): Likewise.
33499         * modules/unlink-tests (Depends-on): Likewise.
33500         * modules/utimens-tests (Depends-on): Likewise.
33501         * modules/utimensat-tests (Depends-on): Likewise.
33502
33503 2010-01-31  Bruno Haible  <bruno@clisp.org>
33504
33505         Perform the same test for many <math.h> functions.
33506         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33507         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33508         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33509         of gl_MATHFUNC.
33510         * modules/acos (configure.ac): Likewise.
33511         * modules/asin (configure.ac): Likewise.
33512         * modules/atan (configure.ac): Likewise.
33513         * modules/atan2 (configure.ac): Likewise.
33514         * modules/cbrt (configure.ac): Likewise.
33515         * modules/copysign (configure.ac): Likewise.
33516         * modules/cos (configure.ac): Likewise.
33517         * modules/cosh (configure.ac): Likewise.
33518         * modules/erf (configure.ac): Likewise.
33519         * modules/erfc (configure.ac): Likewise.
33520         * modules/exp (configure.ac): Likewise.
33521         * modules/fmod (configure.ac): Likewise.
33522         * modules/hypot (configure.ac): Likewise.
33523         * modules/j0 (configure.ac): Likewise.
33524         * modules/j1 (configure.ac): Likewise.
33525         * modules/jn (configure.ac): Likewise.
33526         * modules/lgamma (configure.ac): Likewise.
33527         * modules/log (configure.ac): Likewise.
33528         * modules/log10 (configure.ac): Likewise.
33529         * modules/log1p (configure.ac): Likewise.
33530         * modules/pow (configure.ac): Likewise.
33531         * modules/remainder (configure.ac): Likewise.
33532         * modules/sin (configure.ac): Likewise.
33533         * modules/sinh (configure.ac): Likewise.
33534         * modules/tan (configure.ac): Likewise.
33535         * modules/tanh (configure.ac): Likewise.
33536         * modules/y0 (configure.ac): Likewise.
33537         * modules/y1 (configure.ac): Likewise.
33538         * modules/yn (configure.ac): Likewise.
33539         Suggested by Paolo Bonzini.
33540
33541 2010-01-31  Bruno Haible  <bruno@clisp.org>
33542
33543         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33544
33545 2010-01-31  Bruno Haible  <bruno@clisp.org>
33546
33547         Work around getdelim() bug on FreeBSD 8.0.
33548         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33549         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33550         not work.
33551         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33552         is 1.
33553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33554         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33555         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33556         a non-zero size.
33557         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33558
33559 2010-01-31  Bruno Haible  <bruno@clisp.org>
33560
33561         Work around getline() bug on FreeBSD 8.0.
33562         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33563         and a non-zero size.
33564         * tests/test-getline.c (main): Likewise.
33565         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33566         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33567
33568 2010-01-28  Eric Blake  <ebb9@byu.net>
33569
33570         regex: fix build failure
33571         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33572         platforms.
33573
33574 2010-01-28  Jim Meyering  <meyering@redhat.com>
33575
33576         regex: do not ignore memory allocation failure
33577         * lib/regex_internal.c (create_cd_newstate): Detect
33578         re_node_set_init_copy failure.   Extracted from glibc commit
33579         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33580
33581         regex: sync more white-space changes from libc
33582         * lib/regex_internal.c: White-space only changes.
33583         * lib/regexec.c: Likewise.
33584
33585         regex: add many uses of __attribute_warn_unused_result__
33586         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33587         * lib/regexec.c: Likewise.
33588         Extracted from a messy glibc commit.
33589
33590         regcomp.c: spelling and merge-artifact from glibc
33591         * lib/regcomp.c: Merge remainder of glibc's
33592         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33593
33594         regcomp.c: sync white-space changes from glibc
33595         * lib/regcomp.c: Merge to accommodate white space
33596         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33597
33598         regcomp.c: do not ignore internal return values
33599         * lib/regcomp.c: Do not ignore internal return values.
33600         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33601         but without its white-space changes and spelling fixes.
33602
33603         regex_internal.h: define __attribute_warn_unused_result__
33604         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33605
33606         maint: add a syntax-check rule to check for vulnerable Makefile.in
33607         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33608
33609 2010-01-27  Jim Meyering  <meyering@redhat.com>
33610
33611         ncftpput-ftp: clean up spaces
33612         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33613         Remove trailing blanks.
33614
33615 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33616
33617         * build-aux/git-version-gen: Fix copyright statement.
33618         * build-aux/gnupload: Likewise.
33619         * tests/test-arcfour.c: Likewise.
33620         * tests/test-arctwo.c: Likewise.
33621         * tests/test-count-one-bits.c: Likewise.
33622         * tests/test-crc.c: Likewise.
33623         * tests/test-des.c: Likewise.
33624         * tests/test-gc-arcfour.c: Likewise.
33625         * tests/test-gc-arctwo.c: Likewise.
33626         * tests/test-gc-des.c: Likewise.
33627         * tests/test-gc-hmac-md5.c: Likewise.
33628         * tests/test-gc-hmac-sha1.c: Likewise.
33629         * tests/test-gc-md2.c: Likewise.
33630         * tests/test-gc-md4.c: Likewise.
33631         * tests/test-gc-md5.c: Likewise.
33632         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33633         * tests/test-gc-rijndael.c: Likewise.
33634         * tests/test-gc-sha1.c: Likewise.
33635         * tests/test-gc.c: Likewise.
33636         * tests/test-gethostname.c: Likewise.
33637         * tests/test-gettimeofday.c: Likewise.
33638         * tests/test-hash.c: Likewise.
33639         * tests/test-hmac-md5.c: Likewise.
33640         * tests/test-hmac-sha1.c: Likewise.
33641         * tests/test-md2.c: Likewise.
33642         * tests/test-md4.c: Likewise.
33643         * tests/test-md5.c: Likewise.
33644         * tests/test-memchr.c: Likewise.
33645         * tests/test-memchr2.c: Likewise.
33646         * tests/test-memcmp.c: Likewise.
33647         * tests/test-memmem.c: Likewise.
33648         * tests/test-memrchr.c: Likewise.
33649         * tests/test-rawmemchr.c: Likewise.
33650         * tests/test-read-file.c: Likewise.
33651         * tests/test-rijndael.c: Likewise.
33652         * tests/test-sockets.c: Likewise.
33653         * tests/test-strchrnul.c: Likewise.
33654         * tests/test-strstr.c: Likewise.
33655         * tests/test-strtod.c: Likewise.
33656         * build-aux/ncftpput-ftp: Likewise.
33657
33658 2010-01-26  Eric Blake  <ebb9@byu.net>
33659
33660         ignore-value: update recommended header name
33661         * modules/ignore-value (Include): Only use <> for headers that
33662         exist in glibc.
33663
33664 2010-01-26  Jim Meyering  <meyering@redhat.com>
33665
33666         test-userspec.c: avoid compiler warnings
33667         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33668         and "initialization discards qualifiers..." warnings.
33669         Put the first "uid" in its own scope, and make char* members "const".
33670
33671 2010-01-25  Bruno Haible  <bruno@clisp.org>
33672
33673         gnulib-tool: Make warning diagnostics consistent.
33674         * gnulib-tool (func_warning): New function.
33675         Use it everywhere where gnulib-tool produces output to stderr and it is
33676         not a fatal error.
33677
33678 2010-01-25  Bruno Haible  <bruno@clisp.org>
33679
33680         Fix test dependencies.
33681         * modules/xstrtol-tests (Depends-on): Add inttypes.
33682         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33683
33684 2010-01-25 Pádraig Brady <P@draigBrady.com>
33685
33686         syntax-check: detect incorrect boolean macro values in config.h
33687         * modules/maintainer-makefile (configure.ac): Parameterize the location
33688         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33689         The logic is from Eric Blake and the location indicated by Jim Meyering.
33690         Note the more natural CONFIG_HEADER name is prohibited by automake
33691         for backwards compatibility reasons.
33692         * top/maint.mk (sc_Wundef_boolean): New rule.
33693
33694 2010-01-25  Jim Meyering  <meyering@redhat.com>
33695
33696         bootstrap: detect MacOS 10.6's shasum, too
33697         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33698         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33699
33700 2010-01-23  Jim Meyering  <meyering@redhat.com>
33701
33702         xstrtoll: new module
33703         * modules/xstrtoll: New file.
33704         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33705         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33706         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33707         ./configure fails if you use this module and lack "long long".
33708         * modules/xstrtoll-tests: New module.
33709         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33710         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33711         new init.sh-based test framework.
33712
33713 2010-01-24  Bruno Haible  <bruno@clisp.org>
33714
33715         Tests for module 'yn'.
33716         * modules/yn-tests: New file.
33717         * tests/test-yn.c: New file.
33718
33719         Tests for module 'y1'.
33720         * modules/y1-tests: New file.
33721         * tests/test-y1.c: New file.
33722
33723         Tests for module 'y0'.
33724         * modules/y0-tests: New file.
33725         * tests/test-y0.c: New file.
33726
33727         Tests for module 'tanh'.
33728         * modules/tanh-tests: New file.
33729         * tests/test-tanh.c: New file.
33730
33731         Tests for module 'tan'.
33732         * modules/tan-tests: New file.
33733         * tests/test-tan.c: New file.
33734
33735         Tests for module 'sqrt'.
33736         * modules/sqrt-tests: New file.
33737         * tests/test-sqrt.c: New file.
33738
33739         Tests for module 'sinh'.
33740         * modules/sinh-tests: New file.
33741         * tests/test-sinh.c: New file.
33742
33743         Tests for module 'sin'.
33744         * modules/sin-tests: New file.
33745         * tests/test-sin.c: New file.
33746
33747         Tests for module 'rint'.
33748         * modules/rint-tests: New file.
33749         * tests/test-rint.c: New file.
33750
33751         Tests for module 'remainder'.
33752         * modules/remainder-tests: New file.
33753         * tests/test-remainder.c: New file.
33754
33755         Tests for module 'pow'.
33756         * modules/pow-tests: New file.
33757         * tests/test-pow.c: New file.
33758
33759         Tests for module 'nextafter'.
33760         * modules/nextafter-tests: New file.
33761         * tests/test-nextafter.c: New file.
33762
33763         Tests for module 'modf'.
33764         * modules/modf-tests: New file.
33765         * tests/test-modf.c: New file.
33766
33767         Tests for module 'logb'.
33768         * modules/logb-tests: New file.
33769         * tests/test-logb.c: New file.
33770
33771         Tests for module 'log1p'.
33772         * modules/log1p-tests: New file.
33773         * tests/test-log1p.c: New file.
33774
33775         Tests for module 'log10'.
33776         * modules/log10-tests: New file.
33777         * tests/test-log10.c: New file.
33778
33779         Tests for module 'log'.
33780         * modules/log-tests: New file.
33781         * tests/test-log.c: New file.
33782
33783         Tests for module 'lgamma'.
33784         * modules/lgamma-tests: New file.
33785         * tests/test-lgamma.c: New file.
33786
33787         Tests for module 'ldexp'.
33788         * modules/ldexp-tests: New file.
33789         * tests/test-ldexp.c: New file.
33790
33791         Tests for module 'jn'.
33792         * modules/jn-tests: New file.
33793         * tests/test-jn.c: New file.
33794
33795         Tests for module 'j1'.
33796         * modules/j1-tests: New file.
33797         * tests/test-j1.c: New file.
33798
33799         Tests for module 'j0'.
33800         * modules/j0-tests: New file.
33801         * tests/test-j0.c: New file.
33802
33803         Tests for module 'hypot'.
33804         * modules/hypot-tests: New file.
33805         * tests/test-hypot.c: New file.
33806
33807         Tests for module 'fmod'.
33808         * modules/fmod-tests: New file.
33809         * tests/test-fmod.c: New file.
33810
33811         Tests for module 'fabs'.
33812         * modules/fabs-tests: New file.
33813         * tests/test-fabs.c: New file.
33814
33815         Tests for module 'exp'.
33816         * modules/exp-tests: New file.
33817         * tests/test-exp.c: New file.
33818
33819         Tests for module 'erfc'.
33820         * modules/erfc-tests: New file.
33821         * tests/test-erfc.c: New file.
33822
33823         Tests for module 'erf'.
33824         * modules/erf-tests: New file.
33825         * tests/test-erf.c: New file.
33826
33827         Tests for module 'cosh'.
33828         * modules/cosh-tests: New file.
33829         * tests/test-cosh.c: New file.
33830
33831         Tests for module 'cos'.
33832         * modules/cos-tests: New file.
33833         * tests/test-cos.c: New file.
33834
33835         Tests for module 'copysign'.
33836         * modules/copysign-tests: New file.
33837         * tests/test-copysign.c: New file.
33838
33839         Tests for module 'cbrt'.
33840         * modules/cbrt-tests: New file.
33841         * tests/test-cbrt.c: New file.
33842
33843         Tests for module 'atan2'.
33844         * modules/atan2-tests: New file.
33845         * tests/test-atan2.c: New file.
33846
33847         Tests for module 'atan'.
33848         * modules/atan-tests: New file.
33849         * tests/test-atan.c: New file.
33850
33851         Tests for module 'asin'.
33852         * modules/asin-tests: New file.
33853         * tests/test-asin.c: New file.
33854
33855         Tests for module 'acos'.
33856         * modules/acos-tests: New file.
33857         * tests/test-acos.c: New file.
33858
33859 2010-01-24  Bruno Haible  <bruno@clisp.org>
33860
33861         Fix tests for common <math.h> functions.
33862         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33863         code snippet that references the function pointer, rather than merely
33864         calling the function. Substitute the FUNC_LIBM variable.
33865         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33866         * modules/acos (configure.ac): Likewise.
33867         * modules/asin (configure.ac): Likewise.
33868         * modules/atan (configure.ac): Likewise.
33869         * modules/atan2 (configure.ac): Likewise.
33870         * modules/cbrt (configure.ac): Likewise.
33871         * modules/copysign (configure.ac): Likewise.
33872         * modules/cos (configure.ac): Likewise.
33873         * modules/cosh (configure.ac): Likewise.
33874         * modules/erf (configure.ac): Likewise.
33875         * modules/erfc (configure.ac): Likewise.
33876         * modules/exp (configure.ac): Likewise.
33877         * modules/fabs (configure.ac): Likewise.
33878         * modules/fmod (configure.ac): Likewise.
33879         * modules/hypot (configure.ac): Likewise.
33880         * modules/j0 (configure.ac): Likewise.
33881         * modules/j1 (configure.ac): Likewise.
33882         * modules/jn (configure.ac): Likewise.
33883         * modules/ldexp (configure.ac): Likewise.
33884         * modules/lgamma (configure.ac): Likewise.
33885         * modules/log (configure.ac): Likewise.
33886         * modules/log10 (configure.ac): Likewise.
33887         * modules/log1p (configure.ac): Likewise.
33888         * modules/logb (configure.ac): Likewise.
33889         * modules/modf (configure.ac): Likewise.
33890         * modules/nextafter (configure.ac): Likewise.
33891         * modules/pow (configure.ac): Likewise.
33892         * modules/remainder (configure.ac): Likewise.
33893         * modules/rint (configure.ac): Likewise.
33894         * modules/sin (configure.ac): Likewise.
33895         * modules/sinh (configure.ac): Likewise.
33896         * modules/tan (configure.ac): Likewise.
33897         * modules/tanh (configure.ac): Likewise.
33898         * modules/y0 (configure.ac): Likewise.
33899         * modules/y1 (configure.ac): Likewise.
33900         * modules/yn (configure.ac): Likewise.
33901
33902 2010-01-24  Bruno Haible  <bruno@clisp.org>
33903
33904         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33905         * tests/test-acosl.c (x): New variable.
33906         (main): Store argument in x and fetch it from x.
33907         * tests/test-asinl.c (x): New variable.
33908         (main): Store argument in x and fetch it from x.
33909         * tests/test-atanl.c (x): New variable.
33910         (main): Store argument in x and fetch it from x.
33911         * tests/test-cosl.c (x): New variable.
33912         (main): Store argument in x and fetch it from x.
33913         * tests/test-expl.c (x): New variable.
33914         (main): Store argument in x and fetch it from x.
33915         * tests/test-logl.c (x): New variable.
33916         (main): Store argument in x and fetch it from x.
33917         * tests/test-sinl.c (x): New variable.
33918         (main): Store argument in x and fetch it from x.
33919         * tests/test-sqrtl.c (x): New variable.
33920         (main): Store argument in x and fetch it from x.
33921         * tests/test-tanl.c (x): New variable.
33922         (main): Store argument in x and fetch it from x.
33923
33924 2010-01-24  Bruno Haible  <bruno@clisp.org>
33925
33926         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33927         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33928         assignments to the initial TESTS_ENVIRONMENT.
33929         * doc/gnulib.texi (Unit test modules): Document it.
33930         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33931         TESTS_ENVIRONMENT.
33932         * modules/btowc-tests (Makefile.am): Likewise.
33933         * modules/c-stack-tests (Makefile.am): Likewise.
33934         * modules/c-strcase-tests (Makefile.am): Likewise.
33935         * modules/copy-file-tests (Makefile.am): Likewise.
33936         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33937         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33938         * modules/mbrtowc-tests (Makefile.am): Likewise.
33939         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33940         * modules/mbscasestr-tests (Makefile.am): Likewise.
33941         * modules/mbschr-tests (Makefile.am): Likewise.
33942         * modules/mbscspn-tests (Makefile.am): Likewise.
33943         * modules/mbsinit-tests (Makefile.am): Likewise.
33944         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33945         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33946         * modules/mbspbrk-tests (Makefile.am): Likewise.
33947         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33948         * modules/mbsrchr-tests (Makefile.am): Likewise.
33949         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33950         * modules/mbsspn-tests (Makefile.am): Likewise.
33951         * modules/mbsstr-tests (Makefile.am): Likewise.
33952         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33953         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33954         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33955         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33956         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33957         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33958         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33959         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33960         * modules/wcrtomb-tests (Makefile.am): Likewise.
33961         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33962         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33963         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33964         assignments from TESTS_ENVIRONMENT.
33965         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33966         augmentation.
33967         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33968         * modules/atexit-tests (Makefile.am): Likewise.
33969         * modules/binary-io-tests (Makefile.am): Likewise.
33970         * modules/closein-tests (Makefile.am): Likewise.
33971         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33972         * modules/exclude-tests (Makefile.am): Likewise.
33973         * modules/fflush-tests (Makefile.am): Likewise.
33974         * modules/fpending-tests (Makefile.am): Likewise.
33975         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33976         * modules/freadahead-tests (Makefile.am): Likewise.
33977         * modules/freadptr-tests (Makefile.am): Likewise.
33978         * modules/freadseek-tests (Makefile.am): Likewise.
33979         * modules/fseek-tests (Makefile.am): Likewise.
33980         * modules/fseeko-tests (Makefile.am): Likewise.
33981         * modules/ftell-tests (Makefile.am): Likewise.
33982         * modules/ftello-tests (Makefile.am): Likewise.
33983         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33984         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33985         * modules/lseek-tests (Makefile.am): Likewise.
33986         * modules/parse-duration-tests (Makefile.am): Likewise.
33987         * modules/perror-tests (Makefile.am): Likewise.
33988         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33989         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33990         * modules/pipe-tests (Makefile.am): Likewise.
33991         * modules/pread-tests (Makefile.am): Likewise.
33992         * modules/printf-posix-tests (Makefile.am): Likewise.
33993         * modules/select-tests (Makefile.am): Likewise.
33994         * modules/sigpipe-tests (Makefile.am): Likewise.
33995         * modules/tsearch-tests (Makefile.am): Likewise.
33996         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33997         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33998         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33999         * modules/uniwidth/width-tests (Makefile.am): Likewise.
34000         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
34001         * modules/version-etc-tests (Makefile.am): Likewise.
34002         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
34003         * modules/vprintf-posix-tests (Makefile.am): Likewise.
34004         * modules/xalloc-die-tests (Makefile.am): Likewise.
34005         * modules/xprintf-posix-tests (Makefile.am): Likewise.
34006         * modules/xstrtoimax-tests (Makefile.am): Likewise.
34007         * modules/xstrtol-tests (Makefile.am): Likewise.
34008         * modules/xstrtoumax-tests (Makefile.am): Likewise.
34009         * modules/yesno-tests (Makefile.am): Likewise.
34010         Suggested by Jim Meyering.
34011
34012 2010-01-24  Bruno Haible  <bruno@clisp.org>
34013
34014         More documentation.
34015         * doc/gnulib.texi (Writing modules): New chapter.
34016         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
34017         the new chapter.
34018
34019 2010-01-24  Jim Meyering  <meyering@redhat.com>
34020
34021         maint.mk: do not prepend "./" after filtering
34022         * top/maint.mk (_prepend_srcdir_prefix): New variable
34023         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
34024         "./" when $(srcdir) is ".".
34025
34026         define STREQ(a,b) consistently, removing useless parentheses
34027         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
34028         since the only risk is that "a" or "b" contains an unparenthesized
34029         comma, but if either did that, STREQ would have 3 or more arguments.
34030         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
34031         * lib/fts.c (STREQ): Remove unnecessary parentheses.
34032         * lib/hash-triple.c (STREQ): Likewise.
34033         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
34034         * lib/getugroups.c (STREQ): Likewise.
34035
34036 2010-01-23  Jim Meyering  <meyering@redhat.com>
34037
34038         maint.mk: fix syntax-check in a non-srcdir build directory
34039         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
34040         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
34041
34042 2010-01-22  Jim Meyering  <meyering@redhat.com>
34043
34044         userspec: add unit tests
34045         * tests/test-userspec.c: New file.
34046         * modules/userspec-tests: Likewise.
34047
34048 2010-01-21  Jim Meyering  <meyering@redhat.com>
34049
34050         maint.mk: handle source file names containing "." robustly
34051         * top/maint.mk (_dot_escaped_srcdir): Define.
34052         (VC_LIST): Use it in LHS of sed substitution.
34053
34054 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
34055
34056         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
34057         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
34058         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
34059         from a non-srcdir build.
34060
34061 2010-01-20  Eric Blake  <ebb9@byu.net>
34062
34063         warn-on-use: use instead of link-warning
34064         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
34065         * modules/unistd (Depends-on, Makefile.am): Likewise.
34066         * modules/arpa_inet (Depends-on): Replace link-warning with
34067         warn-on-use.
34068         (Makefile.am): Update rules accordingly.
34069         * modules/ctype (Depends-on, Makefile.am): Likewise.
34070         * modules/dirent (Depends-on, Makefile.am): Likewise.
34071         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
34072         * modules/inttypes (Depends-on, Makefile.am): Likewise.
34073         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34074         * modules/locale (Depends-on, Makefile.am): Likewise.
34075         * modules/math (Depends-on, Makefile.am): Likewise.
34076         * modules/search (Depends-on, Makefile.am): Likewise.
34077         * modules/signal (Depends-on, Makefile.am): Likewise.
34078         * modules/spawn (Depends-on, Makefile.am): Likewise.
34079         * modules/stdlib (Depends-on, Makefile.am): Likewise.
34080         * modules/string (Depends-on, Makefile.am): Likewise.
34081         * modules/strings (Depends-on, Makefile.am): Likewise.
34082         * modules/sys_file (Depends-on, Makefile.am): Likewise.
34083         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
34084         * modules/sys_select (Depends-on, Makefile.am): Likewise.
34085         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
34086         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
34087         * modules/sys_times (Depends-on, Makefile.am): Likewise.
34088         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34089         * modules/wchar (Depends-on, Makefile.am): Likewise.
34090         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
34091         should be poisoned.
34092         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
34093         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
34094         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
34095         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34096         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34097         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
34098         * m4/math_h.m4 (gl_MATH_H): Likewise.
34099         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34100         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
34101         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34102         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
34103         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
34104         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
34105         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34106         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
34107         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
34108         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34109         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
34110         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
34111         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34112         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34113         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
34114         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34115         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
34116         GL_LINK_WARNING.
34117         * lib/ctype.in.h: Likewise.
34118         * lib/dirent.in.h: Likewise.
34119         * lib/fcntl.in.h: Likewise.
34120         * lib/inttypes.in.h: Likewise.
34121         * lib/langinfo.in.h: Likewise.
34122         * lib/locale.in.h: Likewise.
34123         * lib/math.in.h: Likewise.
34124         * lib/search.in.h: Likewise.
34125         * lib/signal.in.h: Likewise.
34126         * lib/spawn.in.h: Likewise.
34127         * lib/stdio.in.h: Likewise.
34128         * lib/stdlib.in.h: Likewise.
34129         * lib/string.in.h: Likewise.
34130         * lib/strings.in.h: Likewise.
34131         * lib/sys_file.in.h: Likewise.
34132         * lib/sys_ioctl.in.h: Likewise.
34133         * lib/sys_select.in.h: Likewise.
34134         * lib/sys_socket.in.h: Likewise.
34135         * lib/sys_stat.in.h: Likewise.
34136         * lib/sys_times.in.h: Likewise.
34137         * lib/sys_utsname.in.h: Likewise.
34138         * lib/unistd.in.h: Likewise.
34139         * lib/wchar.in.h: Likewise.
34140
34141 2010-01-20  Bruno Haible  <bruno@clisp.org>
34142
34143         Avoid duplicate -lm.
34144         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
34145         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
34146         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
34147         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
34148         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
34149         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
34150         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
34151         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
34152         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
34153         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
34154         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
34155         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
34156         Reported by Paolo Bonzini.
34157
34158 2010-01-19  Bruno Haible  <bruno@clisp.org>
34159
34160         langinfo, nl_langinfo: Relicense under LGPLv2+.
34161         * modules/langinfo (License): Change to LGPLv2+.
34162         * modules/nl_langinfo (License): Likewise.
34163         Patch by David Lutterkort <lutter@redhat.com>.
34164
34165 2010-01-19  Bruno Haible  <bruno@clisp.org>
34166
34167         Avoid compilation error with cc on OSF/1 5.1.
34168         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
34169         statement, not before.
34170         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34171
34172 2010-01-18  Bruno Haible  <bruno@clisp.org>
34173
34174         Avoid a link error due to the __printf__ symbol.
34175         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
34176         and 2.6.x.
34177         (__format__, __printf__): Remove definitions.
34178         * lib/argp-fmtstream.h: Likewise.
34179         * lib/argp.h: Likewise.
34180         * lib/error.h: Likewise.
34181         * lib/vasnprintf.h: Likewise.
34182         * lib/xprintf.h: Likewise.
34183         * lib/xvasprintf.h: Likewise.
34184         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34185
34186 2010-01-18  Bruno Haible  <bruno@clisp.org>
34187
34188         Tests for module 'tanl'.
34189         * modules/tanl-tests: New file.
34190         * tests/test-tanl.c: New file.
34191
34192         Tests for module 'sqrtl'.
34193         * modules/sqrtl-tests: New file.
34194         * tests/test-sqrtl.c: New file.
34195
34196         Tests for module 'sinl'.
34197         * modules/sinl-tests: New file.
34198         * tests/test-sinl.c: New file.
34199
34200         Tests for module 'logl'.
34201         * modules/logl-tests: New file.
34202         * tests/test-logl.c: New file.
34203
34204         Tests for module 'expl'.
34205         * modules/expl-tests: New file.
34206         * tests/test-expl.c: New file.
34207
34208         Tests for module 'cosl'.
34209         * modules/cosl-tests: New file.
34210         * tests/test-cosl.c: New file.
34211
34212         Tests for module 'atanl'.
34213         * modules/atanl-tests: New file.
34214         * tests/test-atanl.c: New file.
34215
34216         Tests for module 'asinl'.
34217         * modules/asinl-tests: New file.
34218         * tests/test-asinl.c: New file.
34219
34220         Tests for module 'acosl'.
34221         * modules/acosl-tests: New file.
34222         * tests/test-acosl.c: New file.
34223
34224         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34225         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
34226         tanl): Use the standard gnulib idiom.
34227         * lib/cosl.c: Don't include trigl.c and sincosl.c.
34228         * lib/sinl.c: Likewise.
34229         * lib/tanl.c: Don't include trigl.c.
34230         (kernel_tanl): Make static.
34231         * lib/sincosl.c: Include trigl.h first.
34232         * lib/trigl.c: Likewise.
34233         * m4/acosl.m4: New file.
34234         * m4/asinl.m4: New file.
34235         * m4/atanl.m4: New file.
34236         * m4/cosl.m4: New file.
34237         * m4/expl.m4: New file.
34238         * m4/logl.m4: New file.
34239         * m4/sinl.m4: New file.
34240         * m4/sqrtl.m4: New file.
34241         * m4/tanl.m4: New file.
34242         * m4/mathl.m4: Remove file.
34243         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
34244         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
34245         Don't initialize GNULIB_MATHL.
34246         * modules/acosl: New file.
34247         * modules/asinl: New file.
34248         * modules/atanl: New file.
34249         * modules/cosl: New file.
34250         * modules/expl: New file.
34251         * modules/logl: New file.
34252         * modules/sinl: New file.
34253         * modules/sqrtl: New file.
34254         * modules/tanl: New file.
34255         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
34256         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
34257         substitute GNULIB_MATHL.
34258         * modules/mathl: Rewritten.
34259         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
34260         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
34261         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
34262         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
34263         * doc/posix-functions/expl.texi: Mention the 'expl' module.
34264         * doc/posix-functions/logl.texi: Mention the 'logl' module.
34265         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
34266         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
34267         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
34268
34269 2010-01-18  Bruno Haible  <bruno@clisp.org>
34270
34271         sqrt: Make gl_FUNC_SQRT requirable.
34272         * m4/sqrt.m4: New file.
34273         * modules/sqrt (Files): Add it.
34274         (configure.ac): Invoke gl_FUNC_SQRT.
34275
34276 2010-01-18  Bruno Haible  <bruno@clisp.org>
34277
34278         New modules for common <math.h> functions.
34279         * m4/mathfunc.m4: New file.
34280         * modules/acos: New file.
34281         * modules/asin: New file.
34282         * modules/atan: New file.
34283         * modules/atan2: New file.
34284         * modules/cbrt: New file.
34285         * modules/copysign: New file.
34286         * modules/cos: New file.
34287         * modules/cosh: New file.
34288         * modules/erf: New file.
34289         * modules/erfc: New file.
34290         * modules/exp: New file.
34291         * modules/fabs: New file.
34292         * modules/fmod: New file.
34293         * modules/hypot: New file.
34294         * modules/j0: New file.
34295         * modules/j1: New file.
34296         * modules/jn: New file.
34297         * modules/ldexp: New file.
34298         * modules/lgamma: New file.
34299         * modules/log: New file.
34300         * modules/log10: New file.
34301         * modules/log1p: New file.
34302         * modules/logb: New file.
34303         * modules/modf: New file.
34304         * modules/nextafter: New file.
34305         * modules/pow: New file.
34306         * modules/remainder: New file.
34307         * modules/rint: New file.
34308         * modules/sin: New file.
34309         * modules/sinh: New file.
34310         * modules/sqrt: New file.
34311         * modules/tan: New file.
34312         * modules/tanh: New file.
34313         * modules/y0: New file.
34314         * modules/y1: New file.
34315         * modules/yn: New file.
34316         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34317         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34318         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34319         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34320         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34321         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34322         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34323         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34324         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34325         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34326         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34327         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34328         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34329         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34330         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34331         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34332         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34333         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34334         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34335         * doc/posix-functions/log.texi: Mention the 'log' module.
34336         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34337         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34338         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34339         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34340         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34341         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34342         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34343         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34344         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34345         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34346         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34347         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34348         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34349         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34350         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34351         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34352
34353 2010-01-18  Jim Meyering  <meyering@redhat.com>
34354
34355         ignore-value: relax license to LGPLv2+
34356         * modules/ignore-value (License): Relax to LGPLv2+.
34357
34358         getdate: don't leak when TZ contains two or more '"'s
34359         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34360         double quote in TZ after the first one.
34361
34362         readtokens: do not leak internal token_lengths buffer
34363         * lib/readtokens.c (readtokens): Free the local, lengths,
34364         when the supplied "token_lengths" parameter is NULL.
34365
34366 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34367
34368         Fix a couple of missing LIBTHREAD link failures on AIX.
34369         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34370         $(LIBTHREAD).
34371         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34372
34373         Link test-poll against INET_PTON_LIB.
34374         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34375         for inet_pton on Solaris 10.
34376
34377 2010-01-17  Bruno Haible  <bruno@clisp.org>
34378
34379         unistdio/*-sprintf: Fix typo in module description.
34380         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34381         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34382         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34383         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34384         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34385         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34386         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34387         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34388
34389 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34390
34391         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34392         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34393         variables in shell case patterns, for AIX and HP-UX ksh.
34394
34395         Split large sed scripts, for HP-UX sed.
34396         * modules/stdio: Split sed scripts around 50 sed commands,
34397         to avoid HP-UX limit of 99 commands, in the near future.
34398         * modules/string: Likewise.
34399         * modules/unistd: Likewise.
34400
34401         gnulib-tool: avoid writing in the current directory.
34402         * gnulib-tool (func_emit_lib_Makefile_am)
34403         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34404         not in the current directory, so concurrent gnulib-tool
34405         instances do not interfere.
34406
34407 2010-01-16  Jim Meyering  <meyering@redhat.com>
34408
34409         doc: update users.txt
34410         * users.txt: Add grep.
34411         (diffutils, gzip): Update URLs.
34412
34413 2010-01-12  Bruno Haible  <bruno@clisp.org>
34414
34415         posix_spawn: Avoid test failure on Cygwin.
34416         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34417         characters.
34418         Reported by Simon Josefsson.
34419
34420 2010-01-12  Bruno Haible  <bruno@clisp.org>
34421
34422         * tests/test-cond.c (main): When skipping the test, show the reason.
34423
34424 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34425
34426         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34427
34428 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34429
34430         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34431         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34432
34433 2010-01-12  Eric Blake  <ebb9@byu.net>
34434
34435         build: guarantee AS_VAR_IF
34436         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34437         (gl_AS_VAR_IF): Move...
34438         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34439         Reported by Simon Josefsson.
34440
34441 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34442
34443         * lib/stdio.in.h: Fix typo.
34444
34445 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34446
34447         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34448         libgpg-error.
34449
34450 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34451
34452         * tests/test-xalloc-die.sh: Use $EXEEXT.
34453
34454 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34455             Bruno Haible  <bruno@clisp.org>
34456
34457         getlogin, getlogin_r: Avoid test failure.
34458         * tests/test-getlogin.c: Include <stdio.h>.
34459         (main): Skip the test when the function fails because stdin is not a
34460         tty.
34461         * tests/test-getlogin_r.c: Include <stdio.h>.
34462         (main): Skip the test when the function fails because stdin is not a
34463         tty.
34464
34465 2010-01-11  Eric Blake  <ebb9@byu.net>
34466
34467         tests: avoid more large file warnings
34468         * tests/test-fflush.c: Avoid warning about ftell use.
34469         * tests/test-fseek.c: Avoid warning about fseek use.
34470
34471 2010-01-10  Bruno Haible  <bruno@clisp.org>
34472
34473         nproc: Work better on Linux when /proc and /sys are not mounted.
34474         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34475         as lower bound when, on glibc/Linux systems,
34476         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34477         Suggested by Pádraig Brady <P@draigbrady.com>.
34478         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34479
34480         nproc: Refactor.
34481         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34482         extracted from num_processors.
34483         (num_processors): Call it.
34484
34485 2010-01-11  Jim Meyering  <meyering@redhat.com>
34486
34487         utimecmp: avoid new warning from upcoming gcc-4.5.0
34488         * lib/utimecmp.c (BILLION): Define using #define rather than an
34489         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34490
34491 2010-01-11  Eric Blake  <ebb9@byu.net>
34492
34493         math: add portability warnings for classification macros
34494         * modules/math (Depends-on): Add warn-on-use.
34495         (Makefile.am): Provide new substitutions.
34496         * m4/math_h.m4 (gl_MATH_H): Require inline.
34497         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34498         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34499         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34500         implement warnings.
34501
34502         unistd: warn on use of environ without module
34503         * modules/unistd (Depends-on): Add warn-on-use.
34504         (Makefile.am): Provide new substitutions.
34505         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34506         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34507
34508         stdio: warn on suspicious uses
34509         * modules/stdio (Depends-on): Add warn-on-use.
34510         (Makefile.am): Provide new substitutions.
34511         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34512         fseeko.
34513         * lib/stdio.in.h (gets): Always warn on use.
34514         (fseek, ftell): Adjust when warnings are issued, and honor
34515         _GL_NO_LARGE_FILES as a way to silence the warning.
34516         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34517         any warning about large file offsets.
34518         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34519         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34520         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34521         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34522         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34523         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34524         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34525         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34526
34527         warn-on-use: new module
34528         * modules/warn-on-use: New file.
34529         * build-aux/warn-on-use.h: Likewise.
34530         * m4/warn-on-use.m4: Likewise.
34531         * MODULES.html.sh (Support for building): Mention it.
34532
34533 2010-01-10  Bruno Haible  <bruno@clisp.org>
34534
34535         Tests for module 'unistr/u32-strdup'.
34536         * modules/unistr/u32-strdup-tests: New file.
34537         * tests/unistr/test-u32-strdup.c: New file.
34538
34539         Tests for module 'unistr/u16-strdup'.
34540         * modules/unistr/u16-strdup-tests: New file.
34541         * tests/unistr/test-u16-strdup.c: New file.
34542
34543         Tests for module 'unistr/u8-strdup'.
34544         * modules/unistr/u8-strdup-tests: New file.
34545         * tests/unistr/test-u8-strdup.c: New file.
34546         * tests/unistr/test-strdup.h: New file.
34547
34548         Tests for module 'unistr/u32-strncmp'.
34549         * modules/unistr/u32-strncmp-tests: New file.
34550         * tests/unistr/test-u32-strncmp.c: New file.
34551
34552         Tests for module 'unistr/u16-strncmp'.
34553         * modules/unistr/u16-strncmp-tests: New file.
34554         * tests/unistr/test-u16-strncmp.c: New file.
34555
34556         Tests for module 'unistr/u8-strncmp'.
34557         * modules/unistr/u8-strncmp-tests: New file.
34558         * tests/unistr/test-u8-strncmp.c: New file.
34559         * tests/unistr/test-strncmp.h: New file.
34560
34561         Tests for module 'unistr/u32-strcoll'.
34562         * modules/unistr/u32-strcoll-tests: New file.
34563         * tests/unistr/test-u32-strcoll.c: New file.
34564
34565         Tests for module 'unistr/u16-strcoll'.
34566         * modules/unistr/u16-strcoll-tests: New file.
34567         * tests/unistr/test-u16-strcoll.c: New file.
34568
34569         Tests for module 'unistr/u8-strcoll'.
34570         * modules/unistr/u8-strcoll-tests: New file.
34571         * tests/unistr/test-u8-strcoll.c: New file.
34572
34573         Tests for module 'unistr/u32-strcmp'.
34574         * modules/unistr/u32-strcmp-tests: New file.
34575         * tests/unistr/test-u32-strcmp.c: New file.
34576         * tests/unistr/test-u32-strcmp.h: New file.
34577
34578         Tests for module 'unistr/u16-strcmp'.
34579         * modules/unistr/u16-strcmp-tests: New file.
34580         * tests/unistr/test-u16-strcmp.c: New file.
34581         * tests/unistr/test-u16-strcmp.h: New file.
34582
34583         Tests for module 'unistr/u8-strcmp'.
34584         * modules/unistr/u8-strcmp-tests: New file.
34585         * tests/unistr/test-u8-strcmp.c: New file.
34586         * tests/unistr/test-u8-strcmp.h: New file.
34587         * tests/unistr/test-strcmp.h: New file.
34588
34589         Tests for module 'unistr/u32-strncat'.
34590         * modules/unistr/u32-strncat-tests: New file.
34591         * tests/unistr/test-u32-strncat.c: New file.
34592
34593         Tests for module 'unistr/u16-strncat'.
34594         * modules/unistr/u16-strncat-tests: New file.
34595         * tests/unistr/test-u16-strncat.c: New file.
34596
34597         Tests for module 'unistr/u8-strncat'.
34598         * modules/unistr/u8-strncat-tests: New file.
34599         * tests/unistr/test-u8-strncat.c: New file.
34600         * tests/unistr/test-strncat.h: New file.
34601
34602         Tests for module 'unistr/u32-strcat'.
34603         * modules/unistr/u32-strcat-tests: New file.
34604         * tests/unistr/test-u32-strcat.c: New file.
34605
34606         Tests for module 'unistr/u16-strcat'.
34607         * modules/unistr/u16-strcat-tests: New file.
34608         * tests/unistr/test-u16-strcat.c: New file.
34609
34610         Tests for module 'unistr/u8-strcat'.
34611         * modules/unistr/u8-strcat-tests: New file.
34612         * tests/unistr/test-u8-strcat.c: New file.
34613         * tests/unistr/test-strcat.h: New file.
34614
34615         Tests for module 'unistr/u32-stpncpy'.
34616         * modules/unistr/u32-stpncpy-tests: New file.
34617         * tests/unistr/test-u32-stpncpy.c: New file.
34618
34619         Tests for module 'unistr/u16-stpncpy'.
34620         * modules/unistr/u16-stpncpy-tests: New file.
34621         * tests/unistr/test-u16-stpncpy.c: New file.
34622
34623         Tests for module 'unistr/u8-stpncpy'.
34624         * modules/unistr/u8-stpncpy-tests: New file.
34625         * tests/unistr/test-u8-stpncpy.c: New file.
34626         * tests/unistr/test-stpncpy.h: New file.
34627
34628         Tests for module 'unistr/u32-strncpy'.
34629         * modules/unistr/u32-strncpy-tests: New file.
34630         * tests/unistr/test-u32-strncpy.c: New file.
34631
34632         Tests for module 'unistr/u16-strncpy'.
34633         * modules/unistr/u16-strncpy-tests: New file.
34634         * tests/unistr/test-u16-strncpy.c: New file.
34635
34636         Tests for module 'unistr/u8-strncpy'.
34637         * modules/unistr/u8-strncpy-tests: New file.
34638         * tests/unistr/test-u8-strncpy.c: New file.
34639         * tests/unistr/test-strncpy.h: New file.
34640
34641         Tests for module 'unistr/u32-stpcpy'.
34642         * modules/unistr/u32-stpcpy-tests: New file.
34643         * tests/unistr/test-u32-stpcpy.c: New file.
34644
34645         Tests for module 'unistr/u16-stpcpy'.
34646         * modules/unistr/u16-stpcpy-tests: New file.
34647         * tests/unistr/test-u16-stpcpy.c: New file.
34648
34649         Tests for module 'unistr/u8-stpcpy'.
34650         * modules/unistr/u8-stpcpy-tests: New file.
34651         * tests/unistr/test-u8-stpcpy.c: New file.
34652         * tests/unistr/test-stpcpy.h: New file.
34653
34654         Tests for module 'unistr/u32-strcpy'.
34655         * modules/unistr/u32-strcpy-tests: New file.
34656         * tests/unistr/test-u32-strcpy.c: New file.
34657
34658         Tests for module 'unistr/u16-strcpy'.
34659         * modules/unistr/u16-strcpy-tests: New file.
34660         * tests/unistr/test-u16-strcpy.c: New file.
34661
34662         Tests for module 'unistr/u8-strcpy'.
34663         * modules/unistr/u8-strcpy-tests: New file.
34664         * tests/unistr/test-u8-strcpy.c: New file.
34665         * tests/unistr/test-strcpy.h: New file.
34666
34667         Tests for module 'unistr/u32-strnlen'.
34668         * modules/unistr/u32-strnlen-tests: New file.
34669         * tests/unistr/test-u32-strnlen.c: New file.
34670
34671         Tests for module 'unistr/u16-strnlen'.
34672         * modules/unistr/u16-strnlen-tests: New file.
34673         * tests/unistr/test-u16-strnlen.c: New file.
34674
34675         Tests for module 'unistr/u8-strnlen'.
34676         * modules/unistr/u8-strnlen-tests: New file.
34677         * tests/unistr/test-u8-strnlen.c: New file.
34678         * tests/unistr/test-strnlen.h: New file.
34679
34680         Tests for module 'unistr/u32-strlen'.
34681         * modules/unistr/u32-strlen-tests: New file.
34682         * tests/unistr/test-u32-strlen.c: New file.
34683
34684         Tests for module 'unistr/u16-strlen'.
34685         * modules/unistr/u16-strlen-tests: New file.
34686         * tests/unistr/test-u16-strlen.c: New file.
34687
34688         Tests for module 'unistr/u8-strlen'.
34689         * modules/unistr/u8-strlen-tests: New file.
34690         * tests/unistr/test-u8-strlen.c: New file.
34691
34692         Tests for module 'unistr/u32-prev'.
34693         * modules/unistr/u32-prev-tests: New file.
34694         * tests/unistr/test-u32-prev.c: New file.
34695
34696         Tests for module 'unistr/u16-prev'.
34697         * modules/unistr/u16-prev-tests: New file.
34698         * tests/unistr/test-u16-prev.c: New file.
34699
34700         Tests for module 'unistr/u8-prev'.
34701         * modules/unistr/u8-prev-tests: New file.
34702         * tests/unistr/test-u8-prev.c: New file.
34703
34704         Tests for module 'unistr/u32-next'.
34705         * modules/unistr/u32-next-tests: New file.
34706         * tests/unistr/test-u32-next.c: New file.
34707
34708         Tests for module 'unistr/u16-next'.
34709         * modules/unistr/u16-next-tests: New file.
34710         * tests/unistr/test-u16-next.c: New file.
34711
34712         Tests for module 'unistr/u8-next'.
34713         * modules/unistr/u8-next-tests: New file.
34714         * tests/unistr/test-u8-next.c: New file.
34715
34716         Tests for module 'unistr/u32-strmbtouc'.
34717         * modules/unistr/u32-strmbtouc-tests: New file.
34718         * tests/unistr/test-u32-strmbtouc.c: New file.
34719
34720         Tests for module 'unistr/u16-strmbtouc'.
34721         * modules/unistr/u16-strmbtouc-tests: New file.
34722         * tests/unistr/test-u16-strmbtouc.c: New file.
34723
34724         Tests for module 'unistr/u8-strmbtouc'.
34725         * modules/unistr/u8-strmbtouc-tests: New file.
34726         * tests/unistr/test-u8-strmbtouc.c: New file.
34727
34728         Tests for module 'unistr/u32-strmblen'.
34729         * modules/unistr/u32-strmblen-tests: New file.
34730         * tests/unistr/test-u32-strmblen.c: New file.
34731
34732         Tests for module 'unistr/u16-strmblen'.
34733         * modules/unistr/u16-strmblen-tests: New file.
34734         * tests/unistr/test-u16-strmblen.c: New file.
34735
34736         Tests for module 'unistr/u8-strmblen'.
34737         * modules/unistr/u8-strmblen-tests: New file.
34738         * tests/unistr/test-u8-strmblen.c: New file.
34739
34740         Tests for module 'unistr/u32-cpy-alloc'.
34741         * modules/unistr/u32-cpy-alloc-tests: New file.
34742         * tests/unistr/test-u32-cpy-alloc.c: New file.
34743
34744         Tests for module 'unistr/u16-cpy-alloc'.
34745         * modules/unistr/u16-cpy-alloc-tests: New file.
34746         * tests/unistr/test-u16-cpy-alloc.c: New file.
34747
34748         Tests for module 'unistr/u8-cpy-alloc'.
34749         * modules/unistr/u8-cpy-alloc-tests: New file.
34750         * tests/unistr/test-u8-cpy-alloc.c: New file.
34751         * tests/unistr/test-cpy-alloc.h: New file.
34752
34753         Tests for module 'unistr/u32-mbsnlen'.
34754         * modules/unistr/u32-mbsnlen-tests: New file.
34755         * tests/unistr/test-u32-mbsnlen.c: New file.
34756
34757         Tests for module 'unistr/u16-mbsnlen'.
34758         * modules/unistr/u16-mbsnlen-tests: New file.
34759         * tests/unistr/test-u16-mbsnlen.c: New file.
34760
34761         Tests for module 'unistr/u8-mbsnlen'.
34762         * modules/unistr/u8-mbsnlen-tests: New file.
34763         * tests/unistr/test-u8-mbsnlen.c: New file.
34764
34765         Tests for module 'unistr/u32-chr'.
34766         * modules/unistr/u32-chr-tests: New file.
34767         * tests/unistr/test-u32-chr.c: New file.
34768
34769         Tests for module 'unistr/u16-chr'.
34770         * modules/unistr/u16-chr-tests: New file.
34771         * tests/unistr/test-u16-chr.c: New file.
34772
34773         Tests for module 'unistr/u8-chr'.
34774         * modules/unistr/u8-chr-tests: New file.
34775         * tests/unistr/test-u8-chr.c: New file.
34776         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34777
34778         Tests for module 'unistr/u32-cmp2'.
34779         * modules/unistr/u32-cmp2-tests: New file.
34780         * tests/unistr/test-u32-cmp2.c: New file.
34781
34782         Tests for module 'unistr/u16-cmp2'.
34783         * modules/unistr/u16-cmp2-tests: New file.
34784         * tests/unistr/test-u16-cmp2.c: New file.
34785
34786         Tests for module 'unistr/u8-cmp2'.
34787         * modules/unistr/u8-cmp2-tests: New file.
34788         * tests/unistr/test-u8-cmp2.c: New file.
34789         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34790
34791         Tests for module 'unistr/u32-cmp'.
34792         * modules/unistr/u32-cmp-tests: New file.
34793         * tests/unistr/test-u32-cmp.c: New file.
34794
34795         Tests for module 'unistr/u16-cmp'.
34796         * modules/unistr/u16-cmp-tests: New file.
34797         * tests/unistr/test-u16-cmp.c: New file.
34798
34799         Tests for module 'unistr/u8-cmp'.
34800         * modules/unistr/u8-cmp-tests: New file.
34801         * tests/unistr/test-u8-cmp.c: New file.
34802         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34803
34804         Tests for module 'unistr/u32-set'.
34805         * modules/unistr/u32-set-tests: New file.
34806         * tests/unistr/test-u32-set.c: New file.
34807
34808         Tests for module 'unistr/u16-set'.
34809         * modules/unistr/u16-set-tests: New file.
34810         * tests/unistr/test-u16-set.c: New file.
34811
34812         Tests for module 'unistr/u8-set'.
34813         * modules/unistr/u8-set-tests: New file.
34814         * tests/unistr/test-u8-set.c: New file.
34815         * tests/unistr/test-set.h: New file.
34816
34817         Tests for module 'unistr/u32-move'.
34818         * modules/unistr/u32-move-tests: New file.
34819         * tests/unistr/test-u32-move.c: New file.
34820
34821         Tests for module 'unistr/u16-move'.
34822         * modules/unistr/u16-move-tests: New file.
34823         * tests/unistr/test-u16-move.c: New file.
34824
34825         Tests for module 'unistr/u8-move'.
34826         * modules/unistr/u8-move-tests: New file.
34827         * tests/unistr/test-u8-move.c: New file.
34828         * tests/unistr/test-move.h: New file.
34829
34830         Tests for module 'unistr/u32-cpy'.
34831         * modules/unistr/u32-cpy-tests: New file.
34832         * tests/unistr/test-u32-cpy.c: New file.
34833
34834         Tests for module 'unistr/u16-cpy'.
34835         * modules/unistr/u16-cpy-tests: New file.
34836         * tests/unistr/test-u16-cpy.c: New file.
34837
34838         Tests for module 'unistr/u8-cpy'.
34839         * modules/unistr/u8-cpy-tests: New file.
34840         * tests/unistr/test-u8-cpy.c: New file.
34841         * tests/unistr/test-cpy.h: New file.
34842
34843 2010-01-09  Bruno Haible  <bruno@clisp.org>
34844
34845         Tests for module 'unistr/u32-uctomb'.
34846         * modules/unistr/u32-uctomb-tests: New file.
34847         * tests/unistr/test-u32-uctomb.c: New file.
34848
34849         Tests for module 'unistr/u16-uctomb'.
34850         * modules/unistr/u16-uctomb-tests: New file.
34851         * tests/unistr/test-u16-uctomb.c: New file.
34852
34853         Tests for module 'unistr/u8-uctomb'.
34854         * modules/unistr/u8-uctomb-tests: New file.
34855         * tests/unistr/test-u8-uctomb.c: New file.
34856
34857         Tests for module 'unistr/u32-mbtoucr'.
34858         * modules/unistr/u32-mbtoucr-tests: New file.
34859         * tests/unistr/test-u32-mbtoucr.c: New file.
34860
34861         Tests for module 'unistr/u16-mbtoucr'.
34862         * modules/unistr/u16-mbtoucr-tests: New file.
34863         * tests/unistr/test-u16-mbtoucr.c: New file.
34864
34865         Tests for module 'unistr/u8-mbtoucr'.
34866         * modules/unistr/u8-mbtoucr-tests: New file.
34867         * tests/unistr/test-u8-mbtoucr.c: New file.
34868
34869         Tests for module 'unistr/u32-mbtouc'.
34870         * modules/unistr/u32-mbtouc-tests: New file.
34871         * tests/unistr/test-u32-mbtouc.c: New file.
34872
34873         Tests for module 'unistr/u16-mbtouc'.
34874         * modules/unistr/u16-mbtouc-tests: New file.
34875         * tests/unistr/test-u16-mbtouc.c: New file.
34876
34877         Tests for module 'unistr/u8-mbtouc'.
34878         * modules/unistr/u8-mbtouc-tests: New file.
34879         * tests/unistr/test-u8-mbtouc.c: New file.
34880
34881         Tests for module 'unistr/u32-mbtouc-unsafe'.
34882         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34883         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34884         * tests/unistr/test-u32-mbtouc.h: New file.
34885
34886         Tests for module 'unistr/u16-mbtouc-unsafe'.
34887         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34888         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34889         * tests/unistr/test-u16-mbtouc.h: New file.
34890
34891         Tests for module 'unistr/u8-mbtouc-unsafe'.
34892         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34893         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34894         * tests/unistr/test-u8-mbtouc.h: New file.
34895
34896         Tests for module 'unistr/u32-mblen'.
34897         * modules/unistr/u32-mblen-tests: New file.
34898         * tests/unistr/test-u32-mblen.c: New file.
34899
34900         Tests for module 'unistr/u16-mblen'.
34901         * modules/unistr/u16-mblen-tests: New file.
34902         * tests/unistr/test-u16-mblen.c: New file.
34903
34904         Tests for module 'unistr/u8-mblen'.
34905         * modules/unistr/u8-mblen-tests: New file.
34906         * tests/unistr/test-u8-mblen.c: New file.
34907
34908         Tests for module 'unistr/u32-to-u16'.
34909         * modules/unistr/u32-to-u16-tests: New file.
34910         * tests/unistr/test-u32-to-u16.c: New file.
34911
34912         Tests for module 'unistr/u32-to-u8'.
34913         * modules/unistr/u32-to-u8-tests: New file.
34914         * tests/unistr/test-u32-to-u8.c: New file.
34915
34916         Tests for module 'unistr/u16-to-u32'.
34917         * modules/unistr/u16-to-u32-tests: New file.
34918         * tests/unistr/test-u16-to-u32.c: New file.
34919
34920         Tests for module 'unistr/u16-to-u8'.
34921         * modules/unistr/u16-to-u8-tests: New file.
34922         * tests/unistr/test-u16-to-u8.c: New file.
34923
34924         Tests for module 'unistr/u8-to-u32'.
34925         * modules/unistr/u8-to-u32-tests: New file.
34926         * tests/unistr/test-u8-to-u32.c: New file.
34927
34928         Tests for module 'unistr/u8-to-u16'.
34929         * modules/unistr/u8-to-u16-tests: New file.
34930         * tests/unistr/test-u8-to-u16.c: New file.
34931
34932         Tests for module 'unistr/u32-check'.
34933         * modules/unistr/u32-check-tests: New file.
34934         * tests/unistr/test-u32-check.c: New file.
34935
34936         Tests for module 'unistr/u16-check'.
34937         * modules/unistr/u16-check-tests: New file.
34938         * tests/unistr/test-u16-check.c: New file.
34939
34940         Tests for module 'unistr/u8-check'.
34941         * modules/unistr/u8-check-tests: New file.
34942         * tests/unistr/test-u8-check.c: New file.
34943
34944         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34945         (category_equals): New function.
34946         (main): Add more tests.
34947         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34948
34949         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34950
34951 2010-01-10  Bruno Haible  <bruno@clisp.org>
34952
34953         unistr/u*-strcoll: Try harder to distinguish different strings.
34954         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34955         compare s1 and s2 to see if they are different.
34956
34957 2010-01-10  Bruno Haible  <bruno@clisp.org>
34958
34959         unistr/u*-stpncpy: Fix the return value.
34960         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34961         description of the return value consistent with stpncpy in glibc.
34962         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34963         written non-NUL unit.
34964
34965 2010-01-10  Bruno Haible  <bruno@clisp.org>
34966
34967         unistr/u*-next: Add missing dependencies.
34968         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34969         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34970         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34971
34972 2010-01-10  Bruno Haible  <bruno@clisp.org>
34973
34974         unistr/u8-mbsnlen: Fix return value for incomplete character.
34975         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34976         u8_mblen.
34977         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34978         Remove unistr/u8-mblen.
34979         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34980         u16_mblen.
34981         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34982         Remove unistr/u16-mblen.
34983
34984 2010-01-10  Bruno Haible  <bruno@clisp.org>
34985
34986         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34987         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34988         Reported by Brian Gough <bjg@gnu.org> and
34989         Chris Clayton <chris2553@googlemail.com> via
34990         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34991
34992 2010-01-09  Bruno Haible  <bruno@clisp.org>
34993
34994         unistr/u16-to-u32: Reject invalid input.
34995         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34996         u16_mbtouc.
34997         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34998         Remove unistr/u16-mbtouc.
34999
35000         unistr/u16-to-u8: Reject invalid input.
35001         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
35002         u16_mbtouc.
35003         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
35004         Remove unistr/u16-mbtouc.
35005
35006         unistr/u8-to-u32: Reject invalid input.
35007         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
35008         u8_mbtouc.
35009         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
35010         Remove unistr/u8-mbtouc.
35011
35012         unistr/u8-to-u16: Reject invalid input.
35013         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
35014         u8_mbtouc.
35015         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
35016         Remove unistr/u8-mbtouc.
35017
35018 2010-01-09  Bruno Haible  <bruno@clisp.org>
35019
35020         Tests for module 'getlogin'.
35021         * modules/getlogin-tests: New file.
35022         * tests/test-getlogin.c: New file.
35023
35024         New module 'getlogin'.
35025         * lib/unistd.in.h (getlogin): New declaration.
35026         * lib/getlogin.c: New file.
35027         * m4/getlogin.m4: New file.
35028         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
35029         HAVE_GETLOGIN.
35030         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
35031         HAVE_GETLOGIN.
35032         * modules/getlogin: New file.
35033         * doc/posix-functions/getlogin.texi: Mention the new module.
35034         Reported by John W. Eaton <jwe@gnu.org>.
35035
35036 2010-01-09  Bruno Haible  <bruno@clisp.org>
35037
35038         getlogin_r: Support for native Windows.
35039         * lib/getlogin_r.c: Include <windows.h>
35040         (getlogin_r): Implement for native Windows.
35041         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
35042         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
35043         via John W. Eaton <jwe@gnu.org>.
35044
35045 2010-01-09  Bruno Haible  <bruno@clisp.org>
35046
35047         getlogin_r: Small fixes.
35048         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
35049         succeeds.
35050         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
35051         before testing whether getlogin_r is declared. No need to set
35052         HAVE_DECL_GETLOGIN_R to 1.
35053         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
35054
35055 2010-01-09  Bruno Haible  <bruno@clisp.org>
35056
35057         * lib/unistd.in.h (getlogin_r): Add comment.
35058
35059 2010-01-09  Bruno Haible  <bruno@clisp.org>
35060
35061         Tests for module 'getlogin_r'.
35062         * modules/getlogin_r-tests: New file.
35063         * tests/test-getlogin_r.c: New file.
35064
35065 2010-01-09  Jim Meyering  <meyering@redhat.com>
35066
35067         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
35068         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
35069         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
35070
35071 2010-01-08  Simon Josefsson  <simon@josefsson.org>
35072
35073         * lib/dup2.c (rpl_dup2): Improve comment.
35074
35075 2010-01-08  Eric Blake  <ebb9@byu.net>
35076
35077         maint.mk: allow packages to add makefile @@ exceptions
35078         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
35079         (sc_makefile_check): Rename...
35080         (sc_makefile_at_at_check): ...to this, and use hook.
35081
35082         dup2: work around mingw bug
35083         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
35084         Reported by Simon Josefsson.
35085
35086 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
35087
35088         glob: Fix C++ compilation.
35089         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
35090         C++.
35091
35092 2010-01-07  Bruno Haible  <bruno@clisp.org>
35093
35094         Fix indentation of wctype.in.h, broken since 2007-01-06.
35095         * lib/wctype.in.h: Fix indentation of preprocessor directives.
35096
35097 2010-01-07  Bruno Haible  <bruno@clisp.org>
35098
35099         mbslen: Avoid collision with system function.
35100         * lib/string.in.h [MirBSD]: Include <wchar.h>.
35101         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
35102         * m4/mbslen.m4: New file.
35103         * modules/mbslen (Files): Add it.
35104         (configure.ac): Invoke gl_MBSLEN.
35105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
35106         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
35107         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
35108         via Ian Beckwith <ianb@erislabs.net>.
35109
35110 2010-01-07  Bruno Haible  <bruno@clisp.org>
35111
35112         dirent: Document the last fix.
35113         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
35114
35115 2010-01-07  Bruno Haible  <bruno@clisp.org>
35116
35117         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
35118         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
35119         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
35120         va_list are defined.
35121         * doc/posix-headers/stdio.texi: Document the bug of missing types.
35122         Reported by Eric Blake.
35123
35124 2010-01-07  Bruno Haible  <bruno@clisp.org>
35125
35126         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
35127         * modules/xlist (Depends-on): Add 'list',
35128         * modules/xoset (Depends-on): Add 'oset'.
35129         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35130
35131 2010-01-07  Bruno Haible  <bruno@clisp.org>
35132
35133         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
35134         * doc/posix-functions/strncasecmp.texi: Likewise.
35135
35136 2010-01-07  Bruno Haible  <bruno@clisp.org>
35137
35138         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
35139
35140 2010-01-07  John W. Eaton  <jwe@octave.org>
35141
35142         wctype: allow C++ use
35143         * lib/wctype.in.h: Add extern "C" block for C++.
35144
35145 2010-01-06  Eric Blake  <ebb9@byu.net>
35146
35147         maint.mk: detect incorrect GFDL usage
35148         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
35149
35150 2010-01-06  Jim Meyering  <meyering@redhat.com>
35151         and Eric Blake  <ebb9@byu.net>
35152
35153         maint.mk: ignore multi-line copyright in NEWS
35154         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
35155
35156 2010-01-06  Eric Blake  <ebb9@byu.net>
35157
35158         select: add missing dependency
35159         * modules/select-tests (Depends-on): Move sockets dependency...
35160         * modules/select (Depends-on): ...here.
35161         Reported by Ian Beckwith.
35162
35163         doc: regenerate INSTALL
35164         * doc/INSTALL: Reflect recent autoconf update.
35165         * doc/INSTALL.ISO: Likewise.
35166         * doc/INSTALL.UTF-8: Likewise.
35167
35168         pread: fix compilation on glibc
35169         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
35170         Reported by Ralf Wildenhues.
35171
35172         dirent: fix test failure
35173         * lib/dirent.in.h (includes): Guarantee ino_t.
35174         Reported by Ralf Wildenhues.
35175
35176 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
35177
35178         linkat, renameat: avoid bad free
35179         * lib/at-func2.c (at_func2): Fix typo.
35180         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
35181
35182 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35183
35184         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
35185         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
35186         to avoid failure of symlink test later.
35187
35188 2010-01-06  Eric Blake  <ebb9@byu.net>
35189
35190         stdio, unistd: guarantee ssize_t
35191         * lib/unistd.in.h (includes): Ensure that types required by POSIX
35192         2008 are exposed when needed.
35193         * lib/stdio.in.h (includes): Likewise.
35194         Reported by Ralf Wildenhues.
35195
35196 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
35197
35198         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
35199         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
35200         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
35201
35202 2010-01-06  Jim Meyering  <meyering@redhat.com>
35203
35204         readtokens: this module *does* require xalloc.h
35205         It uses only functions that were omitted by the old syntax-check rule.
35206         * lib/readtokens.c: Include "xalloc.h" once again.
35207         * modules/readtokens (Depends-on): Add xalloc.
35208         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
35209
35210 2010-01-05  Eric Blake  <ebb9@byu.net>
35211
35212         maint: support 'make announcement' from a VPATH build
35213         * top/maint.mk (announcement): Look for correct NEWS file.
35214
35215 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
35216
35217         utimens (fdutimens): ignore a negative FD, per contract
35218         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
35219         when we have a valid file descriptor.  Otherwise, using a brand
35220         new glibc (with just-patched futimens that now fails with EBADF)
35221         would cause this function to fail with ENOSYS.
35222         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
35223         See also http://bugzilla.redhat.com/552320.
35224
35225 2010-01-05  Eric Blake  <ebb9@byu.net>
35226
35227         strcase: document what it provides
35228         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
35229         gnulib module.
35230         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
35231         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
35232
35233 2010-01-05  Jim Meyering  <meyering@redhat.com>
35234
35235         maint: remove useless inclusions of "xalloc.h"
35236         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
35237         * lib/readtokens.c: Likewise.
35238         * lib/same.c: Likewise.
35239         * modules/getloadavg (Depends-on): Remove xalloc.
35240         * modules/readtokens: Likewise.
35241         * modules/same: Likewise.
35242
35243         maint.mk: include 4 more function names in alloca.h-checking regexp
35244         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
35245         regexp.  Before, we would give a false-positive (saying alloca.h
35246         is included unnecessarily) when the only uses involved omitted symbols.
35247
35248         xalloc.h: use consistent formatting
35249         * lib/xalloc.h: Move declarations to start in the first column.
35250
35251 2010-01-05  Eric Blake  <ebb9@byu.net>
35252
35253         mkdir: avoid xalloc
35254         * lib/mkdir.c (includes): Drop unused header.
35255         Reported by John W. Eaton.
35256
35257 2010-01-04  Jim Meyering  <meyering@redhat.com>
35258
35259         nl_langinfo: avoid configure-time syntax error
35260         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
35261         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
35262         the empty string.  Don't let that provoke a shell syntax error.
35263
35264         regcomp, regexec, fnmatch: avoid array bounds read error
35265         * lib/regcomp.c (build_equiv_class): From glibc:
35266         Use only the low 24 bits of a findidx return value as an index
35267         into the weights array.  Patch by Ulrich Drepper:
35268         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
35269         * lib/regexec.c (check_node_accept_bytes): Likewise.
35270         * lib/fnmatch_loop.c (FCT): Likewise.
35271
35272         regcomp: skip collseq lookup when there are no rules
35273         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
35274         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
35275
35276         regcomp: recognize ill-formed { } expressions
35277         * lib/regcomp.c (parse_dup_op): From glibc:
35278         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
35279
35280         regcomp: fix typo in comment
35281         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
35282         s/satisfy/satisfies/.
35283
35284         regcomp: sync from glibc: remove dead store
35285         * lib/regcomp.c (duplicate_node_closure): Remove useless
35286         search_duplicated_node call and dead store.
35287
35288         regcomp: sync from glibc; always use nl_langinfo
35289         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
35290         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
35291         * modules/regex (Depends-on): Add nl_langinfo.
35292
35293 2010-01-04  Eric Blake  <ebb9@byu.net>
35294
35295         fdopendir: fix configure test
35296         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
35297
35298 2010-01-01  Bruno Haible  <bruno@clisp.org>
35299
35300         wchar: Remove unused configure check.
35301         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
35302
35303 2010-01-01  Eric Blake  <ebb9@byu.net>
35304
35305         headers: make check of system header explicit
35306         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
35307         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
35308         ourselves.
35309         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35310         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35311         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35312         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35313         internals.
35314         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35315         missing.
35316         Suggested by Bruno Haible.
35317
35318 2010-01-01  Jim Meyering  <meyering@redhat.com>
35319
35320         ChangeLog: tweak to eliminate unnecessary copyright line
35321         * ChangeLog: Remove a copyright line that was mistakenly updated
35322         by today's update-copyright run.  Reported by Eric Blake.
35323
35324         test-update-copyright: don't let envvar setting cause test failure
35325         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35326
35327 2010-01-01  Bruno Haible  <bruno@clisp.org>
35328
35329         localename: Avoid gcc warning.
35330         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35331         function if it is not used.
35332
35333 2010-01-01  Jim Meyering  <meyering@redhat.com>
35334
35335         update nearly all FSF copyright year lists to include 2010
35336         Use the same procedure as for 2009, outlined in
35337         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35338
35339         version-etc: set COPYRIGHT_YEAR to 2010
35340         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35341
35342 2009-12-31  Eric Blake  <ebb9@byu.net>
35343
35344         doc: correct availability of cygwin 1.5.x getopt
35345         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35346         variables.
35347         * doc/posix-functions/opterr.texi (opterr): Likewise.
35348         * doc/posix-functions/optind.texi (optind): Likewise.
35349         * doc/posix-functions/optopt.texi (optopt): Likewise.
35350         * doc/posix-functions/tzname.texi (tzname): Likewise.
35351
35352         openat: update maintainer
35353         * modules/openat (Maintainer): Add myself.
35354
35355         utimens: avoid shadowing warning
35356         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35357         buffers into one, to avoid shadowing, as well as avoiding a
35358         redundant stat.
35359         Reported by Jim Meyering.
35360
35361         test-dup2: avoid compiler warning
35362         * tests/test-dup2.c (is_inheritable): Only define if used.
35363
35364 2010-01-01  Bruno Haible  <bruno@clisp.org>
35365
35366         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35367         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35368         defined, use wctomb instead of wcrtomb.
35369
35370 2010-01-01  Bruno Haible  <bruno@clisp.org>
35371
35372         iconv: Reject native Solaris iconv.
35373         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35374         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35375
35376 2009-12-31  Bruno Haible  <bruno@clisp.org>
35377
35378         * tests/test-signal.c (main): Remove test of 'SIG'.
35379
35380 2009-12-31  Bruno Haible  <bruno@clisp.org>
35381
35382         spawn: Fix incomplete fix.
35383         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35384         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35385         warnings for GNULIB_POSIXCHECK again.
35386         Reported by Eric Blake.
35387
35388 2009-12-31  Bruno Haible  <bruno@clisp.org>
35389
35390         Avoid namespace pollution on glibc systems.
35391         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35392         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35393         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35394         glibc systems.
35395
35396 2009-12-31  Bruno Haible  <bruno@clisp.org>
35397
35398         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35399         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35400         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35401         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35402         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35403         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35404         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35405
35406 2009-12-31  Bruno Haible  <bruno@clisp.org>
35407
35408         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35409         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35410         afterwards.
35411
35412 2009-12-31  Bruno Haible  <bruno@clisp.org>
35413
35414         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35415         SYS_UTSNAME_H.
35416
35417 2009-12-31  Bruno Haible  <bruno@clisp.org>
35418
35419         spawn: Fix misapplied patch.
35420         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35421         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35422         warnings for GNULIB_POSIXCHECK.
35423
35424 2009-12-31  Bruno Haible  <bruno@clisp.org>
35425
35426         times: Update after sys_times changed.
35427         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35428         * modules/times (Files): Add it.
35429         (configure.ac): Invoke gl_FUNC_TIMES.
35430
35431 2009-12-31  Bruno Haible  <bruno@clisp.org>
35432
35433         Use AC_C_INLINE where necessary.
35434         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35435         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35436         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35437         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35438         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35439         * m4/mbiter.m4 (gl_MBITER): Likewise.
35440         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35441         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35442         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35443         * modules/u64 (configure.ac): Likewise.
35444
35445 2009-12-31  Bruno Haible  <bruno@clisp.org>
35446
35447         Use AC_C_INLINE instead of module 'inline' where possible.
35448         * modules/inline (Description): Clarify purpose.
35449         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35450         * modules/count-one-bits (Depends-on): Remove inline.
35451         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35452         * modules/openat (Depends-on): Remove inline.
35453         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35454         instead of depending on module 'inline'.
35455         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35456         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35457         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35458         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35459         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35460         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35461         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35462         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35463         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35464         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35465         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35466         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35467         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35468         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35469         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35470         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35471         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35472         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35473         Likewise.
35474         * modules/unictype/property-ascii-hex-digit (Depends-on,
35475         configure.ac): Likewise.
35476         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35477         configure.ac): Likewise.
35478         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35479         configure.ac): Likewise.
35480         * modules/unictype/property-bidi-block-separator (Depends-on,
35481         configure.ac): Likewise.
35482         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35483         configure.ac): Likewise.
35484         * modules/unictype/property-bidi-common-separator (Depends-on,
35485         configure.ac): Likewise.
35486         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35487         Likewise.
35488         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35489         configure.ac): Likewise.
35490         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35491         configure.ac): Likewise.
35492         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35493         configure.ac): Likewise.
35494         * modules/unictype/property-bidi-european-digit (Depends-on,
35495         configure.ac): Likewise.
35496         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35497         configure.ac): Likewise.
35498         * modules/unictype/property-bidi-left-to-right (Depends-on,
35499         configure.ac): Likewise.
35500         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35501         configure.ac): Likewise.
35502         * modules/unictype/property-bidi-other-neutral (Depends-on,
35503         configure.ac): Likewise.
35504         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35505         Likewise.
35506         * modules/unictype/property-bidi-segment-separator (Depends-on,
35507         configure.ac): Likewise.
35508         * modules/unictype/property-bidi-whitespace (Depends-on,
35509         configure.ac): Likewise.
35510         * modules/unictype/property-combining (Depends-on, configure.ac):
35511         Likewise.
35512         * modules/unictype/property-composite (Depends-on, configure.ac):
35513         Likewise.
35514         * modules/unictype/property-currency-symbol (Depends-on,
35515         configure.ac): Likewise.
35516         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35517         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35518         Likewise.
35519         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35520         configure.ac): Likewise.
35521         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35522         Likewise.
35523         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35524         Likewise.
35525         * modules/unictype/property-extender (Depends-on, configure.ac):
35526         Likewise.
35527         * modules/unictype/property-format-control (Depends-on, configure.ac):
35528         Likewise.
35529         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35530         Likewise.
35531         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35532         Likewise.
35533         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35534         Likewise.
35535         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35536         Likewise.
35537         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35538         Likewise.
35539         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35540         Likewise.
35541         * modules/unictype/property-id-start (Depends-on, configure.ac):
35542         Likewise.
35543         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35544         Likewise.
35545         * modules/unictype/property-ids-binary-operator (Depends-on,
35546         configure.ac): Likewise.
35547         * modules/unictype/property-ids-trinary-operator (Depends-on,
35548         configure.ac): Likewise.
35549         * modules/unictype/property-ignorable-control (Depends-on,
35550         configure.ac): Likewise.
35551         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35552         Likewise.
35553         * modules/unictype/property-join-control (Depends-on, configure.ac):
35554         Likewise.
35555         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35556         Likewise.
35557         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35558         Likewise.
35559         * modules/unictype/property-logical-order-exception (Depends-on,
35560         configure.ac): Likewise.
35561         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35562         Likewise.
35563         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35564         * modules/unictype/property-non-break (Depends-on, configure.ac):
35565         Likewise.
35566         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35567         Likewise.
35568         * modules/unictype/property-numeric (Depends-on, configure.ac):
35569         Likewise.
35570         * modules/unictype/property-other-alphabetic (Depends-on,
35571         configure.ac): Likewise.
35572         * modules/unictype/property-other-default-ignorable-code-point
35573         (Depends-on, configure.ac): Likewise.
35574         * modules/unictype/property-other-grapheme-extend (Depends-on,
35575         configure.ac): Likewise.
35576         * modules/unictype/property-other-id-continue (Depends-on,
35577         configure.ac): Likewise.
35578         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35579         Likewise.
35580         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35581         Likewise.
35582         * modules/unictype/property-other-math (Depends-on, configure.ac):
35583         Likewise.
35584         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35585         Likewise.
35586         * modules/unictype/property-paired-punctuation (Depends-on,
35587         configure.ac): Likewise.
35588         * modules/unictype/property-paragraph-separator (Depends-on,
35589         configure.ac): Likewise.
35590         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35591         Likewise.
35592         * modules/unictype/property-pattern-white-space (Depends-on,
35593         configure.ac): Likewise.
35594         * modules/unictype/property-private-use (Depends-on, configure.ac):
35595         Likewise.
35596         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35597         Likewise.
35598         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35599         Likewise.
35600         * modules/unictype/property-radical (Depends-on, configure.ac):
35601         Likewise.
35602         * modules/unictype/property-sentence-terminal (Depends-on,
35603         configure.ac): Likewise.
35604         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35605         Likewise.
35606         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35607         * modules/unictype/property-terminal-punctuation (Depends-on,
35608         configure.ac): Likewise.
35609         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35610         Likewise.
35611         * modules/unictype/property-unassigned-code-value (Depends-on,
35612         configure.ac): Likewise.
35613         * modules/unictype/property-unified-ideograph (Depends-on,
35614         configure.ac): Likewise.
35615         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35616         Likewise.
35617         * modules/unictype/property-variation-selector (Depends-on,
35618         configure.ac): Likewise.
35619         * modules/unictype/property-white-space (Depends-on, configure.ac):
35620         Likewise.
35621         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35622         Likewise.
35623         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35624         Likewise.
35625         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35626         Likewise.
35627         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35628         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35629         Likewise.
35630
35631 2009-12-31  Bruno Haible  <bruno@clisp.org>
35632
35633         Remove unnecessary AC_C_INLINE invocation.
35634         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35635         since 2009-08-21.
35636
35637 2009-12-31  Jim Meyering  <meyering@redhat.com>
35638
35639         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35640         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35641         With this change, we can all remove the gpg_key_ID = ... definition
35642         from our respective cfg.mk files.
35643
35644         maint.mk: create announcement template in ~/, not in /tmp
35645         * top/maint.mk (emit_upload_commands): Adjust.
35646         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35647         Remove temporary file, .ci-msg.
35648
35649 2009-12-31  Eric Blake  <ebb9@byu.net>
35650
35651         link-warning: always build headers with link warnings
35652         * modules/arpa_inet (Makefile.am): Always build replacement
35653         header.
35654         * modules/ctype (Makefile.am): Likewise.
35655         * modules/dirent (Makefile.am): Likewise.
35656         * modules/inttypes (Makefile.am): Likewise.
35657         * modules/langinfo (Makefile.am): Likewise.
35658         * modules/locale (Makefile.am): Likewise.
35659         * modules/spawn (Makefile.am): Likewise.
35660         * modules/sys_file (Makefile.am): Likewise.
35661         * modules/sys_ioctl (Makefile.am): Likewise.
35662         * modules/sys_select (Makefile.am): Likewise.
35663         * modules/sys_socket (Makefile.am): Likewise.
35664         * modules/sys_times (Makefile.am): Likewise.
35665         * modules/sys_utsname (Makefile.am): Likewise.
35666         * modules/sys_wait (Makefile.am): Likewise.
35667         * modules/wchar (Makefile.am): Likewise.
35668         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35669         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35670         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35671         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35672         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35673         Likewise.
35674         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35675         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35676         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35677         Likewise.
35678         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35679         Likewise.
35680         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35681         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35682         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35683         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35684         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35685         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35686         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35687         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35688         (gl_WCHAR_H_DEFAULTS): Likewise.
35689
35690 2009-12-31  Eric Blake  <ebb9@byu.net>
35691
35692         signal, spawn: use link warnings
35693         * lib/signal.in.h (sigset_t): Make unconditional.
35694         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35695         (sigpending, sigprocmask, sigaction): Add link warnings.
35696         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35697         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35698         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35699         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35700         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35701         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35702         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35703         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35704         (posix_spawn_file_actions_destroy)
35705         (posix_spawn_file_actions_addopen)
35706         (posix_spawn_file_actions_addclose)
35707         (posix_spawn_file_actions_adddup2): Likewise.
35708         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35709         * tests/test-signal.c (main): Enhance test.
35710
35711         spawn: improve wrapper support
35712         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35713         (gl_SPAWN_H_DEFAULTS): New defaults.
35714         * modules/spawn (Makefile.am): Substitute them.
35715         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35716         Only declare if missing or broken.
35717
35718         sys_times, sys_utsname: use include_next
35719         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35720         header.
35721         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35722         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35723         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35724         * modules/sys_times (Depends-on): Add include_next.
35725         (Makefile.am): Substitute additional values.
35726         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35727         * lib/sys_times.in.h (includes): Include native header, if
35728         available.
35729         * lib/sys_utsname.in.h (includes): Likewise.
35730         * tests/test-sys_times.c (main): Enhance test.
35731
35732         fdutimensat: revert prior patch
35733         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35734         utimens.h.
35735         Reported by Bruno Haible.
35736
35737 2009-12-30  Eric Blake  <ebb9@byu.net>
35738
35739         sys_wait: drop link-warning dependency
35740         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35741         link-warning efforts.
35742         * lib/sys_wait.in.h: Likewise.
35743
35744         fdutimensat: remove bogus dependency
35745         * modules/fdutimensat (Depends-on): Drop inline.
35746
35747         unistd: fix typo
35748         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35749
35750 2009-12-30  Bruno Haible  <bruno@clisp.org>
35751
35752         Fix compilation error with Solaris cc.
35753         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35754         * lib/unicase/u16-is-invariant.c: Likewise.
35755         * lib/unicase/u32-is-invariant.c: Likewise.
35756         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35757
35758 2009-12-30  Bruno Haible  <bruno@clisp.org>
35759
35760         Fix test crash.
35761         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35762         locales.
35763         Reported by Simon Josefsson <simon@josefsson.org>.
35764
35765 2009-12-30  Bruno Haible  <bruno@clisp.org>
35766
35767         Fix compilation error on most platforms.
35768         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35769         Reported by Simon Josefsson <simon@josefsson.org>
35770         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35771
35772 2009-12-30  Eric Blake  <ebb9@byu.net>
35773
35774         futimens, utimensat: work around ntfs-3g bug
35775         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35776         a ctime bug is present, and expand workaround to cover ntfs-3g.
35777         * lib/utimens.c (fdutimens, lutimens): Likewise.
35778         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35779         (validate_timespec): Adjust return value.
35780         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35781         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35782         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35783
35784 2009-12-29  Eric Blake  <ebb9@byu.net>
35785
35786         link-warning: make usage consistent
35787         * modules/ctype (Depends-on): Add link-warning.
35788         (Makefile.am): Update rules accordingly.
35789         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35790         * modules/locale (Depends-on, Makefile.am): Likewise.
35791         * modules/sys_file (Makefile.am): Likewise.
35792         * modules/getopt-posix (Makefile.am): Delete unused link warning
35793         efforts.
35794         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35795         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35796         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35797         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35798
35799         stdio: remove unused variables
35800         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35801         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35802         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35803
35804         tests: test more substitute headers
35805         * modules/ctype-tests: New file.
35806         * modules/dirent-tests: Likewise.
35807         * modules/spawn-tests: Likewise.
35808         * modules/sys_file-tests: Likewise.
35809         * modules/sys_ioctl-tests: Likewise.
35810         * modules/sys_wait-tests: Likewise.
35811         * tests/test-ctype.c: Likewise.
35812         * tests/test-dirent.c: Likewise.
35813         * tests/test-spawn.c: Likewise.
35814         * tests/test-sys_file.c: Likewise.
35815         * tests/test-sys_ioctl.c: Likewise.
35816         * tests/test-sys_wait.c: Likewise.
35817         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35818         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35819         whether or not flock is in use.
35820
35821         tests: remove License section from module
35822         * modules/arpa_inet-tests: Remove unneeded section.
35823         * modules/byteswap-tests: Likewise.
35824         * modules/ceilf-tests: Likewise.
35825         * modules/ceill-tests: Likewise.
35826         * modules/crypto/des-tests: Likewise.
35827         * modules/crypto/gc-arcfour-tests: Likewise.
35828         * modules/crypto/gc-arctwo-tests: Likewise.
35829         * modules/crypto/gc-des-tests: Likewise.
35830         * modules/crypto/gc-hmac-md5-tests: Likewise.
35831         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35832         * modules/crypto/gc-md2-tests: Likewise.
35833         * modules/crypto/gc-md4-tests: Likewise.
35834         * modules/crypto/gc-md5-tests: Likewise.
35835         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35836         * modules/crypto/gc-rijndael-tests: Likewise.
35837         * modules/crypto/gc-sha1-tests: Likewise.
35838         * modules/crypto/gc-tests: Likewise.
35839         * modules/crypto/md2-tests: Likewise.
35840         * modules/crypto/md4-tests: Likewise.
35841         * modules/fcntl-h-tests: Likewise.
35842         * modules/floorf-tests: Likewise.
35843         * modules/floorl-tests: Likewise.
35844         * modules/frexp-nolibm-tests: Likewise.
35845         * modules/frexp-tests: Likewise.
35846         * modules/frexpl-nolibm-tests: Likewise.
35847         * modules/frexpl-tests: Likewise.
35848         * modules/getaddrinfo-tests: Likewise.
35849         * modules/inttypes-tests: Likewise.
35850         * modules/isfinite-tests: Likewise.
35851         * modules/isinf-tests: Likewise.
35852         * modules/ldexpl-tests: Likewise.
35853         * modules/locale-tests: Likewise.
35854         * modules/math-tests: Likewise.
35855         * modules/netdb-tests: Likewise.
35856         * modules/netinet_in-tests: Likewise.
35857         * modules/printf-frexp-tests: Likewise.
35858         * modules/printf-frexpl-tests: Likewise.
35859         * modules/priv-set-tests: Likewise.
35860         * modules/random_r-tests: Likewise.
35861         * modules/round-tests: Likewise.
35862         * modules/roundf-tests: Likewise.
35863         * modules/roundl-tests: Likewise.
35864         * modules/search-tests: Likewise.
35865         * modules/select-tests: Likewise.
35866         * modules/signal-tests: Likewise.
35867         * modules/stdbool-tests: Likewise.
35868         * modules/stddef-tests: Likewise.
35869         * modules/stdint-tests: Likewise.
35870         * modules/stdio-tests: Likewise.
35871         * modules/stdlib-tests: Likewise.
35872         * modules/string-tests: Likewise.
35873         * modules/strings-tests: Likewise.
35874         * modules/sys_select-tests: Likewise.
35875         * modules/sys_socket-tests: Likewise.
35876         * modules/sys_stat-tests: Likewise.
35877         * modules/sys_time-tests: Likewise.
35878         * modules/sys_utsname-tests: Likewise.
35879         * modules/sysexits-tests: Likewise.
35880         * modules/time-tests: Likewise.
35881         * modules/trunc-tests: Likewise.
35882         * modules/truncf-tests: Likewise.
35883         * modules/truncl-tests: Likewise.
35884         * modules/tsearch-tests: Likewise.
35885         * modules/unistd-tests: Likewise.
35886         * modules/wchar-tests: Likewise.
35887         * modules/wctype-tests: Likewise.
35888
35889         tests: fix license on several tests
35890         * tests/test-des.c: Update to GPLv3+.
35891         * tests/test-flock.c: Likewise.
35892         * tests/test-fsync.c: Likewise.
35893         * tests/test-futimens.h: Likewise.
35894         * tests/test-gc-arcfour.c: Likewise.
35895         * tests/test-gc-arctwo.c: Likewise.
35896         * tests/test-gc-des.c: Likewise.
35897         * tests/test-gc-hmac-md5.c: Likewise.
35898         * tests/test-gc-hmac-sha1.c: Likewise.
35899         * tests/test-gc-md2.c: Likewise.
35900         * tests/test-gc-md4.c: Likewise.
35901         * tests/test-gc-md5.c: Likewise.
35902         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35903         * tests/test-gc-rijndael.c: Likewise.
35904         * tests/test-gc-sha1.c: Likewise.
35905         * tests/test-gc.c: Likewise.
35906         * tests/test-getcwd.c: Likewise.
35907         * tests/test-link.c: Likewise.
35908         * tests/test-link.h: Likewise.
35909         * tests/test-lutimens.h: Likewise.
35910         * tests/test-md2.c: Likewise.
35911         * tests/test-md4.c: Likewise.
35912         * tests/test-mkdir.h: Likewise.
35913         * tests/test-rename.c: Likewise.
35914         * tests/test-rename.h: Likewise.
35915         * tests/test-safe-alloc.c: Likewise.
35916         * tests/test-utimens-common.h: Likewise.
35917         * tests/test-utimens.h: Likewise.
35918
35919         maint: sync license texts
35920         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35921         * doc/gpl-3.0.texi: Revert copyright year update.
35922         * doc/lgpl-3.0.texi: Likewise.
35923
35924 2009-12-29  Jim Meyering  <meyering@redhat.com>
35925
35926         update nearly all FSF copyright year lists to include 2009
35927         The files named by the following are exempted:
35928             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35929               test -f "$dst" && { echo "$dst"; continue; }
35930               test -d "$dst" || continue
35931               echo "$dst"/$(basename "$src")
35932             done > exempt
35933             git ls-files tests/unictype >> exempt
35934         In the remaining files, convert to all-interval notation if
35935         - there is already at least one year interval like 2000-2003
35936         - the file is maintained by me
35937         - the file is in lib/uni*/, where that style already prevails
35938         Otherwise, use update-copyright's default.
35939
35940 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35941         and Eric Blake  <ebb9@byu.net>
35942
35943         tests: don't require debug system() to pass
35944         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35945         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35946         * tests/test-unlink.h (test_unlink_func): Likewise.
35947         * tests/test-fstatat.c (main): ...into callers.
35948         * tests/test-lstat.c (main): Likewise.
35949         * tests/test-rmdir.c (main): Likewise.
35950         * tests/test-unlink.c (main): Likewise.
35951         * tests/test-unlinkat.c (main): Likewise.
35952         * tests/test-areadlink-with-size.c (main): Don't require a
35953         debug-only system call to pass, aiding cross-testing to mingw.
35954         * tests/test-areadlink.c (main): Likewise.
35955         * tests/test-areadlinkat-with-size.c (main): Likewise.
35956         * tests/test-areadlinkat.c (main): Likewise.
35957         * tests/test-canonicalize-lgpl.c (main): Likewise.
35958         * tests/test-canonicalize.c (main): Likewise.
35959         * tests/test-chown.c (main): Likewise.
35960         * tests/test-fchownat.c (main): Likewise.
35961         * tests/test-lchown.c (main): Likewise.
35962         * tests/test-fdutimensat.c (main): Likewise.
35963         * tests/test-futimens.c (main): Likewise.
35964         * tests/test-link.c (main): Likewise.
35965         * tests/test-linkat.c (main): Likewise.
35966         * tests/test-mkdir.c (main): Likewise.
35967         * tests/test-mkdirat.c (main): Likewise.
35968         * tests/test-mkfifo.c (main): Likewise.
35969         * tests/test-mkfifoat.c (main): Likewise.
35970         * tests/test-mknod.c (main): Likewise.
35971         * tests/test-readlink.c (main): Likewise.
35972         * tests/test-remove.c (main): Likewise.
35973         * tests/test-rename.c (main): Likewise.
35974         * tests/test-renameat.c (main): Likewise.
35975         * tests/test-symlink.c (main): Likewise.
35976         * tests/test-symlinkat.c (main): Likewise.
35977         * tests/test-utimens.c (main): Likewise.
35978         * tests/test-utimensat.c (main): Likewise.
35979
35980 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35981
35982         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35983         on $(UNUSED_PARAMETER_H) to avoid build failure.
35984
35985 2009-12-28  Jim Meyering  <meyering@redhat.com>
35986
35987         update-copyright: you may specify a max. line length other than 72
35988         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35989
35990         maint: use consistent FSF copyright line syntax
35991         * lib/posixtm.c: Add missing comma in FSF copyright line.
35992         * lib/posixtm.h: Likewise.
35993         * lib/getugroups.c: Add missing ", Inc.".
35994
35995         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35996         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35997         FSF copyright line.  Remove trailing blanks.
35998
35999 2009-12-28  Eric Blake  <ebb9@byu.net>
36000
36001         test-dup2: reduce dependencies
36002         * modules/cloexec (Configure.ac): Set witness.
36003         * modules/dup2-tests (Depends-on): Drop cloexec.
36004         * tests/test-dup2.c (main): Skip portion of test if cloexec module
36005         not present.
36006         Suggested by Bruno Haible.
36007
36008 2009-12-26  Bruno Haible  <bruno@clisp.org>
36009
36010         Remove an unneeded dependency.
36011         * modules/fseterr (Depends-on): Remove dup2.
36012
36013 2009-12-26  Eric Blake  <ebb9@byu.net>
36014
36015         tests: use macros.h in more places
36016         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
36017         (ASSERT_STREAM): Provide default of stderr.
36018         * tests/test-dirent-safer.c: Include macros.h, using alternate
36019         stream for assertions.
36020         * tests/test-dup-safer.c: Likewise.
36021         * tests/test-freopen-safer.c: Likewise.
36022         * tests/test-getopt.c: Likewise.
36023         * tests/test-openat-safer.c: Likewise.
36024         * tests/test-pipe.c: Likewise.
36025         * tests/test-popen-safer.c: Likewise.
36026         * modules/dirent-safer-tests (Files): Include macros.h.
36027         * modules/unistd-safer-tests (Files): Likewise.
36028         * modules/freopen-safer-tests (Files): Likewise.
36029         * modules/getopt-posix-tests (Files): Likewise.
36030         * modules/openat-safer-tests (Files): Likewise.
36031         * modules/pipe-tests (Files): Likewise.
36032
36033 2009-12-26  Bruno Haible  <bruno@clisp.org>
36034
36035         javacomp: Portability fix.
36036         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
36037         that it also works on Solaris.
36038
36039 2009-12-26  Bruno Haible  <bruno@clisp.org>
36040
36041         localename: Fix storage allocation of gl_locale_name_thread's result.
36042         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
36043         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
36044         all platforms that have 'uselocale'.
36045         (gl_locale_name_thread_unsafe): New function, extracted from
36046         gl_locale_name_thread.
36047         (gl_locale_name_thread): Call struniq on all platforms that have
36048         'uselocale'.
36049         * tests/test-localename.c (test_locale_name_thread): Check that the
36050         resulting strings are permanently allocated.
36051         * modules/localename-tests (Depends-on): Add strdup.
36052
36053 2009-12-26  Bruno Haible  <bruno@clisp.org>
36054
36055         * tests/test-localename.c (categories): Fill in the strings.
36056
36057 2009-12-26  Jim Meyering  <meyering@redhat.com>
36058
36059         isdir: complete the removal of m4/isdir.m4
36060         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
36061
36062         isdir: clean up, since at least grep still uses it
36063         * lib/isdir.c: Include "isdir.h".
36064         (S_ISDIR): Remove now-unneeded definition.
36065         * modules/isdir (Files): Add lib/isdir.h.
36066         * lib/isdir.h: New file, with declaration.
36067         * m4/isdir.m4: Remove file -- unneeded.
36068
36069 2009-12-25  Bruno Haible  <bruno@clisp.org>
36070
36071         selinux-h: Make generated .h files standalone.
36072         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
36073         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
36074         * lib/se-selinux.in.h: Likewise.
36075         * modules/selinux-h (Depends-on): Add unused-parameter.
36076         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
36077         selinux/selinux.h and selinux/context.h.
36078         Suggested by Eric Blake.
36079
36080 2009-12-25  Bruno Haible  <bruno@clisp.org>
36081
36082         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
36083         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
36084         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
36085         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
36086         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
36087
36088 2009-12-24  Bruno Haible  <bruno@clisp.org>
36089
36090         openat: Fix warning.
36091         * lib/openat-proc.c: Include <unistd.h>.
36092
36093 2009-12-24  Bruno Haible  <bruno@clisp.org>
36094
36095         New module 'unused-parameter'.
36096         * build-aux/unused-parameter.h: New file, extracted from earlier
36097         gnulib-common.m4.
36098         * modules/unused-parameter: New file.
36099         * lib/unistr.h: Include unused-parameter.h.
36100         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
36101         _GL_UNUSED.
36102         * modules/unistr/base (Depends-on): Add unused-parameter.
36103
36104 2009-12-24  Bruno Haible  <bruno@clisp.org>
36105
36106         Add missing dependencies to 'extensions' module.
36107         * m4/extensions.m4: Add comment.
36108         * modules/accept4 (Depends-on): Add extensions.
36109         * modules/dup3 (Depends-on): Likewise.
36110         * modules/fcntl (Depends-on): Likewise.
36111         * modules/futimens (Depends-on): Likewise.
36112         * modules/mknod (Depends-on): Likewise.
36113         * modules/pipe2 (Depends-on): Likewise.
36114         * modules/stat-time (Depends-on): Likewise.
36115         * modules/strcasestr-simple (Depends-on): Likewise.
36116         * modules/strsignal (Depends-on): Likewise.
36117         * modules/utimensat (Depends-on): Likewise.
36118         * modules/localcharset (Depends-on): Likewise. Needed because of
36119         gl_FCNTL_O_FLAGS.
36120         * modules/wcrtomb (Depends-on): Likewise. Needed because of
36121         AC_TYPE_MBSTATE_T.
36122         * modules/wcsnrtombs (Depends-on): Likewise.
36123         * modules/wcsrtombs (Depends-on): Likewise.
36124
36125 2009-12-24  Bruno Haible  <bruno@clisp.org>
36126
36127         binary-io: Avoid gcc warning due to SET_BINARY.
36128         * lib/binary-io.h (SET_BINARY): Cast the result to void.
36129         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
36130
36131 2009-12-24  Bruno Haible  <bruno@clisp.org>
36132
36133         Avoid future namespace pollution on glibc systems.
36134         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
36135         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
36136         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
36137         glibc systems.
36138
36139 2009-12-24  Bruno Haible  <bruno@clisp.org>
36140
36141         Refactor common macros used in tests.
36142         * tests/macros.h: New file.
36143         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
36144         and/or <stdlib.h>, if appropriate.
36145         (ASSERT, SIZEOF): Remove macros.
36146         * tests/test-areadlink-with-size.c: Likewise.
36147         * tests/test-areadlinkat.c: Likewise.
36148         * tests/test-areadlinkat-with-size.c: Likewise.
36149         * tests/test-argmatch.c: Likewise.
36150         * tests/test-argv-iter.c: Likewise.
36151         * tests/test-array-mergesort.c: Likewise.
36152         * tests/test-array_list.c: Likewise.
36153         * tests/test-array_oset.c: Likewise.
36154         * tests/test-avltree_list.c: Likewise.
36155         * tests/test-avltree_oset.c: Likewise.
36156         * tests/test-avltreehash_list.c: Likewise.
36157         * tests/test-base64.c: Likewise.
36158         * tests/test-binary-io.c: Likewise.
36159         * tests/test-bitrotate.c: Likewise.
36160         * tests/test-btowc.c: Likewise.
36161         * tests/test-byteswap.c: Likewise.
36162         * tests/test-c-ctype.c: Likewise.
36163         * tests/test-c-stack.c: Likewise.
36164         * tests/test-c-strcasecmp.c: Likewise.
36165         * tests/test-c-strcasestr.c: Likewise.
36166         * tests/test-c-strncasecmp.c: Likewise.
36167         * tests/test-c-strstr.c: Likewise.
36168         * tests/test-canonicalize-lgpl.c: Likewise.
36169         * tests/test-canonicalize.c: Likewise.
36170         * tests/test-carray_list.c: Likewise.
36171         * tests/test-ceilf1.c: Likewise.
36172         * tests/test-ceilf2.c: Likewise.
36173         * tests/test-ceill.c: Likewise.
36174         * tests/test-chown.c: Likewise.
36175         * tests/test-cloexec.c: Likewise.
36176         * tests/test-copy-acl.c: Likewise.
36177         * tests/test-copy-file.c: Likewise.
36178         * tests/test-count-one-bits.c: Likewise.
36179         * tests/test-dprintf-posix.c: Likewise.
36180         * tests/test-dup2.c: Likewise.
36181         * tests/test-dup3.c: Likewise.
36182         * tests/test-duplocale.c: Likewise.
36183         * tests/test-fbufmode.c: Likewise.
36184         * tests/test-fchdir.c: Likewise.
36185         * tests/test-fchownat.c: Likewise.
36186         * tests/test-fcntl-safer.c: Likewise.
36187         * tests/test-fcntl.c: Likewise.
36188         * tests/test-fdopendir.c: Likewise.
36189         * tests/test-fdutimensat.c: Likewise.
36190         * tests/test-fflush2.c: Likewise.
36191         * tests/test-file-has-acl.c: Likewise.
36192         * tests/test-filevercmp.c: Likewise.
36193         * tests/test-flock.c: Likewise.
36194         * tests/test-floorf1.c: Likewise.
36195         * tests/test-floorf2.c: Likewise.
36196         * tests/test-floorl.c: Likewise.
36197         * tests/test-fnmatch.c: Likewise.
36198         * tests/test-fopen.h: Likewise.
36199         * tests/test-fpending.c: Likewise.
36200         * tests/test-fprintf-posix.c: Likewise.
36201         * tests/test-fpurge.c: Likewise.
36202         * tests/test-freadable.c: Likewise.
36203         * tests/test-freadahead.c: Likewise.
36204         * tests/test-freading.c: Likewise.
36205         * tests/test-freadptr.c: Likewise.
36206         * tests/test-freadptr2.c: Likewise.
36207         * tests/test-freadseek.c: Likewise.
36208         * tests/test-freopen.c: Likewise.
36209         * tests/test-frexp.c: Likewise.
36210         * tests/test-frexpl.c: Likewise.
36211         * tests/test-fseek.c: Likewise.
36212         * tests/test-fseeko.c: Likewise.
36213         * tests/test-fstatat.c: Likewise.
36214         * tests/test-fstrcmp.c: Likewise.
36215         * tests/test-fsync.c: Likewise.
36216         * tests/test-ftell.c: Likewise.
36217         * tests/test-ftello.c: Likewise.
36218         * tests/test-func.c: Likewise.
36219         * tests/test-futimens.c: Likewise.
36220         * tests/test-fwritable.c: Likewise.
36221         * tests/test-fwriting.c: Likewise.
36222         * tests/test-getcwd.c: Likewise.
36223         * tests/test-getdate.c: Likewise.
36224         * tests/test-getdelim.c: Likewise.
36225         * tests/test-getdtablesize.c: Likewise.
36226         * tests/test-getgroups.c: Likewise.
36227         * tests/test-getline.c: Likewise.
36228         * tests/test-getndelim2.c: Likewise.
36229         * tests/test-glob.c: Likewise.
36230         * tests/test-hash.c: Likewise.
36231         * tests/test-i-ring.c: Likewise.
36232         * tests/test-iconv-utf.c: Likewise.
36233         * tests/test-iconv.c: Likewise.
36234         * tests/test-idpriv-drop.c: Likewise.
36235         * tests/test-idpriv-droptemp.c: Likewise.
36236         * tests/test-inet_ntop.c: Likewise.
36237         * tests/test-inet_pton.c: Likewise.
36238         * tests/test-isblank.c: Likewise.
36239         * tests/test-isfinite.c: Likewise.
36240         * tests/test-isinf.c: Likewise.
36241         * tests/test-isnan.c: Likewise.
36242         * tests/test-isnand.h: Likewise.
36243         * tests/test-isnanf.h: Likewise.
36244         * tests/test-isnanl.h: Likewise.
36245         * tests/test-lchown.c: Likewise.
36246         * tests/test-ldexpl.c: Likewise.
36247         * tests/test-link.c: Likewise.
36248         * tests/test-linkat.c: Likewise.
36249         * tests/test-linked_list.c: Likewise.
36250         * tests/test-linkedhash_list.c: Likewise.
36251         * tests/test-localename.c: Likewise.
36252         * tests/test-lseek.c: Likewise.
36253         * tests/test-lstat.c: Likewise.
36254         * tests/test-mbmemcasecmp.c: Likewise.
36255         * tests/test-mbmemcasecoll.c: Likewise.
36256         * tests/test-mbrtowc.c: Likewise.
36257         * tests/test-mbscasecmp.c: Likewise.
36258         * tests/test-mbscasestr1.c: Likewise.
36259         * tests/test-mbscasestr2.c: Likewise.
36260         * tests/test-mbscasestr3.c: Likewise.
36261         * tests/test-mbscasestr4.c: Likewise.
36262         * tests/test-mbschr.c: Likewise.
36263         * tests/test-mbscspn.c: Likewise.
36264         * tests/test-mbsinit.c: Likewise.
36265         * tests/test-mbsncasecmp.c: Likewise.
36266         * tests/test-mbsnrtowcs.c: Likewise.
36267         * tests/test-mbspbrk.c: Likewise.
36268         * tests/test-mbspcasecmp.c: Likewise.
36269         * tests/test-mbsrchr.c: Likewise.
36270         * tests/test-mbsrtowcs.c: Likewise.
36271         * tests/test-mbsspn.c: Likewise.
36272         * tests/test-mbsstr1.c: Likewise.
36273         * tests/test-mbsstr2.c: Likewise.
36274         * tests/test-mbsstr3.c: Likewise.
36275         * tests/test-memchr.c: Likewise.
36276         * tests/test-memchr2.c: Likewise.
36277         * tests/test-memcmp.c: Likewise.
36278         * tests/test-memmem.c: Likewise.
36279         * tests/test-memrchr.c: Likewise.
36280         * tests/test-mkdir.c: Likewise.
36281         * tests/test-mkdirat.c: Likewise.
36282         * tests/test-mkfifo.c: Likewise.
36283         * tests/test-mkfifoat.c: Likewise.
36284         * tests/test-mknod.c: Likewise.
36285         * tests/test-nanosleep.c: Likewise.
36286         * tests/test-nl_langinfo.c: Likewise.
36287         * tests/test-obstack-printf.c: Likewise.
36288         * tests/test-open.c: Likewise.
36289         * tests/test-openat.c: Likewise.
36290         * tests/test-pipe-filter-gi1.c: Likewise.
36291         * tests/test-pipe-filter-gi2-main.c: Likewise.
36292         * tests/test-pipe-filter-ii1.c: Likewise.
36293         * tests/test-pipe-filter-ii2-main.c: Likewise.
36294         * tests/test-pipe2.c: Likewise.
36295         * tests/test-popen.h: Likewise.
36296         * tests/test-posixtm.c: Likewise.
36297         * tests/test-pread.c: Likewise.
36298         * tests/test-printf-frexp.c: Likewise.
36299         * tests/test-printf-frexpl.c: Likewise.
36300         * tests/test-printf-posix.c: Likewise.
36301         * tests/test-priv-set.c: Likewise.
36302         * tests/test-quotearg.c: Likewise.
36303         * tests/test-random_r.c: Likewise.
36304         * tests/test-rawmemchr.c: Likewise.
36305         * tests/test-rbtree_list.c: Likewise.
36306         * tests/test-rbtree_oset.c: Likewise.
36307         * tests/test-rbtreehash_list.c: Likewise.
36308         * tests/test-readlink.c: Likewise.
36309         * tests/test-remove.c: Likewise.
36310         * tests/test-rename.c: Likewise.
36311         * tests/test-renameat.c: Likewise.
36312         * tests/test-rmdir.c: Likewise.
36313         * tests/test-round1.c: Likewise.
36314         * tests/test-roundf1.c: Likewise.
36315         * tests/test-roundl.c: Likewise.
36316         * tests/test-safe-alloc.c: Likewise.
36317         * tests/test-sameacls.c: Likewise.
36318         * tests/test-set-mode-acl.c: Likewise.
36319         * tests/test-setenv.c: Likewise.
36320         * tests/test-sigaction.c: Likewise.
36321         * tests/test-signbit.c: Likewise.
36322         * tests/test-sleep.c: Likewise.
36323         * tests/test-snprintf-posix.c: Likewise.
36324         * tests/test-snprintf.c: Likewise.
36325         * tests/test-sprintf-posix.c: Likewise.
36326         * tests/test-stat-time.c: Likewise.
36327         * tests/test-stat.c: Likewise.
36328         * tests/test-strcasestr.c: Likewise.
36329         * tests/test-strchrnul.c: Likewise.
36330         * tests/test-strerror.c: Likewise.
36331         * tests/test-striconv.c: Likewise.
36332         * tests/test-striconveh.c: Likewise.
36333         * tests/test-striconveha.c: Likewise.
36334         * tests/test-strsignal.c: Likewise.
36335         * tests/test-strstr.c: Likewise.
36336         * tests/test-strtod.c: Likewise.
36337         * tests/test-strverscmp.c: Likewise.
36338         * tests/test-symlink.c: Likewise.
36339         * tests/test-symlinkat.c: Likewise.
36340         * tests/test-trunc1.c: Likewise.
36341         * tests/test-trunc2.c: Likewise.
36342         * tests/test-truncf1.c: Likewise.
36343         * tests/test-truncf2.c: Likewise.
36344         * tests/test-truncl.c: Likewise.
36345         * tests/test-uname.c: Likewise.
36346         * tests/test-unlink.c: Likewise.
36347         * tests/test-unlinkat.c: Likewise.
36348         * tests/test-unsetenv.c: Likewise.
36349         * tests/test-usleep.c: Likewise.
36350         * tests/test-utimens.c: Likewise.
36351         * tests/test-utimensat.c: Likewise.
36352         * tests/test-vasnprintf-posix.c: Likewise.
36353         * tests/test-vasnprintf-posix2.c: Likewise.
36354         * tests/test-vasnprintf.c: Likewise.
36355         * tests/test-vasprintf-posix.c: Likewise.
36356         * tests/test-vasprintf.c: Likewise.
36357         * tests/test-vdprintf-posix.c: Likewise.
36358         * tests/test-vfprintf-posix.c: Likewise.
36359         * tests/test-vprintf-posix.c: Likewise.
36360         * tests/test-vsnprintf-posix.c: Likewise.
36361         * tests/test-vsnprintf.c: Likewise.
36362         * tests/test-vsprintf-posix.c: Likewise.
36363         * tests/test-wcrtomb.c: Likewise.
36364         * tests/test-wcsnrtombs.c: Likewise.
36365         * tests/test-wcsrtombs.c: Likewise.
36366         * tests/test-wctype.c: Likewise.
36367         * tests/test-wcwidth.c: Likewise.
36368         * tests/test-xfprintf-posix.c: Likewise.
36369         * tests/test-xmemdup0.c: Likewise.
36370         * tests/test-xprintf-posix.c: Likewise.
36371         * tests/test-xvasprintf.c: Likewise.
36372         * tests/unicase/test-locale-language.c: Likewise.
36373         * tests/unicase/test-mapping-part1.h: Likewise.
36374         * tests/unicase/test-predicate-part1.h: Likewise.
36375         * tests/unicase/test-u8-casecmp.c: Likewise.
36376         * tests/unicase/test-u8-casecoll.c: Likewise.
36377         * tests/unicase/test-u8-casefold.c: Likewise.
36378         * tests/unicase/test-u8-is-cased.c: Likewise.
36379         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36380         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36381         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36382         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36383         * tests/unicase/test-u8-tolower.c: Likewise.
36384         * tests/unicase/test-u8-totitle.c: Likewise.
36385         * tests/unicase/test-u8-toupper.c: Likewise.
36386         * tests/unicase/test-u16-casecmp.c: Likewise.
36387         * tests/unicase/test-u16-casecoll.c: Likewise.
36388         * tests/unicase/test-u16-casefold.c: Likewise.
36389         * tests/unicase/test-u16-is-cased.c: Likewise.
36390         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36391         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36392         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36393         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36394         * tests/unicase/test-u16-tolower.c: Likewise.
36395         * tests/unicase/test-u16-totitle.c: Likewise.
36396         * tests/unicase/test-u16-toupper.c: Likewise.
36397         * tests/unicase/test-u32-casecmp.c: Likewise.
36398         * tests/unicase/test-u32-casecoll.c: Likewise.
36399         * tests/unicase/test-u32-casefold.c: Likewise.
36400         * tests/unicase/test-u32-is-cased.c: Likewise.
36401         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36402         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36403         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36404         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36405         * tests/unicase/test-u32-tolower.c: Likewise.
36406         * tests/unicase/test-u32-totitle.c: Likewise.
36407         * tests/unicase/test-u32-toupper.c: Likewise.
36408         * tests/unicase/test-ulc-casecmp.c: Likewise.
36409         * tests/unicase/test-ulc-casecoll.c: Likewise.
36410         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36411         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36412         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36413         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36414         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36415         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36416         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36417         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36418         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36419         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36420         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36421         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36422         * tests/unictype/test-bidi_byname.c: Likewise.
36423         * tests/unictype/test-bidi_name.c: Likewise.
36424         * tests/unictype/test-bidi_of.c: Likewise.
36425         * tests/unictype/test-bidi_test.c: Likewise.
36426         * tests/unictype/test-block_list.c: Likewise.
36427         * tests/unictype/test-block_of.c: Likewise.
36428         * tests/unictype/test-block_test.c: Likewise.
36429         * tests/unictype/test-categ_and.c: Likewise.
36430         * tests/unictype/test-categ_and_not.c: Likewise.
36431         * tests/unictype/test-categ_byname.c: Likewise.
36432         * tests/unictype/test-categ_name.c: Likewise.
36433         * tests/unictype/test-categ_none.c: Likewise.
36434         * tests/unictype/test-categ_of.c: Likewise.
36435         * tests/unictype/test-categ_or.c: Likewise.
36436         * tests/unictype/test-categ_test_withtable.c: Likewise.
36437         * tests/unictype/test-combining.c: Likewise.
36438         * tests/unictype/test-decdigit.c: Likewise.
36439         * tests/unictype/test-digit.c: Likewise.
36440         * tests/unictype/test-mirror.c: Likewise.
36441         * tests/unictype/test-numeric.c: Likewise.
36442         * tests/unictype/test-pr_byname.c: Likewise.
36443         * tests/unictype/test-pr_test.c: Likewise.
36444         * tests/unictype/test-predicate-part1.h: Likewise.
36445         * tests/unictype/test-scripts.c: Likewise.
36446         * tests/unictype/test-sy_c_ident.c: Likewise.
36447         * tests/unictype/test-sy_java_ident.c: Likewise.
36448         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36449         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36450         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36451         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36452         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36453         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36454         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36455         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36456         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36457         * tests/uninorm/test-compat-decomposition.c: Likewise.
36458         * tests/uninorm/test-composition.c: Likewise.
36459         * tests/uninorm/test-decomposing-form.c: Likewise.
36460         * tests/uninorm/test-decomposition.c: Likewise.
36461         * tests/uninorm/test-u8-nfc.c: Likewise.
36462         * tests/uninorm/test-u8-nfd.c: Likewise.
36463         * tests/uninorm/test-u8-nfkc.c: Likewise.
36464         * tests/uninorm/test-u8-nfkd.c: Likewise.
36465         * tests/uninorm/test-u8-normcmp.c: Likewise.
36466         * tests/uninorm/test-u8-normcoll.c: Likewise.
36467         * tests/uninorm/test-u16-nfc.c: Likewise.
36468         * tests/uninorm/test-u16-nfd.c: Likewise.
36469         * tests/uninorm/test-u16-nfkc.c: Likewise.
36470         * tests/uninorm/test-u16-nfkd.c: Likewise.
36471         * tests/uninorm/test-u16-normcmp.c: Likewise.
36472         * tests/uninorm/test-u16-normcoll.c: Likewise.
36473         * tests/uninorm/test-u32-nfc.c: Likewise.
36474         * tests/uninorm/test-u32-nfd.c: Likewise.
36475         * tests/uninorm/test-u32-nfkc.c: Likewise.
36476         * tests/uninorm/test-u32-nfkd.c: Likewise.
36477         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36478         * tests/uninorm/test-u32-normcmp.c: Likewise.
36479         * tests/uninorm/test-u32-normcoll.c: Likewise.
36480         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36481         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36482         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36483         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36484         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36485         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36486         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36487         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36488         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36489         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36490         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36491         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36492         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36493         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36494         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36495         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36496         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36497         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36498         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36499         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36500         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36501         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36502         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36503         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36504         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36505         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36506         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36507         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36508         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36509         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36510         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36511         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36512         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36513         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36514         * tests/uniwidth/test-u8-width.c: Likewise.
36515         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36516         * tests/uniwidth/test-u16-width.c: Likewise.
36517         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36518         * tests/uniwidth/test-u32-width.c: Likewise.
36519         * tests/uniwidth/test-uc_width.c: Likewise.
36520         * tests/uniwidth/test-uc_width2.c: Likewise.
36521         * modules/acl-tests (Files): Add tests/macros.h.
36522         * modules/areadlink-tests (Files): Likewise.
36523         * modules/areadlink-with-size-tests (Files): Likewise.
36524         * modules/areadlinkat-tests (Files): Likewise.
36525         * modules/areadlinkat-with-size-tests (Files): Likewise.
36526         * modules/argmatch-tests (Files): Likewise.
36527         * modules/argv-iter-tests (Files): Likewise.
36528         * modules/array-list-tests (Files): Likewise.
36529         * modules/array-mergesort-tests (Files): Likewise.
36530         * modules/array-oset-tests (Files): Likewise.
36531         * modules/avltree-list-tests (Files): Likewise.
36532         * modules/avltree-oset-tests (Files): Likewise.
36533         * modules/avltreehash-list-tests (Files): Likewise.
36534         * modules/base64-tests (Files): Likewise.
36535         * modules/binary-io-tests (Files): Likewise.
36536         * modules/bitrotate-tests (Files): Likewise.
36537         * modules/btowc-tests (Files): Likewise.
36538         * modules/byteswap-tests (Files): Likewise.
36539         * modules/c-ctype-tests (Files): Likewise.
36540         * modules/c-stack-tests (Files): Likewise.
36541         * modules/c-strcase-tests (Files): Likewise.
36542         * modules/c-strcasestr-tests (Files): Likewise.
36543         * modules/c-strstr-tests (Files): Likewise.
36544         * modules/canonicalize-lgpl-tests (Files): Likewise.
36545         * modules/canonicalize-tests (Files): Likewise.
36546         * modules/carray-list-tests (Files): Likewise.
36547         * modules/ceilf-tests (Files): Likewise.
36548         * modules/ceill-tests (Files): Likewise.
36549         * modules/chown-tests (Files): Likewise.
36550         * modules/cloexec-tests (Files): Likewise.
36551         * modules/copy-file-tests (Files): Likewise.
36552         * modules/count-one-bits-tests (Files): Likewise.
36553         * modules/dprintf-posix-tests (Files): Likewise.
36554         * modules/dup2-tests (Files): Likewise.
36555         * modules/dup3-tests (Files): Likewise.
36556         * modules/duplocale-tests (Files): Likewise.
36557         * modules/fbufmode-tests (Files): Likewise.
36558         * modules/fchdir-tests (Files): Likewise.
36559         * modules/fcntl-safer-tests (Files): Likewise.
36560         * modules/fcntl-tests (Files): Likewise.
36561         * modules/fdopendir-tests (Files): Likewise.
36562         * modules/fdutimensat-tests (Files): Likewise.
36563         * modules/fflush-tests (Files): Likewise.
36564         * modules/filevercmp-tests (Files): Likewise.
36565         * modules/flock-tests (Files): Likewise.
36566         * modules/floorf-tests (Files): Likewise.
36567         * modules/floorl-tests (Files): Likewise.
36568         * modules/fnmatch-tests (Files): Likewise.
36569         * modules/fopen-safer-tests (Files): Likewise.
36570         * modules/fopen-tests (Files): Likewise.
36571         * modules/fpending-tests (Files): Likewise.
36572         * modules/fprintf-posix-tests (Files): Likewise.
36573         * modules/fpurge-tests (Files): Likewise.
36574         * modules/freadable-tests (Files): Likewise.
36575         * modules/freadahead-tests (Files): Likewise.
36576         * modules/freading-tests (Files): Likewise.
36577         * modules/freadptr-tests (Files): Likewise.
36578         * modules/freadseek-tests (Files): Likewise.
36579         * modules/freopen-tests (Files): Likewise.
36580         * modules/frexp-nolibm-tests (Files): Likewise.
36581         * modules/frexp-tests (Files): Likewise.
36582         * modules/frexpl-nolibm-tests (Files): Likewise.
36583         * modules/frexpl-tests (Files): Likewise.
36584         * modules/fseek-tests (Files): Likewise.
36585         * modules/fseeko-tests (Files): Likewise.
36586         * modules/fstrcmp-tests (Files): Likewise.
36587         * modules/fsync-tests (Files): Likewise.
36588         * modules/ftell-tests (Files): Likewise.
36589         * modules/ftello-tests (Files): Likewise.
36590         * modules/func-tests (Files): Likewise.
36591         * modules/futimens-tests (Files): Likewise.
36592         * modules/fwritable-tests (Files): Likewise.
36593         * modules/fwriting-tests (Files): Likewise.
36594         * modules/getcwd-tests (Files): Likewise.
36595         * modules/getdate-tests (Files): Likewise.
36596         * modules/getdelim-tests (Files): Likewise.
36597         * modules/getdtablesize-tests (Files): Likewise.
36598         * modules/getgroups-tests (Files): Likewise.
36599         * modules/getline-tests (Files): Likewise.
36600         * modules/getndelim2-tests (Files): Likewise.
36601         * modules/glob-tests (Files): Likewise.
36602         * modules/hash-tests (Files): Likewise.
36603         * modules/i-ring-tests (Files): Likewise.
36604         * modules/iconv-tests (Files): Likewise.
36605         * modules/iconv_open-utf-tests (Files): Likewise.
36606         * modules/idpriv-drop-tests (Files): Likewise.
36607         * modules/idpriv-droptemp-tests (Files): Likewise.
36608         * modules/inet_ntop-tests (Files): Likewise.
36609         * modules/inet_pton-tests (Files): Likewise.
36610         * modules/isblank-tests (Files): Likewise.
36611         * modules/isfinite-tests (Files): Likewise.
36612         * modules/isinf-tests (Files): Likewise.
36613         * modules/isnan-tests (Files): Likewise.
36614         * modules/isnand-nolibm-tests (Files): Likewise.
36615         * modules/isnand-tests (Files): Likewise.
36616         * modules/isnanf-nolibm-tests (Files): Likewise.
36617         * modules/isnanf-tests (Files): Likewise.
36618         * modules/isnanl-nolibm-tests (Files): Likewise.
36619         * modules/isnanl-tests (Files): Likewise.
36620         * modules/lchown-tests (Files): Likewise.
36621         * modules/ldexpl-tests (Files): Likewise.
36622         * modules/link-tests (Files): Likewise.
36623         * modules/linkat-tests (Files): Likewise.
36624         * modules/linked-list-tests (Files): Likewise.
36625         * modules/linkedhash-list-tests (Files): Likewise.
36626         * modules/localename-tests (Files): Likewise.
36627         * modules/lseek-tests (Files): Likewise.
36628         * modules/lstat-tests (Files): Likewise.
36629         * modules/mbmemcasecmp-tests (Files): Likewise.
36630         * modules/mbmemcasecoll-tests (Files): Likewise.
36631         * modules/mbrtowc-tests (Files): Likewise.
36632         * modules/mbscasecmp-tests (Files): Likewise.
36633         * modules/mbscasestr-tests (Files): Likewise.
36634         * modules/mbschr-tests (Files): Likewise.
36635         * modules/mbscspn-tests (Files): Likewise.
36636         * modules/mbsinit-tests (Files): Likewise.
36637         * modules/mbsncasecmp-tests (Files): Likewise.
36638         * modules/mbsnrtowcs-tests (Files): Likewise.
36639         * modules/mbspbrk-tests (Files): Likewise.
36640         * modules/mbspcasecmp-tests (Files): Likewise.
36641         * modules/mbsrchr-tests (Files): Likewise.
36642         * modules/mbsrtowcs-tests (Files): Likewise.
36643         * modules/mbsspn-tests (Files): Likewise.
36644         * modules/mbsstr-tests (Files): Likewise.
36645         * modules/memchr-tests (Files): Likewise.
36646         * modules/memchr2-tests (Files): Likewise.
36647         * modules/memcmp-tests (Files): Likewise.
36648         * modules/memmem-tests (Files): Likewise.
36649         * modules/memrchr-tests (Files): Likewise.
36650         * modules/mkdir-tests (Files): Likewise.
36651         * modules/mkfifo-tests (Files): Likewise.
36652         * modules/mkfifoat-tests (Files): Likewise.
36653         * modules/mknod-tests (Files): Likewise.
36654         * modules/nanosleep-tests (Files): Likewise.
36655         * modules/nl_langinfo-tests (Files): Likewise.
36656         * modules/obstack-printf-tests (Files): Likewise.
36657         * modules/open-tests (Files): Likewise.
36658         * modules/openat-tests (Files): Likewise.
36659         * modules/pipe-filter-gi-tests (Files): Likewise.
36660         * modules/pipe-filter-ii-tests (Files): Likewise.
36661         * modules/pipe2-tests (Files): Likewise.
36662         * modules/popen-safer-tests (Files): Likewise.
36663         * modules/popen-tests (Files): Likewise.
36664         * modules/posixtm-tests (Files): Likewise.
36665         * modules/pread-tests (Files): Likewise.
36666         * modules/printf-frexp-tests (Files): Likewise.
36667         * modules/printf-frexpl-tests (Files): Likewise.
36668         * modules/printf-posix-tests (Files): Likewise.
36669         * modules/priv-set-tests (Files): Likewise.
36670         * modules/quotearg-tests (Files): Likewise.
36671         * modules/random_r-tests (Files): Likewise.
36672         * modules/rawmemchr-tests (Files): Likewise.
36673         * modules/rbtree-list-tests (Files): Likewise.
36674         * modules/rbtree-oset-tests (Files): Likewise.
36675         * modules/rbtreehash-list-tests (Files): Likewise.
36676         * modules/readlink-tests (Files): Likewise.
36677         * modules/remove-tests (Files): Likewise.
36678         * modules/rename-tests (Files): Likewise.
36679         * modules/renameat-tests (Files): Likewise.
36680         * modules/rmdir-tests (Files): Likewise.
36681         * modules/round-tests (Files): Likewise.
36682         * modules/roundf-tests (Files): Likewise.
36683         * modules/roundl-tests (Files): Likewise.
36684         * modules/safe-alloc-tests (Files): Likewise.
36685         * modules/setenv-tests (Files): Likewise.
36686         * modules/sigaction-tests (Files): Likewise.
36687         * modules/signbit-tests (Files): Likewise.
36688         * modules/sleep-tests (Files): Likewise.
36689         * modules/snprintf-posix-tests (Files): Likewise.
36690         * modules/snprintf-tests (Files): Likewise.
36691         * modules/sprintf-posix-tests (Files): Likewise.
36692         * modules/stat-tests (Files): Likewise.
36693         * modules/stat-time-tests (Files): Likewise.
36694         * modules/strcasestr-tests (Files): Likewise.
36695         * modules/strchrnul-tests (Files): Likewise.
36696         * modules/strerror-tests (Files): Likewise.
36697         * modules/striconv-tests (Files): Likewise.
36698         * modules/striconveh-tests (Files): Likewise.
36699         * modules/striconveha-tests (Files): Likewise.
36700         * modules/strsignal-tests (Files): Likewise.
36701         * modules/strstr-tests (Files): Likewise.
36702         * modules/strtod-tests (Files): Likewise.
36703         * modules/strverscmp-tests (Files): Likewise.
36704         * modules/symlink-tests (Files): Likewise.
36705         * modules/symlinkat-tests (Files): Likewise.
36706         * modules/trunc-tests (Files): Likewise.
36707         * modules/truncf-tests (Files): Likewise.
36708         * modules/truncl-tests (Files): Likewise.
36709         * modules/uname-tests (Files): Likewise.
36710         * modules/unicase/cased-tests (Files): Likewise.
36711         * modules/unicase/ignorable-tests (Files): Likewise.
36712         * modules/unicase/locale-language-tests (Files): Likewise.
36713         * modules/unicase/tolower-tests (Files): Likewise.
36714         * modules/unicase/totitle-tests (Files): Likewise.
36715         * modules/unicase/toupper-tests (Files): Likewise.
36716         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36717         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36718         * modules/unicase/u8-casefold-tests (Files): Likewise.
36719         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36720         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36721         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36722         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36723         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36724         * modules/unicase/u8-tolower-tests (Files): Likewise.
36725         * modules/unicase/u8-totitle-tests (Files): Likewise.
36726         * modules/unicase/u8-toupper-tests (Files): Likewise.
36727         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36728         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36729         * modules/unicase/u16-casefold-tests (Files): Likewise.
36730         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36731         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36732         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36733         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36734         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36735         * modules/unicase/u16-tolower-tests (Files): Likewise.
36736         * modules/unicase/u16-totitle-tests (Files): Likewise.
36737         * modules/unicase/u16-toupper-tests (Files): Likewise.
36738         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36739         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36740         * modules/unicase/u32-casefold-tests (Files): Likewise.
36741         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36742         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36743         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36744         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36745         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36746         * modules/unicase/u32-tolower-tests (Files): Likewise.
36747         * modules/unicase/u32-totitle-tests (Files): Likewise.
36748         * modules/unicase/u32-toupper-tests (Files): Likewise.
36749         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36750         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36751         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36752         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36753         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36754         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36755         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36756         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36757         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36758         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36759         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36760         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36761         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36762         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36763         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36764         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36765         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36766         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36767         * modules/unictype/block-list-tests (Files): Likewise.
36768         * modules/unictype/block-of-tests (Files): Likewise.
36769         * modules/unictype/block-test-tests (Files): Likewise.
36770         * modules/unictype/category-C-tests (Files): Likewise.
36771         * modules/unictype/category-Cc-tests (Files): Likewise.
36772         * modules/unictype/category-Cf-tests (Files): Likewise.
36773         * modules/unictype/category-Cn-tests (Files): Likewise.
36774         * modules/unictype/category-Co-tests (Files): Likewise.
36775         * modules/unictype/category-Cs-tests (Files): Likewise.
36776         * modules/unictype/category-L-tests (Files): Likewise.
36777         * modules/unictype/category-Ll-tests (Files): Likewise.
36778         * modules/unictype/category-Lm-tests (Files): Likewise.
36779         * modules/unictype/category-Lo-tests (Files): Likewise.
36780         * modules/unictype/category-Lt-tests (Files): Likewise.
36781         * modules/unictype/category-Lu-tests (Files): Likewise.
36782         * modules/unictype/category-M-tests (Files): Likewise.
36783         * modules/unictype/category-Mc-tests (Files): Likewise.
36784         * modules/unictype/category-Me-tests (Files): Likewise.
36785         * modules/unictype/category-Mn-tests (Files): Likewise.
36786         * modules/unictype/category-N-tests (Files): Likewise.
36787         * modules/unictype/category-Nd-tests (Files): Likewise.
36788         * modules/unictype/category-Nl-tests (Files): Likewise.
36789         * modules/unictype/category-No-tests (Files): Likewise.
36790         * modules/unictype/category-P-tests (Files): Likewise.
36791         * modules/unictype/category-Pc-tests (Files): Likewise.
36792         * modules/unictype/category-Pd-tests (Files): Likewise.
36793         * modules/unictype/category-Pe-tests (Files): Likewise.
36794         * modules/unictype/category-Pf-tests (Files): Likewise.
36795         * modules/unictype/category-Pi-tests (Files): Likewise.
36796         * modules/unictype/category-Po-tests (Files): Likewise.
36797         * modules/unictype/category-Ps-tests (Files): Likewise.
36798         * modules/unictype/category-S-tests (Files): Likewise.
36799         * modules/unictype/category-Sc-tests (Files): Likewise.
36800         * modules/unictype/category-Sk-tests (Files): Likewise.
36801         * modules/unictype/category-Sm-tests (Files): Likewise.
36802         * modules/unictype/category-So-tests (Files): Likewise.
36803         * modules/unictype/category-Z-tests (Files): Likewise.
36804         * modules/unictype/category-Zl-tests (Files): Likewise.
36805         * modules/unictype/category-Zp-tests (Files): Likewise.
36806         * modules/unictype/category-Zs-tests (Files): Likewise.
36807         * modules/unictype/category-and-not-tests (Files): Likewise.
36808         * modules/unictype/category-and-tests (Files): Likewise.
36809         * modules/unictype/category-byname-tests (Files): Likewise.
36810         * modules/unictype/category-name-tests (Files): Likewise.
36811         * modules/unictype/category-none-tests (Files): Likewise.
36812         * modules/unictype/category-of-tests (Files): Likewise.
36813         * modules/unictype/category-or-tests (Files): Likewise.
36814         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36815         * modules/unictype/combining-class-tests (Files): Likewise.
36816         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36817         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36818         * modules/unictype/ctype-blank-tests (Files): Likewise.
36819         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36820         * modules/unictype/ctype-digit-tests (Files): Likewise.
36821         * modules/unictype/ctype-graph-tests (Files): Likewise.
36822         * modules/unictype/ctype-lower-tests (Files): Likewise.
36823         * modules/unictype/ctype-print-tests (Files): Likewise.
36824         * modules/unictype/ctype-punct-tests (Files): Likewise.
36825         * modules/unictype/ctype-space-tests (Files): Likewise.
36826         * modules/unictype/ctype-upper-tests (Files): Likewise.
36827         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36828         * modules/unictype/decimal-digit-tests (Files): Likewise.
36829         * modules/unictype/digit-tests (Files): Likewise.
36830         * modules/unictype/mirror-tests (Files): Likewise.
36831         * modules/unictype/numeric-tests (Files): Likewise.
36832         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36833         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36834         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36835         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36836         Likewise.
36837         * modules/unictype/property-bidi-block-separator-tests (Files):
36838         Likewise.
36839         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36840         Likewise.
36841         * modules/unictype/property-bidi-common-separator-tests (Files):
36842         Likewise.
36843         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36844         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36845         Likewise.
36846         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36847         Likewise.
36848         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36849         Likewise.
36850         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36851         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36852         Likewise.
36853         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36854         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36855         Likewise.
36856         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36857         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36858         * modules/unictype/property-bidi-segment-separator-tests (Files):
36859         Likewise.
36860         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36861         * modules/unictype/property-byname-tests (Files): Likewise.
36862         * modules/unictype/property-combining-tests (Files): Likewise.
36863         * modules/unictype/property-composite-tests (Files): Likewise.
36864         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36865         * modules/unictype/property-dash-tests (Files): Likewise.
36866         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36867         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36868         Likewise.
36869         * modules/unictype/property-deprecated-tests (Files): Likewise.
36870         * modules/unictype/property-diacritic-tests (Files): Likewise.
36871         * modules/unictype/property-extender-tests (Files): Likewise.
36872         * modules/unictype/property-format-control-tests (Files): Likewise.
36873         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36874         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36875         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36876         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36877         * modules/unictype/property-hyphen-tests (Files): Likewise.
36878         * modules/unictype/property-id-continue-tests (Files): Likewise.
36879         * modules/unictype/property-id-start-tests (Files): Likewise.
36880         * modules/unictype/property-ideographic-tests (Files): Likewise.
36881         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36882         * modules/unictype/property-ids-trinary-operator-tests (Files):
36883         Likewise.
36884         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36885         * modules/unictype/property-iso-control-tests (Files): Likewise.
36886         * modules/unictype/property-join-control-tests (Files): Likewise.
36887         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36888         * modules/unictype/property-line-separator-tests (Files): Likewise.
36889         * modules/unictype/property-logical-order-exception-tests (Files):
36890         Likewise.
36891         * modules/unictype/property-lowercase-tests (Files): Likewise.
36892         * modules/unictype/property-math-tests (Files): Likewise.
36893         * modules/unictype/property-non-break-tests (Files): Likewise.
36894         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36895         * modules/unictype/property-numeric-tests (Files): Likewise.
36896         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36897         * modules/unictype/property-other-default-ignorable-code-point-tests
36898         (Files): Likewise.
36899         * modules/unictype/property-other-grapheme-extend-tests (Files):
36900         Likewise.
36901         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36902         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36903         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36904         * modules/unictype/property-other-math-tests (Files): Likewise.
36905         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36906         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36907         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36908         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36909         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36910         * modules/unictype/property-private-use-tests (Files): Likewise.
36911         * modules/unictype/property-punctuation-tests (Files): Likewise.
36912         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36913         * modules/unictype/property-radical-tests (Files): Likewise.
36914         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36915         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36916         * modules/unictype/property-space-tests (Files): Likewise.
36917         * modules/unictype/property-terminal-punctuation-tests (Files):
36918         Likewise.
36919         * modules/unictype/property-test-tests (Files): Likewise.
36920         * modules/unictype/property-titlecase-tests (Files): Likewise.
36921         * modules/unictype/property-unassigned-code-value-tests (Files):
36922         Likewise.
36923         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36924         * modules/unictype/property-uppercase-tests (Files): Likewise.
36925         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36926         * modules/unictype/property-white-space-tests (Files): Likewise.
36927         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36928         * modules/unictype/property-xid-start-tests (Files): Likewise.
36929         * modules/unictype/property-zero-width-tests (Files): Likewise.
36930         * modules/unictype/scripts-tests (Files): Likewise.
36931         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36932         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36933         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36934         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36935         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36936         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36937         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36938         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36939         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36940         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36941         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36942         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36943         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36944         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36945         * modules/uninorm/composition-tests (Files): Likewise.
36946         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36947         * modules/uninorm/decomposition-tests (Files): Likewise.
36948         * modules/uninorm/filter-tests (Files): Likewise.
36949         * modules/uninorm/nfc-tests (Files): Likewise.
36950         * modules/uninorm/nfd-tests (Files): Likewise.
36951         * modules/uninorm/nfkc-tests (Files): Likewise.
36952         * modules/uninorm/nfkd-tests (Files): Likewise.
36953         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36954         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36955         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36956         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36957         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36958         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36959         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36960         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36961         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36962         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36963         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36964         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36965         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36966         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36967         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36968         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36969         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36970         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36971         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36972         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36973         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36974         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36975         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36976         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36977         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36978         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36979         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36980         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36981         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36982         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36983         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36984         * modules/uniwidth/u8-width-tests (Files): Likewise.
36985         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36986         * modules/uniwidth/u16-width-tests (Files): Likewise.
36987         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36988         * modules/uniwidth/u32-width-tests (Files): Likewise.
36989         * modules/uniwidth/width-tests (Files): Likewise.
36990         * modules/unlink-tests (Files): Likewise.
36991         * modules/unsetenv-tests (Files): Likewise.
36992         * modules/usleep-tests (Files): Likewise.
36993         * modules/utimens-tests (Files): Likewise.
36994         * modules/utimensat-tests (Files): Likewise.
36995         * modules/vasnprintf-posix-tests (Files): Likewise.
36996         * modules/vasnprintf-tests (Files): Likewise.
36997         * modules/vasprintf-posix-tests (Files): Likewise.
36998         * modules/vasprintf-tests (Files): Likewise.
36999         * modules/vdprintf-posix-tests (Files): Likewise.
37000         * modules/vfprintf-posix-tests (Files): Likewise.
37001         * modules/vprintf-posix-tests (Files): Likewise.
37002         * modules/vsnprintf-posix-tests (Files): Likewise.
37003         * modules/vsnprintf-tests (Files): Likewise.
37004         * modules/vsprintf-posix-tests (Files): Likewise.
37005         * modules/wcrtomb-tests (Files): Likewise.
37006         * modules/wcsnrtombs-tests (Files): Likewise.
37007         * modules/wcsrtombs-tests (Files): Likewise.
37008         * modules/wctype-tests (Files): Likewise.
37009         * modules/wcwidth-tests (Files): Likewise.
37010         * modules/xmemdup0-tests (Files): Likewise.
37011         * modules/xprintf-posix-tests (Files): Likewise.
37012         * modules/xvasprintf-tests (Files): Likewise.
37013
37014 2009-12-24  Eric Blake  <ebb9@byu.net>
37015
37016         test-nanosleep: fix typo
37017         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
37018         patch.
37019         Reported by Bruno Haible.
37020
37021 2009-12-24  Bruno Haible  <bruno@clisp.org>
37022
37023         Reduce namespace pollution on glibc systems.
37024         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
37025         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
37026         systems.
37027         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
37028         <getopt.h> on glibc systems.
37029         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
37030         systems.
37031         * lib/fcntl.c: Include <unistd.h> here instead.
37032
37033 2009-12-24  Bruno Haible  <bruno@clisp.org>
37034
37035         * lib/stdlib.in.h (includes): Fix typo in today's commit.
37036
37037 2009-12-24  Eric Blake  <ebb9@byu.net>
37038
37039         tests: add signature checks
37040         * tests/signature.h (SIGNATURE_CHECK): New file.
37041         * modules/atexit-tests (Files): Use it.
37042         * modules/btowc-tests (Files): Likewise.
37043         * modules/canonicalize-lgpl-tests (Files): Likewise.
37044         * modules/ceilf-tests (Files): Likewise.
37045         * modules/ceill-tests (Files): Likewise.
37046         * modules/chown-tests (Files): Likewise.
37047         * modules/dprintf-posix-tests (Files): Likewise.
37048         * modules/dup2-tests (Files): Likewise.
37049         * modules/dup3-tests (Files): Likewise.
37050         * modules/duplocale-tests (Files): Likewise.
37051         * modules/fchdir-tests (Files): Likewise.
37052         * modules/fcntl-tests (Files): Likewise.
37053         * modules/fdopendir-tests (Files): Likewise.
37054         * modules/fflush-tests (Files): Likewise.
37055         * modules/flock-tests (Files): Likewise.
37056         * modules/floorf-tests (Files): Likewise.
37057         * modules/floorl-tests (Files): Likewise.
37058         * modules/fnmatch-tests (Files): Likewise.
37059         * modules/fopen-tests (Files): Likewise.
37060         * modules/fprintf-posix-tests (Files): Likewise.
37061         * modules/freopen-tests (Files): Likewise.
37062         * modules/frexp-nolibm-tests (Files): Likewise.
37063         * modules/frexp-tests (Files): Likewise.
37064         * modules/frexpl-nolibm-tests (Files): Likewise.
37065         * modules/frexpl-tests (Files): Likewise.
37066         * modules/fseek-tests (Files): Likewise.
37067         * modules/fseeko-tests (Files): Likewise.
37068         * modules/fsync-tests (Files): Likewise.
37069         * modules/ftell-tests (Files): Likewise.
37070         * modules/ftello-tests (Files): Likewise.
37071         * modules/futimens-tests (Files): Likewise.
37072         * modules/getaddrinfo-tests (Files): Likewise.
37073         * modules/getcwd-tests (Files): Likewise.
37074         * modules/getdelim-tests (Files): Likewise.
37075         * modules/getdtablesize-tests (Files): Likewise.
37076         * modules/getgroups-tests (Files): Likewise.
37077         * modules/gethostname-tests (Files): Likewise.
37078         * modules/getline-tests (Files): Likewise.
37079         * modules/getopt-posix-tests (Files): Likewise.
37080         * modules/gettimeofday-tests (Files): Likewise.
37081         * modules/glob-tests (Files): Likewise.
37082         * modules/iconv-tests (Files): Likewise.
37083         * modules/inet_ntop-tests (Files): Likewise.
37084         * modules/inet_pton-tests (Files): Likewise.
37085         * modules/isblank-tests (Files): Likewise.
37086         * modules/lchown-tests (Files): Likewise.
37087         * modules/ldexpl-tests (Files): Likewise.
37088         * modules/link-tests (Files): Likewise.
37089         * modules/linkat-tests (Files): Likewise.
37090         * modules/lseek-tests (Files): Likewise.
37091         * modules/lstat-tests (Files): Likewise.
37092         * modules/mbrtowc-tests (Files): Likewise.
37093         * modules/mbsinit-tests (Files): Likewise.
37094         * modules/mbsnrtowcs-tests (Files): Likewise.
37095         * modules/mbsrtowcs-tests (Files): Likewise.
37096         * modules/memchr-tests (Files): Likewise.
37097         * modules/memcmp-tests (Files): Likewise.
37098         * modules/memmem-tests (Files): Likewise.
37099         * modules/memrchr-tests (Files): Likewise.
37100         * modules/mkdir-tests (Files): Likewise.
37101         * modules/mkfifo-tests (Files): Likewise.
37102         * modules/mkfifoat-tests (Files): Likewise.
37103         * modules/mknod-tests (Files): Likewise.
37104         * modules/nanosleep-tests (Files): Likewise.
37105         * modules/nl_langinfo-tests (Files): Likewise.
37106         * modules/obstack-printf-tests (Files): Likewise.
37107         * modules/open-tests (Files): Likewise.
37108         * modules/openat-tests (Files): Likewise.
37109         * modules/perror-tests (Files): Likewise.
37110         * modules/pipe2-tests (Files): Likewise.
37111         * modules/poll-tests (Files): Likewise.
37112         * modules/popen-tests (Files): Likewise.
37113         * modules/posix_spawn-tests (Files): Likewise.
37114         * modules/posix_spawnp-tests (Files): Likewise.
37115         * modules/pread-tests (Files): Likewise.
37116         * modules/printf-posix-tests (Files): Likewise.
37117         * modules/pty-tests (Files): Likewise.
37118         * modules/random_r-tests (Files): Likewise.
37119         * modules/rawmemchr-tests (Files): Likewise.
37120         * modules/readlink-tests (Files): Likewise.
37121         * modules/remove-tests (Files): Likewise.
37122         * modules/rename-tests (Files): Likewise.
37123         * modules/renameat-tests (Files): Likewise.
37124         * modules/rmdir-tests (Files): Likewise.
37125         * modules/round-tests (Files): Likewise.
37126         * modules/roundf-tests (Files): Likewise.
37127         * modules/roundl-tests (Files): Likewise.
37128         * modules/select-tests (Files): Likewise.
37129         * modules/setenv-tests (Files): Likewise.
37130         * modules/sigaction-tests (Files): Likewise.
37131         * modules/sleep-tests (Files): Likewise.
37132         * modules/snprintf-posix-tests (Files): Likewise.
37133         * modules/snprintf-tests (Files): Likewise.
37134         * modules/sprintf-posix-tests (Files): Likewise.
37135         * modules/stat-tests (Files): Likewise.
37136         * modules/strcasestr-tests (Files): Likewise.
37137         * modules/strchrnul-tests (Files): Likewise.
37138         * modules/strerror-tests (Files): Likewise.
37139         * modules/strsignal-tests (Files): Likewise.
37140         * modules/strstr-tests (Files): Likewise.
37141         * modules/strtod-tests (Files): Likewise.
37142         * modules/strverscmp-tests (Files): Likewise.
37143         * modules/symlink-tests (Files): Likewise.
37144         * modules/symlinkat-tests (Files): Likewise.
37145         * modules/times-tests (Files): Likewise.
37146         * modules/trunc-tests (Files): Likewise.
37147         * modules/truncf-tests (Files): Likewise.
37148         * modules/truncl-tests (Files): Likewise.
37149         * modules/tsearch-tests (Files): Likewise.
37150         * modules/uname-tests (Files): Likewise.
37151         * modules/unlink-tests (Files): Likewise.
37152         * modules/unsetenv-tests (Files): Likewise.
37153         * modules/usleep-tests (Files): Likewise.
37154         * modules/utimensat-tests (Files): Likewise.
37155         * modules/vasprintf-tests (Files): Likewise.
37156         * modules/vdprintf-posix-tests (Files): Likewise.
37157         * modules/vfprintf-posix-tests (Files): Likewise.
37158         * modules/vprintf-posix-tests (Files): Likewise.
37159         * modules/vsnprintf-posix-tests (Files): Likewise.
37160         * modules/vsnprintf-tests (Files): Likewise.
37161         * modules/vsprintf-posix-tests (Files): Likewise.
37162         * modules/wcrtomb-tests (Files): Likewise.
37163         * modules/wcsnrtombs-tests (Files): Likewise.
37164         * modules/wcsrtombs-tests (Files): Likewise.
37165         * modules/wcwidth-tests (Files): Likewise.
37166         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
37167         * tests/test-isinf.c (isinf): Likewise.
37168         * tests/test-isnan.c (isnan): Likewise.
37169         * tests/test-signbit.c (signbit): Likewise.
37170         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
37171         declaration, either as macro or with correct signature.
37172         (select): Ensure function under test is declared with correct
37173         signature in correct header.
37174         * tests/test-atexit.c (atexit): Likewise.
37175         * tests/test-btowc.c (btowc): Likewise.
37176         * tests/test-canonicalize-lgpl.c (realpath)
37177         (canonicalize_file_name): Likewise.
37178         * tests/test-ceilf1.c (ceilf): Likewise.
37179         * tests/test-ceill.c (ceill): Likewise.
37180         * tests/test-chown.c (chown): Likewise.
37181         * tests/test-dprintf-posix.c (dprintf): Likewise.
37182         * tests/test-dup2.c (dup2): Likewise.
37183         * tests/test-dup3.c (dup3): Likewise.
37184         * tests/test-duplocale.c (duplocale): Likewise.
37185         * tests/test-fchdir.c (fchdir): Likewise.
37186         * tests/test-fchownat.c (fchownat): Likewise.
37187         * tests/test-fcntl.c (fcntl): Likewise.
37188         * tests/test-fdopendir.c (fdopendir): Likewise.
37189         * tests/test-fflush.c (fflush): Likewise.
37190         * tests/test-flock.c (flock): Likewise.
37191         * tests/test-floorf1.c (floorf): Likewise.
37192         * tests/test-floorl.c (floorl): Likewise.
37193         * tests/test-fnmatch.c (fnmatch): Likewise.
37194         * tests/test-fopen.c (fopen): Likewise.
37195         * tests/test-fprintf-posix.c (fprintf): Likewise.
37196         * tests/test-freopen.c (freopen): Likewise.
37197         * tests/test-frexp.c (frexp): Likewise.
37198         * tests/test-frexpl.c (frexpl): Likewise.
37199         * tests/test-fseek.c (fseek): Likewise.
37200         * tests/test-fseeko.c (fseeko): Likewise.
37201         * tests/test-fstatat.c (fstatat): Likewise.
37202         * tests/test-fsync.c (fsync): Likewise.
37203         * tests/test-ftell.c (ftell): Likewise.
37204         * tests/test-ftello.c (ftello): Likewise.
37205         * tests/test-futimens.c (futimens): Likewise.
37206         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
37207         (gai_strerror): Likewise.
37208         * tests/test-getcwd.c (getcwd): Likewise.
37209         * tests/test-getdelim.c (getdelim): Likewise.
37210         * tests/test-getdtablesize.c (getdtablesize): Likewise.
37211         * tests/test-getgroups.c (getgroups): Likewise.
37212         * tests/test-gethostname.c (gethostname): Likewise.
37213         * tests/test-getline.c (getline): Likewise.
37214         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
37215         Likewise.
37216         * tests/test-gettimeofday.c (gettimeofday): Likewise.
37217         * tests/test-glob.c (glob, globfree): Likewise.
37218         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
37219         * tests/test-inet_ntop.c (inet_ntop): Likewise.
37220         * tests/test-inet_pton.c (inet_pton): Likewise.
37221         * tests/test-isblank.c (isblank): Likewise.
37222         * tests/test-lchown.c (lchown): Likewise.
37223         * tests/test-ldexpl.c (ldexpl): Likewise.
37224         * tests/test-link.c (link): Likewise.
37225         * tests/test-linkat.c (linkat): Likewise.
37226         * tests/test-lseek.c (lseek): Likewise.
37227         * tests/test-lstat.c (lstat): Likewise.
37228         * tests/test-mbrtowc.c (mbrtowc): Likewise.
37229         * tests/test-mbsinit.c (mbsinit): Likewise.
37230         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
37231         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
37232         * tests/test-memchr.c (memchr): Likewise.
37233         * tests/test-memcmp.c (memcmp): Likewise.
37234         * tests/test-memmem.c (memmem): Likewise.
37235         * tests/test-memrchr.c (memrchr): Likewise.
37236         * tests/test-mkdir.c (mkdir): Likewise.
37237         * tests/test-mkdirat.c (mkdirat): Likewise.
37238         * tests/test-mkfifo.c (mkfifo): Likewise.
37239         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
37240         * tests/test-mknod.c (mknod): Likewise.
37241         * tests/test-nanosleep.c (nanosleep): Likewise.
37242         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
37243         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
37244         Likewise.
37245         * tests/test-open.c (open): Likewise.
37246         * tests/test-openat.c (openat): Likewise.
37247         * tests/test-perror.c (perror): Likewise.
37248         * tests/test-pipe2.c (pipe2): Likewise.
37249         * tests/test-poll.c (poll): Likewise.
37250         * tests/test-popen.c (popen, pclose): Likewise.
37251         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
37252         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
37253         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
37254         (posix_spawn_file_actions_destroy)
37255         (posix_spawn_file_actions_addclose)
37256         (posix_spawn_file_actions_addopen)
37257         (posix_spawn_file_actions_adddup2): Likewise.
37258         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
37259         * tests/test-pread.c (pread): Likewise.
37260         * tests/test-printf-posix.c (printf): Likewise.
37261         * tests/test-pty.c (openpty, forkpty): Likewise.
37262         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
37263         (random_r): Likewise.
37264         * tests/test-rawmemchr.c (rawmemchr): Likewise.
37265         * tests/test-readlink.c (readlink): Likewise.
37266         * tests/test-remove.c (remove): Likewise.
37267         * tests/test-rename.c (rename): Likewise.
37268         * tests/test-renameat.c (renameat): Likewise.
37269         * tests/test-rmdir.c (rmdir): Likewise.
37270         * tests/test-round1.c (round): Likewise.
37271         * tests/test-roundf1.c (roundf): Likewise.
37272         * tests/test-roundl.c (roundl): Likewise.
37273         * tests/test-setenv.c (setenv): Likewise.
37274         * tests/test-sigaction.c (sigaction): Likewise.
37275         * tests/test-sleep.c (sleep): Likewise.
37276         * tests/test-snprintf.c (snprintf): Likewise.
37277         * tests/test-sprintf-posix.c (sprintf): Likewise.
37278         * tests/test-stat.c (stat): Likewise.
37279         * tests/test-stpncpy.c (stpncpy): Likewise.
37280         * tests/test-strcasestr.c (strcasestr): Likewise.
37281         * tests/test-strchrnul.c (strchrnul): Likewise.
37282         * tests/test-strerror.c (strerror): Likewise.
37283         * tests/test-strsignal.c (strsignal): Likewise.
37284         * tests/test-strstr.c (strstr): Likewise.
37285         * tests/test-strtod.c (strtod): Likewise.
37286         * tests/test-strverscmp.c (strverscmp): Likewise.
37287         * tests/test-symlink.c (symlink): Likewise.
37288         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
37289         * tests/test-times.c (times): Likewise.
37290         * tests/test-trunc1.c (trunc): Likewise.
37291         * tests/test-truncf1.c (truncf): Likewise.
37292         * tests/test-truncl.c (truncl): Likewise.
37293         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
37294         Likewise.
37295         * tests/test-uname.c (uname): Likewise.
37296         * tests/test-unlink.c (unlink): Likewise.
37297         * tests/test-unlinkat.c (unlinkat): Likewise.
37298         * tests/test-unsetenv.c (unsetenv): Likewise.
37299         * tests/test-usleep.c (usleep): Likewise.
37300         * tests/test-utimensat.c (utimensat): Likewise.
37301         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
37302         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
37303         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
37304         * tests/test-vprintf-posix.c (vprintf): Likewise.
37305         * tests/test-vsnprintf.c (vsnprintf): Likewise.
37306         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
37307         * tests/test-wcrtomb.c (wcrtomb): Likewise.
37308         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
37309         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
37310         * tests/test-wcwidth.c (wcwidth): Likewise.
37311
37312         build: pull in conditional headers during GNULIB_POSIXCHECK
37313         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37314         definitions from any conditionally-included headers.
37315         * lib/stdlib.in.h (includes): Likewise.
37316         * lib/unistd.in.h (includes): Likewise.
37317
37318 2009-12-24  Bruno Haible  <bruno@clisp.org>
37319
37320         * tests/test-argv-iter.c: Include header file being tested immediately
37321         after config.h.
37322         * tests/test-base64.c: Likewise.
37323         * tests/test-flock.c: Likewise.
37324         * tests/test-fsync.c: Likewise.
37325         * tests/test-getdate.c: Likewise.
37326         * tests/test-getndelim2.c: Likewise.
37327         * tests/test-isfinite.c: Likewise.
37328         * tests/test-isinf.c: Likewise.
37329         * tests/test-strerror.c: Likewise.
37330         * tests/test-strsignal.c: Likewise.
37331
37332 2009-12-23  Eric Blake  <ebb9@byu.net>
37333
37334         unistd: work around cygwin bug
37335         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37336         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37337         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37338
37339 2009-12-23  Bruno Haible  <bruno@clisp.org>
37340
37341         localename: More tests.
37342         * tests/test-localename.c (SIZEOF): New macro.
37343         (categories): New variable.
37344         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37345         test_locale_name_default): Add test w.r.t. thread locale.
37346         (test_locale_name_thread): New function.
37347         (main): Invoke it.
37348
37349         localename: Make aware of thread locale.
37350         * lib/localename.h (gl_locale_name_thread): New declaration.
37351         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37352         behaviour with respect to thread locale.
37353         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37354         <langinfo.h>, glthread/lock.h.
37355         (SIZE_BITS): New macro.
37356         (string_hash): New function.
37357         (struct hash_node): New type.
37358         (HASH_TABLE_SIZE): New macro.
37359         (struniq_hash_table, struniq_lock): New variables.
37360         (struniq): New function.
37361         (gl_locale_name_thread): New function.
37362         (gl_locale_name): Invoke it.
37363         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37364         * modules/localename (Depends-on): Add lock.
37365         Reported by Mike Gran <spk121@yahoo.com>.
37366
37367 2009-12-23  Eric Blake  <ebb9@byu.net>
37368
37369         va-args: new module
37370         * modules/va-args: New file.
37371         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37372         * MODULES.html.sh (Core language properties): Mention it.
37373
37374         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37375         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37376         named alias for __attribute__((__unused__)).
37377         * lib/chown.c: Update client.
37378         * lib/fchmodat.c: Likewise.
37379         * lib/fts.c: Likewise.
37380         * lib/getdate.y: Likewise.
37381         * lib/getgroups.c: Likewise.
37382         * lib/getopt.c: Likewise.
37383         * lib/getugroups.c: Likewise.
37384         * lib/mkdir.c: Likewise.
37385         * lib/mkfifo.c: Likewise.
37386         * lib/mkfifoat.c: Likewise.
37387         * lib/mknod.c: Likewise.
37388         * lib/mknodat.c: Likewise.
37389         * lib/readlink.c: Likewise.
37390         * lib/se-context.in.h: Likewise.
37391         * lib/se-selinux.in.h: Likewise.
37392         * lib/sockets.c: Likewise.
37393         * lib/symlink.c: Likewise.
37394         * lib/symlinkat.c: Likewise.
37395         * lib/unicodeio.c: Likewise.
37396         * lib/unistr.h: Likewise.
37397         * tests/test-areadlink.c: Likewise.
37398         * tests/test-areadlinkat.c: Likewise.
37399         * tests/test-filenamecat.c: Likewise.
37400         * tests/test-fseeko.c: Likewise.
37401         * tests/test-ftello.c: Likewise.
37402         * tests/test-getdate.c: Likewise.
37403         * tests/test-getgroups.c: Likewise.
37404         * tests/test-gethostname.c: Likewise.
37405         * tests/test-quotearg.c: Likewise.
37406         * tests/test-version-etc.c: Likewise.
37407         * tests/test-xalloc-die.c: Likewise.
37408         * tests/test-xfprintf-posix.c: Likewise.
37409         * tests/test-xprintf-posix.c: Likewise.
37410         * tests/test-xvasprintf.c: Likewise.
37411
37412         tests: avoid compiler warnings
37413         * tests/test-fcntl.c (main): Delete unused parameters.
37414         * tests/test-freopen-safer.c (main): Likewise.
37415         * tests/test-xalloc-die.c (main): Mark unused parameters.
37416         * tests/test-fseeko.c (main): Likewise.
37417         * tests/test-ftello.c (main): Likewise.
37418         * tests/test-nanosleep.c (main): Avoid declaration warning.
37419         * tests/test-sleep.c (main): Likewise.
37420         * tests/test-unsetenv.c (main): Silence warning about string
37421         literal.
37422         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37423
37424 2009-12-23  Bruno Haible  <bruno@clisp.org>
37425
37426         * tests/test-localename.c (test_locale_name): New function, extracted
37427         from main. Also test mixed situations.
37428         (test_locale_name_posix, test_locale_name_environ,
37429         test_locale_name_default): New functions.
37430         (main): Invoke them all.
37431         * modules/localename-tests (configure.ac): Test for newlocale.
37432
37433 2009-12-23  Bruno Haible  <bruno@clisp.org>
37434
37435         unistd: Ensure getcwd gets declared before being overridden.
37436         * lib/unistd.in.h: Conditionally include <io.h>.
37437
37438 2009-12-22  Bruno Haible  <bruno@clisp.org>
37439
37440         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37441         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37442         (gl_WCHAR_H): Invoke it.
37443         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37444         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37445         Reported by Karl Berry <karl@freefriends.org>.
37446
37447 2009-12-22  Eric Blake  <ebb9@byu.net>
37448
37449         math, unistd: avoid redundant includes
37450         * lib/math.in.h (isnan): No need to re-include <math.h>.
37451         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37452
37453         getsubopt: work around cygwin bug
37454         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37455         avoid conflicting with system getsubopt.
37456         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37457         bug.
37458
37459         getopt: synchronize from glibc
37460         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37461         parameter order.  Adjust all callers.
37462         (_getopt_internal_r, main): Adjust quoting in error messages.
37463         Drop considerations for outdated POSIX 1003.2 error message.
37464         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37465         callers.
37466         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37467
37468         test-getopt: test stderr behavior
37469         * modules/getopt-posix-tests (Depends-on): Add dup2.
37470         * tests/test-getopt.c (ASSERT): Avoid stderr.
37471         (main): Move stderr to a temporary file.
37472         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37473         Instead, add parameter to inform caller if output occurred.
37474         (test_getopt): Adjust all existing tests to expect silence, and
37475         add new tests of leading ":".
37476         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37477         glibc shortcomings with leading "-:" or "+:" in optstring.
37478         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37479         Likewise.
37480         * doc/posix-functions/getopt.texi (getopt): Likewise.
37481
37482         test-getopt: enhance test
37483         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37484         supports optind=0.
37485         * tests/test-getopt.c (OPTIND_MIN): Move...
37486         * tests/test-getopt.h (OPTIND_MIN): ...here.
37487         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37488         Require that optind=0 works, since modern BSD supports it in
37489         addition to optreset, and since coreutils expects it.
37490         (test_getopt_long_only): New test.
37491         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37492         glibc shortcomings with 'W;', and enforcement of optind=0.
37493         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37494         Likewise.
37495
37496 2009-12-21  Bruno Haible  <bruno@clisp.org>
37497
37498         localename: Improvements for MacOS X and Cygwin.
37499         * lib/localename.h (gl_locale_name_environ): New declaration.
37500         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37501         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37502         (gl_locale_name_posix): Invoke it.
37503         (gl_locale_name_default): Add comments. Use Windows native API also on
37504         Cygwin.
37505
37506 2009-12-21  Bruno Haible  <bruno@clisp.org>
37507
37508         Update list of Win32 locale ids.
37509         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37510         (LANG_SAMI): Renamed from LANG_SAAMI.
37511         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37512         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37513         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37514         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37515         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37516         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37517         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37518         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37519         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37520         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37521         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37522         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37523         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37524         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37525         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37526         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37527         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37528         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37529         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37530         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37531         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37532         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37533         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37534         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37535         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37536         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37537         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37538         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37539         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37540         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37541         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37542         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37543         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37544         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37545         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37546         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37547         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37548         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37549         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37550         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37551         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37552         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37553         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37554         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37555         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37556         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37557         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37558         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37559         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37560         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37561         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37562         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37563         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37564         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37565         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37566         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37567         Add more languages and countries for Sami, Sorbian. Add more countries
37568         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37569         for Pashto. Change country for Syriac, Tswana.
37570
37571 2009-12-21  Eric Blake  <ebb9@byu.net>
37572
37573         test-utimens: avoid spurious failure
37574         * tests/test-chown.h (nap): Factor...
37575         * tests/nap.h: ...into new file.
37576         * tests/test-lchown.h (nap): Avoid duplication.
37577         * tests/test-utimens-common.h (nap): Use shared implementation,
37578         necessary on file systems with 1-second resolution.
37579         * modules/chown-tests (Files): Include new file.
37580         * modules/fdutimensat-tests (Files): Likewise.
37581         * modules/futimens-tests (Files): Likewise.
37582         * modules/lchown-tests (Files): Likewise.
37583         * modules/openat-tests (Files): Likewise.
37584         * modules/utimens-tests (Files): Likewise.
37585         * modules/utimensat-tests (Files): Likewise.
37586
37587 2009-12-19  Eric Blake  <ebb9@byu.net>
37588
37589         futimens, utimensat: work around Linux bug
37590         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37591         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37592         * lib/utimensat.c (rpl_utimensat): Work around it.
37593         * lib/futimens.c (rpl_futimens): Adjust comment.
37594
37595         utimens: work around Linux ctime bug
37596         * lib/utimens.c (detect_ctime_bug): New helper function.
37597         (update_timespec): Differentiate between workaround needed for
37598         this bug vs. what is needed for systems that lack utimensat.
37599         (fdutimens, lutimens): Work around bug.
37600
37601         utimens: check for ctime update
37602         * tests/test-utimens-common.h (check_ctime): Define.
37603         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37604         * tests/test-futimens.h (test_futimens): Likewise.
37605         * tests/test-lutimens.h (test_lutimens): Likewise.
37606         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37607         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37608
37609 2009-12-19  Bruno Haible  <bruno@clisp.org>
37610
37611         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37612         * tests/test-dprintf-posix2.sh: New file.
37613         * tests/test-dprintf-posix2.c: New file.
37614         * modules/dprintf-posix-tests (Files): Add them.
37615         (configure.ac): Check for getrlimit and setrlimit.
37616         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37617
37618 2009-12-19  Bruno Haible  <bruno@clisp.org>
37619
37620         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37621         * tests/test-fprintf-posix3.sh: New file.
37622         * tests/test-fprintf-posix3.c: New file.
37623         * modules/fprintf-posix-tests (Files): Add them.
37624         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37625
37626 2009-12-19  Eric Blake  <ebb9@byu.net>
37627
37628         dirfd: fix prototype
37629         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37630         * lib/dirfd.c (dirfd): Likewise.
37631
37632         canonicalize: reduce memory usage
37633         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37634         allocation to size.
37635         Reported by Solar Designer <solar@openwall.com>.
37636
37637 2009-12-19  Bruno Haible  <bruno@clisp.org>
37638
37639         New module attribute 'Applicability'.
37640         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37641         * gnulib-tool: New option --extract-applicability.
37642         (func_usage): Document it.
37643         (sed_extract_prog): Recognize it.
37644         (func_get_applicability): New function.
37645         (func_import): Generalize handling of 'link-warning' module.
37646         * modules/link-warning (Applicability): New section.
37647         * modules/arg-nonnull (Applicability): New section.
37648         Repoted by Simon Josefsson <simon@josefsson.org>.
37649
37650 2009-12-19  Bruno Haible  <bruno@clisp.org>
37651
37652         fflush: tweak
37653         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37654         * lib/fseeko.c (rpl_fseeko): Likewise.
37655
37656 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37657
37658         * lib/gl_list.h: Fix typo in comment.
37659
37660 2009-12-16  Eric Blake  <ebb9@byu.net>
37661
37662         fcntl: use to simplify other modules
37663         * modules/cloexec (Depends-on): Add fcntl.
37664         * modules/fchdir (Depends-on): Likewise.
37665         * modules/fd-safer-flag (Depends-on): Likewise.
37666         * modules/unistd-safer (Depends-on): Likewise.
37667         * modules/dup3 (configure.ac): Set module indicator.
37668         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37669         missing.
37670         * lib/fchdir.c (_gl_register_dup): Fix comment.
37671         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37672         * lib/dup-safer.c (dup_safer): Likewise.
37673         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37674         * lib/dup3.c (dup3): Likewise.
37675         * tests/test-fchdir.c (main): Enhance test.
37676         Fixes a dup_cloexec bug reported by Ondřej Vašík.
37677
37678         fcntl: port portions of fcntl to mingw
37679         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37680         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37681         replacement for mingw.
37682         * modules/fcntl (Description): Update.
37683         (Depends-on): Add dup2.
37684         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37685         * modules/fcntl-h (Makefile.am): Substitute it.
37686         * lib/fcntl.in.h (fcntl): Update declaration.
37687         (F_DUPFD, F_GETFD): New macros, when needed.
37688         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37689         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37690         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37691         we now guarantee.
37692
37693         fcntl: work around cygwin bug in F_DUPFD
37694         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37695         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37696         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37697         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37698         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37699
37700         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37701         * modules/fcntl (Files): List new files.
37702         (configure.ac): Run a test.
37703         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37704         * lib/fcntl.c (rpl_fcntl): Likewise.
37705         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37706         (gl_FCNTL_H): Always replace fcntl.h.
37707         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37708         * lib/fcntl.in.h (fcntl): Declare replacement.
37709         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37710         needed, plus a witness.
37711         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37712         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37713         * tests/test-fcntl.c: New file.
37714         * modules/fcntl-tests: Likewise.
37715
37716         binary-io: avoid potential compilation warning
37717         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37718         directives.
37719
37720         fflush: avoid compilation error on NetBSD
37721         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37722         between off_t and fpos_t, since the latter is sometimes a struct.
37723         * lib/fseeko.c (rpl_fseeko): Likewise.
37724         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37725
37726 2009-12-15  Eric Blake  <ebb9@byu.net>
37727
37728         fcntl-h, stdio, sys_ioctl: fix declarations
37729         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37730         function must not take arguments.
37731         * lib/sys_ioctl.in.h (ioctl): Likewise.
37732         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37733         (open): Add a link warning.
37734
37735 2009-12-15  Jim Meyering  <meyering@redhat.com>
37736
37737         areadlink, areadlink-with-size: relax license to LGPLv2+
37738         * modules/areadlink (License): Relax to LGPLv2+.
37739         * modules/areadlink-with-size (License): Likewise.
37740
37741 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37742             Bruno Haible  <bruno@clisp.org>
37743
37744         *printf: Fix memory leak.
37745         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37746         * lib/vfprintf.c (vfprintf): Likewise.
37747         * lib/dprintf.c (dprintf): Likewise.
37748         * lib/vdprintf.c (vdprintf): Likewise.
37749
37750 2009-12-14  Eric Blake  <ebb9@byu.net>
37751
37752         accept4: adjust module dependencies
37753         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37754
37755         utimens: one more try at avoiding compiler warning
37756         * lib/utimens.c (lutimens): Lower scope of result.
37757
37758 2009-12-13  Bruno Haible  <bruno@clisp.org>
37759
37760         Move the malloc checking from module 'list' to new module 'xlist'.
37761         * modules/xlist: New file.
37762         * lib/gl_xlist.h: New file.
37763         * lib/gl_xlist.c: New file.
37764         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37765         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37766         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37767         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37768         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37769         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37770         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37771         gl_sortedlist_nx_add): New declarations.
37772         (struct gl_list_implementation): Rename and change methods accordingly.
37773         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37774         (gl_list_nx_create): Renamed from gl_list_create.
37775         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37776         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37777         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37778         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37779         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37780         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37781         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37782         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37783         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37784         gl_list_create_empty.
37785         (gl_list_nx_create): Renamed from gl_list_create.
37786         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37787         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37788         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37789         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37790         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37791         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37792         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37793         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37794         * lib/gl_array_list.c: Don't include xalloc.h.
37795         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37796         NULL upon out-of-memory.
37797         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37798         out-of-memory.
37799         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37800         Change return type to 'int'.
37801         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37802         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37803         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37804         upon out-of-memory.
37805         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37806         upon out-of-memory.
37807         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37808         upon out-of-memory.
37809         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37810         upon out-of-memory.
37811         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37812         out-of-memory.
37813         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37814         Update.
37815         (gl_array_list_implementation): Update.
37816         * lib/gl_carray_list.c: Don't include xalloc.h.
37817         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37818         Return NULL upon out-of-memory.
37819         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37820         out-of-memory.
37821         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37822         Change return type to 'int'.
37823         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37824         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37825         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37826         upon out-of-memory.
37827         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37828         upon out-of-memory.
37829         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37830         out-of-memory.
37831         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37832         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37833         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37834         Update.
37835         (gl_carray_list_implementation): Update.
37836         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37837         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37838         gl_linked_create_empty. Return NULL upon out-of-memory.
37839         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37840         out-of-memory.
37841         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37842         Change return type to 'int'. Return -1 upon out-of-memory.
37843         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37844         out-of-memory.
37845         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37846         upon out-of-memory.
37847         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37848         upon out-of-memory.
37849         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37850         NULL upon out-of-memory.
37851         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37852         upon out-of-memory.
37853         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37854         out-of-memory.
37855         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37856         Update.
37857         * lib/gl_linked_list.c: Don't include xalloc.h.
37858         (gl_linked_list_implementation): Update.
37859         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37860         (add_to_bucket): Change return type to 'int'.
37861         (gl_linkedhash_list_implementation): Update.
37862         * lib/gl_anytree_list1.h (free_subtree): New function.
37863         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37864         gl_tree_create_empty. Return NULL upon out-of-memory.
37865         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37866         Change return type to 'int'. Return -1 upon out-of-memory.
37867         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37868         out-of-memory.
37869         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37870         (gl_tree_remove_node): New function, moved here from
37871         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37872         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37873         Update.
37874         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37875         malloc, not xmalloc. Return NULL upon out-of-memory.
37876         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37877         out-of-memory.
37878         (gl_tree_remove_node_from_tree): New function, extracted from
37879         gl_tree_remove_node.
37880         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37881         upon out-of-memory.
37882         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37883         out-of-memory.
37884         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37885         upon out-of-memory.
37886         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37887         upon out-of-memory.
37888         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37889         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37890         not xmalloc. Return NULL upon out-of-memory.
37891         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37892         out-of-memory.
37893         (gl_tree_remove_node_from_tree): New function, extracted from
37894         gl_tree_remove_node.
37895         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37896         upon out-of-memory.
37897         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37898         out-of-memory.
37899         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37900         upon out-of-memory.
37901         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37902         upon out-of-memory.
37903         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37904         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37905         gl_anytree_list1.h before gl_anyavltree_list2.h.
37906         (gl_avltree_list_implementation): Update.
37907         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37908         gl_anytree_list1.h before gl_anyavltree_list2.h.
37909         (gl_rbtree_list_implementation): Update.
37910         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37911         Change return type to 'int'. Return -1 upon out-of-memory. Use
37912         __builtin_expect.
37913         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37914         (gl_avltreehash_list_implementation): Update.
37915         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37916         (gl_rbtreehash_list_implementation): Update.
37917         * modules/array-list (Depends-on): Remove xalloc.
37918         * modules/carray-list (Depends-on): Likewise.
37919         * modules/linked-list (Depends-on): Likewise.
37920         * modules/linkedhash-list (Depends-on): Likewise.
37921         * modules/avltree-list (Depends-on): Likewise.
37922         * modules/rbtree-list (Depends-on): Likewise.
37923         * modules/avltreehash-list (Depends-on): Likewise.
37924         * modules/rbtreehash-list (Depends-on): Likewise.
37925
37926         * modules/xsublist: New file.
37927         * lib/gl_xsublist.h: New file.
37928         * lib/gl_xsublist.c: New file.
37929         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37930         (gl_sublist_nx_create): New declaration.
37931         * lib/gl_sublist.c: Don't include xalloc.h.
37932         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37933         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37934         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37935         Change return type to 'int'. Return -1 upon out-of-memory.
37936         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37937         upon out-of-memory.
37938         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37939         NULL upon out-of-memory.
37940         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37941         upon out-of-memory.
37942         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37943         NULL upon out-of-memory.
37944         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37945         NULL upon out-of-memory.
37946         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37947         upon out-of-memory.
37948         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37949         (gl_sublist_list_implementation): Update.
37950         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37951         upon out-of-memory.
37952         * modules/sublist (Depends-on): Remove xalloc.
37953
37954         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37955         * tests/test-carray_list.c: Likewise.
37956         * tests/test-linked_list.c: Likewise.
37957         * tests/test-linkedhash_list.c: Likewise.
37958         * tests/test-avltree_list.c: Likewise.
37959         * tests/test-rbtree_list.c: Likewise.
37960         * tests/test-avltreehash_list.c: Likewise.
37961         * tests/test-rbtreehash_list.c: Likewise.
37962         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37963         * modules/carray-list-tests (Makefile.am): Likewise.
37964         * modules/linked-list-tests (Makefile.am): Likewise.
37965         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37966         * modules/avltree-list-tests (Makefile.am): Likewise.
37967         * modules/rbtree-list-tests (Makefile.am): Likewise.
37968         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37969         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37970
37971         * NEWS: Mention the changes.
37972
37973         * lib/clean-temp.c: Include gl_xlist.h.
37974         * modules/clean-temp (Depends-on): Add xlist.
37975
37976         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37977         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37978
37979         * tests/test-array_oset.c: Include gl_xlist.h.
37980         * modules/array-oset-tests (Depends-on): Add xlist.
37981
37982         Reported by José E. Marchesi <jemarch@gnu.org>.
37983
37984 2009-12-13  Bruno Haible  <bruno@clisp.org>
37985
37986         Move the malloc checking from module 'oset' to new module 'xoset'.
37987         * modules/xoset: New file.
37988         * lib/gl_xoset.h: New file.
37989         * lib/gl_xoset.c: New file.
37990         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37991         declarations.
37992         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37993         (struct gl_oset_implementation): Rename and change methods accordingly.
37994         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37995         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37996         'int'. Mark as __warn_unused_result__.
37997         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37998         gl_oset_create_empty.
37999         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
38000         'int'.
38001         * lib/gl_array_oset.c: Don't include xalloc.h.
38002         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
38003         malloc, not xmalloc.
38004         (grow): Change return type to 'int'. Don't call xalloc_die.
38005         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
38006         to 'int'.
38007         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
38008         'int'.
38009         (gl_array_oset_implementation): Update.
38010         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
38011         gl_tree_create_empty.
38012         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
38013         'int'.
38014         * lib/gl_avltree_oset.c: Don't include xalloc.h.
38015         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38016         xmalloc.
38017         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38018         not xmalloc.
38019         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38020         xmalloc.
38021         (gl_avltree_oset_implementation): Update.
38022         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
38023         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
38024         xmalloc.
38025         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
38026         not xmalloc.
38027         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
38028         xmalloc.
38029         (gl_rbtree_oset_implementation): Update.
38030         * modules/array-oset (Depends-on): Remove xalloc.
38031         * modules/avltree-oset (Depends-on): Likewise.
38032         * modules/rbtree-oset (Depends-on): Likewise.
38033         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
38034         * tests/test-avltree_oset.c: Likewise.
38035         * tests/test-rbtree_oset.c: Likewise.
38036         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
38037         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
38038         * modules/rbtree-oset-tests (Makefile.am): Likewise.
38039         * NEWS: Mention the change.
38040
38041 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
38042
38043         maint.mk: allow a project to override release-prep commands
38044         * top/maint.mk (alpha, beta, stable): Move release-preparatory
38045         commands into a new rule.
38046         (release-prep): New rule.
38047         (release-prep-hook): New overridable variable.
38048
38049 2009-12-13  Bruno Haible  <bruno@clisp.org>
38050
38051         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
38052
38053 2009-12-13  Jim Meyering  <meyering@redhat.com>
38054
38055         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
38056         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
38057
38058 2009-12-12  Bruno Haible  <bruno@clisp.org>
38059
38060         duplocale: Tweak.
38061         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
38062
38063 2009-12-12  Karl Berry  <karl@gnu.org>
38064
38065         * config/srclist.txt (strtoll.c): tab changes, no more sync.
38066
38067 2009-12-12  Bruno Haible  <bruno@clisp.org>
38068
38069         * m4/po.m4: Undo incorrect untabification.
38070
38071 2009-12-12  Bruno Haible  <bruno@clisp.org>
38072
38073         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
38074         * modules/c-strtod (Depends-on): Add locale.
38075         * modules/c-strtold (Depends-on): Likewise.
38076
38077 2009-12-12  Bruno Haible  <bruno@clisp.org>
38078
38079         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
38080
38081 2009-12-11  Eric Blake  <ebb9@byu.net>
38082
38083         setenv: relax requirement in light of POSIX ruling
38084         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
38085         not NULL.
38086         * tests/test-setenv.c (main): Relax test.
38087         * tests/test-unsetenv.c (main): Likewise.
38088         * doc/posix-functions/setenv.texi (setenv): Document this.
38089         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38090
38091 2009-12-11  Bruno Haible  <bruno@clisp.org>
38092
38093         New module 'fd-safer-flag'.
38094         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
38095         * lib/dup-safer.c (dup_safer_flag): Remove function.
38096         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
38097         * lib/fd-safer.c (fd_safer_flag): Remove function.
38098         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
38099         * modules/cloexec (configure.ac): Drop indicator macro.
38100         * modules/fd-safer-flag: New file.
38101         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
38102         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
38103         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
38104
38105 2009-12-11  Bruno Haible  <bruno@clisp.org>
38106
38107         Tests for module 'nl_langinfo'.
38108         * modules/nl_langinfo-tests: New file.
38109         * tests/test-nl_langinfo.sh: New file.
38110         * tests/test-nl_langinfo.c: New file.
38111
38112         New module 'nl_langinfo'.
38113         * lib/nl_langinfo.c: New file.
38114         * m4/nl_langinfo.m4: New file.
38115         * modules/nl_langinfo: New file.
38116         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
38117
38118 2009-12-11  Bruno Haible  <bruno@clisp.org>
38119
38120         Tests for module 'langinfo'.
38121         * modules/langinfo-tests: New file.
38122         * tests/test-langinfo.c: New file.
38123
38124         New module 'langinfo'.
38125         * lib/langinfo.in.h: New file.
38126         * m4/langinfo_h.m4: New file.
38127         * modules/langinfo: New file.
38128         * doc/posix-headers/langinfo.texi: Mention the new module.
38129
38130 2009-12-11  Bruno Haible  <bruno@clisp.org>
38131
38132         * lib/config.charset: Untabify.
38133
38134 2009-12-11  Bruno Haible  <bruno@clisp.org>
38135
38136         * modules/unistd-safer (configure.ac): Drop indicator macro.
38137
38138 2009-12-11  Bruno Haible  <bruno@clisp.org>
38139
38140         Move pipe2-safer code to its own file.
38141         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
38142         * lib/pipe-safer.c (pipe2_safer): Remove function.
38143         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
38144         (Makefile.am): Add it to lib_SOURCES.
38145
38146 2009-12-10  Bruno Haible  <bruno@clisp.org>
38147
38148         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
38149
38150 2009-12-10  Bruno Haible  <bruno@clisp.org>
38151
38152         Declare which arguments expect non-NULL values, for GCC and clang.
38153         * build-aux/arg-nonnull.h: New file.
38154         * modules/arg-nonnull: New file.
38155         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
38156         (inet_ntop, inet_pton): Use it.
38157         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
38158         (closedir, dirfd, opendir, scandir, alphasort): Use it.
38159         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
38160         (open, openat): Use it.
38161         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
38162         (fnmatch): Use it.
38163         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
38164         (getopt, getopt_long, getopt_long_only): Use it.
38165         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
38166         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
38167         Use it.
38168         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
38169         (iconv_open): Use it.
38170         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
38171         (strtoimax, strtoumax): Use it.
38172         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
38173         (duplocale): Use it.
38174         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
38175         (frexp, frexpl): Use it.
38176         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
38177         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
38178         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
38179         (tsearch, tfind, tdelete, twalk): Use it.
38180         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
38181         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
38182         sigpending): Use it.
38183         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
38184         (posix_spawn, posix_spawnp, posix_spawnattr_init,
38185         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
38186         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
38187         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
38188         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
38189         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
38190         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
38191         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
38192         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
38193         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
38194         Use it.
38195         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
38196         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
38197         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
38198         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
38199         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
38200         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
38201         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
38202         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
38203         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
38204         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
38205         strtoull, unsetenv): Use it.
38206         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
38207         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
38208         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
38209         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
38210         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
38211         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
38212         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
38213         (strcasecmp, strncasecmp): Use it.
38214         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
38215         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
38216         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
38217         rpl_setsockopt): Use it.
38218         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
38219         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
38220         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
38221         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
38222         (gettimeofday): Use it.
38223         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
38224         (times): Use it.
38225         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
38226         (uname): Use it.
38227         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
38228         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
38229         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
38230         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
38231         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
38232         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
38233         unlinkat, write): Use it.
38234         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
38235         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
38236         * lib/argv-iter.h: Include arg-nonnull.h.
38237         (_ATTRIBUTE_NONNULL_): Remove macro.
38238         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
38239         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
38240         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
38241         optimization.
38242         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
38243         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
38244         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
38245         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
38246         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
38247         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
38248         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
38249         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
38250         * modules/arpa_inet (Depends-on): Add arg-nonnull.
38251         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
38252         * modules/dirent (Depends-on): Add arg-nonnull.
38253         (Makefile.am): Insert arg-nonnull.h into dirent.h.
38254         * modules/fcntl-h (Depends-on): Add arg-nonnull.
38255         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
38256         * modules/fnmatch (Depends-on): Add arg-nonnull.
38257         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
38258         * modules/getopt-posix (Depends-on): Add arg-nonnull.
38259         (Makefile.am): Insert arg-nonnull.h into getopt.h.
38260         * modules/glob (Depends-on): Add arg-nonnull.
38261         (Makefile.am): Insert arg-nonnull.h into glob.h.
38262         * modules/iconv_open (Depends-on): Add arg-nonnull.
38263         (Makefile.am): Insert arg-nonnull.h into iconv.h.
38264         * modules/inttypes (Depends-on): Add arg-nonnull.
38265         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
38266         * modules/locale (Depends-on): Add arg-nonnull.
38267         (Makefile.am): Insert arg-nonnull.h into locale.h.
38268         * modules/math (Depends-on): Add arg-nonnull.
38269         (Makefile.am): Insert arg-nonnull.h into math.h.
38270         * modules/netdb (Depends-on): Add arg-nonnull.
38271         (Makefile.am): Insert arg-nonnull.h into netdb.h.
38272         * modules/search (Depends-on): Add arg-nonnull.
38273         (Makefile.am): Insert arg-nonnull.h into search.h.
38274         * modules/signal (Depends-on): Add arg-nonnull.
38275         (Makefile.am): Insert arg-nonnull.h into signal.h.
38276         * modules/spawn (Depends-on): Add arg-nonnull.
38277         (Makefile.am): Insert arg-nonnull.h into spawn.h.
38278         * modules/stdio (Depends-on): Add arg-nonnull.
38279         (Makefile.am): Insert arg-nonnull.h into stdio.h.
38280         * modules/stdlib (Depends-on): Add arg-nonnull.
38281         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
38282         * modules/string (Depends-on): Add arg-nonnull.
38283         (Makefile.am): Insert arg-nonnull.h into string.h.
38284         * modules/strings (Depends-on): Add arg-nonnull.
38285         (Makefile.am): Insert arg-nonnull.h into strings.h.
38286         * modules/sys_socket (Depends-on): Add arg-nonnull.
38287         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
38288         * modules/sys_stat (Depends-on): Add arg-nonnull.
38289         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
38290         * modules/sys_time (Depends-on): Add arg-nonnull.
38291         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
38292         * modules/sys_times (Depends-on): Add arg-nonnull.
38293         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
38294         * modules/sys_utsname (Depends-on): Add arg-nonnull.
38295         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
38296         * modules/time (Depends-on): Add arg-nonnull.
38297         (Makefile.am): Insert arg-nonnull.h into time.h.
38298         * modules/unistd (Depends-on): Add arg-nonnull.
38299         (Makefile.am): Insert arg-nonnull.h into unistd.h.
38300         * modules/wchar (Depends-on): Add arg-nonnull.
38301         (Makefile.am): Insert arg-nonnull.h into wchar.h.
38302         * modules/argv-iter (Depends-on): Add arg-nonnull.
38303         * tests/test-canonicalize.c (null_ptr): New function.
38304         (main): Use it.
38305         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
38306         (main): Use it.
38307         * tests/test-memmem.c (null_ptr): New function.
38308         (main): Use it.
38309         Reported by Jim Meyering.
38310
38311 2009-12-10  Bruno Haible  <bruno@clisp.org>
38312
38313         Use spaces for indentation, not tabs.
38314         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38315         * m4/*.m4: Untabify.
38316         * build-aux/*.h: Untabify.
38317         * tests/**/*.[hc]: Untabify.
38318         * README: New section "Indent with spaces, not TABs", based on
38319         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38320         * NEWS: Mention the change.
38321
38322 2009-12-10  Bruno Haible  <bruno@clisp.org>
38323
38324         pty test: Fix link error.
38325         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38326         test_pty_LDADD.
38327
38328 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38329
38330         * modules/pty: New file.
38331         * modules/pty-tests: New file.
38332         * m4/pty.m4: New file.
38333         * tests/test-pty.c: New file.
38334         * doc/glibc-headers/pty.texi: Modified.
38335         * doc/glibc-functions/forkpty.texi: Modified.
38336         * doc/glibc-functions/openpty.texi: Modified.
38337
38338 2009-12-10  Bruno Haible  <bruno@clisp.org>
38339
38340         Avoid syntax error in C++ mode.
38341         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38342
38343 2009-12-10  Bruno Haible  <bruno@clisp.org>
38344
38345         Use sed with option -e.
38346         * gnulib-tool (func_version, func_emit_copyright_notice,
38347         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38348         option -e to sed.
38349         * modules/link-warning (Makefile.am): Likewise.
38350
38351 2009-12-10  Jim Meyering  <meyering@redhat.com>
38352
38353         mgetgroups: do not write bytes beyond end of malloc'd buffer
38354         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38355         username, we call getgroups with a one-element-shorter buffer,
38356         but still told it the length was original, max_n_groups.
38357
38358 2009-12-09  Eric Blake  <ebb9@byu.net>
38359
38360         cloexec: relax license
38361         * modules/cloexec (Maintainer): Add myself.
38362         (License): Use LGPL, not GPL.
38363
38364         link-warning: optimize generation
38365         * modules/link-warning (Makefile.am): Reduce process usage.
38366
38367 2009-12-09  Bruno Haible  <bruno@clisp.org>
38368
38369         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38370         workaround was added on 2009-11-17.
38371
38372 2009-12-09  Jim Meyering  <meyering@redhat.com>
38373             Bruno Haible  <bruno@clisp.org>
38374
38375         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38376         * modules/link-warning (Makefile.am): Make the comment-removing sed
38377         command more robust in the face of bootstrap-prepended comment lines.
38378
38379 2009-12-09  Bruno Haible  <bruno@clisp.org>
38380
38381         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38382         most one group.
38383
38384 2009-12-09  Simon Josefsson <simon@josefsson.org>
38385             Bruno Haible  <bruno@clisp.org>
38386
38387         * build-aux/link-warning.h: Add copyright notice.
38388         * modules/link-warning (Makefile.am): Generate link-warning.h from
38389         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38390         * NEWS: Mention change in link-warning module.
38391         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38392         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38393         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38394         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38395         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38396         * modules/math (Makefile.am): Add dependency to math.h.
38397         * modules/search (Makefile.am): Add dependency to search.h.
38398         * modules/signal (Makefile.am): Add dependency to signal.h.
38399         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38400         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38401         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38402         * modules/string (Makefile.am): Add dependency to string.h.
38403         * modules/strings (Makefile.am): Add dependency to strings.h.
38404         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38405         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38406         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38407         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38408         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38409         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38410         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38411         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38412         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38413
38414 2009-12-09  Bruno Haible  <bruno@clisp.org>
38415
38416         fchdir: Optimize away rpl_fstat when possible.
38417         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38418         REPLACE_OPEN_DIRECTORY.
38419         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38420
38421 2009-12-09  Bruno Haible  <bruno@clisp.org>
38422
38423         * lib/fchdir.c: Update comment.
38424
38425 2009-12-09  Bruno Haible  <bruno@clisp.org>
38426
38427         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38428
38429 2009-12-08  Eric Blake  <ebb9@byu.net>
38430
38431         fchdir: avoid memory leak on re-registration.
38432         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38433
38434 2009-12-08  Jim Meyering  <meyering@redhat.com>
38435
38436         init.sh: avoid Solaris 10 /bin/sh portability problem
38437         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38438         sourced script:
38439           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38440           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38441           bar
38442         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38443         and two tests used that idiom.
38444         * tests/init.sh: Update suggested usage comments.
38445         (path_prepend_): New function, to be used in place
38446         of the --src-path=DIR option.
38447         (setup_): Move PATH-prepending code into path_prepend_.
38448         * tests/test-pread.sh: Adapt to new usage.
38449         * tests/test-xalloc-die.sh: Likewise.
38450
38451 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38452
38453         * doc/gnulib.texi (Glibc pty.h): Add.
38454         * doc/glibc-functions/forkpty.texi: Add.
38455         * doc/glibc-functions/openpty.texi: Add.
38456         Suggested by Bruno Haible.
38457
38458 2009-12-08  Eric Blake  <ebb9@byu.net>
38459
38460         fchdir: fix logic bugs
38461         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38462         * tests/test-fchdir.c (main): Enhance test.
38463         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38464         is in use.
38465
38466         dup2: fix logic bugs
38467         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38468         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38469         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38470         exists.
38471         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38472
38473 2009-12-07  Eric Blake  <ebb9@byu.net>
38474
38475         unlink: fix m4 detection
38476         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38477
38478         unistd-safer: add unit test
38479         * modules/unistd-safer-tests: New file.
38480         * tests/test-dup-safer.c: Likewise.
38481         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38482         * tests/test-dup2.c (setmode): Likewise.
38483         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38484
38485         cloexec: preserve text vs. binary across dup_cloexec
38486         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38487         mode.
38488         * modules/dup2-tests (Depends-on): Add binary-io.
38489         * modules/cloexec-tests (Depends-on): Likewise.
38490         * tests/test-dup2.c (setmode, is_mode): New helpers.
38491         (main): Add tests that translation mode is preserved.
38492         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38493         Reported by Bruno Haible.
38494
38495         mgetgroups: reduce duplicate listings
38496         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38497         resulting array.
38498         * tests/test-chown.h (test_chown): Simplify client.
38499         * tests/test-lchown.h (test_lchown): Likewise.
38500
38501 2009-12-06  Bruno Haible  <bruno@clisp.org>
38502
38503         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38504         value.
38505
38506 2009-12-06  Bruno Haible  <bruno@clisp.org>
38507
38508         * lib/progname.c: Include stdio.h, stdlib.h.
38509         (set_program_name): Reject a NULL argument.
38510
38511 2009-12-05  Eric Blake  <ebb9@byu.net>
38512
38513         pipe2-safer: new module
38514         * modules/pipe2-safer: New file.
38515         * lib/unistd-safer.h (pipe2_safer): New prototype.
38516         * lib/unistd--.h (pipe2): New wrapper.
38517         * lib/pipe-safer.c (pipe2_safer): New function.
38518         * modules/pipe (Depends-on): Add pipe2-safer.
38519         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38520
38521         stdlib-safer: preserve cloexec flag for mkostemp[s]
38522         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38523         fd_safer_flag.
38524
38525         unistd-safer: allow preservation of cloexec status via flag
38526         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38527         prototypes.
38528         * lib/dup-safer.c (dup_safer_flag): New function.
38529         * lib/fd-safer.c (fd_safer_flag): Likewise.
38530         * modules/cloexec (configure.ac): Set witness.
38531
38532         test-dup2: enhance test
38533         * modules/dup2-tests (Depends-on): Add cloexec.
38534         * tests/test-dup2.c (main): Enhance test.
38535
38536         cloexec: add dup_cloexec
38537         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38538         header and comments.
38539         * lib/cloexec.c (set_cloexec_flag): Add comments.
38540         (dup_cloexec): New function, with mingw implementation borrowed
38541         from...
38542         * lib/w32spawn.h (dup_noinherit): ...here.
38543         * modules/execute (Depends-on): Add cloexec.
38544         * modules/pipe (Depends-on): Likewise.
38545         * modules/cloexec (Depends-on): Add dup2.
38546         * modules/cloexec-tests (Files): New file.
38547         * tests/test-cloexec.c: Likewise.
38548
38549         test-xalloc-die: fix test for mingw
38550         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38551         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38552         directory and .exe suffix off argv[0] output.
38553
38554         test-fseeko: fix test for mingw
38555         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38556         than undefining fseek, so test will pass on mingw.
38557
38558 2009-12-05  Bruno Haible  <bruno@clisp.org>
38559
38560         * lib/progname.h (set_program_name): Clarify specification.
38561         * lib/progname.c (set_program_name): Likewise.
38562         Reported by Jim Meyering.
38563
38564 2009-12-05  Jim Meyering  <meyering@redhat.com>
38565
38566         maint.mk: backslash-escape parens in default regexp
38567         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38568         backslash-escape the literal parentheses.
38569
38570         maint.mk: news-date-check: use grep -E
38571         * top/maint.mk (today): Define a Make variable, not a...
38572         (news-date-check): ...shell variable.
38573         (news-date-regexp): Use the Make variable.
38574         Use grep's -E option.  Change the failing diagnostic to mention
38575         the variable, $(news-date-regexp).
38576
38577 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38578
38579         maintainer-makefile: allow customization of NEWS entry format
38580         * top/maint.mk (news-date-regexp): New overridable variable.
38581         (news-date-check): Use it.
38582
38583 2009-12-04  Eric Blake  <ebb9@byu.net>
38584
38585         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38586         * lib/mgetgroups.h (xgetgroups): New prototype.
38587         * lib/mgetgroups.c (xgetgroups): New wrapper.
38588         (mgetgroups): Handle ENOSYS.
38589         * modules/mgetgroups (Depends-on): Add realloc.
38590         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38591
38592         mgetgroups: avoid argument promotion issues with -1
38593         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38594         for invalid gid_t.
38595         * tests/test-chown.h (getegid, test_chown): Likewise.
38596         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38597
38598 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38599
38600         exclude: Fix header file problems.
38601         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38602
38603 2009-12-01  Jim Meyering  <meyering@redhat.com>
38604
38605         fts: fts_open: do not let an empty string cause immediate failure
38606         This is required in support of GNU rm, for which the command
38607         "rm A '' B" must process and remove both A and B, in spite of
38608         the empty string argument.
38609         * lib/fts.c (fts_open): Do not let the presence of an empty string
38610         cause fts_open to fail immediately.  Most fts-using tools must be
38611         able to process all arguments, in order, and can be expected to
38612         diagnose such arguments themselves.
38613
38614 2009-11-30  Eric Blake  <ebb9@byu.net>
38615
38616         utimens: fix compilation error
38617         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38618         Declare variable at right scope.
38619
38620 2009-11-29  Jim Meyering  <meyering@redhat.com>
38621
38622         bootstrap: handle perl-5.11's changed --version output
38623         * build-aux/bootstrap (get_version): Handle perl separately,
38624         since perl-5.11's --version output is different.
38625
38626 2009-11-28  Jim Meyering  <meyering@redhat.com>
38627
38628         userspec: depend on the inttostr module, too
38629         * modules/userspec (Depends-on): Add inttostr.
38630
38631         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38632         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38633         number of MAXUID when it evaluates to (uid_t) -1.
38634         Likewise for group ID.  Reported by Matt McCutchen in
38635         <http://savannah.gnu.org/bugs/?28113>
38636
38637         userspec: reformat to use spaces, not TABs
38638         * lib/userspec.c: Expand TABs to spaces.
38639         Add Emacs' "indent-tabs-mode: nil" hint.
38640
38641 2009-11-27  Eric Blake  <ebb9@byu.net>
38642
38643         getopt-gnu: flush out another BSD bug
38644         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38645         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38646         flush out BSD bug.
38647         * tests/test-getopt.h (test_getopt): End lists with NULL.
38648         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38649         (test_getopt_long_posix): Enhance test.
38650         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38651         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38652         getopt-gnu.
38653         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38654         Likewise.
38655
38656 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38657
38658         * modules/idpriv-droptemp-tests (Notice): Fix text.
38659
38660 2009-11-27  Jim Meyering  <meyering@redhat.com>
38661
38662         test-xalloc-die: avoid spurious failure due to libtool argv difference
38663         In a libtool-enabled project, this test would fail due to a difference
38664         in the emitted program name, e.g.,
38665         -test-xalloc-die: memory exhausted
38666         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38667         Use program to avoid that.
38668         * modules/xalloc-die-tests (Depends-on): Add progname.
38669         * tests/test-xalloc-die.c: Include progname.h".
38670         (program_name): Remove decl.
38671         (main): Call set_program_name.
38672         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38673
38674 2009-11-26  Richard Jones  <rjones@redhat.com>
38675
38676         w32sock: leave win32 error in place.
38677         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38678
38679 2009-11-26  Eric Blake  <ebb9@byu.net>
38680
38681         init.sh: suggest to use skip_ and fail_ functions in comments
38682         * tests/init.sh: Add a sentence.
38683
38684 2009-11-25  Bruno Haible  <bruno@clisp.org>
38685
38686         init.sh: add documentation in comments
38687         * tests/init.sh: Add some developer and user documentation.
38688
38689 2009-11-26  Jim Meyering  <meyering@redhat.com>
38690
38691         init.sh: accommodate even those who specify bogus srcdir manually
38692         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38693         configure-time tests to be sanitized, so that there is no need to
38694         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38695         (with no double quotes) suffices.  However, since tests may be
38696         invoked manually, and since you may explicitly set srcdir to the
38697         name of a directory containing spaces, do quote its uses here.
38698         * tests/test-pread.sh: Likewise.
38699         Suggested by Bruno Haible.
38700
38701         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38702         * tests/test-pread.sh: Write no data into the pipe, because
38703         test-pread actually reads none.  This avoids a diagnostic,
38704         "bash: echo: write error: Broken pipe", that arises in the unusual
38705         event something is ignoring SIGPIPE, and might be interpreted
38706         as some sort of failure.  Reported by Bruno Haible.
38707
38708 2009-11-25  Jim Meyering  <meyering@redhat.com>
38709
38710         test-pread: cover failure with ESPIPE and EINVAL
38711         * tests/test-pread.c (main): Test for failure, too.
38712         * tests/test-pread.sh: Invoke with stdin on a pipe.
38713         Suggested by Eric Blake.
38714
38715         pread: improvement and fix
38716         * modules/pread (Depends-on): Depend on lseek, for portability to
38717         e.g., mingw.  Suggested by Eric Blake.
38718         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38719
38720         unistd.in.h: correct declaration of pread
38721         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38722         Reported by Richard W.M. Jones.
38723
38724         test-pread.sh: distribute the test script
38725         * modules/pread-tests (Files): Include test-pread.sh.
38726
38727         test-pread.sh: clean up
38728         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38729         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38730         That is unnecessary, since it's always ".".
38731         Suggestion from Eric Blake.
38732
38733         test-pread.sh: make executable
38734         * tests/test-pread.sh: Set executable bit.
38735         Reported by Eric Blake.
38736
38737         correct typo in test-pread.sh
38738         * tests/test-pread.sh: Add #! line.
38739
38740         test pread
38741         * tests/test-pread.c: New file.
38742         * tests/test-pread.sh: Likewise.
38743         * modules/pread-tests: Likewise.
38744
38745         pread: new module
38746         * modules/pread: New file.
38747         * lib/unistd.in.h (pread): Define/declare.
38748         * lib/pread.c (pread): New file.
38749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38750         * modules/unistd (Makefile.am): Substitute witnesses.
38751         * doc/posix-functions/pread.texi (pread): Update.
38752         * MODULES.html.sh: Add pread.
38753
38754 2009-11-25  Jim Meyering  <meyering@redhat.com>
38755
38756         tests/init.sh: new file to be used via most *.sh tests
38757         * tests/init.sh: New file.
38758
38759 2009-11-25  Eric Blake  <ebb9@byu.net>
38760
38761         utimens: work around older Linux failure with symlinks
38762         * lib/utimens.c (lutimensat_works_really): New variable.
38763         (fdutimens, lutimens): Use it to manage kernels that support
38764         nanosecond times on files, but not on symlinks.
38765         Reported by Ondřej Vašík.
38766
38767         utimes: fix configure grammar
38768         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38769
38770 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38771
38772         regex: Fix fastmap for multibyte character ranges.
38773         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38774         characters when a multibyte character range is included.
38775
38776 2009-11-22  Andy Wingo  <wingo@pobox.com>
38777
38778         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38779         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38780
38781 2009-11-24  Bruno Haible  <bruno@clisp.org>
38782
38783         doc: Most *_l functions exist in MacOS X 10.5.
38784         * doc/posix-functions/duplocale.texi: Update platforms list.
38785         * doc/posix-functions/freelocale.texi: Likewise.
38786         * doc/posix-functions/newlocale.texi: Likewise.
38787         * doc/posix-functions/uselocale.texi: Likewise.
38788         * doc/posix-functions/isalnum_l.texi: Likewise.
38789         * doc/posix-functions/isalpha_l.texi: Likewise.
38790         * doc/posix-functions/isblank_l.texi: Likewise.
38791         * doc/posix-functions/iscntrl_l.texi: Likewise.
38792         * doc/posix-functions/isdigit_l.texi: Likewise.
38793         * doc/posix-functions/isgraph_l.texi: Likewise.
38794         * doc/posix-functions/islower_l.texi: Likewise.
38795         * doc/posix-functions/isprint_l.texi: Likewise.
38796         * doc/posix-functions/ispunct_l.texi: Likewise.
38797         * doc/posix-functions/isspace_l.texi: Likewise.
38798         * doc/posix-functions/isupper_l.texi: Likewise.
38799         * doc/posix-functions/iswalnum_l.texi: Likewise.
38800         * doc/posix-functions/iswalpha_l.texi: Likewise.
38801         * doc/posix-functions/iswblank_l.texi: Likewise.
38802         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38803         * doc/posix-functions/iswctype_l.texi: Likewise.
38804         * doc/posix-functions/iswdigit_l.texi: Likewise.
38805         * doc/posix-functions/iswgraph_l.texi: Likewise.
38806         * doc/posix-functions/iswlower_l.texi: Likewise.
38807         * doc/posix-functions/iswprint_l.texi: Likewise.
38808         * doc/posix-functions/iswpunct_l.texi: Likewise.
38809         * doc/posix-functions/iswspace_l.texi: Likewise.
38810         * doc/posix-functions/iswupper_l.texi: Likewise.
38811         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38812         * doc/posix-functions/isxdigit_l.texi: Likewise.
38813         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38814         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38815         * doc/posix-functions/strcoll_l.texi: Likewise.
38816         * doc/posix-functions/strfmon_l.texi: Likewise.
38817         * doc/posix-functions/strftime_l.texi: Likewise.
38818         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38819         * doc/posix-functions/strxfrm_l.texi: Likewise.
38820         * doc/posix-functions/tolower_l.texi: Likewise.
38821         * doc/posix-functions/toupper_l.texi: Likewise.
38822         * doc/posix-functions/towctrans_l.texi: Likewise.
38823         * doc/posix-functions/towlower_l.texi: Likewise.
38824         * doc/posix-functions/towupper_l.texi: Likewise.
38825         * doc/posix-functions/wcscoll_l.texi: Likewise.
38826         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38827         * doc/posix-functions/wctrans_l.texi: Likewise.
38828         * doc/posix-functions/wctype_l.texi: Likewise.
38829         * doc/glibc-functions/strptime_l.texi: Likewise.
38830         * doc/glibc-functions/strtod_l.texi: Likewise.
38831         * doc/glibc-functions/strtof_l.texi: Likewise.
38832         * doc/glibc-functions/strtol_l.texi: Likewise.
38833         * doc/glibc-functions/strtold_l.texi: Likewise.
38834         * doc/glibc-functions/strtoll_l.texi: Likewise.
38835         * doc/glibc-functions/strtoul_l.texi: Likewise.
38836         * doc/glibc-functions/strtoull_l.texi: Likewise.
38837         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38838         * doc/glibc-functions/wcstod_l.texi: Likewise.
38839         * doc/glibc-functions/wcstof_l.texi: Likewise.
38840         * doc/glibc-functions/wcstol_l.texi: Likewise.
38841         * doc/glibc-functions/wcstold_l.texi: Likewise.
38842         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38843         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38844         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38845
38846 2009-11-24  Bruno Haible  <bruno@clisp.org>
38847
38848         duplocale: Fix logic bug.
38849         * lib/duplocale.c: Don't include <langinfo.h>.
38850         (_NL_LOCALE_NAME): Remove macro.
38851         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38852         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38853
38854 2009-11-23  Jim Meyering  <meyering@redhat.com>
38855
38856         test-update-copyright: don't hard-code /usr/bin/perl
38857         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38858         perl to print the current year.  Gilles Espinasse reported that
38859         the replaced use of perl was hard-coded as /usr/bin/perl.
38860
38861 2009-11-23  Bruno Haible  <bruno@clisp.org>
38862
38863         duplocale: Add support for glibc 2.3.x.
38864         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38865
38866 2009-11-22  Bruno Haible  <bruno@clisp.org>
38867
38868         vasnprintf: Tiny optimization.
38869         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38870         MacOS X.
38871
38872 2009-11-22  Bruno Haible  <bruno@clisp.org>
38873
38874         Tests for module 'duplocale'.
38875         * modules/duplocale-tests: New file.
38876         * tests/test-duplocale.c: New file.
38877
38878         New module 'duplocale'.
38879         * m4/duplocale.m4: New file.
38880         * lib/locale.in.h (duplocale): New declaration.
38881         * lib/duplocale.c: New file.
38882         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38883         gl_LOCALE_H_DEFAULTS): New macros.
38884         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38885         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38886         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38887         REPLACE_DUPLOCALE.
38888         * modules/duplocale: New file.
38889         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38890
38891 2009-11-22  Bruno Haible  <bruno@clisp.org>
38892
38893         * modules/locale-tests (configure.ac): Test for newlocale function.
38894         * tests/test-locale.c: When the system has extended locale functions,
38895         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38896
38897         locale: Make locale_t available when possible.
38898         * lib/locale.in.h: Include <xlocale.h> when it exists.
38899         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38900         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38901         * modules/locale (Depends-on): Add extensions.
38902         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38903         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38904
38905 2009-11-22  Bruno Haible  <bruno@clisp.org>
38906
38907         Add comments.
38908         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38909         invocation.
38910         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38911         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38912         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38913
38914 2009-11-22  Bruno Haible  <bruno@clisp.org>
38915
38916         error: account for the possibility of freopen (stdout).
38917         * lib/error.c: Include <unistd.h>.
38918         (flush_stdout): New function, extracted from error and error_at_line.
38919         Determine stdout's fd dynamically.
38920         (error, error_at_line): Invoke flush_stdout.
38921         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38922         * modules/error (Depends-on): Add unistd.
38923
38924 2009-11-22  Bruno Haible  <bruno@clisp.org>
38925
38926         diffseq: Add comment.
38927         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38928
38929 2009-11-22  Jim Meyering  <meyering@redhat.com>
38930
38931         c-stack: avoid defining an unused static function
38932         * lib/c-stack.c (find_stack_direction): Do not define this function
38933         when it will not be used.
38934
38935         diffseq: avoid spurious gcc warnings
38936         * lib/diffseq.h (IF_LINT2): Define.
38937         (compareseq): Use it to initialize two members of "part".
38938         This avoids two used-uninitialized warnings.
38939
38940 2009-11-21  Jim Meyering  <meyering@redhat.com>
38941
38942         c-stack: avoid "ignoring return value of `write'" warning
38943         * lib/c-stack.c: Include "ignore-value.h".
38944         (die): Explicitly ignore each write return value.
38945         * modules/c-stack (Depends-on): Add ignore-value.
38946
38947 2009-11-21  Bruno Haible  <bruno@clisp.org>
38948
38949         diffseq: reduce scope of variable 'best'.
38950         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38951         variable, earlier used for two different purposes.
38952
38953 2009-11-21  Jim Meyering  <meyering@redhat.com>
38954
38955         diffseq: remove useless assignment to "best"
38956         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38957         assignment.  At that point "best" is already guaranteed to be zero.
38958
38959 2009-11-20  Eric Blake  <ebb9@byu.net>
38960
38961         build: mention ftp redirector in release announcements
38962         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38963         values that used to come from cfg.mk; mention FTP redirect URL.
38964         * build-aux/announce-gen: Mention the mirror list.
38965         Suggested by Karl Berry.
38966
38967         nanosleep: improve port to mingw
38968         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38970         LIB_NANOSLEEP, but only when needed.
38971         * modules/select (Link): Document LIBSOCKET.
38972         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38973         enough.
38974
38975         nanosleep: work around cygwin bug
38976         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38977         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38978         bug.
38979         (getnow): Delete, not needed.
38980         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38981         LIB_CLOCK_GETTIME.
38982         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38983         clock-time, gettime.
38984         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38985         bug.
38986         * modules/nanosleep-tests: New test.
38987         * tests/test-nanosleep.c: New file.
38988
38989         sleep: work around cygwin bug
38990         * lib/sleep.c (rpl_sleep): Work around the bug.
38991         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38992         (gl_PREREQ_SLEEP): Delete unused macro.
38993         * modules/sleep (Depends-on): Add verify.
38994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38995         * modules/unistd (Makefile.am): Substitute witness.
38996         * lib/unistd.in.h (sleep): Update prototype.
38997         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38998         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38999         * modules/sleep-tests (Depends-on): Check for alarm.
39000
39001 2009-11-20  Jim Meyering  <meyering@redhat.com>
39002
39003         maint.mk: improve sc_prohibit_magic_number_exit
39004         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
39005         so it does not match uses like System.exit(1).
39006         Add comments showing how to correct all offenders.
39007
39008 2009-11-19  Eric Blake  <ebb9@byu.net>
39009
39010         xalloc-die-tests: add missing library
39011         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
39012
39013         test-xvasprintf: silence compiler warnings
39014         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
39015         empty string from gcc.
39016
39017 2009-11-19  Jim Meyering  <meyering@redhat.com>
39018
39019         xfreopen: new module, from coreutils
39020         * modules/xfreopen: New module.
39021         * lib/xfreopen.c: New file.
39022         * lib/xfreopen.h: New file.
39023         * MODULES.html.sh (File stream based Input/Output"): Add it.
39024
39025 2009-11-19  Eric Blake  <ebb9@byu.net>
39026
39027         manywarnings: depend on warnings
39028         * modules/manywarnings (Depends-on): Add warnings.
39029
39030         build: avoid compiler warnings
39031         * lib/select.c (rpl_select): Delete unused variable.
39032         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
39033
39034 2009-11-18  Eric Blake  <ebb9@byu.net>
39035
39036         tests: avoid false negative with --with-packager
39037         * tests/test-version-etc.sh: Discard packager information.
39038         * tests/test-argp-version-etc-1.sh: Likewise.
39039         Reported by Mike Frysinger.
39040
39041         utimens: fix regression on Solaris
39042         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
39043         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
39044         can only change fd timestamps via futimesat.  Instead, use an
39045         additional witness macro to avoid BSD bug.
39046         Reported by Jim Meyering.
39047
39048 2009-11-17  Eric Blake  <ebb9@byu.net>
39049
39050         usleep: use it to simplify tests
39051         * modules/stat-time-tests (Depends-on): Add usleep.
39052         (configure.ac): Drop usleep check.
39053         * modules/chown-tests (Depends-on, configure.ac): Likewise.
39054         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
39055         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
39056         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
39057         * modules/openat-tests (Depends-on, configure.ac): Likewise.
39058         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
39059         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
39060         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
39061         Likewise.
39062         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
39063         * tests/test-lchown.h (nap): Likewise.
39064         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
39065         * tests/test-stat-time.c (nap): Likewise.
39066         * tests/test-utimens-common.h (nap): Update comments.
39067
39068         usleep: new module
39069         * modules/usleep: New file.
39070         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
39071         * lib/usleep.c (usleep): Likewise.
39072         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39073         * modules/unistd (Makefile.am): Substitute witnesses.
39074         * lib/unistd.in.h (usleep): Add declaration.
39075         * doc/pastposix-functions/usleep.texi (usleep): Document this.
39076         * MODULES.html.sh (Date and time): Likewise.
39077         * modules/usleep-tests (Depends-on): New test.
39078         * tests/test-usleep.c: New file.
39079
39080         chown: work around OpenBSD bug
39081         * lib/chown.c (rpl_chown): Work around the bug.
39082         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
39083         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
39084         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
39085         * modules/chown (Depends-on): Add stdbool.
39086         * modules/lchown (Depends-on): Likewise.
39087         * doc/posix-functions/chown.texi (chown): Document the bug.
39088         * doc/posix-functions/lchown.texi (lchown): Likewise.
39089         * tests/test-lchown.h (test_chown): Relax test.
39090
39091         mkstemp: avoid conflict with C++ keyword template
39092         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
39093         * lib/mkostemp.c (mkostemp): Likewise.
39094         * lib/mkostemps.c (mkostemps): Likewise.
39095         * lib/mkstemp.c (mkstemp): Likewise.
39096         * lib/mkstemps.c (mkstemps): Likewise.
39097
39098         xalloc-die-tests: optimize
39099         * tests/test-xalloc-die.sh: Reduce number of processes.
39100
39101 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39102
39103         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
39104         patch from ludo@gnu.org (Ludovic Courtès).
39105
39106 2009-11-17  Jim Meyering  <meyering@redhat.com>
39107
39108         version-etc: use proper license string
39109         * modules/version-etc (License): Use LGPL, not LGPLv3+.
39110         * modules/version-etc-fsf: Likewise.
39111
39112 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39113
39114         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
39115         printed to stdout.  Deal with EOL differences.
39116
39117 2009-11-17  Eric Blake  <ebb9@byu.net>
39118
39119         unsetenv: work around Solaris bug
39120         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
39121         * lib/unsetenv.c (rpl_unsetenv): Work around it.
39122         Reported by Jim Meyering.
39123
39124         vasnprintf: avoid compiler warnings
39125         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
39126         variables.
39127         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
39128
39129 2009-11-17  Simon Josefsson  <simon@josefsson.org>
39130
39131         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
39132         settings since xalloc-die is no longer the self test,
39133         xalloc-die.sh is.
39134
39135 2009-11-17  Jim Meyering  <meyering@redhat.com>
39136
39137         test-xalloc-die.sh: make the code agree with the commit log
39138         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
39139         at the end, just in case you happen to have a test-xalloc-die
39140         program in some other PATH directory.
39141
39142         test-xalloc-die.sh: fix a portability bug
39143         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
39144         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
39145         Otherwise, argv[0] (as often seen in diagnostics) would be too
39146         system-dependent, sometimes with, and sometimes without the leading "./".
39147
39148         version-etc-fsf: relax license to LGPLv3+
39149         * modules/version-etc-fsf (License): Relax license.
39150
39151 2009-11-16  Eric Blake  <ebb9@byu.net>
39152
39153         xalloc-die-tests: avoid printing null pointer
39154         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
39155         shell script.
39156         * tests/test-xalloc-die.c (program_name): Declare.
39157         * tests/test-xalloc-die.sh (tmpfiles): New file.
39158
39159         setenv, unsetenv: work around various bugs
39160         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
39161         (setenv) [HAVE_SETENV]: Work around bugs.
39162         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
39163         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
39164         for bugs.
39165         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
39166         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
39167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
39168         * modules/stdlib (Makefile.am): Update substitutions.
39169         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
39170         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
39171         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39172         * modules/setenv-tests: New test.
39173         * modules/unsetenv-tests: Likewise.
39174         * tests/test-setenv.c: New file.
39175         * tests/test-unsetenv.c: Likewise.
39176
39177 2009-11-16  Jim Meyering  <meyering@redhat.com>
39178
39179         version-etc: relax license to LGPLv3+
39180         * modules/version-etc (License): Relax license.
39181
39182         better AC_REQUIRE expanded-before-required-warning avoidance
39183         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
39184         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
39185         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
39186         which is no longer needed.
39187
39188 2009-11-16  Eric Blake  <ebb9@byu.net>
39189
39190         test-freading: clean up temporary file
39191         * tests/test-freading.c (main): Remove file on success, and use
39192         ASSERT more liberally.
39193         Reported by Jim Meyering.
39194
39195 2009-11-16  Jim Meyering  <meyering@redhat.com>
39196
39197         avoid new AC_REQUIRE expanded-before-required warnings
39198         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
39199         merely using it.
39200         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
39201         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
39202
39203 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39204
39205         * tests/test-xalloc-die.c: New file.
39206         * modules/xalloc-die-tests: New file.
39207         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
39208         XFAIL_TESTS so it can be appended by modules.
39209
39210 2009-11-15  Simon Josefsson  <simon@josefsson.org>
39211
39212         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
39213         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
39214
39215 2009-11-14  Eric Blake  <ebb9@byu.net>
39216
39217         fnmatch: avoid compiler warning
39218         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
39219         to silence compiler warning about mismatch signedness in ?:.
39220         Reported by Robert Millan.
39221
39222         intprops: add double-inclusion guard
39223         * lib/intprops.h: Allow idempotent includes.
39224         Suggested by Bruce Korb.
39225
39226         openat: detect Solaris fchownat bug
39227         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
39228         penalizing glibc chownat when only lchownat is broken.
39229         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
39230         trailing slash bugs.
39231         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
39232         * modules/openat-tests (Files): Include more files.
39233         (Depends-on): Add mgetgroups, sleep, stat-time.
39234         (configure.ac): Add additional checks.
39235         (Makefile.am): Build new test.
39236         * tests/test-fchownat.c: New file.
39237
39238         lchown: detect Solaris and FreeBSD bug
39239         * lib/lchown.c (rpl_lchown): Work around bug.
39240         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
39241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39242         * modules/unistd (Makefile.am): Populate it.
39243         * lib/unistd.in.h (lchown): Update declaration.
39244         * doc/posix-functions/lchown.texi (lchown): Document the bug.
39245         * modules/lchown-tests: New file.
39246         * tests/test-lchown.h (test_lchown): Likewise.
39247         * tests/test-lchown.c (main): Likewise.
39248
39249         chown: detect Solaris and FreeBSD bug
39250         * lib/chown.c (rpl_chown): Work around bug.
39251         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
39252         (gl_PREREQ_CHOWN): Delete.
39253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39254         * modules/unistd (Makefile.am): Populate it.
39255         * lib/unistd.in.h (chown): Update declaration.
39256         * lib/lchown.c (chown): Update client.
39257         * modules/lchown (Depends-on): Add lstat.
39258         * doc/posix-functions/chown.texi (chown): Document the bug.
39259         * doc/posix-functions/getgroups.texi (getgroups): Document
39260         getgroups pitfall.
39261         * modules/chown-tests: New file.
39262         * tests/test-chown.h (test_chown): Likewise.
39263         * tests/test-chown.c (main): Likewise.
39264
39265 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
39266
39267         gnulib-tool: correctly detect absence of m4 directories
39268         * gnulib-tool: Avoid extra newline on data passed to wc -l.
39269
39270 2009-11-14  Jim Meyering  <meyering@redhat.com>
39271
39272         maint.mk: Prohibit inclusion of "xalloc.h" without use.
39273         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39274
39275 2009-11-14  John W. Eaton  <jwe@gnu.org>
39276
39277         strftime.h: wrap function declaration in extern "C" block
39278         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
39279
39280 2009-11-13  Eric Blake  <ebb9@byu.net>
39281
39282         getgroups: avoid compiler warning
39283         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
39284
39285         getgroups: work around FreeBSD bug
39286         * lib/getgroups.c (rpl_getgroups): Work around the bug.
39287         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
39288         * doc/posix-functions/getgroups.texi (getgroups): Document it.
39289         * tests/test-getgroups.c (main): Fix buffer overrun.
39290
39291         getgroups: avoid compilation failure
39292         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
39293         * modules/getgroups (Depends-on): Add stdint.
39294
39295 2009-11-13  Jim Meyering  <meyering@redhat.com>
39296
39297         test-getgroups: avoid compilation failure
39298         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
39299
39300 2009-11-13  Eric Blake  <ebb9@byu.net>
39301
39302         mgetgroups: new module, taken from coreutils
39303         * modules/mgetgroups: New file.
39304         * lib/mgetgroups.h: Likewise.
39305         * lib/mgetgroups.c (mgetgroups): Likewise.
39306         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
39307         * MODULES.html.sh (Users and groups): Mention it.
39308
39309         getgroups: don't expose GETGROUPS_T to user
39310         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
39311         an element at a time if GETGROUPS_T is wrong size.
39312         * lib/getugroups.h (getugroups): Change signature.
39313         * lib/unistd.in.h (getgroups): Likewise.
39314         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39315         signature needs fixing.
39316         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39317         AC_TYPE_GETGROUPS.
39318         * modules/group-member (Depends-on): Add getgroups.
39319         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39320         (group_member): Rely on getgroups replacement.
39321         * lib/getugroups.c (getugroups): Use gid_t.
39322         * tests/test-getgroups.c (main): Likewise.
39323         * NEWS: Mention the signature change.
39324         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39325         problem with signature.
39326         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39327         GETGROUPS_T is still useful for setgroups.
39328
39329         getgroups, getugroups: provide stubs for mingw
39330         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39331         * lib/getugroups.c (getugroups): Likewise.
39332         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39333         function.  Modernize replacement scheme.
39334         (gl_PREREQ_GETGROUPS): Delete.
39335         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39336         * modules/getgroups (configure.ac): Declare witness.
39337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39338         * modules/unistd (Depends-on): Substitute witness.
39339         * lib/unistd.in.h (getgroups): Declare replacement.
39340
39341         getgroups: avoid calling exit
39342         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39343         drop xalloc.
39344         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39345         dependencies.
39346         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39347         exiting, in the rare case of malloc failure.
39348
39349         getgroups: fix logic error
39350         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39351         has more than 20 groups.
39352         * modules/getgroups-tests: New test.
39353         * tests/test-getgroups.c: New file.
39354
39355 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39356
39357         * tests/test-base64.c: Improve.
39358
39359 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39360
39361         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39362         Blake <ebb9@byu.net>.
39363
39364 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39365
39366         * tests/test-xvasprintf.c: Add %s%s related checks.
39367
39368 2009-11-12  Eric Blake  <ebb9@byu.net>
39369
39370         version-etc: match standards.texi style
39371         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39372         and use <> only for URLs.
39373
39374 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39375
39376         fts: do not fail on a submount during traversal
39377         * lib/fts.c (fts_build): Read the stat info again after opening
39378         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39379         Original report at http://bugzilla.redhat.com/501848.
39380
39381 2009-11-12  Jim Meyering  <meyering@redhat.com>
39382
39383         bootstrap: sync from coreutils
39384         * build-aux/bootstrap (bootstrap_epilogue): New function.
39385         Use git_modules_config in one more place.  This make bootstrap's
39386         --gnulib-srcdir option more useful for testing.
39387
39388         bootstrap: generalize autoheader check
39389         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39390         AC_CONFIG_HEADERS.
39391
39392 2009-11-11  Eric Blake  <ebb9@byu.net>
39393
39394         mkfifoat: use new modules for Solaris and BSD bugs
39395         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39396         * lib/mkfifoat.c (mknodat): Split...
39397         * lib/mknodat.c (mknodat): ...into new file.
39398         * modules/mkfifoat (Files): Ship new file.
39399         (Depends-on): Add mkfifo, mknod.
39400         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39401         (Depends-on): Add symlink.
39402         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39403         redundant with test_mkfifo.h.
39404         (do_mkfifoat, do_mknodat): New helpers.
39405
39406         mknod: new module
39407         * modules/mknod: New file.
39408         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39409         * lib/mknod.c (mknod): Likewise.
39410         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39411         defaults.
39412         * modules/sys_stat (Makefile.am): Substitute them.
39413         * lib/sys_stat.in.h (mknod): Declare replacement.
39414         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39415         Document it.
39416         * doc/posix-functions/mknod.texi (mknod): Likewise.
39417         * modules/mknod-tests: New test.
39418         * tests/test-mknod.c: Likewise.
39419
39420         mkfifo: new module
39421         * modules/mkfifo: New file.
39422         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39423         * lib/mkfifo.c (mkfifo): Likewise.
39424         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39425         defaults.
39426         * modules/sys_stat (Makefile.am): Substitute them.
39427         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39428         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39429         Document it.
39430         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39431         * modules/mkfifo-tests: New test.
39432         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39433         from test-mkfifoat.c.
39434         * tests/test-mkfifo.c: New file.
39435
39436         readlink: detect FreeBSD bug
39437         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39438         slash on symlink.
39439         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39440         * tests/test-readlink.h (test_readlink): Enhance test.
39441
39442         symlink: detect FreeBSD bug
39443         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39444         slash on symlink.
39445         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39446         * tests/test-symlink.h (test_symlink): Enhance test.
39447
39448 2009-11-10  Eric Blake  <ebb9@byu.net>
39449
39450         link: detect FreeBSD bug
39451         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39452         symlink.
39453         * doc/posix-functions/link.texi (link): Document the bug.
39454         * tests/test-link.h (test_link): Enhance test.
39455         * tests/test-linkat.c (main): Update caller.
39456
39457         unlink, remove: detect FreeBSD bug
39458         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39459         slash on symlink.
39460         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39461         * doc/posix-functions/remove.texi (remove): Likewise.
39462         * tests/test-unlink.h (test_unlink): Enhance test.
39463         * tests/test-remove.c (main): Likewise.
39464
39465 2009-11-09  Eric Blake  <ebb9@byu.net>
39466
39467         rename: detect FreeBSD bug
39468         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39469         slash on symlink.
39470         * modules/renameat-tests (Depends-on): Add filenamecat.
39471         * tests/test-rename.h (test_rename): Allow one more errno.
39472         * tests/test-renameat.c (main): Likewise.
39473         * doc/posix-functions/rename.texi (rename): Document the bug.
39474
39475         open: detect FreeBSD bug
39476         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39477         symlink.
39478         * doc/posix-functions/open.texi (open): Document the bug.
39479         * doc/posix-functions/utimes.texi (utimes): Likewise.
39480         * tests/test-open.h (test_open): Add parameters, and test symlink
39481         handling.
39482         * tests/test-open.c (main): Adjust caller.
39483         * tests/test-fcntl-safer.c (main): Likewise.
39484         * modules/open-tests (Depends-on): Add stdbool, symlink.
39485         * modules/fcntl-safer-tests (Depends-on): Likewise.
39486         * tests/test-openat.c (main): Add test-open tests.
39487
39488         stat: detect FreeBSD bug
39489         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39490         symlink.
39491         * doc/posix-functions/stat.texi (stat): Document the bug.
39492         * tests/test-stat.h (test_stat_func): Add argument.
39493         * tests/test-stat.c (main): Adjust caller.
39494         * tests/test-fstatat.c (main): Likewise.
39495         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39496         Reported by Jim Meyering.
39497
39498 2009-11-09  James Youngman  <jay@gnu.org>
39499
39500         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39501         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39502
39503 2009-11-08  Jim Meyering  <meyering@redhat.com>
39504
39505         utimens: remove invalid futimesat call
39506         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39507         It used the file descriptor of the target file as the DIR_FD
39508         parameter and NULL as the file name.  That caused failure with
39509         errno == EFAULT on FreeBSD-8.0-rc2
39510
39511 2009-11-07  Eric Blake  <ebb9@byu.net>
39512
39513         fflush, freadseek: use fseeko, not fseek
39514         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39515         (clear_ungetc_buffer): Avoid potential problems on large files.
39516         * lib/freadseek.c (freadseek): Likewise.
39517         * modules/freadseek (Depends-on): Add fseeko.
39518         * modules/fseek (configure.ac): Set a witness.
39519         * tests/test-fflush.c (main): Use fseeko.
39520         * tests/test-fpurge.c (fseek): Disable link warning.
39521         * tests/test-freadable.c (fseek): Likewise.
39522         * tests/test-freading.c (fseek): Likewise.
39523         * tests/test-fseeko.c (fseek): Likewise.
39524         * tests/test-ftell.c (fseek): Likewise.
39525         * tests/test-ftello.c (fseek): Likewise.
39526         * tests/test-fwritable.c (fseek): Likewise.
39527         * tests/test-fwriting.c (fseek): Likewise.
39528
39529 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39530
39531         * modules/memchr (Depends-on): Drop getpagesize dependency.
39532
39533 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39534
39535         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39536         Reported by Ludovic Courtès.
39537         * build-aux/pmccabe2html: Improve example usage.
39538         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39539
39540 2009-11-06  Jim Meyering  <meyering@redhat.com>
39541
39542         do-release-commit-and-tag: New module.
39543         Automate the release-commit and tag process.
39544         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39545         * modules/do-release-commit-and-tag: New file.
39546         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39547
39548 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39549
39550         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39551         because test-select.c uses inet_pton.
39552
39553 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39554
39555         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39556         GETADDRINFO_LIB.  Bump serial number.
39557         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39558         Suggested by Eric Blake <ebb9@byu.net>.
39559
39560 2009-11-05  Eric Blake  <ebb9@byu.net>
39561
39562         strtod: detect darwin bug
39563         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39564         Reported by Leo Davis.
39565
39566         freopen-safer: new module
39567         * modules/freopen-safer: New module.
39568         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39569         * lib/freopen-safer.c (freopen_safer): New file.
39570         * lib/stdio-safer.h (freopen_safer): New declaration.
39571         * lib/stdio--.h (freopen): New override.
39572         * MODULES.html.sh (File stream based Input/Output): Mention it.
39573         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39574         freopen-safer module.
39575         * doc/posix-functions/stderr.texi (stderr): Likewise.
39576         * doc/posix-functions/stdin.texi (stdin): Likewise.
39577         * doc/posix-functions/stdout.texi (stdout): Likewise.
39578         * modules/freopen-safer-tests: New test.
39579         * tests/test-reopen-safer.c: New file.
39580
39581 2009-11-05  Jim Meyering  <meyering@redhat.com>
39582
39583         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39584         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39585
39586 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39587
39588         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39589
39590 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39591
39592         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39593
39594 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39595
39596         Fix link error.
39597         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39598         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39599
39600 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39601
39602         * tests/test-func.c: Also test value of __func__.
39603
39604 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39605
39606         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39607         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39608
39609 2009-11-05  Bruno Haible  <bruno@clisp.org>
39610
39611         Fix link error.
39612         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39613         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39614         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39615
39616 2009-11-05  Bruno Haible  <bruno@clisp.org>
39617
39618         Tests for module 'inet_pton'.
39619         * modules/inet_pton-tests: New file.
39620         * tests/test-inet_pton.c: New file.
39621
39622 2009-11-05  Bruno Haible  <bruno@clisp.org>
39623
39624         Tests for module 'inet_ntop'.
39625         * modules/inet_ntop-tests: New file.
39626         * tests/test-inet_ntop.c: New file.
39627
39628 2009-11-04  Eric Blake  <ebb9@byu.net>
39629
39630         stdlib-safer: wrap all mkstemp variants
39631         * modules/mkostemp (configure.ac): Set witness.
39632         * modules/mkostemps (configure.ac): Likewise.
39633         * modules/mkstemps (configure.ac): Likewise.
39634         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39635         (mkstemps_safer): Wrap more functions.
39636         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39637         wrapping.
39638         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39639         (mkstemps_safer): Implement the wrappers.
39640
39641         mkstemps, mkostemps: new modules
39642         * modules/mkostemps: New module.
39643         * modules/mkstemps: Likewise.
39644         * lib/mkostemps.c (mkostemps): New file.
39645         * lib/mkstemps.c (mkstemps): Likewise.
39646         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39647         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39649         * modules/stdlib (Makefile.am): Substitute them.
39650         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39651         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39652         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39653         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39654         * MODULES.html.sh (File system functions): Mention them.
39655
39656         tempname: resync from glibc
39657         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39658         same values for __GT_FILE as glibc.  Abort even when assertions
39659         are disabled.
39660         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39661         match its value otherwise.  Allow idempotent inclusion.
39662         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39663         * lib/mkostemp.c (mkostemp): Likewise.
39664         * lib/mkstemp.c (mkstemp): Likewise.
39665         * lib/tmpfile.c (tmpfile): Likewise.
39666         * NEWS: Document this.
39667
39668         utimens: fix use of futimens on older Linux
39669         * lib/utimens.c (fdutimens): Use updated, rather than original,
39670         timespec to avoid bug in older Linux kernel.
39671         Reported by Simon Josefsson.
39672
39673 2009-11-04  Bruno Haible  <bruno@clisp.org>
39674
39675         Make num_processors more flexible and consistent.
39676         * lib/nproc.h (enum nproc_query): New type.
39677         (num_processors): Add a 'query' argument.
39678         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39679         (num_processors): Add a 'query' argument. Test the value of the
39680         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39681         mingw, count the number of CPUs available for the current process.
39682         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39683         Check for sched_getaffinity and sched_getaffinity_np.
39684         * modules/nproc (Depends-on): Add c-ctype, extensions.
39685         * NEWS: Mention the change.
39686
39687 2009-11-03  Bruno Haible  <bruno@clisp.org>
39688
39689         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39690
39691 2009-11-03  Jim Meyering  <meyering@redhat.com>
39692
39693         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39694         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39695         if it is defined.
39696
39697 2009-11-02  Eric Blake  <ebb9@byu.net>
39698
39699         mktime, timegm: share common declaration
39700         * lib/mktime-internal.h: New file.
39701         * lib/mktime.c: Use it rather than open-coding a declaration.
39702         * lib/timegm.c: Likewise.
39703         * modules/mktime (Files): Ship it.
39704         * modules/timegm (Files): Likewise.
39705         Suggested by Bruno Haible.
39706
39707         test-update-copyright: update test to match script changes
39708         * tests/test-update-copyright.sh: Avoid hard-coding perl
39709         location.  Don't update *.bak created by earlier runs.
39710
39711 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39712             Simon Josefsson  <simon@josefsson.org>
39713             Bruno Haible  <bruno@clisp.org>
39714
39715         Fix link error on Solaris 8.
39716         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39717         also in libnsl. Define also INET_PTON_LIB.
39718         * modules/inet_pton (Link): New section.
39719
39720 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39721             Bruno Haible  <bruno@clisp.org>
39722
39723         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39724         * modules/inet_ntop (Link): New section.
39725         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39726
39727 2009-11-02  Eric Blake  <ebb9@byu.net>
39728
39729         maint: avoid compiler warnings in m4 macros
39730         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39731         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39732
39733 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39734
39735         * m4/pmccabe2html.m4: Remove file.
39736         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39737         function.  Change maintainer.
39738         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39739         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39740         Courtès).
39741
39742 2009-10-31  Eric Blake  <ebb9@byu.net>
39743
39744         fseeko: fix m4 regression
39745         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39746         regression from 2009-10-27.
39747         Reported by Ralf Wildenhues.
39748
39749 2009-10-31  Jim Meyering  <meyering@redhat.com>
39750
39751         inttostr: aesthetics and improved (compile-time) safety
39752         Define inttype_is_signed rather than inttype_is_unsigned,
39753         since the sole use is via "#if inttype_is_signed".
39754         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39755         inttype_is_unsigned.
39756         * lib/offtostr.c (inttype_is_signed): Likewise.
39757         * lib/uinttostr.c (inttype_is_signed): Likewise.
39758         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39759         * lib/inttostr.c (inttostr): Use verify to cross-check the
39760         inttype_is_signed value and the signedness of the actual type.
39761         * modules/inttostr (Depends-on): Add verify.
39762
39763 2009-10-30  Eric Blake  <ebb9@byu.net>
39764
39765         build: avoid compiler warnings
39766         * lib/fchmodat.c (lchmod): Mark unused variables.
39767         * lib/getopt.c (_getopt_initialize): Likewise.
39768         * lib/mktime.c (__mktime_internal): Provide prototype.
39769         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39770         older gcc that do not understand #pragma GCC diagnostic.
39771         * lib/uinttostr.c (inttype_is_unsigned): Define.
39772         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39773
39774 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39775
39776         stat: fix compilation on AIX
39777         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39778         only see struct stat64.
39779
39780 2009-10-30  Eric Blake  <ebb9@byu.net>
39781
39782         exclude: make more robust
39783         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39784         rather than masking a coding bug.
39785         Suggested by Bruno Haible.
39786
39787 2009-10-30  Jim Meyering  <meyering@redhat.com>
39788
39789         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39790         Rather than putting #!/usr/bin/perl on the first line,
39791         start with a variant of what's recommended by "man perlrun" that
39792         invokes the first "perl" program from your shell's search path.
39793         * build-aux/gitlog-to-changelog: Replace #!... as above.
39794         Add a "Local Variables" perl mode setting.
39795         Prompted by a patch from Ludovic Courtès.
39796         Improved by Eric Blake.
39797         * build-aux/useless-if-before-free: Likewise.
39798         * build-aux/announce-gen: Likewise.
39799         * build-aux/update-copyright: Likewise.
39800
39801 2009-10-29  Eric Blake  <ebb9@byu.net>
39802
39803         filenamecat-lgpl: adjust clients
39804         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39805         filenamecat.
39806         * modules/renameat (Depends-on): Likewise.
39807
39808         filenamecat: split into filenamecat-lgpl
39809         * modules/filenamecat-lgpl: New module.
39810         * modules/filenamecat (Files): Move library-safe files into
39811         filenamecat-lgpl.
39812         (Depends-on): Add filenamecat-lgpl.
39813         (configure.ac): Declare witness.
39814         * lib/filenamecat.h (file_name_concat): Only declare when using
39815         GPL module.
39816         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39817         Move...
39818         * lib/filenamecat-lgpl.c: ...into new file.
39819         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39820         (gl_FILE_NAME_CONCAT): Use it.
39821         * MODULES.html.sh (File system functions): Mention new module.
39822
39823         argp: avoid memory leak
39824         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39825         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39826         base_name, since the latter malloc()s and can call exit().
39827         Leak introduced 2006-07-03.
39828
39829         dirname-lgpl: adjust clients that don't need full dirname
39830         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39831         * modules/filenamecat (Depends-on): Likewise.
39832         * modules/linkat (Depends-on): Likewise.
39833         * modules/mkancesdirs (Depends-on): Likewise.
39834         * modules/mkdir (Depends-on): Likewise.
39835         * modules/openat (Depends-on): Likewise.
39836         * modules/savewd (Depends-on): Likewise.
39837         * modules/rename (Depends-on): Likewise.
39838         (License): Relax license.
39839         * modules/mkdir-tests (Depends-on): Drop progname.
39840         (Makefile.am): Delete unneeded LDADD.
39841         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39842
39843         dirname: split into dirname-lgpl
39844         * modules/dirname-lgpl: New module.
39845         * modules/dirname (Files): Move library-safe files into
39846         dirname-lgpl.
39847         (Depends-on): Add dirname-lgpl.
39848         (configure.ac): Declare witness.
39849         * modules/double-slash-root (License): Relax license.
39850         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39851         module.
39852         * lib/dirname.c (dir_len, mdir_name): Move...
39853         * lib/dirname-lgpl.c: ...into new file.
39854         * lib/basename.c (last_component, base_len): Move...
39855         * lib/basename-lgpl.c: ...into new file.
39856         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39857         (gl_DIRNAME): Use it.
39858         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39859         Mention new module.
39860         * modules/dirname-tests (Depends-on): Add progname.
39861         * tests/test-dirname.c (program_name): Delete.
39862
39863         mkdir: make safe for libraries
39864         * modules/mkdir (Depends-on): Drop xalloc.
39865         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39866         exit.
39867
39868         tests: avoid some compiler warnings
39869         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39870         literals.
39871         * tests/test-memchr.c (main): Avoid type mismatch.
39872         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39873         * tests/test-base64.c (main): Likewise.
39874         * tests/test-getdelim.c (main): Likewise.
39875         * tests/test-gethostname.c (main): Likewise.
39876         * tests/test-getline.c (main): Likewise.
39877         * tests/test-netinet_in.c (main): Likewise.
39878         * tests/test-select.c (open_server_socket, main): Likewise.
39879         * tests/test-select-stdin.c (main): Likewise.
39880         * tests/test-sockets.c (main): Likewise.
39881         * tests/test-strsignal.c (main): Likewise.
39882         * tests/test-sys_select.c (main): Likewise.
39883         * tests/test-sys_socket.c (main): Likewise.
39884         * tests/test-u64.c (main): Likewise.
39885         * tests/test-xfprintf-posix.c (main): Likewise.
39886         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39887
39888         sockets: avoid compiler warning
39889         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39890
39891         maint: detect usage(1) and other suspicious exits
39892         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39893
39894 2009-10-29  Jim Meyering  <meyering@redhat.com>
39895
39896         timespec: long-to-int truncation could make timespec_cmp malfunction
39897         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39898         a multiple of 2^32 nanoseconds as no difference.
39899
39900 2009-10-28  Jim Meyering  <meyering@redhat.com>
39901
39902         fprintftime: wrap macro code argument in "do {...} while(0)"
39903         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39904         cpy macro must be a statement that can be followed by a semicolon.
39905         Now that the else clause contains a comment and is hence longer
39906         than one line, I require curly braces.  That in turn requires
39907         that we wrap this code block in the standard do...while(0).
39908
39909         fprintftime: remove stray semicolon from previous change
39910         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39911
39912         fprintftime: avoid a warning about ignored fwrite return value
39913         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39914         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39915         that is unsafe.
39916         * modules/fprintftime (Depends-on): Add ignore-value.
39917
39918         exclude: avoid an unwarranted warning
39919         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39920
39921 2009-10-27  Eric Blake  <ebb9@byu.net>
39922
39923         fseek: avoid compilation failure when fflush is replaced
39924         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39925         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39926         module is in use.
39927         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39928         module is not in use; since REPLACE_FSEEK worked otherwise.
39929         (GNULIB_FTELLO): Likewise for ftell.
39930         Reported by Ian Beckwith and others.
39931
39932 2009-10-27  Bruno Haible  <bruno@clisp.org>
39933
39934         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39935         Reported by Jim Meyering.
39936
39937 2009-10-27  Jim Meyering  <jim@meyering.net>
39938             Bruno Haible  <bruno@clisp.org>
39939
39940         Avoid warning despite dropping the return value of fwrite.
39941         * lib/unicodeio.c: Include ignore-value.h.
39942         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39943         * modules/unicodeio (Depends-on): Add ignore-value.
39944
39945 2009-10-26  Eric Blake  <ebb9@byu.net>
39946
39947         areadlinkat: fix fallback path
39948         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39949         pointer and zero.
39950
39951 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39952
39953         Use a better IO block size for modern systems
39954         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39955         * lib/md2.c: Likewise.
39956         * lib/md4.c: Likewise.
39957         * lib/md5.c: Likewise.
39958         * lib/sha1.c: Likewise.
39959         * lib/sha256.c: Likewise.
39960         * lib/sha512.c: Likewise.
39961
39962 2009-10-22  Eric Blake  <ebb9@byu.net>
39963
39964         tests: avoid several compiler warnings
39965         * tests/test-getcwd.c (main): Avoid buffer underflow.
39966         * tests/test-getdate.c (main): String literals are not safe with
39967         putenv, so use setenv.  Declare unused argument.
39968         * modules/getdate-tests (Depends-on): Add setenv.
39969         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39970         problems with string literals in char *.
39971         * tests/test-hash.c (main): Avoid shadowing declaration.
39972         (insert_new): Treat string literals as char const *.
39973         * tests/test-getopt.h (test_getopt): Likewise.
39974         (getopt_loop): Alter types to minimize casting elsewhere.
39975         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39976         (test_getopt_long_posix): Likewise.
39977         (do_getopt_long): Add wrapper to minimize casting.
39978         * tests/test-atexit.c (clear_temp_file): Use void.
39979         * tests/test-areadlink-with-size.c (main): Declare unused
39980         arguments.
39981         * tests/test-areadlink.c (main): Likewise.
39982         * tests/test-areadlinkat-with-size.c (main): Likewise.
39983         * tests/test-areadlinkat.c (main): Likewise.
39984         * tests/test-canonicalize-lgpl.c (main): Likewise.
39985         * tests/test-canonicalize.c (main): Likewise.
39986         * tests/test-dirent-safer.c (main): Likewise.
39987         * tests/test-dirname.c (main): Likewise.
39988         * tests/test-dup2.c (main): Likewise.
39989         * tests/test-fchdir.c (main): Likewise.
39990         * tests/test-fcntl-h.c (main): Likewise.
39991         * tests/test-fcntl-safer.c (main): Likewise.
39992         * tests/test-fdopendir.c (main): Likewise.
39993         * tests/test-fdutimensat.c (main): Likewise.
39994         * tests/test-fflush.c (main): Likewise.
39995         * tests/test-filenamecat.c (main): Likewise.
39996         * tests/test-filevercmp.c (main): Likewise.
39997         * tests/test-fopen-safer.c (main): Likewise.
39998         * tests/test-fopen.c (main): Likewise.
39999         * tests/test-fpending.c (main): Likewise.
40000         * tests/test-fpurge.c (main): Likewise.
40001         * tests/test-freading.c (main): Likewise.
40002         * tests/test-fstatat.c (main): Likewise.
40003         * tests/test-fsync.c (main): Likewise.
40004         * tests/test-futimens.c (main): Likewise.
40005         * tests/test-getndelim2.c (main): Likewise.
40006         * tests/test-gettimeofday.c (main): Likewise.
40007         * tests/test-getopt.c (main): Likewise.
40008         * tests/test-i-ring.c (main): Likewise.
40009         * tests/test-inttypes.c (main): Likewise.
40010         * tests/test-link.c (main): Likewise.
40011         * tests/test-lstat.c (main): Likewise.
40012         * tests/test-math.c (main): Likewise.
40013         * tests/test-md5.c (main): Likewise.
40014         * tests/test-memchr2.c (main): Likewise.
40015         * tests/test-memrchr.c (main): Likewise.
40016         * tests/test-mkdir.c (main): Likewise.
40017         * tests/test-mkdirat.c (main): Likewise.
40018         * tests/test-mkfifoat.c (main): Likewise.
40019         * tests/test-open.c (main): Likewise.
40020         * tests/test-openat-safer.c (main): Likewise.
40021         * tests/test-openat.c (main): Likewise.
40022         * tests/test-quotearg.c (main): Likewise.
40023         * tests/test-rawmemchr.c (main): Likewise.
40024         * tests/test-readlink.c (main): Likewise.
40025         * tests/test-remove.c (main): Likewise.
40026         * tests/test-rename.c (main): Likewise.
40027         * tests/test-renameat.c (main): Likewise.
40028         * tests/test-rmdir.c (main): Likewise.
40029         * tests/test-sha1.c (main): Likewise.
40030         * tests/test-signal.c (main): Likewise.
40031         * tests/test-sigaction.c (main): Likewise.
40032         * tests/test-stat.c (main): Likewise.
40033         * tests/test-stat-time.c (main): Likewise.
40034         * tests/test-stddef.c (main): Likewise.
40035         * tests/test-stdint.c (main): Likewise.
40036         * tests/test-stdio.c (main): Likewise.
40037         * tests/test-stdlib.c (main): Likewise.
40038         * tests/test-strchrnul.c (main): Likewise.
40039         * tests/test-strerror.c (main): Likewise.
40040         * tests/test-string.c (main): Likewise.
40041         * tests/test-strtod.c (main): Likewise.
40042         * tests/test-strverscmp.c (main): Likewise.
40043         * tests/test-symlink.c (main): Likewise.
40044         * tests/test-symlinkat.c (main): Likewise.
40045         * tests/test-sys_stat.c (main): Likewise.
40046         * tests/test-sys_time.c (main): Likewise.
40047         * tests/test-time.c (main): Likewise.
40048         * tests/test-unistd.c (main): Likewise.
40049         * tests/test-unlink.c (main): Likewise.
40050         * tests/test-unlinkat.c (main): Likewise.
40051         * tests/test-utimens.c (main): Likewise.
40052         * tests/test-utimensat.c (main): Likewise.
40053         * tests/test-version-etc.c (main): Likewise.
40054         * tests/test-wchar.c (main): Likewise.
40055         * tests/test-wctype.c (main): Likewise.
40056         * tests/test-xprintf-posix.c (main): Likewise.
40057         * tests/test-posixtm.c (main): Likewise.
40058         (STREQ): Delete unused macro.
40059         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
40060         shadowed variables.
40061         * tests/test-memchr.c (main): Likewise.
40062
40063 2009-10-21  Eric Blake  <ebb9@byu.net>
40064
40065         areadlinkat: avoid failure on older glibc
40066         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
40067         rather than mis-comparing 0 against FUNC_RESULT of char*.
40068
40069 2009-10-21  Bruno Haible  <bruno@clisp.org>
40070
40071         * modules/stpncpy (License): Relicense under LGPLv2+.
40072         Reported by David Lutterkort <lutter@redhat.com>.
40073
40074 2009-10-20  Eric Blake  <ebb9@byu.net>
40075
40076         utimensat: work around Solaris 9 bug
40077         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
40078         has trailing slash bugs.
40079         * tests/test-lutimens.h (test_lutimens): Enhance test.
40080         * tests/test-utimens.h (test_utimens): Likewise.
40081         * doc/posix-functions/utime.texi (utime): Enhance documentation.
40082         * doc/posix-functions/utimes.texi (utimes): Likewise.
40083         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40084         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
40085         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
40086         * doc/posix-functions/futimens.texi (futimens): Likewise.
40087
40088         fdutimensat: new module
40089         * modules/fdutimensat: New file.
40090         * lib/fdutimensat.c (fdutimensat): Likewise.
40091         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
40092         * MODULES.html.sh (File system functions): Mention module.
40093         * modules/fdutimensat-tests: New test.
40094         * tests/test-fdutimensat.c: Likewise.
40095
40096         doc: regenerate INSTALL
40097         * doc/INSTALL: Reflect recent autoconf update.
40098         * doc/INSTALL.ISO: Likewise.
40099         * doc/INSTALL.UTF-8: Likewise.
40100
40101 2009-10-20  Pádraig Brady  <P@draigBrady.com>
40102
40103         acl: warn if ACL support is not detected
40104         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
40105
40106 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
40107
40108         * lib/nproc.h: Add extern "C" block for C++.
40109
40110 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
40111             Bruno Haible  <bruno@clisp.org>
40112
40113         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
40114         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
40115         * doc/posix-functions/isalpha.texi: Likewise.
40116         * doc/posix-functions/isblank.texi: Likewise.
40117         * doc/posix-functions/iscntrl.texi: Likewise.
40118         * doc/posix-functions/isdigit.texi: Likewise.
40119         * doc/posix-functions/isgraph.texi: Likewise.
40120         * doc/posix-functions/islower.texi: Likewise.
40121         * doc/posix-functions/isprint.texi: Likewise.
40122         * doc/posix-functions/ispunct.texi: Likewise.
40123         * doc/posix-functions/isspace.texi: Likewise.
40124         * doc/posix-functions/isupper.texi: Likewise.
40125         * doc/posix-functions/isxdigit.texi: Likewise.
40126
40127 2009-10-18  Bruno Haible  <bruno@clisp.org>
40128
40129         Tests for module 'isblank'.
40130         * modules/isblank-tests: New file.
40131         * tests/test-isblank.c: New file.
40132
40133         New module 'isblank'.
40134         * lib/isblank.c: New file.
40135         * m4/isblank.m4: New file.
40136         * modules/isblank: New file.
40137         * doc/posix-functions/isblank.texi: Mention the new module.
40138
40139 2009-10-18  Bruno Haible  <bruno@clisp.org>
40140
40141         New module 'ctype'.
40142         * lib/ctype.in.h: New file.
40143         * m4/ctype.m4: New file.
40144         * modules/ctype: New file.
40145         * doc/posix-headers/ctype.texi: Mention the new module.
40146
40147 2009-10-18  Jim Meyering  <meyering@redhat.com>
40148
40149         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
40150         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
40151         right after its initialization, rather than farther down.
40152         Keeping these in close proximity makes it easier to ensure
40153         that each such variable is initialized.  E.g.,
40154
40155             LIB_CLOCK_GETTIME=
40156             AC_SUBST([LIB_CLOCK_GETTIME])
40157
40158         This change also increments these serial numbers.
40159         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
40160         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40161         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40162
40163 2009-10-18  Bruno Haible  <bruno@clisp.org>
40164
40165         Don't let environment variables perturb build.
40166         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
40167         (gl_PREREQ_GETHRXTIME): ... not here.
40168
40169 2009-10-18  Bruno Haible  <bruno@clisp.org>
40170
40171         Avoid symlink attack in localcharset module.
40172         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
40173         (O_NOFOLLOW): Define fallback.
40174         (get_charset_aliases): Don't open the file if it is a symbolic link.
40175         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
40176         gl_FCNTL_H.
40177         (gl_FCNTL_H): Require it.
40178         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
40179         * modules/localcharset (Files): Add m4/fcntl_h.m4.
40180         Reported by Fergal Glynn <fglynn@veracode.com>.
40181
40182 2009-10-18  Bruno Haible  <bruno@clisp.org>
40183
40184         Implement nproc for mingw.
40185         * lib/nproc.c: Include <windows.h>
40186         (num_processors): On native Windows platforms, try GetSystemInfo.
40187
40188 2009-10-18  Bruno Haible  <bruno@clisp.org>
40189
40190         Implement nproc for IRIX.
40191         * lib/nproc.c: Include <sys/sysmp.h>.
40192         (num_processors): On IRIX systems, try sysmp.
40193         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
40194
40195 2009-10-18  Bruno Haible  <bruno@clisp.org>
40196
40197         Implement nproc for HP-UX.
40198         * lib/nproc.c: Include <sys/pstat.h>
40199         (num_processors): On HP-UX systems, try pstat_getdynamic.
40200         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
40201         pstat_getdynamic.
40202
40203 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
40204             Bruno Haible  <bruno@clisp.org>
40205
40206         Implement nproc for NetBSD, OpenBSD.
40207         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
40208         (ARRAY_SIZE): New macro.
40209         (num_processors): On BSD systems, try sysctl of HW_NCPU.
40210         * m4/nproc.m4: New file.
40211         * modules/nproc (Files): Add m4/nproc.m4.
40212         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
40213         (Makefile.am): Instead, augment lib_SOURCES.
40214
40215 2009-10-18  Bruno Haible  <bruno@clisp.org>
40216
40217         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
40218         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
40219         sys/param.h.
40220
40221 2009-10-16  Eric Blake  <ebb9@byu.net>
40222
40223         utimensat: new module
40224         * modules/utimensat: New file.
40225         * lib/utimensat.c (utimensat): Likewise.
40226         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40227         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
40228         so we can work around Linux bugs.
40229         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40230         * modules/sys_stat (Makefile.am): Substitute them.
40231         * lib/sys_stat.in.h (utimensat): Declare it.
40232         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40233         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40234         * modules/utimensat-tests: New test.
40235         * tests/test-utimensat.c: Likewise.
40236
40237         utimens: let lutimens work on non-symlinks
40238         * lib/utimens.c (lutimens): Fall back to utimens rather than
40239         failing with ENOSYS, when file is not a symlink.
40240         (utimens): Reduce redirection.
40241         * tests/test-lutimens.h (test_lutimens): Update test to cover
40242         non-symlinks.
40243         * tests/test-utimens.h (test_utimens): Update test to cover
40244         symlinks.
40245         * tests/test-utimens.c (main): Update caller.
40246
40247         utimens: cache whether utimensat syscall works
40248         * lib/utimens.c (utimensat_works_really): New cache variable.
40249         (fdutimens, lutimens): Use it to avoid failing syscall.
40250
40251         test-stat-time, test-utimens: improve portability
40252         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
40253         ext4 on alpha, and for cygwin.
40254         * tests/test-utimens-common.h: New file.
40255         (nap): Factor delays into single function.
40256         * tests/test-lutimens.h (test_lutimens): Use new header.
40257         * tests/test-futimens.h (test_futimens): Likewise.
40258         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
40259         timestamps to occur from same machine, as was done previously for
40260         test_utimens.
40261         * modules/utimens-tests (Files): Ship new file.
40262         * modules/futimens-tests (Files): Likewise.
40263         Reported in part by Jim Meyering.
40264
40265         sys_stat: sort replacement declarations
40266         * lib/sys_stat.in.h: Sort declarations.
40267         * lib/futimens.c (futimens): Fix typo.
40268
40269 2009-10-15  Jim Meyering  <meyering@redhat.com>
40270
40271         don't let environment settings perturb build
40272         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
40273         could cause a configure-time and/or build-time malfunction.
40274         Typically, a configure-time function-in-library test is performed
40275         via code like this:
40276
40277           LIB_VAR=
40278           AC_SUBST([LIB_VAR])
40279           prefix_saved_LIBS=$LIBS
40280             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
40281                        [test "$ac_cv_search_FUNC" = "none required" ||
40282                         LIB_VAR=$ac_cv_search_FUNC])
40283           LIBS=$prefix_saved_LIBS
40284
40285         However, in each of the files affected by this change, the LIB_VAR=
40286         initialization was omitted.  Thus, when set in the environment, its
40287         value would propagate into generated Makefiles when FUNC is not found
40288         in LIB_NAME.
40289         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
40290         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
40291         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40292
40293 2009-10-14  Eric Blake  <ebb9@byu.net>
40294
40295         fchdir: avoid infinite recursion in mingw
40296         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
40297         recursing.
40298
40299         test-stat-time: port to mingw
40300         * tests/test-stat-time.c (force_unlink): Return a value.
40301         (test_ctime) [W32]: Fix compilation error.
40302         (nap): Don't call usleep with too large an argument.  Use
40303         force_unlink.
40304         * doc/pastposix-functions/usleep.texi (usleep): Document the
40305         portability issue.
40306
40307 2009-10-13  Jim Meyering  <meyering@redhat.com>
40308
40309         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
40310         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
40311         * modules/pipe-filter-ii: Likewise.
40312         * modules/sys_socket-tests: Likewise.
40313         * modules/tsearch-tests: Likewise.
40314         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40315         (check): Depend on it.
40316
40317 2009-10-12  Eric Blake  <ebb9@byu.net>
40318
40319         utimens-tests: port to NFS file systems
40320         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40321         comparisons to avoid spurious failures from timestamp drift
40322         between NFS machines.
40323
40324 2009-10-12  Eric Blake  <ebb9@byu.net>
40325
40326         stat-time-tests: minor cleanups
40327         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40328         * tests/test-stat-time.c (nap): Separate assignment from call.
40329         Suggested by Paolo Bonzini and Bruno Haible.
40330
40331         sys_stat: guarantee struct timespec
40332         * lib/sys_stat.in.h (includes): Always include <time.h>
40333         * modules/sys_stat (Depends-on): Add time.
40334         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40335         mode_t permission values.
40336         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40337         get at subsecond timestamps.
40338
40339 2009-10-10  Eric Blake  <ebb9@byu.net>
40340
40341         futimens: new module
40342         * modules/futimens: New file.
40343         * lib/futimens.c (futimens): Likewise.
40344         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40345         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40346         we can work around Linux bugs.
40347         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40348         * modules/sys_stat (Makefile.am): Substitute them.
40349         * lib/sys_stat.in.h (futimens): Declare it.
40350         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40351         * doc/posix-functions/futimens.texi (futimens): Likewise.
40352         * modules/futimens-tests: New test.
40353         * tests/test-futimens.c: Likewise.
40354
40355         utimens: introduce fdutimens
40356         * lib/utimens.h (fdutimens): New prototype.
40357         * lib/utimens.c (gl_futimens): Move guts...
40358         (fdutimens): ...to new interface.
40359         * tests/test-utimens.c (do_fdutimens): Use it.
40360
40361         utimens: add UTIME_NOW and UTIME_OMIT support
40362         * lib/utimens.c (validate_timespec, update_timespec): New helper
40363         functions.
40364         (gl_futimens, lutimens): Use them.
40365         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40366         stdbool, sys_stat.
40367         (Link): Mention resulting library dependency.
40368         * modules/utimecmp (Link): Likewise.
40369         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40370         (Makefile.am): Pick up library dependency.
40371         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40372         definition.
40373         * tests/test-sys_stat.c: Test the definitions.
40374         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40375         * NEWS: Document library dependency.
40376
40377         utimecmp: support symlink timestamps
40378         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40379         hashing when possible.  Use pathconf when available.
40380         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40381         * modules/utimecmp (Depends-on): Add lstat.
40382
40383         utimens: add lutimens interface
40384         * lib/utimens.c (lutimens): New function.
40385         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40386         * lib/utimens.h (lutimens): Declare new interface.
40387         * tests/test-utimens.c (main): Enhance test.
40388         * tests/test-lutimens.h (test_lutimens): New file.
40389         * modules/utimens-tests (Files): Distribute it.
40390         (Depends-on): Add symlink.
40391         (configure.ac): Check for usleep.
40392
40393         utimens: validate futimens usage
40394         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40395         fewer syscalls on failure later on.  Avoid compiler warning on
40396         mingw.
40397         * modules/utimens (Depends-on): Add dup2.
40398
40399         utimens: add test
40400         * modules/utimens-tests: New test.
40401         * tests/test-utimens.h: New file.
40402         * tests/test-futimens.h: Likewise.
40403         * tests/test-utimens.c: Likewise.
40404
40405         doc: mention timestamp portability issues
40406         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40407         instead.
40408         * doc/posix-functions/utime.texi (utime): Likewise.
40409         * doc/posix-functions/utimes.texi (utimes): Likewise.
40410         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40411         instead.
40412         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40413         module.
40414         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40415         Mention weakness with symlink timestamps.
40416         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40417         to utimensat/futimens instead.
40418         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40419
40420         test-dup2: enhance test
40421         * tests/test-dup2.c (main): Also check AT_FDCWD.
40422
40423         test-stat-time: avoid more spurious failures
40424         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40425         xfs; and avoid race if the two timestamps cross quantization edge.
40426
40427         relocatable: prefer 'file system' over 'filesystem'
40428         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40429         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40430         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40431         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40432         * lib/relocatable.c (compute_curr_prefix): Likewise.
40433
40434 2009-10-10  Jim Meyering  <meyering@redhat.com>
40435
40436         stat-time-tests: check for the usleep function
40437         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40438
40439 2009-10-10  Bruno Haible  <bruno@clisp.org>
40440
40441         * modules/xnanosleep: Put the Link section after the Include section.
40442
40443 2009-10-09  Eric Blake  <ebb9@byu.net>
40444
40445         dup2: work around FreeBSD 6.1 bug
40446         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40447         * doc/posix-functions/dup2.texi (dup2): Document it.
40448         Reported by Nelson H. F. Beebe and Jim Meyering.
40449
40450         test-stat-time: port to buggy NFS clients
40451         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40452         (test_ctime): Also skip test if mtime and ctime are skewed.
40453
40454         maint: prefer 'file system' over 'filesystem'
40455         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40456         * doc/posix-functions/lstat.texi (lstat): Likewise.
40457         * lib/file-has-acl.c (file_has_acl): Likewise.
40458         * lib/fwriteerror.c [TEST]: Likewise.
40459         * tests/test-areadlink.h (test_areadlink): Likewise.
40460         * tests/test-areadlinkat-with-size.c (main): Likewise.
40461         * tests/test-areadlinkat.c (main): Likewise.
40462         * tests/test-canonicalize-lgpl.c (main): Likewise.
40463         * tests/test-canonicalize.c (main): Likewise.
40464         * tests/test-fstatat.c (main): Likewise.
40465         * tests/test-linkat.c (main): Likewise.
40466         * tests/test-lstat.h (test_lstat_func): Likewise.
40467         * tests/test-mkdir.h (test_mkdir): Likewise.
40468         * tests/test-readlink.h (test_readlink): Likewise.
40469         * tests/test-remove.c (main): Likewise.
40470         * tests/test-rename.h (test_rename): Likewise.
40471         * tests/test-renameat.c (main): Likewise.
40472         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40473         * tests/test-symlink.h (test_symlink): Likewise.
40474         * tests/test-symlinkat.c (main): Likewise.
40475         * tests/test-unlink.h (test_unlink_func): Likewise.
40476         * tests/test-unlinkat.c (main): Likewise.
40477
40478         maint: make realtime library usage explicit
40479         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40480         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40481         * modules/settime (Link): Likewise.
40482         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40483
40484         test-stat-time: speed up execution
40485         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40486         warning on mingw.
40487         (nap): New helper function.
40488         (prepare_test): Use it to reduce sleep time.
40489         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40490         execution.
40491         * modules/stat-time-tests (configure.ac): Check for usleep.
40492
40493 2009-10-09  Jim Meyering  <meyering@redhat.com>
40494
40495         selinux-h: always use getfilecon wrappers
40496         * lib/getfilecon.c: New file.
40497         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40498         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40499         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40500         (fgetfilecon): Provide a stub.
40501         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40502         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40503         file unconditionally.
40504         When <selinux/selinux.h> is found, arrange to use wrappers.
40505         * modules/selinux-h (Files): Add getfilecon.c.
40506         (Makefile.am): Substitute include-next-related bits
40507         into the now-always-generated selinux/selinux.h file.
40508         * doc/glibc-functions/lgetfilecon.texi: New file.
40509         * doc/glibc-functions/fgetfilecon.texi: New file.
40510         * doc/glibc-functions/getfilecon.texi: New file.
40511         * doc/glibc-functions/getfilecon-desc.texi: New file.
40512         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40513         which to pull in the new files.
40514         * MODULES.html.sh (Misc): Add selinux-h.
40515
40516 2009-10-08  Jim Meyering  <meyering@redhat.com>
40517
40518         unistd: fix comment typo
40519         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40520
40521 2009-10-08  Eric Blake  <ebb9@byu.net>
40522
40523         areadlink: use SIZE_MAX consistently
40524         * modules/areadlink (Depends-on): Add stdint.
40525         * modules/areadlink-with-size (Depends-on): Likewise.
40526         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40527         gives NULL; drop sys/types, since unistd gives size_t; and add
40528         stdint for SIZE_MAX.
40529         (SIZE_MAX): Rely on headers.
40530         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40531         and add stdint.
40532         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40533         (SIZE_MAX): Likewise.
40534         (INITIAL_BUF_SIZE): Turn into enum.
40535         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40536
40537 2009-10-08  Jim Meyering  <meyering@redhat.com>
40538
40539         areadlinkat: avoid compilation failure
40540         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40541         Fix typo in comment.
40542
40543 2009-10-07  Eric Blake  <ebb9@byu.net>
40544
40545         areadlinkat-with-size: new module
40546         * modules/areadlinkat-with-size: New module.
40547         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40548         * lib/areadlink.h (areadlinkat): Declare it.
40549         * MODULES.html.sh (File system functions): Mention it.
40550         * modules/areadlinkat-with-size-tests: New test.
40551         * tests/test-areadlinkat-with-size.c: New file.
40552
40553         xreadlinkat: new module
40554         * modules/xreadlinkat: New module.
40555         * lib/xreadlinkat.c (xreadlinkat): New file.
40556         * lib/xreadlink.h (xreadlinkat): Declare it.
40557         * MODULES.html.sh (File system functions): Mention it.
40558
40559         areadlinkat: new module
40560         * lib/at-func.c (FUNC_FAIL): New define.
40561         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40562         * modules/areadlinkat: New module.
40563         * lib/linkat.c (areadlinkat): Move...
40564         * lib/areadlinkat.c (areadlinkat): ...to new file.
40565         * lib/areadlink.h (areadlinkat): Declare it.
40566         * modules/linkat (Depends-on): Add areadlinkat.
40567         * MODULES.html.sh (File system functions): Mention it.
40568         * modules/areadlinkat-tests: New test.
40569         * tests/test-areadlinkat.c: New file.
40570
40571         areadlink, areadlink-with-size: add tests
40572         * modules/areadlink-tests: New test.
40573         * modules/areadlink-with-size-tests: Likewise.
40574         * tests/test-areadlink.h: New file.
40575         * tests/test-areadlink.c: Likewise.
40576         * tests/test-areadlink-with-size.c: Likewise.
40577
40578         maint: minor cleanups
40579         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40580         _UNUSED_PARAMETER_ instead.
40581         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40582         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40583         * modules/linkat-tests (Files): Distribute test-link.h.
40584
40585         openat, utimens: whitespace cleanup
40586         * lib/openat.c: Prefer space throughout, rather than mix of 8
40587         spaces vs. tabs.
40588         * lib/at-func.c: Likewise.
40589         * lib/utimens.c: Likewise.
40590
40591         openat: avoid using wrong fd
40592         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40593         working directory chooses same fd.
40594         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40595
40596         mkdir, mkdirat: fix cygwin 1.5.x bug
40597         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40598         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40599         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40600         bug.
40601         (gl_PREREQ_MKDIR): Delete unused macro.
40602         * modules/mkdir (Files): Track file rename.
40603         (configure.ac): Update macro name.
40604         * modules/openat (Depends-on): Add mkdir.
40605         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40606
40607         mkdir, mkdirat: add tests
40608         * modules/mkdir-tests: New test.
40609         * tests/test-mkdir.h: New file.
40610         * tests/test-mkdir.c: Likewise.
40611         * tests/test-mkdirat.c: Likewise.
40612         * modules/openat-tests (Files): Add new files.
40613         (Makefile.am): Run new test.
40614
40615 2009-10-06  Eric Blake  <ebb9@byu.net>
40616
40617         doc: tweak *at function documentation
40618         * doc/posix-functions/faccessat.texi (faccessat): Mention
40619         known issue with replacement.
40620         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40621         * doc/posix-functions/linkat.texi (linkat): Likewise.
40622         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40623         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40624         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40625         * doc/posix-functions/renameat.texi (renameat): Likewise.
40626         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40627
40628         openat: fix GNU/Hurd bug in unlinkat
40629         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40630         broken.
40631         * doc/posix-functions/unlink.texi (unlink): Document this.
40632         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40633
40634         fdopendir: fix GNU/Hurd bug
40635         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40636         allowing non-directory fds.
40637         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40638         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40639         * modules/dirent (Makefile.am): Substitute it.
40640         * lib/dirent.in.h (fdopendir): Declare replacement.
40641         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40642         * tests/test-fdopendir.c (main): Test something other than
40643         /dev/null, since on Hurd that behaves like a directory.
40644
40645         test-symlink: port to GNU/Hurd
40646         * tests/test-symlink.h (test_symlink): Relax expected errno.
40647
40648         doc: tweak more cygwin information
40649         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40650         now compatible with glibc.
40651         * doc/posix-functions/getopt.texi (getopt): Likewise.
40652
40653         getopt-gnu: add another test
40654         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40655         guarantee behavior relied on by m4.
40656         * tests/test-getopt.c (main): Use it.
40657         * modules/getopt-posix-tests (Depends-on): Add setenv.
40658         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40659
40660         getopt: fix compilation on darwin
40661         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40662         include.
40663         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40664         Reported by Ludovic Courtès.
40665
40666 2009-10-06  Bruno Haible  <bruno@clisp.org>
40667
40668         * modules/size_max (Description): Discourage its use.
40669         Reported by Simon Josefsson.
40670
40671 2009-10-06  Jim Meyering  <meyering@redhat.com>
40672
40673         linkat: avoid compilation failure
40674         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40675
40676 2009-10-05  Eric Blake  <ebb9@byu.net>
40677
40678         linkat: support Linux 2.6.17
40679         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40680         linkat on Linux, but allow cache variable override.
40681         * lib/linkat.c (rpl_linkat): Define override.
40682         * modules/linkat (Depends-on): Add symlinkat.
40683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40684         * modules/unistd (Makefile.am): Substitute it.
40685         * lib/unistd.in.h (linkat): Declare replacement.
40686         Reported by Pádraig Brady.
40687
40688         quotearg: port test to systems with C.UTF-8 locale
40689         * tests/test-quotearg.c (struct result_strings): Add another
40690         member, differentiating between C.ASCII and C.UTF-8 handling.
40691         (compare_strings): Add parameter.
40692         (main): Adjust all callers.
40693
40694         getopt: avoid clash with FreeBSD _getopt_internal
40695         * lib/getopt.in.h (_getopt_internal): Override the name.
40696         * lib/getopt_int.h (includes): Pick up any overrides.
40697         Reported by Reuben Thomas.
40698
40699         hash: allow C89 compilation
40700         * lib/hash.c (check_tuning): Move declaration before statement.
40701         Reported by Reuben Thomas.
40702
40703 2009-10-05  Karl Berry  <karl@gnu.org>
40704
40705         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40706
40707 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40708             Bruno Haible  <bruno@clisp.org>
40709
40710         * lib/uname.c (uname): Use a table-driven algorithm to compute
40711         Windows NT versions.
40712
40713 2009-10-04  Bruno Haible  <bruno@clisp.org>
40714
40715         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40716         program_invocation_short_name.
40717         * modules/progname (configure.ac): Test for presence of
40718         program_invocation_short_name.
40719         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40720
40721 2009-10-04  Bruno Haible  <bruno@clisp.org>
40722
40723         * lib/progname.c (set_program_name): Fix comment.
40724         Reported by Jim Meyering.
40725
40726 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40727             Bruno Haible  <bruno@clisp.org>
40728
40729         * lib/uname.c: Include <string.h>.
40730         (uname): Do only one call to GetVersionEx in the common case.
40731
40732 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40733             Bruno Haible  <bruno@clisp.org>
40734
40735         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40736         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40737         (uname): Add support for Windows CE and various non-x86 CPU types.
40738
40739 2009-10-03  Bruno Haible  <bruno@clisp.org>
40740
40741         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40742         invocation to tests/configure.ac.
40743         Reported by Ian Beckwith <ianb@erislabs.net>.
40744
40745 2009-10-02  Eric Blake  <ebb9@byu.net>
40746
40747         fchdir: avoid compiler warning
40748         * lib/fchdir.c (canonicalize_file_name)
40749         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40750
40751         test-open: support mingw errno values
40752         * tests/test-open.h (test_open): Relax test.
40753         * tests/test-fopen.h (test_fopen): Likewise.
40754         * tests/test-openat-safer.c (main): Likewise.
40755
40756         open: fix opening directory on mingw
40757         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40758
40759         test-open: on GNU/Hurd, /dev/null is a directory
40760         * tests/test-fopen.h (main): Rename...
40761         (test_fopen): ...to this.  Use a guaranteed non-directory when
40762         confirming open behavior on trailing slash.
40763         * tests/test-openat-safer.c (main): Likewise.
40764         * tests/test-open.h (main): Likewise....
40765         (test_open): ...to this.
40766         * tests/test-fopen.c (main): Adjust caller.
40767         * tests/test-fopen-safer.c (main): Likewise.
40768         * tests/test-open.c (main): Likewise.
40769         * tests/test-fcntl-safer.c (main): Likewise.
40770         Reported by Samuel Thibault.
40771
40772         rename, fchdir: don't ignore chdir failure
40773         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40774         * lib/rename.c (rpl_rename) [W32]: Likewise.
40775         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40776         an empty destination directory if source cannot be renamed,
40777         although there is still possibility for failure.
40778         * doc/posix-functions/rename.texi (rename): Document the race.
40779         Reported by Jim Meyering.
40780
40781         maint: cleanup whitespace in recent commits
40782         * lib/rename.c (rpl_rename): Remove tabs.
40783         * tests/test-link.h (test_link): Likewise.
40784         * lib/fchdir.c (get_name): Likewise.
40785         Reported by Jim Meyering.
40786
40787 2009-10-02  Ben Pfaff  <blp@gnu.org>
40788
40789         relocatable-prog-wrapper: Add missing dependency on
40790         double-slash-root.
40791         * modules/relocatable-prog-wrapper: Add dependency.
40792         Reported by Ian Beckwith <ianb@erislabs.net>.
40793
40794 2009-10-02  Eric Blake  <ebb9@byu.net>
40795
40796         renameat: fix Solaris bugs
40797         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40798         needed fixing.
40799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40800         * modules/stdio (Makefile.am): Substitute it.
40801         * lib/stdio.in.h (renameat): Declare replacement.
40802         * lib/renameat.c (rpl_renameat): Implement fix.
40803
40804         renameat: new module
40805         * modules/renameat: New file.
40806         * lib/renameat.c (renameat): Likewise.
40807         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40808         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40809         * modules/stdio (Makefile.am): Substitute them.
40810         * lib/stdio.in.h (renameat): Declare it.
40811         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40812         * doc/posix-functions/renameat.texi (renameat): Likewise.
40813         * modules/renameat-tests: New test.
40814         * tests/test-renameat.c: Likewise.
40815
40816         rename: fix mingw bugs
40817         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40818         directory overwrite bugs.
40819
40820         rename: fix another cygwin 1.5 bug
40821         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40822         checks.
40823         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40824         unnecessary cygwin workarounds.  Also work around bug with moving
40825         full directory onto an empty one.
40826         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40827
40828         rename-dest-slash: merge into rename module
40829         * modules/rename-dest-slash (Status): Mark obsolete.
40830         (Depends-on): Add rename.
40831         (Files): Let rename do it all.
40832         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40833         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40834         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40835         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40836         * lib/rename.c (rpl_rename): Update comments.
40837
40838         rename: fix cygwin 1.5.x bugs
40839         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40840         * lib/rename.c (rpl_rename): Work around them.
40841         * modules/rename (Depends-on): Add same-inode.
40842
40843         rename: fix Solaris 10 bug
40844         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40845         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40846         was the only bug.
40847
40848         rename: fix Solaris 9 bug
40849         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40850         on non-directory.  Avoid calling exit.
40851         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40852         strdup.
40853         * modules/rename-tests (Depends-on): Drop lstat.
40854         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40855         (gl_PREREQ_RENAME): Delete unused macro.
40856
40857         rename-dest-slash: fix NetBSD bug
40858         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40859         links.
40860         * modules/rename-dest-slash (Depends-on): Add same-inode.
40861
40862         rename-tests: new test, exposes several platform bugs
40863         * modules/rename-tests: New file.
40864         * tests/test-rename.h: Likewise.
40865         * tests/test-rename.c: Likewise.
40866         * doc/posix-functions/rename.texi (rename): Improve documentation,
40867         including bugs that will eventually be fixed in gnulib.
40868
40869 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40870
40871         * lib/uname.c: Include <stdlib.h>
40872         (uname): Assume version info is available.
40873
40874 2009-10-02  Jim Meyering  <meyering@redhat.com>
40875
40876         gnu-web-doc-update: correct --help output
40877         * build-aux/gnu-web-doc-update: Make --help output relevant.
40878
40879         gnu-web-doc-update: add standard options
40880         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40881
40882         gnu-web-doc-update: New module.
40883         Use this script to automatically update the on-line web documentation
40884         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40885         * modules/gnu-web-doc-update: New file, from coreutils.
40886         * build-aux/gnu-web-doc-update: New script.
40887
40888 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40889
40890         link: LoadLibrary is not needed.
40891         * lib/link.c: Use GetModuleHandle.
40892
40893 2009-10-01  Eric Blake  <ebb9@byu.net>
40894
40895         getopt: bump serial number
40896         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40897         change.
40898
40899         tests: tighten link, rmdir, and remove tests
40900         * tests/test-link.h (includes): No need to use <config.h> here.
40901         Clean up if directory hard link was created, otherwise test for
40902         trailing '.'.
40903         * tests/test-linkat.c (main): Simplify.
40904         * tests/test-remove.c (main): Enhance test for trailing '.'.
40905         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40906
40907 2009-10-01  Jim Meyering  <meyering@redhat.com>
40908
40909         maint.mk: requiring "make major" was annoying, for a "minor" release.
40910         What is intended is "stable", to contrast with alpha and beta,
40911         so require "make stable", not "make major".
40912         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40913         (get_tool_versions): Likewise.
40914         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40915
40916 2009-09-30  Ben Pfaff  <blp@gnu.org>
40917
40918         Fix broken build of replacement for Windows tmpfile().
40919         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40920         flags argument added along with the 'mkostemp' module.
40921
40922 2009-09-28  Bruno Haible  <bruno@clisp.org>
40923
40924         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40925         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40926         to 'remove_elt'.
40927         (gl_list_remove): Update.
40928         * lib/gl_list.c (gl_list_remove): Update.
40929         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40930         to 'remove_elt'.
40931         (gl_oset_remove): Update.
40932         * lib/gl_list.c (gl_oset_remove): Update.
40933         Reported by Eric Blake.
40934
40935 2009-09-28  Eric Blake  <ebb9@byu.net>
40936
40937         doc: mention yet more cygwin 1.7 status
40938         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40939         cygwin.
40940         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40941         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40942
40943         argp: fix test failure
40944         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40945         that are not upper-case.  Pass correct range to tolower.
40946
40947 2009-09-27  Jim Meyering  <meyering@redhat.com>
40948
40949         test-yesno: work around sparc-dash here-document infelicity
40950         Without this change, the literal \177 byte in a here document
40951         would make dash 0.5.5.1-3 access uninitialized memory.
40952         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40953         Instead, use a marker, "@", and filter through tr to create the desired
40954         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40955
40956 2009-09-27  Bruno Haible  <bruno@clisp.org>
40957
40958         Disable untested support for new flavours of ACLs on AIX.
40959         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40960         progress.
40961         * lib/set-mode-acl.c (qset_acl): Likewise.
40962
40963 2008-12-07  Bruno Haible  <bruno@clisp.org>
40964
40965         Add support for new flavours of ACLs on AIX. (Untested.)
40966         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40967         (file_has_acl): Add support for newer AIX.
40968         * lib/set-mode-acl.c (qset_acl): Likewise.
40969         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40970         Rainer Tammer <tammer@tammer.net>.
40971
40972 2009-09-26  Eric Blake  <ebb9@byu.net>
40973
40974         argp: fix compilation of getopt
40975         * lib/getopt.in.h (includes): Use different guard than glibc.
40976         Reported by Sergey Poznyakoff.
40977
40978         doc: mention more cygwin 1.7 status
40979         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40980         bug.
40981         * doc/posix-functions/execl.texi (execl): Likewise.
40982         * doc/posix-functions/execle.texi (execle): Likewise.
40983         * doc/posix-functions/execlp.texi (execlp): Likewise.
40984         * doc/posix-functions/execv.texi (execv): Likewise.
40985         * doc/posix-functions/execve.texi (execve): Likewise.
40986         * doc/posix-functions/execvp.texi (execvp): Likewise.
40987         * doc/glibc-functions/canonicalize_file_name.texi
40988         (canonicalize_file_name): Cygwin 1.7 now provides this.
40989         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40990         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40991         on AT_SYMLINK_NOFOLLOW.
40992
40993 2009-09-24  Eric Blake  <ebb9@byu.net>
40994
40995         test-linkat: make test more robust
40996         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40997
40998         getopt: fix inclusion guards for cygwin
40999         * modules/getopt-posix (Depends-on): Add include-next.
41000         (Makefile.am): Substitute more items in replacement header.
41001         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
41002         <getopt.h>.
41003         * lib/getopt.in.h (includes): Use split inclusion guard, and
41004         prefer <getopt.h> over include <unistd.h> when one is present.
41005         (option): Also override name of 'struct option'.
41006
41007         same-inode: revert prior change; it is not yet ready
41008         * NEWS: Undo mention of this change.
41009         * lib/same-inode.h (same-inode.h): Undo tri-state change.
41010         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41011         * lib/cycle-check.c (cycle_check): Likewise.
41012         * lib/same.c (same_name): Likewise.
41013         * lib/at-func2.c (at_func2): Likewise.
41014
41015 2009-09-23  Eric Blake  <ebb9@byu.net>
41016
41017         linkat: new module
41018         * modules/linkat: New file.
41019         * lib/at-func2.c (at_func2): Likewise.
41020         * lib/linkat.c (linkat): Likewise.
41021         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
41022         * lib/openat-priv.h (at_func2): Add declaration.
41023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41024         * modules/unistd (Makefile.am): Substitute them.
41025         * lib/unistd.in.h (linkat): Declare it.
41026         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41027         * doc/posix-functions/linkat.texi (linkat): Likewise.
41028         * doc/posix-functions/link.texi (link): Tweak wording.
41029         * tests/test-link.c (main): Move guts...
41030         * tests/test-link.h (test_link): ...into new file.
41031         * modules/linkat-tests: New test.
41032         * tests/test-linkat.c: Likewise.
41033         * modules/link-tests (Files): Ship new file.
41034         (Depends-on): Add stdbool.
41035
41036         dirname: add library-safe mdir_name
41037         * lib/dirname.h (mdir_name): New prototype.
41038         * lib/dirname.c (dir_name): Move guts...
41039         (mdir_name): ...to new function that avoids xalloc_die.
41040
41041         fchdir: another mingw fix
41042         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
41043         * lib/fchdir.c (get_name): New helper method; skips canonicalize
41044         on mingw (where it has not yet been ported), and make it optional
41045         elsewhere.
41046         (_gl_register_fd): Use it.
41047
41048         same-inode: make SAME_INODE tri-state, to port to mingw
41049         * NEWS: Mention this change.
41050         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
41051         st_ino always being 0.
41052         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
41053         * lib/cycle-check.c (cycle_check): Likewise.
41054         * lib/same.c (same_name): Likewise.
41055
41056         lstat: avoid mingw compilation error
41057         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
41058         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
41059         lstat ourselves.
41060         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
41061         was adequate.
41062         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
41063         the checks for lstat.
41064         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
41065
41066         link: fix test failure on Solaris 9
41067         * lib/link.c (rpl_link): Don't assume link will catch bogus
41068         trailing slash on source.
41069
41070         test-symlinkat: enhance test
41071         * tests/test-readlink.c (main): Move guts...
41072         * tests/test-readlink.h (test_readlink): ...into new file.
41073         * tests/test-symlink.c (main): Move guts...
41074         * tests/test-symlink.h (test_symlink): ...into new file.
41075         * tests/test-symlinkat.c (main): Use new files for further
41076         coverage.
41077         (do_symlink, do_readlink): New helper functions.
41078         * modules/symlink-tests (Files): Ship new file.
41079         (Depends-on): Add stdbool.
41080         * modules/readlink-tests (Files): Ship new file.
41081         (Depends-on): Add stdbool.
41082         * modules/symlinkat-tests (Files): Use new files.
41083
41084 2009-09-23  Eric Blake  <ebb9@byu.net>
41085
41086         readlink: document portability issue with symlink length
41087         * doc/posix-functions/lstat.texi (lstat): Mention that some file
41088         systems have bogus st_size on symlinks, and mention the
41089         areadlink-with-size module.
41090         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41091         * doc/posix-functions/readlink.texi (readlink): Mention the
41092         areadlink module, and ERANGE failure.
41093         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41094         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
41095
41096         readlink: fix Solaris 9 bug with trailing slash
41097         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
41098         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
41099         * doc/posix-functions/readlink.texi (readlink): Document this.
41100         * modules/readlink-tests: New test.
41101         * tests/test-readlink.c: Likewise.
41102
41103         readlink: fix cygwin 1.5.x bug with return type
41104         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
41105         * lib/unistd.in.h (readlink): Use ssize_t.
41106         * lib/readlink.c (readlink): Likewise.
41107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41108         * modules/unistd (Makefile.am): Substitute it.
41109         * lib/unistd.in.h (readlink): Declare replacement.
41110         * doc/posix-functions/readlink.texi (readlink): Document this.
41111
41112         symlink: use throughout gnulib
41113         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
41114         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
41115         symlink is not used.
41116         * modules/symlinkat (Depends-on): Add symlink.
41117         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41118         * modules/canonicalize-tests (Depends-on): Likewise.
41119         * modules/lstat-tests (Depends-on): Likewise.
41120         * modules/openat-tests (Depends-on): Likewise.
41121         * modules/remove-tests (Depends-on): Likewise.
41122         * modules/rmdir-tests (Depends-on): Likewise.
41123         * modules/unlink-tests (Depends-on): Likewise.
41124         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
41125         * tests/test-canonicalize.c (symlink): Likewise.
41126         * tests/test-fstatat.c (symlink): Likewise.
41127         * tests/test-lstat.c (symlink): Likewise.
41128         * tests/test-remove.c (symlink): Likewise.
41129         * tests/test-rmdir.c (symlink): Likewise.
41130         * tests/test-unlink.c (symlink): Likewise.
41131         * tests/test-unlinkat.c (symlink): Likewise.
41132
41133         symlink: new module, for Solaris 9 bug
41134         * modules/symlink: New file.
41135         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
41136         * lib/symlink.c: Likewise.
41137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41138         * modules/unistd (Makefile.am): Substitute them.
41139         * lib/unistd.in.h (symlink): Declare replacement.
41140         * MODULES.html.sh (File system functions): Mention it.
41141         * doc/posix-functions/symlink.texi (symlink): Likewise.
41142         * modules/symlink-tests: New test.
41143         * tests/test-symlink.c: Likewise.
41144
41145 2009-09-23  Bruno Haible  <bruno@clisp.org>
41146
41147         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
41148         when needed.
41149         Test case: gnulib-tool --import --with-tests atexit inttypes.
41150         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
41151
41152 2009-09-23  Bruno Haible  <bruno@clisp.org>
41153
41154         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
41155         subcommand, not in a subshell.
41156
41157 2009-09-22  Eric Blake  <ebb9@byu.net>
41158
41159         unistd: sort replacement declarations
41160         * lib/unistd.in.h: Sort declarations.
41161
41162         open, openat: minor optimization
41163         * lib/open.c (open): If open succeeded, len is non-zero.
41164         * lib/openat.c (rpl_openat): Likewise.
41165
41166         link-follow: ensure correct result
41167         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
41168         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
41169         distinguish between possible failures.
41170
41171 2009-09-21  Eric Blake  <ebb9@byu.net>
41172
41173         fts: avoid compiler warning
41174         * lib/fts.c (dirent_inode_sort_may_be_useful)
41175         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
41176
41177 2009-09-19  Bruno Haible  <bruno@clisp.org>
41178
41179         * lib/progreloc.c (canonicalize_file_name): New declaration.
41180
41181 2009-09-19  Eric Blake  <ebb9@byu.net>
41182
41183         link: fix quoting
41184         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
41185
41186         openat: fix openat bugs on Solaris 9
41187         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
41188         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
41189         * modules/openat (Depends-on): Add open.
41190         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
41191         * modules/fcntl-h (Makefile.am): Substitute it.
41192         * lib/fcntl.in.h (openat): Declare replacement.
41193         * doc/posix-functions/openat.texi (openat): Document this.
41194
41195         openat: move fstatat and unlinkat into correct files
41196         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
41197         compiled.
41198         * lib/openat.c (fstatat, unlinkat): Move...
41199         * lib/fstatat.c (fstatat): ...into correct files.
41200         * lib/unlinkat.c (unlinkat): Likewise.
41201
41202         openat: fix unlinkat bugs on Solaris 9
41203         * lib/unlinkat.c (unlinkat): New file.
41204         * modules/openat (Depends-on): Add unlink.
41205         (Files): Distribute it.
41206         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
41207         trailing slash behavior is broken.
41208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41209         * modules/unistd (Makefile.am): Substitute it.
41210         * lib/unistd.in.h (unlinkat): Declare replacement.
41211         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
41212
41213         openat: fix fstatat bugs on Solaris 9
41214         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
41215         stat.
41216         * doc/posix-functions/fstatat.texi (fstatat): Document this.
41217
41218         test-unlinkat: enhance test, to expose Solaris 9 bug
41219         * tests/test-unlink.c (main): Factor guts...
41220         * tests/test-unlink.h (test_rmdir_func): ...into new file.
41221         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
41222         * tests/test-rmdir.c (main): Adjust caller.
41223         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
41224         (unlinker): New helper function.
41225         (rmdirat): Enhance check.
41226         * modules/rmdir-tests (Depends-on): Add stdbool.
41227         * modules/unlink-tests (Depends-on): Likewise.
41228         (Files): Add test-unlink.h.
41229         * modules/openat-tests (Files): Likewise.
41230         (Depends-on): Add unlinkdir.
41231
41232         test-fstatat: new test, to expose Solaris 9 bugs
41233         * tests/test-stat.c (main): Factor guts...
41234         * tests/test-stat.h (test_stat_func): ...into new file.
41235         * tests/test-lstat.c (main): Factor guts...
41236         * tests/test-lstat.h (test_lstat_func): ...into new file.
41237         * tests/test-fstatat.c: New file.
41238         * modules/stat-tests (Files): Add test-stat.h.
41239         * modules/lstat-tests (Files): Add test-lstat.h.
41240         (Depends-on): Add stdbool.
41241         * modules/openat-tests (Depends-on): Add pathmax.
41242         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
41243         (Makefile.am): Run new test.
41244
41245         remove: new module, for mingw and Solaris 9 bugs
41246         * modules/remove: New file.
41247         * lib/remove.c: Likewise.
41248         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
41249         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41250         * modules/stdio (Makefile.am): Use them.
41251         * lib/stdio.in.h (remove): Declare replacement.
41252         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41253         * doc/posix-functions/remove.texi (remove): Likewise.
41254         * modules/remove-tests: New test.
41255         * tests/test-remove.c: Likewise.
41256
41257         unlink: new module, for Solaris 9 bug
41258         * modules/unlink: New file.
41259         * lib/unlink.c: Likewise.
41260         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
41261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41262         * modules/unistd (Makefile.am): Use them.
41263         * lib/unistd.in.h (stat): Declare replacement.
41264         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41265         * doc/posix-functions/unlink.texi (unlink): Likewise.
41266         * modules/unlink-tests: New test.
41267         * tests/test-unlink.c: Likewise.
41268
41269         lstat: fix Solaris 9 bug
41270         * lib/lstat.c (lstat): Also check for trailing slash on
41271         non-symlink, non-directories.  Use stat module to simplify logic.
41272         * doc/posix-functions/lstat.texi (lstat): Document it.
41273         * modules/lstat-tests (Depends-on): Add errno, same-inode.
41274         (configure.ac): Check for symlink.
41275         * tests/test-lstat.c (main): Add more tests.
41276
41277         stat: add as dependency to other modules
41278         * modules/chown (Depends-on): Add stat.
41279         * modules/euidaccess (Depends-on): Likewise.
41280         * modules/fchdir (Depends-on): Likewise.
41281         * modules/isdir (Depends-on): Likewise.
41282         * modules/link (Depends-on): Likewise.
41283         * modules/lstat (Depends-on): Likewise.
41284         * modules/mkdir-p (Depends-on): Likewise.
41285         * modules/modechange (Depends-on): Likewise.
41286         * modules/open (Depends-on): Likewise.
41287         * modules/readlink (Depends-on): Likewise.
41288         * modules/same (Depends-on): Likewise.
41289
41290         stat: fix Solaris 9 bug
41291         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
41292         slash.
41293         * lib/stat.c (rpl_stat): Work around it.
41294         * doc/posix-functions/stat.texi (stat): Update documentation.
41295
41296         stat: new module, for mingw bug
41297         * modules/stat: New file.
41298         * lib/stat.c: Likewise.
41299         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
41300         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41301         * modules/sys_stat (Makefile.am): Use them.
41302         * lib/sys_stat.in.h (stat): Declare replacement.
41303         * lib/openat.c (fstatat): Deal with lstat and stat being function
41304         macros.
41305         * modules/openat (Depends-on): Add inline.
41306         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41307         * doc/posix-functions/stat.texi (stat): Likewise.
41308         * modules/stat-tests: New test.
41309         * tests/test-stat.c: Likewise.
41310
41311 2009-09-19  Jim Meyering  <meyering@redhat.com>
41312
41313         syntax-check: detect unnecessary inclusion of canonicalize.h
41314         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41315
41316 2009-09-19  Eric Blake  <ebb9@byu.net>
41317
41318         canonicalize-lgpl: adjust clients to use correct header
41319         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41320         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41321         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41322         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41323         * lib/progreloc.c (includes): Likewise.
41324
41325 2009-09-19  Jim Meyering  <meyering@redhat.com>
41326
41327         test-posixtm.c: correct a comment
41328         * tests/test-posixtm.c: Correct first-line comment.
41329         Spotted by Eric Blake.
41330
41331 2009-09-16  Jim Meyering  <meyering@redhat.com>
41332
41333         posixtm-tests: make T const-correct; add a test case
41334         * tests/test-posixtm.c (T): Declare const.
41335         Add a test for -(2^31+1).
41336         Remove useless can-succeed-only-in-2002 test.
41337
41338         posixtm-tests: adjust the sole failing test
41339         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41340         expected output matches what mktime now produces.  Cross-checked via
41341         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41342
41343         posixtm: move #ifdef'd tests into a new module
41344         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41345         * tests/test-posixtm.c: ... this new file.
41346         * modules/posixtm-tests: New module.
41347
41348 2009-09-19  Eric Blake  <ebb9@byu.net>
41349
41350         openat: simplify use of at-func.c
41351         * lib/at-func.c (includes): Include prerequisites here, to
41352         simplify requirements on client files.
41353         * lib/openat-priv.h: Add double-inclusion guard.
41354         * lib/faccessat.c (includes): Simplify.
41355         * lib/fchmodat.c (includes): Likewise.
41356         * lib/fchownat.c (includes): Likewise.
41357         * lib/mkdirat.c (includes): Likewise.
41358         * lib/mkfifoat.c (includes): Likewise.
41359         * lib/symlinkat.c (includes): Likewise.
41360
41361         openat: allow return of fd 0
41362         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41363         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41364         unistd-safer.
41365         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41366         <fcntl.h>; this module does not leak fds.
41367         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41368         must be allowed to return 0, leaving openat_safer to add the
41369         safety.
41370         (openat_permissive): Avoid writing to just-opened fd 2 if
41371         restoring the current directory fails.
41372         * lib/openat-die.c (openat_restore_fail): Add comment.
41373         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41374         (save_cwd): Guarantee safe fd, but without use of open_safer.
41375         * tests/test-openat.c: New test.
41376         * modules/openat-tests (Files, Makefile.am): Distribute and build
41377         new file.
41378
41379         relocatable-prog-wrapper: fix build
41380         * modules/relocatable-prog-wrapper (Files): Update name of
41381         canonicalize m4 file, broken on 2009-09-17.
41382         Reported by emad hajjar <aleppos@hotmail.com>.
41383
41384 2009-09-19  Bruno Haible  <bruno@clisp.org>
41385
41386         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41387         * lib/safe-alloc.c: Likewise.
41388         Reported by Ian Beckwith <ianb@erislabs.net>.
41389
41390 2009-09-18  Bruno Haible  <bruno@clisp.org>
41391
41392         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41393         Reported by <erobles@sensacd.com.mx>.
41394
41395 2009-09-17  Eric Blake  <ebb9@byu.net>
41396
41397         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41398         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41399         slashes when checking if last component is missing.
41400         * tests/test-canonicalize.c (main): Test this.
41401
41402         canonicalize, canonicalize-lgpl: honor // if distinct from /
41403         * modules/canonicalize (Files): Add double-slash-root.m4.
41404         * modules/canonicalize-lgpl (Files): Likewise.
41405         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41406         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41407         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41408         fallback definition.
41409         (canonicalize_filename_mode): Use it to protect //.
41410         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41411         (__realpath): Likewise.
41412         * tests/test-canonicalize.c (main): Test this.
41413         * tests/test-canonicalize-lgpl.c (main): Likewise.
41414         * modules/canonicalize-tests (Depends-on): Add same-inode.
41415         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41416
41417         canonicalize-lgpl: fix glibc bug with trailing slash
41418         * m4/canonicalize-lgpl.m4: Move contents...
41419         * m4/canonicalize.m4: ...here.
41420         (gl_CANONICALIZE_LGPL): Factor realpath check...
41421         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41422         glibc 2.3.5 bug, fixed 2005-04-27.
41423         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41424         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41425         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41426         * modules/canonicalize-lgpl (Files): Manage file rename.
41427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41428         * modules/stdlib (Makefile.am): Substitute witness.
41429         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41430         is needed.
41431         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41432         replacement is required.
41433         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41434         * doc/glibc-functions/canonicalize_file_name.texi
41435         (canonicalize_file_name): Document this.
41436         * doc/posix-functions/realpath.texi (realpath): Likewise.
41437
41438         canonicalize-lgpl: reject non-directory with trailing slash
41439         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41440         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41441         catches failures in glibc 2.3.5.
41442         * tests/test-canonicalize.c (main): Likewise.
41443
41444         canonicalize-lgpl: use native realpath if it works
41445         * lib/canonicalize-lgpl.c (realpath): Guard with
41446         FUNC_REALPATH_WORKS.
41447         * lib/stdlib.in.h (realpath): Make declaration optional based on
41448         HAVE_REALPATH.
41449         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41450         native realpath works.
41451         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41452         * modules/stdlib (Makefile.am): Substitute witness.
41453
41454         canonicalize, canonicalize-lgpl: use <stdlib.h>
41455         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41456         (Include): Mention <stdlib.h>.
41457         (configure.ac): Mention functions we provide.
41458         * modules/canonicalize (configure.ac): Likewise.
41459         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41460         realpath if canonicalize_file_name is missing.
41461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41462         * modules/stdlib (Makefile.am): Substitute witnesses.
41463         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41464         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41465         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41466         * NEWS: Document this.
41467         * doc/glibc-functions/canonicalize_file_name.texi
41468         (canonicalize_file_name): Likewise.
41469         * doc/posix-functions/realpath.texi (realpath): Likewise.
41470         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41471
41472         test-canonicalize: consolidate into single C program
41473         * tests/test-canonicalize.sh: Delete; move setup into...
41474         * tests/test-canonicalize.c (main): ...the program, making it
41475         easier to run in debugger.  Add some tests.
41476         * modules/canonicalize-tests (Files): Remove unused file.
41477         (Depends-on): Add progname.
41478         (configure.ac, Makefile.am): Simplify.
41479
41480         test-canonicalize-lgpl: consolidate into single C program
41481         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41482         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41483         easier to run in debugger.  Add some tests.
41484         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41485         (configure.ac, Makefile.am): Simplify.
41486
41487         canonicalize: avoid resolvepath
41488         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41489         unnecessary checks.
41490         * lib/canonicalize.c (includes): Simplify.
41491         (canonicalize_file_name): Drop resolvepath implementation.
41492         * modules/canonicalize (Depends-on): Drop filenamecat.
41493
41494         canonicalize: don't lose errno
41495         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41496         over calls to free.
41497
41498         canonicalize: simplify errno handling
41499         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41500         assignment.
41501
41502         canonicalize, canonicalize-lgpl: update module dependencies
41503         * modules/canonicalize (Depends-on): Add extensions, lstat,
41504         pathmax, stdlib.
41505         (Files): Drop pathmax.h.
41506         (configure.ac): Adjust macro name.
41507         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41508         lstat, stdlib, sys_stat.
41509         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41510         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41511         extensions.
41512         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41513         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41514         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41515         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41516         declaration, if available.
41517         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41518         we can rely on the readlink module.
41519         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41520         (includes): Use <unistd.h> unconditionally.
41521
41522 2009-09-17  Eric Blake  <ebb9@byu.net>
41523
41524         maint: make Include sections of modules consistent
41525         * modules/alloca: Use only header name; no need to list #include.
41526         * modules/alloca-opt: Likewise.
41527         * modules/arpa_inet: Likewise.
41528         * modules/canon-host: Likewise.
41529         * modules/configmake: Likewise.
41530         * modules/dirent: Likewise.
41531         * modules/eealloc: Likewise.
41532         * modules/environ: Likewise.
41533         * modules/fchdir: Likewise.
41534         * modules/fcntl: Likewise.
41535         * modules/fcntl-h: Likewise.
41536         * modules/gethrxtime: Likewise.
41537         * modules/gettime: Likewise.
41538         * modules/ignore-value: Likewise.
41539         * modules/inet_ntop: Likewise.
41540         * modules/inet_pton: Likewise.
41541         * modules/inttypes: Likewise.
41542         * modules/isnand-nolibm: Likewise.
41543         * modules/isnanf-nolibm: Likewise.
41544         * modules/mbchar: Likewise.
41545         * modules/mbfile: Likewise.
41546         * modules/mbiter: Likewise.
41547         * modules/mbuiter: Likewise.
41548         * modules/netdb: Likewise.
41549         * modules/netinet_in: Likewise.
41550         * modules/nproc: Likewise.
41551         * modules/pagealign_alloc: Likewise.
41552         * modules/poll: Likewise.
41553         * modules/printf-frexp: Likewise.
41554         * modules/pthread: Likewise.
41555         * modules/putenv: Likewise.
41556         * modules/random_r: Likewise.
41557         * modules/relocatable-prog: Likewise.
41558         * modules/search: Likewise.
41559         * modules/select: Likewise.
41560         * modules/selinux-h: Likewise.
41561         * modules/settime: Likewise.
41562         * modules/signal: Likewise.
41563         * modules/size_max: Likewise.
41564         * modules/socklen: Likewise.
41565         * modules/ssize_t: Likewise.
41566         * modules/stdarg: Likewise.
41567         * modules/stdbool: Likewise.
41568         * modules/stddef: Likewise.
41569         * modules/stdint: Likewise.
41570         * modules/stdio: Likewise.
41571         * modules/stdlib: Likewise.
41572         * modules/string: Likewise.
41573         * modules/strings: Likewise.
41574         * modules/sys_file: Likewise.
41575         * modules/sys_ioctl: Likewise.
41576         * modules/sys_select: Likewise.
41577         * modules/sys_socket: Likewise.
41578         * modules/sys_stat: Likewise.
41579         * modules/sys_time: Likewise.
41580         * modules/sys_times: Likewise.
41581         * modules/sys_utsname: Likewise.
41582         * modules/sys_wait: Likewise.
41583         * modules/sysexits: Likewise.
41584         * modules/time: Likewise.
41585         * modules/times: Likewise.
41586         * modules/tmpfile: Likewise.
41587         * modules/trim: Likewise.
41588         * modules/unistd: Likewise.
41589         * modules/wchar: Likewise.
41590         * modules/wctype: Likewise.
41591
41592 2009-09-17  Bruno Haible  <bruno@clisp.org>
41593
41594         Make getdate.y compile on QNX and NetBSD 5 / i386.
41595         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41596         TIME_T_FITS_IN_LONG_INT.
41597         * lib/getdate.y (long_time_t): New type.
41598         (relative_time): Change type of 'seconds' field to long_time_t.
41599         (get_date): Update types of local variables. Check against overflow
41600         during conversion from long_time_t to time_t.
41601         Reported by Matt Kraai <kraai@ftbfs.org>
41602         and Hasso Tepper <hasso@netbsd.org>.
41603
41604 2009-09-17  Bruno Haible  <bruno@clisp.org>
41605
41606         * modules/COPYING: Update copyright years.
41607         * modules/README: Likeiwse.
41608         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41609         Reported by Ian Beckwith <ianb@erislabs.net>.
41610
41611 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41612
41613         * users.txt: Update references for gnuit package.
41614
41615 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41616
41617         * m4/getdelim.m4: Fix typo in copyright line.
41618
41619 2009-09-17  Bruno Haible  <bruno@clisp.org>
41620
41621         * lib/atoll.c: Use the standard header with GPL copyright.
41622         * lib/argz.in.h: Likewise.
41623         * lib/glob.c: Likewise.
41624         * lib/glob-libc.h: Likewise.
41625         * lib/random_r.c: Likewise.
41626         * lib/siglist.h: Likewise.
41627         * lib/strsignal.c: Likewise.
41628         Reported by Ian Beckwith <ianb@erislabs.net>.
41629
41630 2009-09-17  Eric Blake  <ebb9@byu.net>
41631
41632         rmdir: ensure correct dependency order
41633         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41634
41635 2009-09-17  Bruno Haible  <bruno@clisp.org>
41636
41637         Disable assertion that fails on NetBSD 5 / i386.
41638         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41639         Reported by Sam Steingold <sds@gnu.org>
41640         and Hasso Tepper <hasso@netbsd.org>.
41641
41642 2009-09-16  Eric Blake  <ebb9@byu.net>
41643
41644         unlinkdir: port to mingw
41645         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41646         on which no one can unlink a directory.
41647
41648         stdlib: sort witness names
41649         * modules/stdlib (Makefile.am): Sort replacements.
41650         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41651         * lib/stdlib.in.h: Likewise.
41652
41653         parse-duration-tests: avoid link failure
41654         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41655         LIBINTL.
41656         Reported by Tom G. Christensen.
41657
41658         openat-tests: ensure unlinkat behaves like rmdir
41659         * tests/test-rmdir.c (main): Factor guts...
41660         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41661         * modules/rmdir-tests (Files): Ship new file.
41662         * modules/openat-tests: New test.
41663         * tests/test-unlinkat.c: Likewise.
41664
41665         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41666         * modules/rmdir-errno (Status, Notice): Now obsolete.
41667
41668         rmdir: work around cygwin 1.5.x and mingw bugs
41669         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41670         * lib/rmdir.c (rmdir): Work around it.
41671         * modules/rmdir (Status, Notice): No longer obsolete.
41672         (Files): Add dos.m4.
41673         (Depends-on): Add unistd.
41674         (configure.ac): Set witnesses.
41675         (License): Relax to LGPLv2+.
41676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41677         * modules/unistd (Makefile.am): Substitute witnesses.
41678         * lib/unistd.in.h (rmdir): Declare replacement.
41679         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41680         * modules/rmdir-tests: New tests.
41681         * tests/test-rmdir.c: Likewise.
41682
41683 2009-09-15  Eric Blake  <ebb9@byu.net>
41684
41685         fchdir: improve use of replacement functions
41686         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41687         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41688         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41689         REPLACE_CLOSEDIR.
41690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41691         * modules/sys_stat (Makefile.am): Substitute correct witness.
41692         * modules/dirent (Makefile.am): Likewise.
41693         * modules/unistd (Makefile.am): Likewise.
41694         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41695         * lib/unistd.in.h (dup): Likewise.
41696         * lib/sys_stat.in.h (fstat): Likewise.
41697
41698         maint: ignore gnulib-tool temp files
41699         * .gitignore: Ignore files created during gnulib-tool --test.
41700
41701 2009-09-13  Jim Meyering  <meyering@redhat.com>
41702
41703         posixtm: don't reject a time that specify "60" as the number of seconds
41704         * lib/posixtm.c (posixtime): The code to reject invalid dates
41705         would also reject a time specified with the .60 suffix.
41706         But POSIX allows that, in order to accommodate leap seconds.
41707         So don't reject it.
41708         (main): Adjust tests accordingly.
41709         * modules/posixtm (Depends-on): Add stpcpy.
41710
41711 2009-09-11  Jim Meyering  <meyering@redhat.com>
41712
41713         announce-gen: include [$release_type] in emitted Subject:
41714         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41715         e.g., [stable] in the emitted Subject: line.
41716
41717 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41718
41719         Remove obsolete macros from several modules.
41720         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41721         obsolete Autoconf macros with their modern counterparts.
41722         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41723         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41724         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41725         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41726         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41727         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41728         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41729         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41730         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41731         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41732         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41733         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41734         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41735         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41736         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41737         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41738         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41739         * m4/time_r.m4 (gl_TIME_R): Likewise.
41740         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41741         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41742         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41743
41744         Fix copyright header in build-aux scripts.
41745         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41746         recommendation.
41747         * build-aux/ncftpput-ftp: Likewise.
41748         * build-aux/update-copyright: Likewise.
41749
41750 2009-09-09  Eric Blake  <ebb9@byu.net>
41751
41752         test-link: allow Linux choice of errno
41753         * tests/test-link.c (main): Relax test for alternate error.
41754
41755         strndup: fix improper m4 caching
41756         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41757         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41758         (gl_PREREQ_STRNDUP): Delete.
41759         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41760         * modules/string (Makefile.am): Substitute it.
41761         * lib/string.in.h (strndup): Modernize prototype.
41762
41763         getcwd: port to mingw
41764         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41765         different from the POSIX assumptions made throughout the getcwd
41766         module; fortunately, the mingw getcwd does not need replacement.
41767         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41768         * modules/getcwd-tests: New test.
41769         * tests/test-getcwd.c: Likewise.
41770
41771         link: fix platform bugs
41772         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41773         * lib/link.c (link): Work around them.  Fix related mingw bug.
41774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41775         * modules/unistd (Makefile.am): Substitute it.
41776         * lib/unistd.in.h (link): Declare replacement.
41777         * doc/posix-functions/link.texi (link): Document this.
41778         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41779
41780         test-link: consolidate into single C program, test more cases
41781         * tests/test-link.sh: Delete.
41782         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41783         at least Cygwin and Solaris.
41784         * modules/link-tests (Files): Remove unused file.
41785         (Depends-on): Add errno, sys_stat.
41786         (Makefile.am): Simplify.
41787
41788 2009-09-08  Bruno Haible  <bruno@clisp.org>
41789
41790         Work around towlower, towupper bug on mingw.
41791         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41792         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41793         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41794         * doc/posix-functions/towupper.texi: Likewise.
41795         Reported by Eric Blake.
41796
41797 2009-09-08  Jim Meyering  <meyering@redhat.com>
41798
41799         build: don't try to run autoheader if we don't use it
41800         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41801         is not used in configure.ac.
41802
41803 2009-09-08  Eric Blake  <ebb9@byu.net>
41804
41805         euidaccess: fix compilation error
41806         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41807
41808         rawmemchr: relax license
41809         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41810         okay.
41811         Reported by Jim Meyering.
41812
41813         mkfifoat: new module
41814         * modules/mkfifoat: New file.
41815         * lib/mkfifoat.c: Likewise.
41816         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41817         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41818         * modules/sys_stat (Makefile.am): Use them.
41819         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41820         * MODULES.html.sh (File system functions): Mention module.
41821         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41822         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41823         * modules/mkfifoat-tests: New test.
41824         * tests/test-mkfifoat.c: Likewise.
41825
41826         strchrnul: relax license
41827         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41828         okay.
41829         Reported by Jim Meyering.
41830
41831 2009-09-08  Eric Blake  <ebb9@byu.net>
41832
41833         fstatat: fix compilation on Solaris
41834         * lib/fstatat.c (includes): Add fcntl.h.
41835         Reported by Pádraig Brady.
41836
41837 2009-09-07  Eric Blake  <ebb9@byu.net>
41838
41839         rename: modernize replacement
41840         * modules/rename (Depends-on): Add stdio.
41841         (configure.ac): Declare witness.
41842         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41843         stdio take care of replacement.
41844         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41845         * modules/stdio (Makefile.am): Substitute them.
41846         * lib/stdio.in.h (rename): Declare replacement.
41847         * lib/rename.c (includes): Allow cross-compilation to non-windows
41848         machines.
41849         * doc/posix-functions/rename.texi (rename): Improve
41850         documentation.
41851
41852         stdio: sort witness names
41853         * modules/stdio (Makefile.am): Sort replacements.
41854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41855         * lib/stdio.in.h: Likewise.
41856
41857         getcwd: minor cleanups
41858         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41859         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41860
41861         openat: provide more convenience names
41862         * modules/faccessat (configure.ac): Add C witness.
41863         * lib/unistd.in.h (readlinkat): Fix typo.
41864         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41865         convenience wrappers.
41866         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41867         wrappers in syntax checks.
41868
41869 2009-09-06  Eric Blake  <ebb9@byu.net>
41870
41871         doc: fix comments in recent patches
41872         * lib/faccessat.c: Mention correct function.
41873         * lib/fchmodat.c: Likewise.
41874         * lib/fchownat.c: Likewise.
41875         * lib/symlinkat.c: Likewise.
41876         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41877         constants.
41878
41879         faccessat, symlinkat: continue cleanup of previous patch
41880         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41881         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41882         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41883         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41884         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41885         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41886         set.
41887
41888 2009-09-06  Bruno Haible  <bruno@clisp.org>
41889
41890         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41891         (fstatat): Declare if GNULIB_FSTATAT is set.
41892         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41893         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41894         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41895         * modules/fcntl-h (Files): Remove m4/openat.m4.
41896         * modules/sys_stat (Files): Remove m4/openat.m4.
41897         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41898         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41899         * modules/unistd (Files): Remove m4/openat.m4.
41900         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41901         GNULIB_OPENAT.
41902         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41903         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41904         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41905         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41906         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41907         gl_OPENAT_DEFAULTS.
41908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41909         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41910         Don't require gl_OPENAT_DEFAULTS.
41911         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41912         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41913         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41914         (gl_OPENAT_DEFAULTS): Remove macro.
41915
41916 2009-09-06  Bruno Haible  <bruno@clisp.org>
41917
41918         * modules/openat (configure.ac): Remove unneeded witness.
41919
41920 2009-09-06  Bruno Haible  <bruno@clisp.org>
41921
41922         Set errno to ENOSYS when a function is entirely unsupported.
41923         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41924         EOPNOTSUPP.
41925         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41926         * modules/chown (Depends-on): Remove errno.
41927
41928 2009-09-06  Bruno Haible  <bruno@clisp.org>
41929
41930         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41931
41932 2009-09-06  Bruno Haible  <bruno@clisp.org>
41933
41934         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41935
41936 2009-09-06  Ben Pfaff  <blp@gnu.org>
41937             Bruno Haible  <bruno@clisp.org>
41938
41939         Work around a glibc bug in strtok_r.
41940         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41941         Undefine if UNDEFINE_STRTOK_R is set.
41942         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41943         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41944         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41945         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41946         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41947         UNDEFINE_STRTOK_R.
41948         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41949
41950 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41951
41952         exclude: minor fix
41953         * lib/exclude.c: Include wctype.h
41954
41955 2009-09-06  Akim Demaille  <demaille@gostai.com>
41956
41957         bootstrap: improve error message
41958         * build-aux/bootstrap (find_tool): Upon failure, report the list
41959         of candidates.
41960         Honor the initial value of the envvar.
41961
41962 2009-09-05  Eric Blake  <ebb9@byu.net>
41963
41964         symlinkat: new module
41965         * modules/symlinkat: New file.
41966         * lib/symlinkat.c: Likewise.
41967         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41969         * modules/unistd (Makefile.am): Use them.
41970         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41971         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41972         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41973         * MODULES.html.sh (File system functions): Mention module.
41974         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41975         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41976         * modules/symlinkat-tests: New test.
41977         * tests/test-symlinkat.c: Likewise.
41978
41979         test-openat-safer: add more checks
41980         * tests/test-openat-safer.c (main): Check more code paths.
41981
41982 2009-09-05  Jim Meyering  <meyering@redhat.com>
41983
41984         syntax-check: detect unnecessary inclusion of openat.h
41985         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41986
41987 2009-09-05  Bruno Haible  <bruno@clisp.org>
41988
41989         Support towlower, towupper.
41990         * doc/posix-functions/towlower.texi: Mention module wctype.
41991         * doc/posix-functions/towupper.texi: Likewise.
41992         * lib/wctype.in.h (towlower, towupper): New functions.
41993         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41994         (ASSERT): New macro.
41995         (e): New variable.
41996         (main): Test also towlower, towupper. Test WEOF argument.
41997         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41998
41999 2009-09-05  Bruno Haible  <bruno@clisp.org>
42000
42001         Fix conversion behaviour when the input is invalid.
42002         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
42003         mark occurring in first pass of indirect conversion.
42004         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
42005         input.
42006         Found by clang's static analyzer.
42007
42008 2009-09-05  Bruno Haible  <bruno@clisp.org>
42009
42010         * tests/test-striconveh.c (main): Test indirect conversion on platforms
42011         where direct conversion is possible.
42012
42013 2009-09-04  Eric Blake  <ebb9@byu.net>
42014
42015         openat: fail with ENOENT on empty name
42016         * lib/openat-proc.c (openat_proc_name): Special-case the empty
42017         buffer.
42018
42019         link-follow: fix logic bug in prior patch
42020         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
42021         reversed sense of yes and no in prior patch.  Avoid confusing
42022         compilation failure with desired semantics.
42023
42024         link-follow: accommodate mingw and cross-compilation
42025         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
42026         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
42027         cross-compilation results to -1, to make linkat easier to
42028         implement when cross-compiling.  Trivially support mingw.
42029         * modules/link-follow (configure.ac): Call new name.
42030         * NEWS: Mention this.
42031
42032 2009-09-03  Eric Blake  <ebb9@byu.net>
42033
42034         faccessat: compile replacement
42035         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
42036         needed.
42037
42038         fts: fix compilation error
42039         * lib/fts.c (includes): Re-add "openat.h", for
42040         openat_needs_fchdir.
42041
42042         faccessat: new module
42043         * modules/faccessat: New file.
42044         * lib/faccessat.c: Likewise.
42045         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
42046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42047         * modules/unistd (Makefile.am): Use it.
42048         * lib/unistd.in.h (faccessat): Declare it.
42049         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
42050         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
42051         * MODULES.html.sh (File system functions): Mention it.
42052         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
42053         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
42054
42055         euidaccess: prefer POSIX over non-standard implementation
42056         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
42057         * lib/euidaccess.c (euidaccess): Use it if available.
42058
42059         openat: make template easier to use
42060         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
42061         AT_FUNC_F2 to be undefined.
42062         (VALIDATE_FLAG): New macro; use it to reject bad flags.
42063         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
42064         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
42065         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
42066         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
42067         Likewise.
42068         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
42069         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
42070         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
42071         Likewise.
42072
42073         openat: declare in POSIX headers
42074         * NEWS: Mention this.
42075         * modules/openat (configure.ac): Declare witnesses.
42076         (Depends-on): Add fcntl-h, sys_stat, unistd.
42077         (Include): Mention correct headers.
42078         * modules/fcntl-h (Depends-on): Add link-warning.
42079         (Files): Add openat.m4.
42080         (Makefile.am): Substitute witnesses.
42081         * modules/sys_stat (Files, Makefile.am): Likewise.
42082         * modules/unistd (Files, Makefile.am): Likewise.
42083         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
42084         (gl_OPENAT_DEFAULTS): New macro.
42085         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
42086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
42087         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
42088         (SYS_STAT_H): Remove unused variable.
42089         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
42090         * lib/fcntl--.h (includes): Remove unneeded header.
42091         * lib/openat-safer.c (includes): Likewise.
42092         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
42093         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
42094         appropriate headers.
42095         (__OPENAT_PREFIX): Delete.
42096         * lib/fcntl.in.h (openat): Provide declaration.
42097         (AT_FDCWD): Fix Solaris bug.
42098         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
42099         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
42100         * lib/fchmodat.c (includes):  Adjust to find declaration.
42101         * lib/fchownat.c (includes): Likewise.
42102         * lib/mkdirat.c (includes): Likewise.
42103         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
42104         still visible.
42105
42106 2009-09-02  Eric Blake  <ebb9@byu.net>
42107
42108         errno: use consistently
42109         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
42110         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
42111         * lib/canonicalize.c (ELOOP): Likewise.
42112         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
42113         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
42114         * lib/lchown.c (EOPNOTSUPP): Likewise.
42115         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
42116         * lib/savewd.c (ESTALE): Likewise.
42117         * lib/settime.c (ENOSYS): Likewise.
42118         * lib/utimens.c (ENOSYS): Likewise.
42119         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
42120         * lib/chdir-safer.c (ELOOP): Likewise.
42121         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
42122         * modules/c-stack (Depends-on): Add errno.
42123         * modules/canonicalize (Depends-on): Likewise.
42124         * modules/chdir-safer (Depends-on): Likewise.
42125         * modules/fdopendir (Depends-on): Likewise.
42126         * modules/inet_ntop (Depends-on): Likewise.
42127         * modules/inet_pton (Depends-on): Likewise.
42128         * modules/lchown (Depends-on): Likewise.
42129         * modules/openat (Depends-on): Likewise.
42130         * modules/savewd (Depends-on): Likewise.
42131         * modules/settime (Depends-on): Likewise.
42132         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
42133
42134         fts: avoid leaking fds
42135         * modules/fts (Depends-on): Add cloexec.
42136         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
42137         flag.
42138
42139         fts: make directory fds more robust
42140         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
42141         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
42142
42143         backupfile, chdir-long, fts, savedir: make safer
42144         * lib/backupfile.c (includes): Use "dirent--.h", since
42145         numbered_backup can write to stderr during readdir.
42146         * lib/savedir.c (includes): Likewise.
42147         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
42148         emulation can write to stderr on failure.
42149         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
42150         * lib/getcwd.c: Document why opendir_safer is unused.
42151         * lib/glob.c: Likewise.
42152         * lib/scandir.c: Likewise.
42153         * lib/openat-proc.c: Likewise, for open_safer.
42154         * modules/backupfile (Depends-on): Add dirent-safer.
42155         * modules/savedir (Depends-on): Likewise.
42156         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
42157         * modules/chdir-long (Depends-on): Add openat-safer.
42158
42159         openat-safer: new module
42160         * modules/openat-safer: New file.
42161         * lib/openat-safer.c: Likewise.
42162         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
42163         * lib/fcntl-safer.h (openat_safer): Declare.
42164         * lib/fcntl--.h (openat): Override.
42165         * MODULES.html.sh (File descriptor based I/O): Mention it.
42166         * lib/openat.h: Add double-inclusion guards.
42167         * lib/openat.c (includes): Only include "fcntl-safer.h", not
42168         "fcntl--.h", so we can implement openat.
42169         * modules/openat-safer-tests: New test.
42170         * tests/test-openat-safer.c: New file.
42171
42172         dirent-safer: new module
42173         * modules/dirent-safer: New file.
42174         * lib/dirent--.h: Likewise.
42175         * lib/dirent-safer.h: Likewise.
42176         * lib/opendir-safer.c: Likewise.
42177         * m4/dirent-safer.m4: Likewise.
42178         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
42179         * modules/dirent-safer-tests: New test.
42180         * tests/test-dirent-safer.c: New file.
42181         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
42182
42183         fdopendir: optimize on mingw
42184         * lib/unistd.in.h (_gl_directory_name): New prototype.
42185         * lib/fchdir.c (_gl_directory_name): Implement it.
42186         (fchdir): Use it to simplify implementation.
42187         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
42188         fchdir, when available, to avoid calling [f]chdir().
42189
42190         fdopendir: split into its own module
42191         * lib/openat.c (fdopendir): Move...
42192         * lib/fdopendir.c: ...into new file.
42193         * modules/fdopendir: New module.
42194         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
42195         * modules/openat (Depends-on): Add fdopendir.
42196         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
42197         fdopendir here.
42198         * modules/savedir (Depends-on): Only need fdopendir, not full
42199         openat.
42200         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
42201         * lib/openat.h (fdopendir): Drop prototype.
42202         * lib/dirent.in.h (fdopendir): Provide prototype.
42203         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
42204         * modules/dirent (Makefile.am): Substitute them.
42205         * MODULES.html.sh (File system functions): Mention it.
42206         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
42207         * modules/fdopendir-tests: New file.
42208         * tests/test-fdopendir.c: Likewise.
42209
42210         fchdir: use more consistent macro convention
42211         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
42212         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
42213         REPLACE_FCHDIR, rather than relying on config.h macros.
42214         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
42215         inside a single make-time REPLACE_FCHDIR block, rather than using
42216         the config.h FCHDIR_REPLACEMENT.
42217         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
42218         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
42219         Manage fstat replacement.
42220         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
42221         REPLACE_FCHDIR.
42222         * modules/sys_stat (Files): Add m4/unistd_h.m4.
42223         (Makefile.am): Substitute REPLACE_FCHDIR.
42224         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
42225         FCHDIR_REPLACEMENT.
42226         * lib/dup-safer.c (dup_safer): Likewise.
42227         * lib/dup2.c (rpl_dup2): Likewise.
42228         * lib/dup3.c (rpl_dup3): Likewise.
42229         * lib/open.c (rpl_open): Likewise.
42230
42231         fchdir: simplify error handling, and support dup3
42232         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
42233         stdbool, malloc-posix, realloc-posix.
42234         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
42235         (ensure_dirs_slot): Return false on allocation failure.
42236         (rpl_dup2): Delete.
42237         (_gl_register_dup): New function.
42238         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
42239         (_gl_register_fd): Close fd on allocation failure.
42240         * lib/fcntl.in.h (_gl_register_fd): Update signature.
42241         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
42242         prototype.
42243         (rpl_dup2_fchdir): Delete prototype.
42244         * lib/open.c (open): Update caller.
42245         * lib/dup2.c (dup2): Track fchdir metadata.
42246         * lib/dup3.c (dup3): Likewise.
42247         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
42248         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
42249
42250 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42251
42252         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
42253         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
42254         don't pass arguments to AC_OUTPUT.
42255
42256 2009-09-02  Bruno Haible  <bruno@clisp.org>
42257
42258         * modules/mkdtemp (License): Relicense under LGPLv2+.
42259         Reported by Paolo Bonzini.
42260
42261 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42262
42263         Replace uses of obsolete autoconf macros in Jim's modules.
42264         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
42265         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
42266         can evoke a warning from autoconf when run with -Wobsolete
42267         enabled.  They were declared obsolete for good reasons (see
42268         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
42269         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
42270         should not continue using the deprecated macros.
42271         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
42272         obsolete Autoconf macros with modern counterparts.
42273         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
42274         * m4/dos.m4 (gl_AC_DOS): Likewise.
42275         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
42276         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
42277         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
42278         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
42279         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
42280         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
42281         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
42282         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
42283         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
42284         Likewise.
42285         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
42286         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42287         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
42288         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
42289         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
42290         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42291
42292 2009-09-01  Eric Blake  <ebb9@byu.net>
42293
42294         fchdir: fix off-by-one bug in previous patch
42295         * lib/fchdir.c (rpl_fstat): Use correct bounds.
42296         (_gl_unregister_fd): Delete useless if.
42297
42298 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
42299
42300         maint.mk: sort the list of syntax-check rules
42301         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
42302         easier to get a sense of progress when the rules are run sequentially
42303         and take a long time.
42304
42305 2009-09-01  Simon Josefsson  <simon@josefsson.org>
42306
42307         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
42308         * modules/netinet_in: Likewise.
42309         * modules/sys_file: Likewise.
42310         * modules/sys_ioctl: Likewise.
42311         * modules/sys_select: Likewise.
42312         * modules/sys_socket: Likewise.
42313         * modules/sys_stat: Likewise.
42314         * modules/sys_time: Likewise.
42315         * modules/sys_times: Likewise.
42316         * modules/sys_utsname: Likewise.
42317         * modules/sys_wait: Likewise.
42318
42319 2009-09-01  Jim Meyering  <meyering@redhat.com>
42320
42321         fts: help ensure that return values are not ignored
42322         * lib/fts_.h (__GNUC_PREREQ): Define.
42323         (__attribute_warn_unused_result__): Define.
42324         (fts_children, fts_close, fts_open, fts_read): Declare with
42325         __attribute_warn_unused_result__.
42326
42327         fts: fts_close now fails also when closing a dir file descriptor fails
42328         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42329         and propagate to caller, along with errno.
42330
42331         announce-gen: correct formatting in --help output
42332         * build-aux/announce-gen (usage): Move the one-line description in
42333         --help output "up", to where it belongs, just after Usage:.
42334
42335 2009-08-31  Eric Blake  <ebb9@byu.net>
42336
42337         fchdir: port to mingw
42338         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42339         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42340         opened, then use a substitute.
42341         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42342         replacement.
42343         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42344         (_gl_register_fd): No need to check stat if open already filters
42345         all directories.
42346         (fchdir): Fix error condition to match POSIX.
42347         * modules/fchdir (Depends-on): Add sys_stat.
42348         * doc/posix-functions/open.texi (open): Document the limitation.
42349         * modules/fchdir-tests: New file.
42350         * tests/test-fchdir.c: Likewise.
42351
42352         canonicalize: allow cross-testing from cygwin to mingw
42353         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42354         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42355         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42356         Likewise.
42357         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42358         target does not support symlinks.
42359         * tests/test-canonicalize-lgpl.sh: Likewise.
42360
42361         chown: avoid compilation warning on mingw
42362         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42363         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42364         mingw.
42365         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42366         * modules/chown (Depends-on): Add errno.
42367
42368 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42369
42370         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42371         command.
42372
42373 2009-08-31  Jim Meyering  <meyering@redhat.com>
42374
42375         canonicalize: remove useless initialization
42376         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42377         initialization of local, "end".
42378
42379 2009-08-30  Bruno Haible  <bruno@clisp.org>
42380
42381         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42382         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42383         ENOSYS.
42384
42385 2009-08-30  Bruno Haible  <bruno@clisp.org>
42386
42387         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42388         /usr/xpg4/bin/tr when it exists.
42389         * tests/test-pipe-filter-gi1.sh: Likewise.
42390
42391 2009-08-30  Bruno Haible  <bruno@clisp.org>
42392
42393         Work around deficient /usr/bin/id program on Solaris.
42394         * tests/test-file-has-acl.sh (ID): New variable.
42395         * tests/test-set-mode-acl.sh (ID): Likewise.
42396         * tests/test-copy-acl.sh (ID): Likewise.
42397         * tests/test-copy-file.sh (ID): Likewise.
42398
42399 2009-08-30  Bruno Haible  <bruno@clisp.org>
42400
42401         New module 'xstriconveh'.
42402         * lib/xstriconveh.h: New file.
42403         * lib/xstriconveh.c: New file.
42404         * modules/xstriconveh: New file.
42405
42406 2009-08-30  Bruno Haible  <bruno@clisp.org>
42407
42408         Make it easier to use mem_cd_iconveh.
42409         * lib/striconveh.h (iconveh_t): New type.
42410         (iconveh_open, iconveh_close): New declarations.
42411         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42412         with a single 'const iconveh_t *' argument.
42413         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42414         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42415         with a single 'const iconveh_t *' argument.
42416         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42417         * tests/test-striconveh.c (main): Update.
42418         * NEWS: Mention the change.
42419
42420 2009-08-30  Bruno Haible  <bruno@clisp.org>
42421
42422         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42423         problem.
42424
42425 2009-08-30  Bruno Haible  <bruno@clisp.org>
42426
42427         Work around iconv_open problem on Solaris.
42428         * lib/iconv_open-solaris.gperf: New file.
42429         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42430         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42431         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42432         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42433         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42434         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42435
42436 2009-08-29  Jim Meyering  <meyering@redhat.com>
42437
42438         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42439         * top/maint.mk (cvs-check): Remove target; it was just an alias
42440         to the better-named vc-diff-check.
42441         (maintainer-distcheck): Remove rule.  It was used only from
42442         the (alpha/beta/major) target, and all of its commands but one
42443         were coreutils-specific.
42444         (vc-dist): Remove rule.
42445         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42446         Run vc-diff-check, not vc-dist.
42447         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42448
42449 2009-08-27  Bruno Haible  <bruno@clisp.org>
42450
42451         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42452         of 0.
42453
42454 2009-08-27  Bruno Haible  <bruno@clisp.org>
42455
42456         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42457         compilers.
42458         * doc/func.texi: Document the SunPRO C bug.
42459
42460 2009-08-27  Bruno Haible  <bruno@clisp.org>
42461
42462         Fix link error on Solaris.
42463         * tests/test-parse-duration.c (xstrdup): Remove function.
42464
42465 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42466
42467         ignore-value: handle pointer types, too
42468         * lib/ignore-value.h (__attribute__): Remove definition.
42469         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42470         of a more concise and more-often effective "(void) i" statement.
42471         (ignore_ptr): New function to suppress warnings from functions that
42472         return pointers, and to make it explicit that one function doesn't
42473         handle all cases.
42474
42475 2009-08-25  Bruno Haible  <bruno@clisp.org>
42476
42477         dup2: work around a Linux bug.
42478         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42479         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42480         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42481         Reported by Simon Josefsson.
42482
42483 2009-08-25  Jim Meyering  <meyering@redhat.com>
42484
42485         libguestfs uses gnulib
42486         * users.txt: Add libguestfs.
42487
42488 2009-08-24  Eric Blake  <ebb9@byu.net>
42489
42490         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42491         * lib/pipe2.c (includes): Add binary-io.h.
42492         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42493
42494 2009-08-24  Bruno Haible  <bruno@clisp.org>
42495
42496         Tolerate declared but missing accept4 syscall.
42497         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42498         available.
42499         * lib/sys_socket.in.h (accept4): If the function is already present,
42500         override it.
42501         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42502         * modules/accept4 (Makefile.am): Compile accept4.c always.
42503         Reported by Paolo Bonzini and Eric Blake.
42504
42505 2009-08-23  Bruno Haible  <bruno@clisp.org>
42506
42507         New module 'accept4'.
42508         * lib/sys_socket.in.h (accept4): New declaration.
42509         * lib/accept4.c: New file.
42510         * m4/accept4.m4: New file.
42511         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42512         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42513         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42514         HAVE_ACCEPT4.
42515         * modules/accept4: New file.
42516         * doc/glibc-functions/accept4.texi: Mention the new module.
42517
42518 2009-08-24  Jim Meyering  <meyering@redhat.com>
42519
42520         progname: also set global program_invocation_name, when possible
42521         Before this change, a libtool-enabled program that calls glibc's
42522         error function would report the program name as
42523         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42524         * modules/progname (configure.ac): Check for a declaration of
42525         program_invocation_name.
42526         * lib/progname.c:  Include <errno.h>.
42527         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42528         Set program_invocation_name.
42529
42530 2009-08-23  Bruno Haible  <bruno@clisp.org>
42531
42532         * lib/dup3.c: Include <string.h>.
42533
42534 2009-08-23  Bruno Haible  <bruno@clisp.org>
42535
42536         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42537         * lib/pipe2.c (pipe2): Likewise.
42538         Suggested by Eric Blake.
42539
42540 2009-08-23  Bruno Haible  <bruno@clisp.org>
42541
42542         Tolerate declared but missing dup3 syscall.
42543         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42544         * lib/unistd.in.h (dup3): If the function is already present,
42545         override it.
42546         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42547         * modules/dup3 (Makefile.am): Compile dup3.c always.
42548         Reported by Paolo Bonzini.
42549
42550 2009-08-23  Bruno Haible  <bruno@clisp.org>
42551
42552         Tolerate declared but missing pipe2 syscall.
42553         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42554         available.
42555         * lib/unistd.in.h (pipe2): If the function is already present,
42556         override it.
42557         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42558         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42559         Reported by Paolo Bonzini.
42560
42561 2009-08-23  Bruno Haible  <bruno@clisp.org>
42562
42563         * lib/pipe2.c (pipe2): Move #ifs inside function.
42564
42565 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42566
42567         quotearg: document limitations of quote_these_too
42568         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42569         those limitations are created.
42570         * lib/quotearg.h (set_char_quoting): Document that digits and
42571         letters that are special after backslash are not permitted.
42572         (quotearg_char): Cross-reference set_char_quoting documentation.
42573
42574 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42575
42576         quotearg: implement custom_quoting_style
42577         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42578         right_quote fields.
42579         (set_custom_quoting): New public function.
42580         (quotearg_buffer_restyled): Add left_quote and right_quote
42581         arguments, handle them very much like locale quoting, and update
42582         all uses.
42583         (quotearg_n_custom): New public function.
42584         (quotearg_n_custom_mem): New public function.
42585         (quotearg_custom): New public function.
42586         (quotearg_custom_mem): New public function.
42587         * lib/quotearg.h: Prototype and document new public functions.
42588         (enum quoting_style): For escape_quoting_style and
42589         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42590         ignored even though they're otherwise like c_quoting_style.
42591         Add custom_quoting_style member and document with comparison to
42592         clocale_quoting_style.
42593         * tests/test-quotearg.c (custom_quotes): New array.
42594         (custom_results): New array.
42595         (main): Extend to test custom quoting.
42596
42597 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42598
42599         quotearg: fix right quote escaping when it's in quote_these_too
42600         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42601         quote, be sure to prepend only one backslash.
42602         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42603         (main): Test it.
42604
42605 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42606
42607         quotearg-tests: test escaping of embedded locale quotes
42608         * tests/test-quotearg.c (struct result_strings): Add member for
42609         new input.
42610         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42611         (inputs): Add new input.
42612         (results_g): Add expected results.
42613         (flag_results): Likewise.
42614         (locale_results): Likewise.
42615         (compare_strings): Check those.
42616
42617 2009-08-23  Bruno Haible  <bruno@clisp.org>
42618
42619         Tests for module 'dup3'.
42620         * modules/dup3-tests: New file.
42621         * tests/test-dup3.c: New file.
42622
42623         New module 'dup3'.
42624         * lib/unistd.in.h (dup3): New declaration.
42625         * lib/dup3.c: New file.
42626         * m4/dup3.m4: New file.
42627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42628         HAVE_DUP3.
42629         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42630         * modules/dup3: New file.
42631         * doc/glibc-functions/dup3.texi: Mention the new module.
42632
42633 2009-08-23  Bruno Haible  <bruno@clisp.org>
42634
42635         Tweak the dup2 test.
42636         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42637         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42638         the test file is still empty. Fix argument order of lseek.
42639
42640 2009-08-23  Bruno Haible  <bruno@clisp.org>
42641
42642         Avoid test link errors when the modules getopt-gnu, gettext are used.
42643         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42644         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42645
42646 2009-08-23  Bruno Haible  <bruno@clisp.org>
42647
42648         Fix getdtablesize() on mingw.
42649         * lib/getdtablesize.c (getdtablesize): Implement differently.
42650         * lib/unistd.in.h (getdtablesize): Improve comment.
42651
42652 2009-08-23  Bruno Haible  <bruno@clisp.org>
42653
42654         New module 'mkostemp'.
42655         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42656         * lib/stdlib.in.h (mksotemp): New declaration.
42657         * lib/mkostemp.c: New file, from glibc with modifications.
42658         * lib/tempname.h (GT_FILE): Remove outdated comment.
42659         (gen_tempname): Add flags argument.
42660         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42661         (__GT_FILE): Map to 1.
42662         (small_open, large_open): Remove macros.
42663         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42664         * lib/mkstemp.c (mkstemp): Update.
42665         * lib/mkdtemp.c (mkdtemp): Likewise.
42666         * m4/mkostemp.m4: New file.
42667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42668         HAVE_MKOSTEMP.
42669         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42670         HAVE_MKOSTEMP.
42671         * modules/mkostemp: New file, based on modules/mkstemp.
42672         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42673         * NEWS: Mention the change.
42674
42675 2009-08-23  Bruno Haible  <bruno@clisp.org>
42676
42677         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42678         Reported by Eric Blake.
42679
42680 2009-08-23  Bruno Haible  <bruno@clisp.org>
42681
42682         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42683         Reported by Eric Blake.
42684
42685 2009-08-23  Bruno Haible  <bruno@clisp.org>
42686
42687         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42688         * modules/pipe2 (Depends-on): Likewise.
42689
42690 2009-08-23  Eric Blake  <ebb9@byu.net>
42691
42692         fcntl-h: add O_TTY_INIT support
42693         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42694         * tests/test-fcntl-h.c (o): Test it.
42695         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42696
42697         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42698         * modules/fcntl: Move <fcntl.h> header replacement...
42699         * modules/fcntl-h: ...to new name, so as not to collide with
42700         like-named function.
42701         * tests/test-fcntl.c: Rename...
42702         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42703         * modules/fcntl-tests: Rename...
42704         * modules/fcntl-h-tests: ...to this.  Update test file name.
42705         * modules/chdir-long (Depends-on): Update clients.
42706         * modules/chdir-safer (Depends-on): Likewise.
42707         * modules/fcntl-safer (Depends-on): Likewise.
42708         * modules/fts (Depends-on): Likewise.
42709         * modules/mkancesdirs (Depends-on): Likewise.
42710         * modules/mkdir-p (Depends-on): Likewise.
42711         * modules/open (Depends-on): Likewise.
42712         * modules/savewd (Depends-on): Likewise.
42713         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42714         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42715
42716 2009-08-22  Bruno Haible  <bruno@clisp.org>
42717
42718         * modules/binary-io (License): Relicense under LGPL.
42719         * modules/pipe2 (License): Likewise.
42720
42721 2009-08-22  Bruno Haible  <bruno@clisp.org>
42722
42723         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42724         return value.
42725         * lib/pipe-filter-gi.c (filter_init): Likewise.
42726         Reported by Eric Blake.
42727
42728 2009-08-22  Bruno Haible  <bruno@clisp.org>
42729
42730         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42731         * modules/pipe (Depends-on): Add pipe2.
42732
42733 2009-08-22  Bruno Haible  <bruno@clisp.org>
42734
42735         Tests for module 'pipe2'.
42736         * modules/pipe2-tests: New file.
42737         * tests/test-pipe2.c: New file.
42738
42739         New module 'pipe2'.
42740         * lib/unistd.in.h (pipe2): New declaration.
42741         * lib/pipe2.c: New file.
42742         * m4/pipe2.m4: New file.
42743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42744         HAVE_PIPE2.
42745         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42746         * modules/pipe2: New file.
42747         * doc/glibc-functions/pipe2.texi: Mention the new module.
42748
42749 2009-08-22  Bruno Haible  <bruno@clisp.org>
42750
42751         Reference some new glibc functions.
42752         * doc/glibc-functions/accept4.texi: New file.
42753         * doc/glibc-functions/dup3.texi: New file.
42754         * doc/glibc-functions/mkostemp.texi: New file.
42755         * doc/glibc-functions/pipe2.texi: New file.
42756         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42757         (Glibc sys/socket.h): Refer to accept4.
42758         (Glibc unistd.h): Refer to dup3, pipe2.
42759         Reported by Eric Blake.
42760
42761 2009-08-22  Jim Meyering  <meyering@redhat.com>
42762             Bruno Haible  <bruno@clisp.org>
42763
42764         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42765         This makes it so packages using automake-1.11's silent-rules option
42766         can print e.g., a single "GEN    configmake.h" line, rather than
42767         the 30+ statements that perform the job.  If you want to see the
42768         actual commands, you can still run "make V=1".
42769         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42770         so that make output is abbreviated when those variables are defined
42771         appropriately.
42772         * modules/argz: Likewise.
42773         * modules/arpa_inet: Likewise.
42774         * modules/byteswap: Likewise.
42775         * modules/configmake: Likewise.
42776         * modules/dirent: Likewise.
42777         * modules/errno: Likewise.
42778         * modules/fcntl: Likewise.
42779         * modules/float: Likewise.
42780         * modules/fnmatch: Likewise.
42781         * modules/getopt-posix: Likewise.
42782         * modules/glob: Likewise.
42783         * modules/iconv_open: Likewise.
42784         * modules/inttypes: Likewise.
42785         * modules/localcharset: Likewise.
42786         * modules/locale: Likewise.
42787         * modules/math: Likewise.
42788         * modules/netdb: Likewise.
42789         * modules/netinet_in: Likewise.
42790         * modules/poll: Likewise.
42791         * modules/posix_spawnp-tests: Likewise.
42792         * modules/sched: Likewise.
42793         * modules/search: Likewise.
42794         * modules/selinux-h: Likewise.
42795         * modules/signal: Likewise.
42796         * modules/spawn: Likewise.
42797         * modules/stdarg: Likewise.
42798         * modules/stdbool: Likewise.
42799         * modules/stddef: Likewise.
42800         * modules/stdint: Likewise.
42801         * modules/stdio: Likewise.
42802         * modules/stdlib: Likewise.
42803         * modules/string: Likewise.
42804         * modules/strings: Likewise.
42805         * modules/sys_file: Likewise.
42806         * modules/sys_ioctl: Likewise.
42807         * modules/sys_select: Likewise.
42808         * modules/sys_socket: Likewise.
42809         * modules/sys_stat: Likewise.
42810         * modules/sys_time: Likewise.
42811         * modules/sys_times: Likewise.
42812         * modules/sys_utsname: Likewise.
42813         * modules/sys_wait: Likewise.
42814         * modules/sysexits: Likewise.
42815         * modules/time: Likewise.
42816         * modules/unistd: Likewise.
42817         * modules/wchar: Likewise.
42818         * modules/wctype: Likewise.
42819
42820 2009-08-22  Jim Meyering  <meyering@redhat.com>
42821
42822         announce-gen: detect write failure
42823         * build-aux/announce-gen: Add Coda at end.
42824         Remove equivalent-but-more-verbose block at top.
42825
42826 2009-08-19  Akim Demaille  <demaille@gostai.com>
42827
42828         bootstrap: --help to stdout.
42829         * bootstrap (usage): Don't send --help to stderr.
42830         Use a here doc instead of a long string.
42831
42832 2009-08-21  Eric Blake  <ebb9@byu.net>
42833
42834         test-popen-safer: split from test-popen
42835         * tests/test-popen.c (main): Move...
42836         * tests/test-popen.h: ...into new file.
42837         * tests/test-popen-safer2.c: New file.
42838         * modules/popen-tests (Files): Add test-popen.h.
42839         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42840         Suggested by Bruno Haible.
42841
42842         test-fcntl-safer: split from test-open
42843         * tests/test-open.c (main): Move...
42844         * tests/test-open.h: ...into new file.
42845         * tests/test-fcntl-safer.c: New file.
42846         * modules/open-tests (Files): Add test-open.h.
42847         * modules/fcntl-safer-tests: New file.
42848         Suggested by Bruno Haible.
42849
42850         test-fopen-safer: split from test-fopen
42851         * tests/test-fopen.c (main): Move...
42852         * tests/test-fopen.h: ...into new file.
42853         * tests/test-fopen-safer.c: New file.
42854         * modules/fopen-tests (Files): Add test-fopen.h.
42855         * modules/fopen-safer-tests: New file.
42856         Suggested by Bruno Haible.
42857
42858 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42859
42860         popen-safer: test O_CLOEXEC at run-time.
42861         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42862
42863 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42864
42865         fcntl: move more flags to the header
42866         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42867         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42868         * lib/fcntl.in.h: Do both things here.
42869
42870 2009-08-21  Jim Meyering  <meyering@redhat.com>
42871
42872         consistently remove $@-t before redirecting to it
42873         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42874         * modules/alloca-opt: Likewise.
42875         * modules/byteswap: Likewise.
42876         * modules/fnmatch: Likewise.
42877         * modules/getopt-posix: Likewise.
42878         * modules/glob: Likewise.
42879         * modules/poll: Likewise.
42880         * modules/posix_spawnp-tests: Likewise.
42881         * modules/sys_socket: Likewise.
42882         * modules/sysexits: Likewise.
42883
42884 2009-08-21  Eric Blake  <ebb9@byu.net>
42885
42886         popen: simplify access to original popen
42887         * lib/popen.c (rpl_popen): No need to worry about popen being a
42888         macro.
42889         Reported by Bruno Haible.
42890
42891 2009-08-20  Eric Blake  <ebb9@byu.net>
42892
42893         build: avoid some compiler warnings
42894         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42895         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42896         type.
42897         (new_exclude_segment, excluded_file_pattern_p)
42898         (excluded_file_name_p): Reduce scope.
42899         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42900         old-style declaration.
42901
42902 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42903
42904         * tests/test-exclude1.sh: Handle Windows EOL.
42905         * tests/test-exclude2.sh: Likewise.
42906         * tests/test-exclude3.sh: Likewise.
42907         * tests/test-exclude4.sh: Likewise.
42908         * tests/test-exclude5.sh: Likewise.
42909         * tests/test-exclude6.sh: Likewise.
42910         * tests/test-exclude7.sh: Likewise.
42911
42912 2009-08-19  Akim Demaille  <demaille@gostai.com>
42913
42914         bootstrap: find sha1sum when named gsha1sum.
42915         * bootstrap (find_tool): New.
42916         ($SHA1SUM): New.
42917         Use it.
42918
42919 2009-08-20  Jim Meyering  <meyering@redhat.com>
42920
42921         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42922         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42923         expression that converts "." in a file name to "\." in the resulting
42924         regexp.  Start with a dummy statement, so that prior shell variable
42925         definitions are expanded portably.  Reported by Simon Josefsson.
42926
42927 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42928
42929         Fix polling for writeability of a screen buffer.
42930         * lib/poll.c: Distinguish input and screen buffers for the
42931         Win32 implementation.
42932         * lib/select.c: Likewise.
42933
42934 2009-08-19  Eric Blake  <ebb9@byu.net>
42935
42936         popen-safer: prevent popen from clobbering std descriptors
42937         * modules/popen-safer: New file.
42938         * lib/popen-safer.c: Likewise.
42939         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42940         * lib/stdio--.h (popen): Provide override.
42941         * lib/stdio-safer.h (popen_safer): Provide declaration.
42942         * tests/test-popen.c (includes): Partially test this.
42943         * modules/popen-safer-tests: New file, for more tests.
42944         * tests/test-popen-safer.c: Likewise.
42945         * MODULES.html.sh (file stream based Input/Output): Mention it.
42946
42947         tests: test some of the *-safer modules
42948         * modules/fopen-safer (Depends-on): Add fopen.
42949         * modules/fcntl-safer (Depends-on): Add fcntl.
42950         * modules/stdlib-safer (Depends-on): Add stdlib.
42951         (configure.ac): Set indicator.
42952         * modules/unistd-safer (configure.ac): Likewise.
42953         * modules/tmpfile-safer (configure.ac): Likewise.
42954         (Depends-on): Add tmpfile.
42955         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42956         active.
42957         * tests/test-fopen.c (includes): Test safer versions when they are
42958         in use.
42959         * tests/test-open.c (includes): Likewise.
42960
42961         popen: fix cygwin 1.5 bug when stdin closed
42962         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42963         * modules/popen: New file.
42964         * modules/popen-tests: Likewise.
42965         * tests/test-popen.c: Likewise.
42966         * m4/popen.m4: Likewise.
42967         * lib/popen.c: Likewise.
42968         * lib/stdio.in.h (popen): New declaration.
42969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42970         * modules/stdio (Makefile.am): Likewise.
42971         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42972
42973 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42974
42975         maint.mk: give full control over update-copyright exclusions
42976         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42977         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42978         (update-copyright): Don't force inclusion of top-level
42979         ChangeLog.  Don't force exclusion of all COPYING files, but make
42980         them the default exclusion instead.
42981
42982 2009-08-16  Bruno Haible  <bruno@clisp.org>
42983
42984         Fix test failures on Solaris 10.
42985         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42986         tests when Solaris iconv() is used.
42987         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42988         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42989         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42990         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42991         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42992
42993 2009-08-16  Bruno Haible  <bruno@clisp.org>
42994
42995         Fix test failures on Solaris 10.
42996         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42997         'tr' program and pass it as first argument.
42998         * tests/test-pipe-filter-gi1.sh: Likewise.
42999         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
43000         program as first argument.
43001         * tests/test-pipe-filter-gi1.c (main): Likewise.
43002
43003 2009-08-16  Eric Blake  <ebb9@byu.net>
43004
43005         fpurge: fix previous commits
43006         * modules/fpurge (Makefile.am): Make replacement conditional,
43007         partially reverting 2007-04-29 change; missed in previous
43008         attempt.
43009         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
43010         is missing.
43011
43012 2009-08-16  Bruno Haible  <bruno@clisp.org>
43013
43014         Clarify fpurge's effect on the file position.
43015         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
43016         * tests/test-fpurge.c (main): Make a second pass for checking the file
43017         position.
43018
43019 2009-08-16  Bruno Haible  <bruno@clisp.org>
43020
43021         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
43022         declaration of fpurge is missing.
43023         * tests/test-fpurge.c (main): Check that the file has not more contents
43024         than expected. Close the file before removing it.
43025
43026 2009-08-15  Eric Blake  <ebb9@byu.net>
43027
43028         fpurge: don't wrap working cygwin implementation
43029         * lib/fpurge.c (fpurge): Fix comment typo.
43030         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
43031         1.7 to avoid replacement.
43032         * tests/test-fpurge.c (main): Enhance test.
43033
43034 2009-08-15  Eric Blake  <ebb9@byu.net>
43035         and Jim Meyering  <meyering@redhat.com>
43036
43037         test-update-copyright: skip if perl is insufficient
43038         * tests/test-update-copyright.sh: Failure to run maintainer tool
43039         should not cause testsuite failure on cygwin 1.5.
43040
43041 2009-08-14  Eric Blake  <ebb9@byu.net>
43042
43043         doc: mention more functions added in cygwin 1.7.0
43044         * doc/posix-headers/limits.texi (limits.h): Update for recent
43045         cygwin additions.
43046         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
43047         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
43048         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
43049         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
43050         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
43051
43052 2009-08-14  Eric Blake  <ebb9@byu.net>
43053
43054         maint.mk: simplify update-copyright rule
43055         * top/maint.mk (update-copyright-local): Delete, and document how
43056         to do it in cfg.mk instead.
43057         (update-copyright-exclude-regexp): Delete, and document how to do
43058         it in .x-update-copyright instead.
43059         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
43060         exclude ChangeLog.
43061
43062 2009-08-14  Bruno Haible  <bruno@clisp.org>
43063
43064         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
43065
43066 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43067
43068         maint.mk: support update-copyright-env
43069         * top/maint.mk (update-copyright-env): Define place-holder.
43070         (update-copyright): Expand $(update-copyright-env) before
43071         invoking update-copyright.
43072
43073 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43074
43075         update-copyright: implement forced reformatting
43076         * build-aux/update-copyright: Implement and document
43077         UPDATE_COPYRIGHT_FORCE.
43078         * tests/test-update-copyright.sh: Test it.
43079
43080 2009-08-14  Eric Blake  <ebb9@byu.net>
43081         and Bruno Haible  <bruno@clisp.org>
43082
43083         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
43084         * tests/test-locale.c: Revert previous patch related to NULL.
43085         * tests/test-stdio.c: Likewise.
43086         * tests/test-stdlib.c: Likewise.
43087         * tests/test-string.c: Likewise.
43088         * tests/test-unistd.c: Likewise.
43089         * modules/time-tests (Depends-on): Add verify.
43090         * modules/wchar-tests (Depends-on): Likewise.
43091         * tests/test-time.c: Test for NULL compliance.
43092         * tests/test-wchar.c: Likewise.
43093         * modules/locale (Depends-on): Add stddef.
43094         * modules/stdio (Depends-on): Likewise.
43095         * modules/stdlib (Depends-on): Likewise.
43096         * modules/string (Depends-on): Likewise.
43097         * modules/time (Depends-on): Likewise.
43098         * modules/unistd (Depends-on): Likewise.
43099         * modules/wchar (Depends-on): Likewise.
43100         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
43101         * lib/stdlib.in.h (includes): Likewise.
43102         * lib/string.in.h (includes): Likewise.
43103         * lib/time.in.h (includes): Likewise.
43104         * lib/unistd.in.h (includes): Likewise.
43105         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
43106         replaced.
43107         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
43108         * m4/stddef_h.m4: New file.
43109         * modules/stddef: Likewise.
43110         * lib/stddef.in.h: Likewise.
43111         * modules/stddef-tests: Likewise.
43112         * tests/test-stddef.c: Likewise.
43113         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
43114         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
43115         * doc/posix-headers/locale.texi (locale.h): Likewise.
43116         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
43117         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
43118         * doc/posix-headers/string.texi (string.h): Likewise.
43119         * doc/posix-headers/time.texi (time.h): Likewise.
43120         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
43121         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
43122
43123 2009-08-14  Eric Blake  <ebb9@byu.net>
43124
43125         doc: improve git diff of texinfo files
43126         * .gitattributes: Add rule for *.texi files, with hint on how to
43127         use it.
43128         Copied from m4, and based on a report by Bruno Haible.
43129
43130 2009-08-14  Bruno Haible  <bruno@clisp.org>
43131
43132         Disable multithread support by default on Cygwin 1.5.x for real.
43133         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
43134
43135 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
43136
43137         update-copyright: much ado about intervals
43138         * build-aux/update-copyright: Implement and document
43139         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
43140         of copyright year intervals.
43141         Also, document UPDATE_COPYRIGHT_YEAR.
43142         * tests/test-update-copyright.sh: Test it.
43143
43144         update-copyright: convert 2-digit to 4-digit years
43145         * build-aux/update-copyright: Implement and document.
43146         * tests/test-update-copyright.sh: Update.
43147
43148 2009-08-14  Jim Meyering  <meyering@redhat.com>
43149
43150         test-exclude: avoid coreutils "make check" failure
43151         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
43152         just as in test-argmatch.c.
43153
43154 2009-08-13  Eric Blake  <ebb9@byu.net>
43155
43156         test-dup2: fix bad assumption
43157         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
43158         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
43159
43160         test-version-etc: fix CRLF portability issue
43161         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
43162         recognize \r.
43163         * tests/test-argp-version-etc-1.sh: Likewise.
43164
43165         getopt: update client modules
43166         * modules/argp (Depends-on): Use getopt-gnu.
43167         * modules/git-merge-changelog (Depends-on): Likewise.
43168         * modules/long-options (Depends-on): Likewise.
43169         * modules/xstrtol (Depends-on): Likewise.
43170
43171 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43172
43173         * tests/test-version-etc.sh: Don't fail on different
43174         project/version.  Don't fail on CRLF differences.  Rewrite to use
43175         multiple -e instead of multiple sed forks, suggested by Eric Blake
43176         <ebb9@byu.net>.
43177         * tests/test-argp-version-etc-1.sh: Likewise.
43178
43179 2009-08-13  Simon Josefsson  <simon@josefsson.org>
43180
43181         * tests/test-version-etc.sh: Don't fail on different
43182         project/version.
43183
43184 2009-08-12  Bruno Haible  <bruno@clisp.org>
43185
43186         Tests for modules 'getopt-posix', 'getopt-gnu'.
43187         * modules/getopt-posix-tests: New file.
43188         * tests/test-getopt.c: New file.
43189         * tests/test-getopt.h: New file.
43190         * tests/test-getopt_long.h: New file.
43191
43192         New modules 'getopt-posix', 'getopt-gnu'.
43193         * modules/getopt-gnu: New file, renamed from modules/getopt.
43194         * modules/getopt-posix: New file.
43195         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
43196         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
43197         (gl_GETOPT): Remove macro.
43198         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
43199         Disable the test against BSD systems that declare optreset. Test
43200         against mingw bug. Test against lack of support of optional arguments
43201         on many platforms.
43202         * doc/glibc-headers/getopt.texi: Update module name and list of
43203         relevant platforms.
43204         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
43205         'getopt-gnu' and more portability problems.
43206         * NEWS: Mention the changes.
43207
43208 2009-08-12  Bruno Haible  <bruno@clisp.org>
43209
43210         Ensure that optarg etc. get declared by <unistd.h>.
43211         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
43212         AC_USE_SYSTEM_EXTENSIONS.
43213         * modules/getopt (Depends-on): Add 'extensions'.
43214
43215 2009-08-12  Bruno Haible  <bruno@clisp.org>
43216
43217         Avoid test link errors.
43218         * modules/pipe-filter-ii-tests (Makefile.am): Define
43219         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
43220         * modules/pipe-filter-gi-tests (Makefile.am): Define
43221         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
43222         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43223
43224 2009-08-12  Bruno Haible  <bruno@clisp.org>
43225
43226         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
43227         gl_GETOPT_SUBSTITUTE before.
43228         (gl_GETOPT): Use it.
43229         * m4/argp.m4 (gl_ARGP): Update.
43230         Reported by Sergey Poznyakoff.
43231
43232         * m4/getopt.m4: Reorder macros.
43233         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
43234         (gl_GETOPT_SUBSTITUTE): Remove macro.
43235
43236 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43237
43238         Minor improvement in gitlog-to-changelog
43239
43240         * build-aux/gitlog-to-changelog: New option `--format' makes
43241         output format string configurable.
43242
43243 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
43244
43245         Optimize exclude: use hash tables for non-wildcard patterns.
43246
43247         * lib/exclude.c: Include hash.h and mbuiter.h
43248         (struct exclude_pattern, exclude_segment): New data types.
43249         (struct exclude): Rewrite.
43250         (fnmatch_pattern_has_wildcards): New function.
43251         (new_exclude_segment, free_exclude_segment): New functions.
43252         (excluded_file_pattern_p, excluded_file_name_p): New functions.
43253         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
43254         * lib/exclude.h (is_fnmatch_pattern): New prototype.
43255         * modules/exclude: Depend on hash and mbuiter.
43256
43257         * modules/exclude-tests: New file.
43258         * tests/test-exclude.c: New file.
43259         * tests/test-exclude1.sh: New file.
43260         * tests/test-exclude2.sh: New file.
43261         * tests/test-exclude3.sh: New file.
43262         * tests/test-exclude4.sh: New file.
43263         * tests/test-exclude5.sh: New file.
43264         * tests/test-exclude6.sh: New file.
43265         * tests/test-exclude7.sh: New file.
43266
43267 2009-08-12  Bruno Haible  <bruno@clisp.org>
43268
43269         Ensure that getopt() gets declared by <unistd.h>.
43270         * lib/unistd.in.h: Conditionally include getopt.h.
43271         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
43272         Set GNULIB_UNISTD_H_GETOPT.
43273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43274         GNULIB_UNISTD_H_GETOPT.
43275         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
43276
43277 2009-08-12  Bruno Haible  <bruno@clisp.org>
43278
43279         Clarify logic.
43280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
43281         gl_replace_getopt instead of GETOPT_H.
43282
43283 2009-08-12  Bruno Haible  <bruno@clisp.org>
43284
43285         * m4/getopt.m4: Add comments.
43286
43287 2009-08-12  Bruno Haible  <bruno@clisp.org>
43288
43289         Disable multithread support by default on Cygwin 1.5.x.
43290         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
43291         set gl_use_threads=no if not specified otherwise.
43292
43293 2009-08-11  Bruno Haible  <bruno@clisp.org>
43294
43295         Avoid compilation error on NetBSD 5.0.
43296         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
43297         * tests/test-stdio.c: Likewise.
43298         * tests/test-stdlib.c: Likewise.
43299         * tests/test-string.c: Likewise.
43300         * tests/test-unistd.c: Likewise.
43301         Reported by Greg Troxel <gdt@ir.bbn.com>
43302         at <https://savannah.gnu.org/support/?106973>.
43303
43304 2009-08-11  Bruno Haible  <bruno@clisp.org>
43305
43306         * modules/dup2-tests (Depends-on): Remove close.
43307
43308         Undo 2009-07-19 commit.
43309         * modules/acl-tests (Depends-on): Remove close.
43310         * modules/binary-io-tests (Depends-on): Likewise.
43311         * modules/closein-tests (Depends-on): Likewise.
43312         * modules/flock-tests (Depends-on): Likewise.
43313         * modules/fsync-tests (Depends-on): Likewise.
43314         * modules/lseek-tests (Depends-on): Likewise.
43315         * modules/pipe-tests (Depends-on): Likewise.
43316         * modules/posix_spawn-tests (Depends-on): Likewise.
43317         * modules/posix_spawnp-tests (Depends-on): Likewise.
43318         * modules/stat-time-tests (Depends-on): Likewise.
43319         * modules/yesno-tests (Depends-on): Likewise.
43320
43321 2009-08-10  Bruno Haible  <bruno@clisp.org>
43322
43323         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43324
43325 2009-08-10  Bruno Haible  <bruno@clisp.org>
43326
43327         Fix a gcc warning.
43328         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43329
43330 2009-08-10  Bruno Haible  <bruno@clisp.org>
43331
43332         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43333         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43334         not only the first time.
43335         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43336         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43337         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43338         is 1, not only the the first time.
43339
43340 2009-08-10  Bruno Haible  <bruno@clisp.org>
43341
43342         Make it possible to use module 'gethostname' without module 'close'.
43343         * lib/unistd.in.h (close): Evoke a link error only if
43344         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43346         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43347         * modules/unistd (Makefile.am): Substitute
43348         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43349         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43350         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43351         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43352         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43353         * modules/sys_ioctl (Makefile.am): Substitute
43354         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43355         * modules/socket (configure.ac): On native Windows, set
43356         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43357         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43358         Reported by Sam Steingold <sds@gnu.org>.
43359
43360 2009-08-10  Bruno Haible  <bruno@clisp.org>
43361
43362         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43363         * modules/ioctl (configure.ac): Likewise.
43364
43365 2009-08-10  Bruno Haible  <bruno@clisp.org>
43366
43367         Avoid collision between gnulib wrapper and libintl wrapper.
43368         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43369         already defined in intl/printf.c.
43370         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43371         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43372
43373 2009-08-09  Bruno Haible  <bruno@clisp.org>
43374
43375         Make <sys/select.h> really self-contained, also on Solaris 10.
43376         * lib/sys_select.in.h: Include <string.h>.
43377         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43378         Solaris 10 problem.
43379         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43380         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43381         Reported by Jim Meyering.
43382
43383 2009-08-09  Bruno Haible  <bruno@clisp.org>
43384
43385         Avoid warnings from 'aclocal' that are due to a use of macro name
43386         AM_XGETTEXT_OPTION that is not defined in automake.
43387         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43388         automake.
43389         * modules/error (configure.ac): Likewise.
43390         * modules/propername (configure.ac): Likewise.
43391         * modules/vasprintf (configure.ac): Likewise.
43392         * modules/verror (configure.ac): Likewise.
43393         * modules/xprintf (configure.ac): Likewise.
43394         * modules/xvasprintf (configure.ac): Likewise.
43395
43396 2009-08-08  Bruno Haible  <bruno@clisp.org>
43397
43398         Avoid compilation error in C++ mode.
43399         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43400         Reported by Sam Steingold <sds@gnu.org>.
43401
43402 2009-08-08  Bruno Haible  <bruno@clisp.org>
43403
43404         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43405         for the various Unix platforms.
43406         * doc/posix-headers/limits.texi: Update platforms list regarding
43407         HOST_NAME_MAX.
43408         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43409
43410 2009-08-07  Jim Meyering  <meyering@redhat.com>
43411
43412         selinux-at: fix typo in a comment
43413         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43414         Spotted by Paolo Bonzini.
43415
43416         selinux-at: remove redundant m4 code, add documentation
43417         * modules/selinux-at (configure.ac): Remove redundant code.
43418         LIB_SELINUX is already set via the dependent module, selinux-h.
43419         (Include): Add quotes around selinux-at.h.
43420         * lib/selinux-at.h: Add documentation.
43421         Reported by Bruno Haible in
43422         http://marc.info/?l=gnulib-bug&m=124958988300749
43423
43424 2009-08-07  Bruno Haible  <bruno@clisp.org>
43425
43426         Avoid link error on MacOS X 10.3 and 10.4.
43427         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43428         on non-ELF systems.
43429         * lib/argp-pv.c (argp_program_version): Likewise.
43430         Reported by Simon Josefsson.
43431
43432 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43433
43434         * tests/test-version-etc.sh: Use $EXEEXT.
43435
43436 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43437
43438         update-copyright: update documentation to point to maint.mk
43439         * build-aux/update-copyright: Here.
43440
43441 2009-08-06  Jim Meyering  <meyering@redhat.com>
43442
43443         maint.mk: support update-copyright-local
43444         * top/maint.mk (update-copyright-local): Define place-holder.
43445         (update-copyright): Depend on $(update-copyright-local).
43446
43447 2009-08-06  Jim Meyering  <meyering@redhat.com>
43448
43449         selinux-at: new module
43450         Initially written for coreutils, this module will soon be
43451         used by findutils, too.
43452         * MODULES.html.sh [Misc]: Add selinux-at.
43453         * lib/selinux-at.h: New file, from coreutils.
43454         * lib/selinux-at.c: Likewise.
43455         * modules/selinux-at: Likewise.
43456         (License): Change from LGPL to GPL, since it depends
43457         on the GPL'd openat module.
43458
43459         doc: update README
43460         * README: Remove references to cogito.
43461         Remove cvs-repo-updating instructions from 2007.
43462         Don't imply that CVS is better if you have limited disk space.
43463
43464 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43465
43466         update-copyright: support C-style comments
43467         * build-aux/update-copyright: Implement and document.
43468         * tests/test-update-copyright.sh: Test.
43469
43470 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43471
43472         update-copyright: support omitted "(C)"
43473         * build-aux/update-copyright: Implement and document.  Also,
43474         allow variable whitespace before "(C)".
43475         * tests/test-update-copyright.sh: Test.
43476
43477 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43478
43479         update-copyright: don't trip on non-FSF copyright statements
43480         * build-aux/update-copyright: Fix so that the first correctly
43481         formatted FSF copyright statement is recognized no matter what
43482         appears before it.  Update documentation.
43483         * tests/test-update-copyright.sh: Test that.
43484
43485 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43486
43487         update-copyright: clean up code a little
43488         * build-aux/update-copyright: Append "_re" to the name of any
43489         variable holding a regular expression.
43490         Replace "old" and "new" with "stmt" in variable names.
43491         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43492         handled correctly.
43493         Format code more consistently.
43494
43495 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43496
43497         update-copyright-tests: improve portability
43498         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43499         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43500
43501 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43502
43503         update-copyright: support @copyright{} and &copy;
43504         * build-aux/update-copyright: Implement and document.
43505         * tests/test-update-copyright.sh: Test.
43506
43507 2009-08-04  Jim Meyering  <meyering@redhat.com>
43508
43509         update-copyright-tests: correctly test EOL=\r\n handling
43510         * tests/test-update-copyright.sh: Put \r at the end of some lines
43511         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43512
43513         maint.mk: make update-copyright exclusion list more configurable
43514         * top/maint.mk (update-copyright): Default to excluding COPYING,
43515         but allow an override, in case someone does want to update that file.
43516
43517         maint.mk: don't update copyright date in COPYING
43518         * top/maint.mk (update-copyright): Exclude COPYING.
43519
43520         maint.mk: add a copyright-updating rule
43521         * top/maint.mk (update-copyright): New rule.
43522         Derived from coreutils/Makefile.am.
43523
43524         update-copyright: rename some variables
43525         * build-aux/update-copyright: Rename a few variables for clarity.
43526         Tweak syntax.  List Joel E. Denny as coauthor.
43527
43528 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43529
43530         update-copyright: fix bug for 2-digit last year and add tests
43531         * build-aux/update-copyright: Fix bug.
43532         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43533         specified.
43534         * modules/update-copyright-tests: New
43535         * tests/test-update-copyright.sh: New.
43536
43537 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43538
43539         update-copyright: handle leading tabs in line prefix
43540         * build-aux/update-copyright: Count leading tabs as 8 spaces
43541         when computing margin.  This helps with the formatting of
43542         ChangeLogs, for example.
43543         Fix documentation a little.
43544
43545 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43546
43547         update-copyright: support EOL=\r\n
43548         * build-aux/update-copyright: Implement that.
43549
43550 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43551
43552         update-copyright: automatically format copyright statements
43553         * build-aux/update-copyright: Implement that.
43554         Also, be a little more predictable and safer by always failing
43555         when the full copyright format is not perfectly recognized as an
43556         unbroken whole.  Discussed at
43557         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43558         Rewrite documentation.
43559
43560 2009-08-03  Bruno Haible  <bruno@clisp.org>
43561
43562         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43563
43564 2009-08-02  Bruno Haible  <bruno@clisp.org>
43565
43566         Tests for module 'uname'.
43567         * modules/uname-tests: New file.
43568         * tests/test-uname.c: New file.
43569
43570         New module 'uname'.
43571         * lib/uname.c: New file.
43572         * m4/uname.m4: New file.
43573         * modules/uname: New file.
43574         * doc/posix-functions/uname.texi: Mention the new module.
43575
43576 2009-08-02  Bruno Haible  <bruno@clisp.org>
43577
43578         Tests for module 'sys_utsname'.
43579         * modules/sys_utsname-tests: New file.
43580         * tests/test-sys_utsname.c: New file.
43581
43582         New module 'sys_utsname'.
43583         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43584         * m4/sys_utsname_h.m4: New file.
43585         * modules/sys_utsname: New file.
43586         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43587
43588 2009-08-02  Bruno Haible  <bruno@clisp.org>
43589
43590         Implicitly initialize the sockets library.
43591         * lib/gethostname.c: Include sockets.h.
43592         (rpl_gethostname): Invoke gl_sockets_startup.
43593         * lib/socket.c: Include sockets.h.
43594         (rpl_socket): Invoke gl_sockets_startup.
43595         * modules/gethostname (Depends-on): Add sockets.
43596         * modules/socket (Depends-on): Likewise.
43597         * tests/test-poll.c: Don't include sockets.h.
43598         (main): Don't invoke gl_sockets_startup.
43599         * tests/test-select.c: Don't include sockets.h.
43600         (main): Don't invoke gl_sockets_startup.
43601
43602 2009-08-02  Bruno Haible  <bruno@clisp.org>
43603
43604         Allow multiple calls to gl_sockets_startup.
43605         * lib/sockets.c (initialized_sockets_version): New variable.
43606         (gl_sockets_startup): Do nothing if already called for this or a higher
43607         version.
43608         (gl_sockets_cleanup): Reset initialized_sockets_version.
43609
43610 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43611
43612         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43613         different project/version.
43614
43615 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43616             Bruno Haible  <bruno@clisp.org>
43617
43618         Tests for module 'pipe-filter-gi'.
43619         * modules/pipe-filter-gi-tests: New file.
43620         * tests/test-pipe-filter-gi1.sh: New file.
43621         * tests/test-pipe-filter-gi1.c: New file.
43622         * tests/test-pipe-filter-gi2.sh: New file.
43623         * tests/test-pipe-filter-gi2-main.c: New file.
43624         * tests/test-pipe-filter-gi2-child.c: New file.
43625
43626         New module 'pipe-filter-gi'.
43627         * lib/pipe-filter-gi.c: New file.
43628         * modules/pipe-filter-gi: New file.
43629
43630 2009-08-02  Bruno Haible  <bruno@clisp.org>
43631             Paolo Bonzini  <bonzini@gnu.org>
43632
43633         Tests for module 'pipe-filter-ii'.
43634         * modules/pipe-filter-ii-tests: New file.
43635         * tests/test-pipe-filter-ii1.sh: New file.
43636         * tests/test-pipe-filter-ii1.c: New file.
43637         * tests/test-pipe-filter-ii2.sh: New file.
43638         * tests/test-pipe-filter-ii2-main.c: New file.
43639         * tests/test-pipe-filter-ii2-child.c: New file.
43640
43641         New module 'pipe-filter-ii'.
43642         * lib/pipe-filter.h: New file.
43643         * lib/pipe-filter-ii.c: New file.
43644         * lib/pipe-filter-aux.h: New file.
43645         * modules/pipe-filter-ii: New file.
43646
43647 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43648
43649         * lib/gc-libgcrypt.c: Change copyright to FSF.
43650         * lib/gc-gnulib.c: Likewise.
43651
43652 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43653
43654         * lib/gethostname.c: Include limits.h.
43655
43656 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43657             Bruno Haible  <bruno@clisp.org>
43658
43659         Ensure HOST_NAME_MAX as part of the gethostname module.
43660         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43661         define also HOST_NAME_MAX.
43662         * tests/test-gethostname.c: Include <limits.h>.
43663         (main): Check also HOST_NAME_MAX.
43664         * doc/posix-headers/limits.texi: Document the mingw problem.
43665
43666 2009-08-02  Bruno Haible  <bruno@clisp.org>
43667
43668         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43669         Add comments.
43670
43671 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43672
43673         * lib/gethostname.c: Add Windows wrapper.
43674         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43675         * modules/gethostname: Depend on sys_socket & errno, for also
43676         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43677         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43678
43679 2009-07-31  Jim Meyering  <meyering@redhat.com>
43680
43681         getloadavg: fix symbol name in comment
43682         * lib/getloadavg.c: Correct a typo I introduced when adding
43683         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43684         Matt Kraai spotted the problem.
43685
43686 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43687
43688         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43689         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43690         code also if ! defined N_NAME_POINTER.
43691         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43692         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43693         but the n_name member is a 12-byte array.
43694
43695 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43696
43697         update-copyright: generalize comment handling
43698         * build-aux/update-copyright: Handle copyright statements
43699         within more comment styles.
43700         Document usage.
43701         Report any file with an external copyright holder or parse failure.
43702
43703 2009-07-29  Jim Meyering  <meyering@redhat.com>
43704
43705         mktime: correct setting of REPLACE_MKTIME
43706         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43707
43708         update-copyright: new module
43709         * modules/update-copyright: New file.
43710         * build-aux/update-copyright: New file.
43711         * MODULES.html.sh (maint+release support): Add update-copyright.
43712
43713 2009-07-27  Bruno Haible  <bruno@clisp.org>
43714
43715         Fix compilation error when <ctime> is used and mktime is replaced.
43716         * lib/time.in.h (mktime): New declaration.
43717         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43718         REPLACE_MKTIME instead of defining mktime in config.h.
43719         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43720         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43721         Reported by Ross McFarland <rwmcfa1@neces.com>.
43722
43723 2009-07-27  Bruno Haible  <bruno@clisp.org>
43724
43725         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43726         Reported by Matt Kraai <mkraai@beckman.com>.
43727
43728 2009-07-25  Jim Meyering  <meyering@redhat.com>
43729
43730         maint.mk: avoid warnings about missing files
43731         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43732         diagnostic when .prev-version does not exist.
43733         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43734         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43735         nonexistent cfg.mk.
43736         Suggestions from Simon Josefsson.
43737
43738 2009-07-25  Bruno Haible  <bruno@clisp.org>
43739
43740         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43741         defined as macros. Needed on QNX 6.4.1.
43742         Reported by Matt Kraai <mkraai@beckman.com>.
43743
43744 2009-07-23  Jim Meyering  <meyering@redhat.com>
43745
43746         maint.mk: invoke "make dist" with a working value of XZ_OPT
43747         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43748
43749 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43750
43751         Make fseeko.c compile on QNX.
43752         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43753
43754 2009-07-22  Peter Simons  <simons@cryp.to>
43755
43756         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43757         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43758         * lib/md4.h: Likewise.
43759         * lib/md5.h: Likewise.
43760         * lib/sha1.h: Likewise.
43761         * lib/sha256.h: Likewise.
43762         * lib/sha512.h: Likewise.
43763
43764         tests-sha1: don't assign literal string to 'char *' variable
43765         * tests/test-sha1.c (main): Declare locals with "const" to match
43766         attributes of the right hand side.
43767
43768 2009-07-21  Eric Blake  <ebb9@byu.net>
43769
43770         dup2: fix more mingw problems
43771         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43772         fd to itself.
43773         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43774         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43775         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43776         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43777         care of mingw bugs.
43778
43779 2009-07-21  Jim Meyering  <meyering@redhat.com>
43780
43781         vc-list-files: avoid failure when /bin/sh is dash
43782         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43783         On some Debian based systems, /bin/sh is a symlink to dash, and running
43784         this command would omit the "/" following each 'tests' prefix:
43785           dash -x build-aux/vc-list-files -C . tests
43786         That is because bash and dash work differently:
43787           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43788           bash ok
43789           dash odd
43790
43791 2009-07-21  Eric Blake  <ebb9@byu.net>
43792
43793         dup2-tests: test previous patch
43794         * modules/dup2-tests: New file.
43795         * tests/test-dup2.c: Likewise.
43796         * tests/test-open.c (main): Avoid unspecified behavior.
43797         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43798         test.
43799
43800         dup2: work around mingw and cygwin 1.5 bug
43801         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43803         * modules/unistd (Makefile.am): Substitute it.
43804         * lib/unistd.in.h (dup2): Declare the replacement.
43805         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43806         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43807         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43808         * modules/execute (Depends-on): Add dup2.
43809         * modules/fseterr (Depends-on): Likewise.
43810         * modules/pipe (Depends-on): Likewise.
43811         * modules/posix_spawn-internal (Depends-on): Likewise.
43812
43813 2009-07-21  Bruno Haible  <bruno@clisp.org>
43814
43815         * modules/.gitattributes: New file.
43816
43817 2009-07-20  Bruno Haible  <bruno@clisp.org>
43818
43819         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43820         (main): Use it.
43821
43822 2009-07-20  Eric Blake  <ebb9@byu.net>
43823
43824         test-pipe: make a bit more robust.
43825         * tests/test-pipe.c (myerr): Allow error messages regardless of
43826         what we do to stderr.
43827         (test_pipe): Rearrange to avoid deadlock.
43828         (child_main): Try a larger read, to ensure we avoided deadlock.
43829         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43830         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43831         if misused.
43832
43833 2009-07-19  Jim Meyering  <meyering@redhat.com>
43834
43835         fts: avoid false-positive cycle-detection
43836         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43837         for each new command line argument.
43838
43839 2009-07-19  Bruno Haible  <bruno@clisp.org>
43840
43841         Fix build error on mingw with the modules sys_select and unistd.
43842         * modules/acl-tests (Depends-on): Add close.
43843         * modules/binary-io-tests (Depends-on): Likewise.
43844         * modules/closein-tests (Depends-on): Likewise.
43845         * modules/flock-tests (Depends-on): Likewise.
43846         * modules/fsync-tests (Depends-on): Likewise.
43847         * modules/lseek-tests (Depends-on): Likewise.
43848         * modules/pipe-tests (Depends-on): Likewise.
43849         * modules/posix_spawn-tests (Depends-on): Likewise.
43850         * modules/posix_spawnp-tests (Depends-on): Likewise.
43851         * modules/stat-time-tests (Depends-on): Likewise.
43852         * modules/yesno-tests (Depends-on): Likewise.
43853
43854 2009-07-19  Bruno Haible  <bruno@clisp.org>
43855
43856         Unify conditionals.
43857         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43858         macros, not at the compiler macros.
43859         * lib/pipe.c: Likewise.
43860         * lib/execute.c: Likewise.
43861         * lib/spawni.c: Likewise.
43862
43863 2009-07-19  Bruno Haible  <bruno@clisp.org>
43864
43865         Fix handling of closed stdin/stdout/stderr on mingw.
43866         * lib/w32spawn.h: Include unistd.h.
43867         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43868         file descriptor with O_NOINHERIT flag.
43869         (fd_safer_noinherit): New function, based on fd-safer.c.
43870         (dup_safer_noinherit): New function, based on dup-safer.c.
43871         (undup_safer_noinherit): New function.
43872         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43873         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43874         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43875         instead of fd_safer.
43876         * tests/test-pipe.c: Include <windows.h>.
43877         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43878         result.
43879
43880         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43881         from main.
43882         (test_pipe): Pass an extra argument for disambiguation.
43883         (main): Invoke parent_main or child_main.
43884
43885         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43886         consistently.
43887
43888 2009-07-18  Eric Blake  <ebb9@byu.net>
43889
43890         test-pipe: fix mingw build
43891         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43892
43893 2009-07-18  Bruno Haible  <bruno@clisp.org>
43894
43895         * modules/pipe-tests (Makefile.am): Fix typo.
43896
43897 2009-07-18  Eric Blake  <ebb9@byu.net>
43898
43899         error: fix mingw build
43900         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43901         Reported by Bruno Haible.
43902
43903         error: avoid undefined use of stdout
43904         * lib/error.c (error, error_at_line): Check that fd 1 is open
43905         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43906         is handling faults and the close_stdout module wants to report the
43907         detection of closed stdout as an error.
43908
43909 2009-07-17  Eric Blake  <ebb9@byu.net>
43910
43911         pipe: be robust in face of closed fds
43912         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43913         should cause child to misbehave.
43914         * modules/pipe-tests: New module.
43915         * tests/test-pipe.c: New file.
43916         * tests/test-pipe.sh: New file.
43917         Reported by Akim Demaille.
43918
43919 2009-07-14  Bruno Haible  <bruno@clisp.org>
43920
43921         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43922         Reported by anonymous kc.
43923
43924 2009-07-07  Jim Meyering  <meyering@redhat.com>
43925
43926         maint.mk: don't look for translatable strings in *.m4 or *.mk
43927         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43928         when searching for translatable strings.
43929
43930 2009-07-05  Jim Meyering  <meyering@redhat.com>
43931
43932         remove superfluous parentheses in STREQ definition
43933         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43934         * lib/getugroups.c (STREQ): Likewise.
43935         * lib/fnmatch.c (STREQ): Likewise.
43936         Spotted by Bruno Haible.
43937
43938 2009-07-04  Jim Meyering  <meyering@redhat.com>
43939
43940         argv-iter: new module
43941         * MODULES.html.sh: Add argv-iter.
43942         * lib/argv-iter.c, lib/argv-iter.h: New files.
43943         * modules/argv-iter: New file.
43944         * modules/argv-iter-tests: New file.
43945         * tests/test-argv-iter.c: Test it.
43946
43947 2009-07-04  Bruno Haible  <bruno@clisp.org>
43948
43949         Fix assertion.
43950         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43951         contains more exact copies of a given entry than file2, leave the extra
43952         copies unpaired rather than aborting.
43953         Reported by Eric Blake.
43954
43955 2009-07-02  Bruno Haible  <bruno@clisp.org>
43956
43957         Speedup git-merge-changelog for git cherry-pick.
43958         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43959         (entries_mapping_get): New function, extracted from compute_mapping.
43960         (entries_mapping_reverse_get): New function.
43961         (compute_mapping): Add a 'full' argument. Return the result in a
43962         'struct entries_mapping'.
43963         (main): Update. Access the mappings through entries_mapping_get.
43964         Reported by Eric Blake.
43965
43966 2009-07-02  Bruno Haible  <bruno@clisp.org>
43967
43968         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43969         best_i.
43970
43971 2009-07-02  Bruno Haible  <bruno@clisp.org>
43972
43973         Speed up approximate search for matching ChangeLog entries.
43974         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43975         argument. Call fstrcmp_bounded instead of fstrcmp.
43976         (compute_mapping, try_split_merged_entry, main): Update callers.
43977
43978 2009-07-02  Bruno Haible  <bruno@clisp.org>
43979
43980         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43981
43982 2009-06-30  Bruno Haible  <bruno@clisp.org>
43983
43984         Reduce the number of uc_is_cased calls.
43985         * lib/unicase.h (casing_suffix_context_t): Add
43986         'first_char_except_ignorable' field.
43987         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43988         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43989         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43990         Update initializer.
43991         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43992         case-ignorable characters.
43993         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43994         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43995         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43996         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43997         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43998
43999 2009-06-30  Bruno Haible  <bruno@clisp.org>
44000
44001         Tests for module 'unicase/ignorable'.
44002         * modules/unicase/ignorable-tests: New file.
44003         * tests/unicase/test-ignorable.c: New file, generated by
44004         gen-uni-tables.
44005
44006         Tests for module 'unicase/cased'.
44007         * modules/unicase/cased-tests: New file.
44008         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
44009         * tests/unicase/test-predicate-part1.h: New file, derived from
44010         tests/unictype/test-predicate-part1.h.
44011         * tests/unicase/test-predicate-part2.h: New file, same as
44012         tests/unictype/test-predicate-part2.h.
44013
44014         Fix evaluation of "Before C" condition of FINAL_SIGMA.
44015         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
44016         (output_casing_properties): New function.
44017         (main): Call it.
44018         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
44019         * lib/unicase/cased.c: Include unictype/bitmap.h.
44020         (uc_is_cased): Define through a bitmap lookup.
44021         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
44022         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
44023         (uc_is_case_ignorable): Define through a bitmap lookup.
44024         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
44025         lib/unictype/bitmap.h.
44026         (Depends-on): Add inline. Clean up.
44027         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
44028         lib/unictype/bitmap.h.
44029         (Depends-on): Add inline. Clean up.
44030         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
44031         recognition.
44032         * tests/unicase/test-u16-tolower.c (main): Likewise.
44033         * tests/unicase/test-u32-tolower.c (main): Likewise.
44034
44035 2009-06-30  Bruno Haible  <bruno@clisp.org>
44036
44037         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
44038         * lib/unicase/u16-casemap.c: Likewise.
44039         * lib/unicase/u32-casemap.c: Likewise.
44040
44041 2009-06-29  Bruno Haible  <bruno@clisp.org>
44042
44043         Define u32_casefold as a wrapper around u32_ct_casefold.
44044         * lib/unicase/u32-casefold.c: Update.
44045         * modules/unicase/u32-casefold (Depends-on): Add
44046         unicase/u32-ct-casefold, unicase/empty-prefix-context,
44047         unicase/empty-suffix-context. Clean up.
44048
44049         Define u16_casefold as a wrapper around u16_ct_casefold.
44050         * lib/unicase/u16-casefold.c: Update.
44051         * modules/unicase/u16-casefold (Depends-on): Add
44052         unicase/u16-ct-casefold, unicase/empty-prefix-context,
44053         unicase/empty-suffix-context. Clean up.
44054
44055         Define u8_casefold as a wrapper around u8_ct_casefold.
44056         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
44057         * lib/unicase/u8-casefold.c: Update.
44058         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
44059         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44060
44061         Define u32_totitle as a wrapper around u32_ct_totitle.
44062         * lib/unicase/u32-totitle.c: Update.
44063         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
44064         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44065
44066         Define u16_totitle as a wrapper around u16_ct_totitle.
44067         * lib/unicase/u16-totitle.c: Update.
44068         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
44069         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44070
44071         Define u8_totitle as a wrapper around u8_ct_totitle.
44072         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
44073         functions.
44074         (FUNC): Delegate to U_CT_TOTITLE.
44075         * lib/unicase/u8-totitle.c: Update.
44076         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
44077         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
44078
44079         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
44080         invocation.
44081         * modules/unicase/u32-tolower (Depends-on): Add
44082         unicase/empty-prefix-context, unicase/empty-suffix-context.
44083
44084         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
44085         invocation.
44086         * modules/unicase/u16-tolower (Depends-on): Add
44087         unicase/empty-prefix-context, unicase/empty-suffix-context.
44088
44089         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
44090         * modules/unicase/u8-tolower (Depends-on): Add
44091         unicase/empty-prefix-context, unicase/empty-suffix-context.
44092
44093         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
44094         invocation.
44095         * modules/unicase/u32-toupper (Depends-on): Add
44096         unicase/empty-prefix-context, unicase/empty-suffix-context.
44097
44098         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
44099         invocation.
44100         * modules/unicase/u16-toupper (Depends-on): Add
44101         unicase/empty-prefix-context, unicase/empty-suffix-context.
44102
44103         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
44104         * modules/unicase/u8-toupper (Depends-on): Add
44105         unicase/empty-prefix-context, unicase/empty-suffix-context.
44106
44107         New module 'unicase/u32-ct-casefold'.
44108         * lib/unicase/u32-ct-casefold.c: New file.
44109         * modules/unicase/u32-ct-casefold: New file.
44110
44111         New module 'unicase/u16-ct-casefold'.
44112         * lib/unicase/u16-ct-casefold.c: New file.
44113         * modules/unicase/u16-ct-casefold: New file.
44114
44115         New module 'unicase/u8-ct-casefold'.
44116         * lib/unicase/u8-ct-casefold.c: New file.
44117         * lib/unicase/u-ct-casefold.h: New file, derived from
44118         lib/unicase/u-casefold.h.
44119         * modules/unicase/u8-ct-casefold: New file.
44120
44121         New module 'unicase/u32-ct-totitle'.
44122         * lib/unicase/u32-ct-totitle.c: New file.
44123         * modules/unicase/u32-ct-totitle: New file.
44124
44125         New module 'unicase/u16-ct-totitle'.
44126         * lib/unicase/u16-ct-totitle.c: New file.
44127         * modules/unicase/u16-ct-totitle: New file.
44128
44129         New module 'unicase/u8-ct-totitle'.
44130         * lib/unicase/u8-ct-totitle.c: New file.
44131         * lib/unicase/u-ct-totitle.h: New file, derived from
44132         lib/unicase/u-totitle.h.
44133         * modules/unicase/u8-ct-totitle: New file.
44134
44135         New module 'unicase/u32-ct-tolower'.
44136         * lib/unicase/u32-ct-tolower.c: New file.
44137         * modules/unicase/u32-ct-tolower: New file.
44138
44139         New module 'unicase/u16-ct-tolower'.
44140         * lib/unicase/u16-ct-tolower.c: New file.
44141         * modules/unicase/u16-ct-tolower: New file.
44142
44143         New module 'unicase/u8-ct-tolower'.
44144         * lib/unicase/u8-ct-tolower.c: New file.
44145         * modules/unicase/u8-ct-tolower: New file.
44146
44147         New module 'unicase/u32-ct-toupper'.
44148         * lib/unicase/u32-ct-toupper.c: New file.
44149         * modules/unicase/u32-ct-toupper: New file.
44150
44151         New module 'unicase/u16-ct-toupper'.
44152         * lib/unicase/u16-ct-toupper.c: New file.
44153         * modules/unicase/u16-ct-toupper: New file.
44154
44155         New module 'unicase/u8-ct-toupper'.
44156         * lib/unicase/u8-ct-toupper.c: New file.
44157         * modules/unicase/u8-ct-toupper: New file.
44158
44159         Add context arguments to u*_casemap functions.
44160         * lib/unicase/unicasemap.h: Include unicase.h.
44161         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
44162         suffix_context arguments.
44163         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
44164         functions.
44165         (FUNC): Add prefix_context and suffix_context arguments. Use
44166         uc_is_cased and uc_is_case_ignorable.
44167         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
44168         * lib/unicase/u16-casemap.c: Likewise.
44169         * lib/unicase/u32-casemap.c: Likewise.
44170         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
44171         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44172         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
44173         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44174         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
44175         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
44176
44177         New module 'unicase/u32-suffix-context'.
44178         * lib/unicase/u32-suffix-context.c: New file.
44179         * modules/unicase/u32-suffix-context: New file.
44180
44181         New module 'unicase/u16-suffix-context'.
44182         * lib/unicase/u16-suffix-context.c: New file.
44183         * modules/unicase/u16-suffix-context: New file.
44184
44185         New module 'unicase/u8-suffix-context'.
44186         * lib/unicase/u8-suffix-context.c: New file.
44187         * lib/unicase/u-suffix-context.h: New file.
44188         * modules/unicase/u8-suffix-context: New file.
44189
44190         New module 'unicase/empty-suffix-context'.
44191         * lib/unicase/empty-suffix-context.c: New file.
44192         * modules/unicase/empty-suffix-context: New file.
44193
44194         New module 'unicase/u32-prefix-context'.
44195         * lib/unicase/u32-prefix-context.c: New file.
44196         * modules/unicase/u32-prefix-context: New file.
44197
44198         New module 'unicase/u16-prefix-context'.
44199         * lib/unicase/u16-prefix-context.c: New file.
44200         * modules/unicase/u16-prefix-context: New file.
44201
44202         New module 'unicase/u8-prefix-context'.
44203         * lib/unicase/u8-prefix-context.c: New file.
44204         * lib/unicase/u-prefix-context.h: New file.
44205         * lib/unicase/context.h: New file.
44206         * modules/unicase/u8-prefix-context: New file.
44207
44208         New module 'unicase/empty-prefix-context'.
44209         * lib/unicase/empty-prefix-context.c: New file.
44210         * modules/unicase/empty-prefix-context: New file.
44211
44212         New module 'unicase/ignorable'.
44213         * lib/unicase/ignorable.c: New file.
44214         * modules/unicase/ignorable: New file.
44215
44216         New module 'unicase/cased'.
44217         * lib/unicase/caseprop.h: New file.
44218         * lib/unicase/cased.c: New file.
44219         * modules/unicase/cased: New file.
44220
44221         New functions for case mapping of substrings.
44222         * lib/unicase.h (casing_prefix_context_t): New type.
44223         (unicase_empty_prefix_context): New variable.
44224         (u8_casing_prefix_context, u16_casing_prefix_context,
44225         u32_casing_prefix_context, u8_casing_prefixes_context,
44226         u16_casing_prefixes_context, u32_casing_prefixes_context): New
44227         declarations.
44228         (casing_suffix_context_t): New type.
44229         (unicase_empty_suffix_context): New variable.
44230         (u8_casing_suffix_context, u16_casing_suffix_context,
44231         u32_casing_suffix_context, u8_casing_suffixes_context,
44232         u16_casing_suffixes_context, u32_casing_suffixes_context,
44233         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
44234         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
44235         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
44236         declarations.
44237
44238 2009-06-28  Jim Meyering  <meyering@redhat.com>
44239
44240         boostrap: indent only with spaces
44241         * build-aux/bootstrap: Indent only with spaces, never TABs.
44242
44243         bootstrap: split long lines
44244         * build-aux/bootstrap: Keep line length < 80.
44245
44246         bootstrap: sync from coreutils
44247         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
44248         just as autoreconf does.  Verify a list of prerequisite
44249         package-name,version-number pairs if defined in bootstrap.conf.
44250         Refer to README-prereq, if prerequisites are not satisfied.
44251
44252 2009-06-27  Eric Blake  <ebb9@byu.net>
44253
44254         tests: add test for bogus NULL definition
44255         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
44256         * tests/test-stdlib.c: Likewise.
44257         * tests/test-string.c: Likewise.
44258         * tests/test-locale.c: Likewise.
44259         * tests/test-unistd.c: Likewise.
44260         * modules/stdio-tests (Depends-on): Add verify.
44261         * modules/stdlib-tests (Depends-on): Likewise.
44262         * modules/string-tests (Depends-on): Likewise.
44263         * modules/locale-tests (Depends-on): Likewise.
44264         * modules/unistd-tests (Depends-on): Likewise.
44265
44266 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
44267
44268         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
44269         self-explaining comment.
44270         * m4/selinux-selinux-h: Update serial.
44271         (gl_LIBSELINUX): New macro, adding a warning for missing development
44272         packages to code extracted from...
44273         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
44274         Add warning for missing development packages here, too.
44275
44276 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
44277
44278         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
44279
44280 2009-06-25  Eric Blake  <ebb9@byu.net>
44281
44282         version-etc: fix regression
44283         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
44284         gcc.
44285         (version_etc): Use it, to catch bugs with trailing NULL.
44286         * lib/version-etc.c (version_etc_arn): Delete unused argument.
44287         (version_etc_va): Fix logic bug.
44288         * modules/version-etc-tests: Add test.
44289         * tests/test-version-etc.c: New file.
44290         * tests/test-version-etc.sh: Likewise.
44291
44292 2009-06-25  Sam Steingold  <sds@gnu.org>
44293
44294         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
44295         mbtowc declaration.
44296
44297 2009-06-25  Eric Blake  <ebb9@byu.net>
44298
44299         fpurge: migrate into <stdio.h>
44300         * lib/fpurge.h: Delete...
44301         * lib/stdio.in.h (fpurge): ...and declare here, instead.
44302         * lib/fpurge.c (fpurge): Change declaring header.
44303         * modules/fpurge (Files): Drop deleted file.
44304         (Depends-on): Add stdio.
44305         (configure.ac): Set witness.
44306         * modules/stdio (Makefile.am): Support fpurge macros.
44307         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44308         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
44309         * lib/fflush.c: Update client.
44310         * tests/test-fpurge.c: Likewise.
44311         * NEWS: Mention the change.
44312
44313 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44314
44315         * lib/argp-version-etc.c (program_authors): Add const
44316         qualifier.
44317         * lib/version-etc.c: Fix typos in the comments.
44318         * modules/argp-version-etc: Depends on version-etc.
44319
44320 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44321
44322         argp-version-etc: new module.
44323
44324         * lib/argp-version-etc.c: New file.
44325         * lib/argp-version-etc.h: New file.
44326         * modules/argp-version-etc: New file.
44327         * modules/argp-version-etc-tests: New file.
44328         * tests/test-argp-version-etc.c: New test.
44329         * tests/test-argp-version-etc-1.sh: New test.
44330
44331 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44332
44333         Provide additional interfaces and documentation for version-etc
44334         module.
44335
44336         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44337         interfaces.
44338         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44339         prototypes.
44340
44341 2009-06-24  Bruno Haible  <bruno@clisp.org>
44342
44343         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44344         HAVE_LIB${NAME} macro.
44345         Reported by Sam Steingold <sds@gnu.org>.
44346
44347 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44348
44349         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44350         needed.
44351
44352 2009-06-21  Bruno Haible  <bruno@clisp.org>
44353
44354         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44355         work.
44356         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44357         together with LIB${NAME}, LTLIB${NAME}.
44358         Reported by Sam Steingold <sds@gnu.org>.
44359
44360 2009-06-20  Jim Meyering  <meyering@redhat.com>
44361
44362         tests: make sc_require_test_exit_idiom more generic
44363         * top/maint.mk (Exit_witness_file): New overridable variable.
44364         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44365         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44366
44367 2009-06-19  Jim Meyering  <meyering@redhat.com>
44368
44369         hash: reverse order of src/dst parameters in an internal interface
44370         * lib/hash.c (transfer_entries): Reverse order of parameters to
44371         put DST before SRC.  Adjust callers.
44372
44373         tests: test-hash: avoid wholesale duplication
44374         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44375         Instead, use a loop and add a single conditional.
44376
44377         tests: test-hash: allow seed selection via a command line argument
44378         * tests/test-hash.c (get_seed): New function.
44379         (main): Use it.
44380
44381 2009-06-19  Eric Blake  <ebb9@byu.net>
44382
44383         hash: avoid memory leak on allocation failure
44384         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44385         failure.  Factor repeated algorithm...
44386         (transfer_entries): ...into new helper routine.
44387         (hash_delete): React to hash_rehash return value.
44388
44389         hash: reduce memory pressure in hash_rehash no-op case
44390         * lib/hash.c (next_prime): Avoid overflow.
44391         (hash_initialize): Factor bucket size computation...
44392         (compute_bucket_size): ...into new helper function.
44393         (hash_rehash): Use new function and open coding to reduce memory
44394         pressure, and avoid a memory leak in USE_OBSTACK code.
44395         Reported by Jim Meyering.
44396
44397 2009-06-18  Eric Blake  <ebb9@byu.net>
44398
44399         hash: make rotation more obvious
44400         * modules/hash (Depends-on): Add bitrotate and stdint.
44401         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44402         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44403         (SIZE_MAX): Rely on headers for definition.
44404         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44405         (raw_hasher): Use rotr_sz.
44406         Suggested by Jim Meyering.
44407
44408         hash: fix memory leak in last patch
44409         * lib/hash.c (hash_rehash): Avoid memory leak.
44410
44411         hash: avoid no-op rehashing
44412         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44413
44414         hash: provide default callback functions
44415         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44416         (hash_initialize): Use them as defaults.
44417         * tests/test-hash.c (main): Test this.
44418
44419         hash: minor optimization
44420         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44421         when possible.
44422         (hash_initialize): Document this promise.
44423         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44424         * tests/test-hash.c (hash_compare_strings): Test this.
44425
44426 2009-06-18  Bruno Haible  <bruno@clisp.org>
44427
44428         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44429         going to be replaced anyway.
44430
44431 2009-06-18  Bruno Haible  <bruno@clisp.org>
44432
44433         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44434         in one place.
44435         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44436         be replaced anyway.
44437
44438 2009-06-18  Eric Blake  <ebb9@byu.net>
44439
44440         hash: check for resize before insertion
44441         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44442         threshold before insertion, so that a pathological hash_rehash
44443         that fills every bucket can still trigger another rehash.
44444
44445 2009-06-18  Jim Meyering  <meyering@redhat.com>
44446
44447         hash-tests: add a loop around the small tests
44448         * tests/test-hash.c (main): Repeat small tests with selected
44449         small initial table sizes.
44450
44451 2009-06-17  Eric Blake  <ebb9@byu.net>
44452
44453         hash: minor cleanups
44454         * lib/hash.h (hash_entry): Make opaque, by moving...
44455         * lib/hash.c (hash_entry): ...here.
44456         (hash_insert): Clarify restrictions on what can be inserted.
44457         (hash_get_next): Clarify when it is safe to remove an element
44458         during traversal.
44459         (check_tuning): Skip verification when tuning is known safe.
44460         (hash_initialize): Clarify restrictions on tuning.
44461
44462 2009-06-17  Jim Meyering  <jim@meyering.net>
44463         and Eric Blake  <ebb9@byu.net>
44464
44465         hash-tests: new module
44466         * modules/hash-tests: New file.
44467         * tests/test-hash.c: New file.
44468
44469 2009-06-17  Eric Blake  <ebb9@byu.net>
44470
44471         strstr-simple: document new module
44472         * MODULES.html.sh: Document new module.
44473
44474         strstr, strcasestr: replace on platforms with broken memchr
44475         * modules/strstr: Split into...
44476         * modules/strstr-simple: ...new module that does not care about
44477         performance, but does care about glibc bug.
44478         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44479         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44480         if platform memchr is broken, per Debian bug 521737.
44481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44482         memchr.
44483         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44484         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44485         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44486         * modules/mountlist (Depends-on): Add strstr-simple.
44487         * modules/gen-uni-tables (Depends-on): Likewise.
44488         * modules/argz (Depends-on): Add strstr.
44489
44490 2009-06-17  Bruno Haible  <bruno@clisp.org>
44491
44492         * modules/posix_spawn-internal (Depends-on): Add errno.
44493
44494 2009-06-17  Bruno Haible  <bruno@clisp.org>
44495
44496         Define missing ESTALE on Interix 3.5.
44497         * lib/errno.in.h (ESTALE): Assign a value if missing.
44498         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44499         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44500         missing.
44501         * doc/posix-headers/errno.texi: Mention the Interix bug.
44502         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44503
44504 2009-06-15  Eric Blake  <ebb9@byu.net>
44505
44506         memchr, memchr2: add valgrind exception
44507         * lib/memchr.valgrind: New file.
44508         * lib/memchr2.valgrind: New file.
44509         * modules/memchr (Files): Distribute valgrind file.
44510         * modules/memchr2 (Files): Likewise.
44511
44512         docs: memchr is no longer obsolete
44513         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44514         * lib/string.in.h (memchr): Simplify logic.
44515
44516 2009-06-14  Jim Meyering  <meyering@redhat.com>
44517
44518         link-follow: fix the "checking..." message to not mention trailing slash
44519         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44520         never considered trailing slashes.
44521
44522 2009-06-14  Bruno Haible  <bruno@clisp.org>
44523
44524         * m4/memchr.m4: Mention also the bug on IA-64.
44525         * doc/posix-functions/memchr.texi: Likewise.
44526
44527 2009-06-12  Eric Blake  <ebb9@byu.net>
44528
44529         memchr: detect broken x86_64 and alpha implementations
44530         * modules/memchr-tests (Depends-on): Move mmap detection...
44531         * modules/memchr (Depends-on): ...here.
44532         (configure.ac): Set indicator.
44533         * lib/string.in.h (memchr): Declare replacement.
44534         * modules/string (Makefile.am): Trigger replacement.
44535         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44536         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44537         bugs.
44538         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44539         * modules/getpagesize (License): Relax license.
44540
44541 2009-06-11  Bruno Haible  <bruno@clisp.org>
44542
44543         * lib/idpriv.h: Add more references.
44544
44545 2009-06-08  Bruno Haible  <bruno@clisp.org>
44546
44547         Tests for module 'idpriv-droptemp'.
44548         * modules/idpriv-droptemp-tests: New file.
44549         * tests/test-idpriv-droptemp.sh: New file.
44550         * tests/test-idpriv-droptemp.su.sh: New file.
44551         * tests/test-idpriv-droptemp.c: New file.
44552
44553         New module 'idpriv-droptemp'.
44554         * lib/idpriv-droptemp.c: New file.
44555         * modules/idpriv-droptemp: New file.
44556
44557 2009-06-08  Bruno Haible  <bruno@clisp.org>
44558
44559         Tests for module 'idpriv-drop'.
44560         * modules/idpriv-drop-tests: New file.
44561         * tests/test-idpriv-drop.sh: New file.
44562         * tests/test-idpriv-drop.su.sh: New file.
44563         * tests/test-idpriv-drop.c: New file.
44564
44565         New module 'idpriv-drop'.
44566         * lib/idpriv.h: New file.
44567         * lib-idpriv-drop.c: New file.
44568         * m4/idpriv.m4: New file.
44569         * modules/idpriv-drop: New file.
44570
44571 2009-06-08  Bruno Haible  <bruno@clisp.org>
44572
44573         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44574         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44575         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44576         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44577         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44578         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44579         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44580
44581 2009-06-08  Eric Blake  <ebb9@byu.net>
44582
44583         test-strstr: use memory fence, when possible
44584         * tests/test-strstr.c (main): Use memory fence, in order to be
44585         more likely to trigger Debian bug 521737.
44586         * modules/strstr-tests (Files): Pull in additional files.
44587
44588         memchr: no longer obsolete, for wider field testing
44589         * modules/memchr (Status, Notice): Delete, this module is no
44590         longer obsolete.
44591         * modules/vasnprintf (Depends-on): Add memchr.
44592
44593 2009-06-07  Jim Meyering  <meyering@redhat.com>
44594
44595         hash: declare some functions with the warn_unused_result attribute
44596         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44597
44598 2009-06-07  Bruno Haible  <bruno@clisp.org>
44599
44600         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44601         Reported by Eric Blake.
44602
44603 2009-06-06  Eric Blake  <ebb9@byu.net>
44604
44605         test-alignof: fix typo with long double
44606         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44607         compiler error.
44608
44609 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44610
44611         Escape non-texinfo { and }s.
44612         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44613         markup error.
44614
44615 2009-06-04  Jim Meyering  <meyering@redhat.com>
44616
44617         gitlog-to-changelog: don't infloop on an empty commit log
44618         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44619         Reported by Boris Petersen <transacid@centerim.org>.
44620
44621 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44622
44623         version-etc: extend for packagers
44624         Add three new configure options, intended for packagers:
44625           --with-packager="packager name"
44626           --with-packager-version="packager-specific version"
44627           --with-packager-bug-reports="packager bug reporting"
44628         An example with coreutils:
44629           $ ./configure \
44630             --with-packager=Gentoo \
44631             --with-packager-bug-report=http://bugs.gentoo.org/ \
44632             --with-packager-version="patchset 1.6"
44633           $ ./src/ls --version | head -n2
44634           ls (GNU coreutils) 7.1-dirty
44635           Packaged by Gentoo (patchset 1.6)
44636         Note that the bug reporting info via --help doesn't show up because
44637         coreutils uses its own custom emit_bug_reporting_address() implementation
44638         in src/system.h.  If it didn't, it'd look like:
44639           $ ./src/ls --help | tail -n4
44640           Report bugs to <bug-coreutils@gnu.org>.
44641           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44642           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44643           General help using GNU software: <http://www.gnu.org/gethelp/>.
44644         * lib/version-etc.c: Print new information, if provided.
44645         * m4/version-etc.m4: New file.
44646         * modules/version-etc (Files): Add m4/version-etc.m4.
44647         (configure.ac): Add gl_VERSION_ETC.
44648
44649 2009-05-31  Bruno Haible  <bruno@clisp.org>
44650
44651         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44652         and 'int64_t'.
44653         * modules/alignof-tests (Dependencies): Add stdint.
44654         Reported by Eric Blake.
44655
44656 2009-05-31  Bruno Haible  <bruno@clisp.org>
44657
44658         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44659         restriction due to compiler bugs.
44660         Reported by Eric Blake.
44661
44662 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44663             Bruno Haible  <bruno@clisp.org>
44664
44665         Fix test-alignof failure.
44666         * lib/alignof.h (alignof_slot): New macro.
44667         (alignof_type): New macro, with the same semantics as the previous
44668         'alignof'.
44669         (alignof): Alias to alignof_slot.
44670         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44671         check that the results are usable as constant expressions.
44672
44673 2009-05-31  Bruno Haible  <bruno@clisp.org>
44674
44675         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44676         * tests/test-memchr.c (main): Check that memchr does not read past the
44677         first occurrence of the byte.
44678         * tests/test-strstr.c (main): Update comment.
44679         Suggested by Eric Blake.
44680
44681 2009-05-30  Bruno Haible  <bruno@clisp.org>
44682
44683         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44684         detail how to use dumpbin.
44685         Reported by David Byron <dbyron@dbyron.com>.
44686
44687 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44688
44689         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44690
44691 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44692
44693         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44694
44695 2009-05-28  Bruno Haible  <bruno@clisp.org>
44696
44697         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44698         build-aux/ files.
44699
44700 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44701
44702         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44703
44704 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44705
44706         * gnulib-tool (sed_transform_main_lib_file)
44707         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44708         regexps.
44709
44710 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44711
44712         * tests/test-strstr.c: Add another self-test.
44713         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44714         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44715
44716 2009-05-23  Bruno Haible  <bruno@clisp.org>
44717
44718         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44719         change.
44720
44721 2009-05-21  Bruno Haible  <bruno@clisp.org>
44722
44723         Simplify use of mode_t varargs.
44724         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44725         uses 'mode_t' or 'int'.
44726         * lib/openat.c (openat): Likewise.
44727         * lib/open-safer.c (open_safer): Likewise.
44728         * m4/mode_t.m4: New file.
44729         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44730         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44731         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44732         * modules/open (Files): Add m4/mode_t.m4.
44733         * modules/openat (Files): Likewise.
44734         * modules/fcntl-safer (Files): Likewise.
44735         Suggested by Eric Blake.
44736
44737 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44738
44739         * doc/glibc-functions/fallocate.texi: New file.
44740         * doc/gnulib.texi: Include it.
44741
44742 2009-05-21  Eric Blake  <ebb9@byu.net>
44743             Bruno Haible  <bruno@clisp.org>
44744
44745         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44746         invocations.
44747         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44748
44749 2009-05-21  Eric Blake  <ebb9@byu.net>
44750             Bruno Haible  <bruno@clisp.org>
44751
44752         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44753         include_next. Fix of 2008-11-20 commit.
44754         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44755         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44756         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44757         NEXT_MATH_H.
44758         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44759         instead of NEXT_MATH_H.
44760
44761 2009-05-21  Bruno Haible  <bruno@clisp.org>
44762
44763         Avoid redefinition warnings for SIZE_MAX.
44764         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44765         Reported by Simon Josefsson.
44766
44767 2009-05-21  Bruno Haible  <bruno@clisp.org>
44768
44769         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44770         AC_CACHE_VAL.
44771
44772 2009-05-20  Bruno Haible  <bruno@clisp.org>
44773
44774         Make zeroptr.h work on mingw.
44775         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44776         mprotect.
44777         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44778         * modules/memchr2-tests (configure.ac): Likewise.
44779         * modules/memcmp-tests (configure.ac): Likewise.
44780         * modules/memmem-tests (configure.ac): Likewise.
44781         * modules/memrchr-tests (configure.ac): Likewise.
44782         Reported by Simon Josefsson.
44783
44784 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44785
44786         * tests/test-glob.c: Include string.h for strcmp prototype.
44787
44788 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44789
44790         * modules/getdelim (Depends-on): Add explicit stdint, although it
44791         was implicitly already pulled in via realloc-posix.
44792         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44793
44794 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44795
44796         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44797         G. Christensen" <tgc@jupiterrise.com>.
44798         * m4/sys_socket_h.m4: Check for sa_family_t.
44799         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44800         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44801         * tests/test-sys_socket.c: Check that sa_family_t works.
44802
44803 2009-05-18  Eric Blake  <ebb9@byu.net>
44804
44805         maint.mk: allow gnulib_dir in VPATH build
44806         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44807
44808 2009-05-15  Jim Meyering  <meyering@redhat.com>
44809
44810         maint.mk: Give gnulib_dir a default definition.
44811         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44812         Thus, most packages no longer need to specify this variable in cfg.mk
44813
44814 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44815
44816         rename.m4: fix typos that would make non-mingw cross-configure fail
44817         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44818
44819 2009-05-13  Eric Blake  <ebb9@byu.net>
44820
44821         mmap-anon: avoid out-of-order autoconf expansion
44822         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44823         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44824         * modules/memchr-tests (Depends-on): Add extensions.
44825         * modules/memchr2-tests (Depends-on): Add extensions.
44826         * modules/memcmp-tests (Depends-on): Add extensions.
44827         * modules/memmem-tests (Depends-on): Add extensions.
44828         * modules/memrchr-tests (Depends-on): Add extensions.
44829
44830 2009-05-13  Bruno Haible  <bruno@clisp.org>
44831
44832         Make some tests ISO C 99 compliant.
44833         * tests/zerosize-ptr.h: New file.
44834         * tests/test-memchr.c: Include zerosize-ptr.h.
44835         (main): Use a zero-size object pointer instead of NULL.
44836         * tests/test-memchr2.c: Include zerosize-ptr.h.
44837         (main): Use a zero-size object pointer instead of NULL.
44838         * tests/test-memcmp.c: Include zerosize-ptr.h.
44839         (main): Use a zero-size object pointer instead of NULL.
44840         * tests/test-memmem.c: Include zerosize-ptr.h.
44841         (main): Use a zero-size object pointer instead of NULL.
44842         * tests/test-memrchr.c: Include zerosize-ptr.h.
44843         (main): Use a zero-size object pointer instead of NULL.
44844         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44845         m4/mmap-anon.m4.
44846         (Depends-on): Add getpagesize.
44847         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44848         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44849         m4/mmap-anon.m4.
44850         (Depends-on): Add getpagesize.
44851         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44852         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44853         m4/mmap-anon.m4.
44854         (Depends-on): Add getpagesize.
44855         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44856         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44857         m4/mmap-anon.m4.
44858         (Depends-on): Add getpagesize.
44859         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44860         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44861         m4/mmap-anon.m4.
44862         (Depends-on): Add getpagesize.
44863         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44864
44865 2009-05-12  Bruno Haible  <bruno@clisp.org>
44866
44867         Tests for module 'alignof'.
44868         * modules/alignof-tests: New file.
44869         * tests/test-alignof.c: New file.
44870
44871 2009-05-12  Bruno Haible  <bruno@clisp.org>
44872
44873         Fix alignof macro.
44874         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44875         vendor compilers that are always correct.
44876
44877 2009-05-12  Bruno Haible  <bruno@clisp.org>
44878
44879         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44880         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44881         not whether its fully works.
44882
44883 2009-05-12  Bruno Haible  <bruno@clisp.org>
44884
44885         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44886
44887 2009-05-12  Jim Meyering  <meyering@redhat.com>
44888
44889         * top/maint.mk: Adjust backslash alignment.
44890
44891 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44892
44893         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44894
44895 2009-05-11  Eric Blake  <ebb9@byu.net>
44896
44897         argp: avoid undefined behavior
44898         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44899         macros.
44900
44901 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44902
44903         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44904         user.name to prevent git commit from complaining.
44905
44906 2009-05-10  Bruno Haible  <bruno@clisp.org>
44907
44908         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44909         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44910         it rewrites every file name only once.
44911         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44912
44913 2009-05-08  Bruno Haible  <bruno@clisp.org>
44914
44915         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44916         instead of 'max'.
44917
44918 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44919
44920         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44921         sockaddr_storage test.
44922
44923 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44924
44925         * modules/sys_socket (Makefile.am): Substitute
44926         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44927         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44928         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44929         * tests/test-sys_socket.c: Check sockaddr_storage.
44930
44931 2009-05-08  Bruno Haible  <bruno@clisp.org>
44932
44933         New module 'alignof'.
44934         * lib/alignof.h: New file.
44935         * modules/alignof: New file.
44936
44937 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44938             Bruno Haible  <bruno@clisp.org>
44939
44940         Fix test-file-has-acl on FreeBSD.
44941         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44942         mask is implicitly added.
44943         * tests/test-file-has-acl.c: Include <signal.h>.
44944         (main): Terminate the test after 5 seconds.
44945         * modules/acl-tests (configure.ac): Check for alarm function.
44946
44947 2009-05-04  Bruno Haible  <bruno@clisp.org>
44948
44949         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44950         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44951         * modules/errno (configure.ac): Drop AC_REQUIRE.
44952         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44953         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44954
44955 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44956
44957         * modules/glob-tests: New module.
44958         * tests/test-glob.c: Add.
44959
44960 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44961
44962         * modules/fnmatch-tests: New module.
44963         * tests/test-fnmatch.c: Add.
44964
44965 2009-05-04  Eric Blake  <ebb9@byu.net>
44966
44967         maint: make the new no-submodule-changes rule VPATH-safe
44968         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44969
44970 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44971             Bruno Haible  <bruno@clisp.org>
44972
44973         acl: Fix infinite loop on FreeBSD.
44974         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44975         of return value from acl_get_entry.
44976         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44977         Likewise.
44978
44979 2009-05-03  Bruno Haible  <bruno@clisp.org>
44980
44981         * lib/acl-internal.h (acl_entries): Clarify return value.
44982         * lib/acl_entries.c (acl_entries): Likewise.
44983
44984 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44985
44986         Bug fix in acl module.
44987         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44988
44989 2009-05-03  Bruno Haible  <bruno@clisp.org>
44990
44991         Create gperf-generated file in the source dir, not in the build dir.
44992         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44993         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44994         * modules/unicase/locale-language (unicase/locale-languages.h):
44995         Likewise.
44996         * modules/unicase/special-casing (unicase/special-casing-table.h):
44997         Likewise.
44998         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44999         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
45000         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
45001         Reported by Ralf Wildenhues.
45002
45003 2009-05-03  Bruno Haible  <bruno@clisp.org>
45004
45005         * modules/fnmatch (Description, configure.ac): Taken from
45006         fnmatch-posix.
45007         * modules/fnmatch-posix: Turn into a symbolic reference to the
45008         'fnmatch' module, and deprecate.
45009         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
45010
45011 2009-05-03  Bruno Haible  <bruno@clisp.org>
45012
45013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
45014         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
45015         Reported by Ralf Wildenhues.
45016
45017 2009-05-04  Simon Josefsson  <simon@josefsson.org>
45018
45019         * m4/fnmatch.m4: Fix fnmatch re-define.
45020
45021 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
45022
45023         priv-set: new module and tests; adapt write-any-file
45024         * lib/priv-set.c: New file.
45025         * lib/priv-set.h: New file.
45026         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
45027         * lib/write-any-file.c: Simplify by using priv-set module.
45028         * m4/priv-set.m4: New file.
45029         * modules/priv-set: New file.
45030         * modules/unlinkdir: Add dependency on priv-set module.
45031         * modules/write-any-file: Likewise.
45032
45033         Tests for module 'priv-set'.
45034         * modules/priv-set-tests: New file.
45035         * tests/test-priv-set.c: New file.
45036
45037 2009-05-03  Jim Meyering  <meyering@redhat.com>
45038             Bruno Haible  <bruno@clisp.org>
45039
45040         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
45041         use the converted UTF-8 variant of the name instead.
45042
45043 2009-05-03  Jim Meyering  <meyering@redhat.com>
45044
45045         tests: tighten some getdate tests
45046         * tests/test-getdate.c (main): Tighten tests: require equality,
45047         not just greater than.  Set TZ envvar to UTC0.
45048
45049 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
45050
45051         getdate: correctly interpret "next monday" when run on a Monday
45052         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
45053         that e.g., "next tues" (when run on a tuesday) results in a date
45054         that is one week in the future, and not today's date.
45055         I.e., add a week when the wday is the same as the current one.
45056         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
45057         and earlier by Martin Bernreuther and Jan Minář.
45058         * tests/test-getdate.c (main): Check that "next DAY" is always in
45059         the future and that "last DAY" is always in the past.
45060
45061 2009-05-02  Jim Meyering  <meyering@redhat.com>
45062
45063         build: ensure that a release build fails when a submodule is unclean
45064         * top/maint.mk (no-submodule-changes): New rule.
45065         (alpha beta major): Depend on it.
45066
45067 2009-05-02  Bruno Haible  <bruno@clisp.org>
45068
45069         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
45070         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
45071         shell variable gl_fnmatch_required to detect which variant is
45072         requested.
45073         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
45074         gl_FUNC_FNMATCH_POSIX.
45075         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
45076         exclude fnmatch-posix.
45077
45078 2009-05-02  Bruno Haible  <bruno@clisp.org>
45079
45080         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
45081         * modules/mbsrtowcs (License): Change to LGPLv2+.
45082         * modules/strnlen1 (License): Likewise.
45083         Reported by Simon Josefsson.
45084
45085 2009-05-02  Bruno Haible  <bruno@clisp.org>
45086
45087         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
45088         "cross".
45089         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
45090         gnulib-tool was called with option --source-base=lib.
45091
45092 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45093
45094         Use automake *-local hooks without commands, for extensibility.
45095         * modules/localcharset (Makefile.am): Rename install-exec-local
45096         rule to install-exec-localcharset, and make it a prerequisite of
45097         install-exec-local.  Likewise, rename the uninstall-local rule to
45098         uninstall-localcharset, and make it a prerequisite of the former.
45099
45100 2009-05-01  Bruno Haible  <bruno@clisp.org>
45101
45102         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
45103         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45104         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
45105         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
45106         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
45107         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45108         m4/locale-zh.m4, m4/codeset.m4.
45109
45110         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
45111         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
45112         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
45113         m4/locale-zh.m4.
45114
45115         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
45116         REPLACE_WCRTOMB if mbstate_t must be replaced.
45117         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
45118         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
45119
45120 2009-05-01  Bruno Haible  <bruno@clisp.org>
45121
45122         Avoid compiler warnings when redefining macros defined by <libintl.h>.
45123         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
45124         dngettext, dcngettext, textdomain, bindtextdomain,
45125         bind_textdomain_codeset): Undefine before redefining.
45126
45127 2009-04-30  Bruno Haible  <bruno@clisp.org>
45128
45129         Fix bug introduced on 2009-04-25.
45130         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
45131         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
45132         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
45133         is defined.
45134         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
45135         is defined.
45136         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
45137         is defined.
45138         Reported by Elbert_Pol <elbert.pol@gmail.com>.
45139
45140 2009-04-28  Bruno Haible  <bruno@clisp.org>
45141
45142         Comment tweaks.
45143         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
45144         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
45145         * lib/unicase.h (u*_casexfrm): Likewise.
45146         Reported by Paolo Bonzini.
45147
45148 2009-04-28  Bruno Haible  <bruno@clisp.org>
45149
45150         Fix a compilation error.
45151         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
45152         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45153         Reported by Jim Meyering.
45154
45155 2009-04-27  Bruno Haible  <bruno@clisp.org>
45156
45157         New module 'libunistring'.
45158         * modules/libunistring: New file.
45159         * m4/libunistring.m4: New file.
45160         * MODULES.html.sh (Unicode string functions): Add it.
45161
45162 2009-04-27  Eric Blake  <ebb9@byu.net>
45163
45164         maint.mk: allow package-specific header to provide <config.h>
45165         * top/maint.mk (sc_require_config_h): New variable.
45166         (sc_require_config_h, sc_require_config_h_first): Use it.
45167
45168 2009-04-27  Simon Josefsson  <simon@josefsson.org>
45169
45170         * top/maint.mk (sc_avoid_if_before_free): Except
45171         useless-if-before-free script.
45172
45173 2009-04-27  Eric Blake  <ebb9@byu.net>
45174
45175         maintainer-makefile: depend on all required helper scripts
45176         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
45177         useless-if-before-free.
45178         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
45179         version, rather than assuming gnulib checkout is available.
45180         Reported by Simen Josefsson.
45181
45182 2009-04-26  Bruno Haible  <bruno@clisp.org>
45183
45184         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
45185         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
45186         "../" or "..".
45187
45188 2009-04-26  Bruno Haible  <bruno@clisp.org>
45189
45190         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
45191         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
45192         AC_LIB_HAVE_LINKFLAGS.
45193
45194 2009-04-26  Bruno Haible  <bruno@clisp.org>
45195
45196         Simplify calling convention of u*_conv_from_encoding.
45197         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
45198         u32_conv_from_encoding): Expect a resultbuf argument and return the
45199         result directly as a pointer.
45200         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
45201         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
45202         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
45203         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
45204         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
45205         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45206         Update.
45207         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
45208         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
45209         * lib/vasnprintf.c (VASNPRINTF): Update.
45210         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
45211         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
45212         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
45213         * NEWS: Mention the change.
45214
45215 2009-04-26  Bruno Haible  <bruno@clisp.org>
45216
45217         Simplify calling convention of u*_conv_to_encoding.
45218         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
45219         u32_conv_to_encoding): Expect a resultbuf argument and return the
45220         result directly as a pointer.
45221         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45222         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
45223         freeing scaled_offsets if mem_iconveha failed.
45224         * lib/unicase/u-casexfrm.h (FUNC): Update.
45225         * lib/uninorm/u-normxfrm.h (FUNC): Update.
45226         * lib/vasnprintf.c (VASNPRINTF): Update.
45227         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
45228         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
45229         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
45230         * NEWS: Mention the change.
45231
45232 2009-04-26  Bruno Haible  <bruno@clisp.org>
45233
45234         Avoid test failures on AIX and OSF/1.
45235         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
45236         malloc(0).
45237         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
45238         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
45239         Likewise.
45240         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
45241         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
45242         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
45243         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
45244         * doc/posix-functions/malloc.texi: Document the portability problem
45245         related to malloc(0).
45246
45247 2009-04-26  Bruno Haible  <bruno@clisp.org>
45248
45249         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
45250         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
45251         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
45252
45253 2009-04-25  Bruno Haible  <bruno@clisp.org>
45254
45255         Avoid link error when creating a namespace clean library.
45256         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
45257         as macro with arguments if already defined as an alias.
45258         * lib/signbitf.c (gl_signbitf): Don't undefine.
45259         * lib/signbitd.c (gl_signbitd): Don't undefine.
45260         * lib/signbitl.c (gl_signbitl): Don't undefine.
45261
45262 2009-04-25  Jim Meyering  <meyering@redhat.com>
45263
45264         vc-list-files: fix another quoting bug
45265         * build-aux/vc-list-files: Avoid sed backslash expansion
45266         of pathological directory names.
45267
45268 2009-04-25  Eric Blake  <ebb9@byu.net>
45269
45270         vc-list-files: fix shell quoting error
45271         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
45272         timestamp.
45273
45274 2009-04-25  Jim Meyering  <meyering@redhat.com>
45275
45276         vc-list-files: restore lost functionality with subdir argument
45277         * build-aux/vc-list-files: When given a non-"." sub-directory
45278         argument, substitute the $dir/ prefix back onto each resulting name.
45279         Otherwise, coreutils' root_tests check would fail.
45280
45281 2009-04-24  Eric Blake  <ebb9@byu.net>
45282
45283         vc-list-files: ignore git symlinks
45284         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
45285         than ls-files, to ignore git symlinks.
45286
45287         maint.mk: import improvements from m4
45288         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
45289         (move_if_change): Delete unused macro.
45290         (news-date-check, vc-diff-check): Support VPATH builds.
45291         (announcement): Likewise.  Split --bootstrap-tools list...
45292         (boostrap-tools): ...into separate list, which can be overridden
45293         in cfg.mk.
45294         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
45295         requiring dependency on useless-if-before-free module.
45296         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
45297         Support VPATH builds.
45298
45299 2009-04-24  Jim Meyering  <meyering@redhat.com>
45300
45301         maint.mk: remove coreutils-specific rules and variables
45302         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
45303         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
45304         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
45305
45306         maint.mk: remove obsolete rule
45307         * top/maint.mk (rel-check): Remove rule.
45308         (WGET, WGETFLAGS): Remove now-unused variables.
45309
45310 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45311
45312         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45313         consistency.
45314
45315         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45316         '$(PATH_SEPARATOR)' instead of ':'.
45317
45318 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45319
45320         * lib/getopt1.c (main): Use 'const' for static array.
45321
45322 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45323
45324         * top/maint.mk: Sync with coreutils.
45325         * NEWS: Explain incompatibilities.
45326
45327 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45328             Bruno Haible  <bruno@clisp.org>
45329
45330         Fix cross-compilation results.
45331         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45332         statement, as third argument of AC_TRY_RUN.
45333         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45334         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45335         Likewise.
45336         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45337         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45338         Likewise.
45339         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45340         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45341         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45342
45343 2009-04-20  Bruno Haible  <bruno@clisp.org>
45344
45345         Avoid test failure on mingw.
45346         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45347
45348 2009-04-20  Bruno Haible  <bruno@clisp.org>
45349
45350         Avoid compilation error on mingw.
45351         * modules/localename-tests (Depends-on): Add locale.
45352
45353 2009-04-19  Bruno Haible  <bruno@clisp.org>
45354
45355         Support for building a shared library on Windows platforms.
45356         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45357         (main): Test the presence of UNINORM_NFC here.
45358         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45359         (main): Test the presence of UNINORM_NFD here.
45360         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45361         (main): Test the presence of UNINORM_NFKC here.
45362         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45363         (main): Test the presence of UNINORM_NFKD here.
45364
45365 2009-04-19  Bruno Haible  <bruno@clisp.org>
45366
45367         Avoid a compiler warning.
45368         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45369         Change type of variable 'sequence'.
45370
45371 2009-04-19  Bruno Haible  <bruno@clisp.org>
45372
45373         * modules/configmake (Makefile.am): When the contents of configmake.h
45374         does not change, arrange to preserve its modification time.
45375
45376 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45377
45378         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45379         gettext domain.
45380
45381 2009-04-16  Jim Meyering  <meyering@redhat.com>
45382
45383         useless-if-before-free: improve conversion code
45384         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45385         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45386
45387 2009-04-14  Bruno Haible  <bruno@clisp.org>
45388
45389         * modules/fcntl (Depends-on): Add extensions.
45390         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45391
45392 2009-04-12  Ben Pfaff  <blp@gnu.org>
45393
45394         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45395         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45396
45397 2009-03-20  Ben Pfaff  <blp@gnu.org>
45398
45399         Make rename replace existing destinations on Windows.
45400         * m4/rename.m4: Add test for Mingw.
45401         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45402         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45403         * doc/posix-functions/rename.texi: Document.
45404
45405 2009-04-10  Bruno Haible  <bruno@clisp.org>
45406
45407         New include file "iconveh.h".
45408         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45409         * lib/striconveh.h: Include it.
45410         (enum iconv_ilseq_handler): Remove definition.
45411         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45412         striconveh.h.
45413         * lib/striconveha.c: Include striconveh.h.
45414         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45415         * modules/striconveh (Files): Add lib/iconveh.h.
45416         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45417         lib/striconveh.h.
45418
45419 2009-04-10  Bruno Haible  <bruno@clisp.org>
45420
45421         * lib/uniconv.h: Update comment.
45422
45423 2009-04-10  Bruno Haible  <bruno@clisp.org>
45424
45425         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45426         always.
45427         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45428         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45429         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45430         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45431         "unistring-notinline.h", so that the function gets defined always.
45432         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45433         * lib/unistr/u8-uctomb.c: Likewise.
45434         * lib/unistr/u16-mbtouc.c: Likewise.
45435         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45436         * lib/unistr/u16-uctomb.c: Likewise.
45437         * lib/unistr/u32-mbtouc.c: Likewise.
45438         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45439         * lib/unistr/u32-uctomb.c: Likewise.
45440
45441 2009-04-10  Bruno Haible  <bruno@clisp.org>
45442
45443         Mark 'utime' obsolete.
45444         * modules/utime (Status, Notice): New sections.
45445         Suggested by Jim Meyering.
45446
45447         Fix cross-compile guess for utime test.
45448         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45449         autoconf.
45450         * doc/posix-functions/utime.texi: Give more precisions.
45451         Reported by Jan <ipif@ymail.com>.
45452
45453 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45454
45455         filevercmp: correct today's change
45456         * lib/filevercmp.c: Also handle coreutils' test inputs.
45457         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45458
45459         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45460         for reporting it.
45461         * lib/filevercmp.c: Special handle for "", "." and "..".
45462         * tests/test-filevercmp.c: Enlarge the set suite.
45463
45464 2009-04-07  Jim Meyering  <meyering@redhat.com>
45465
45466         useless-if-before-free: show how to remove braced useless free, too
45467         * build-aux/useless-if-before-free: still only in a comment, though.
45468
45469 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45470
45471         maint.mk: import changes to syntax-check macros from coreutils
45472         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45473         Use them in the relevant macros.
45474
45475 2009-04-06  Bruno Haible  <bruno@clisp.org>
45476
45477         Fix unportable use of bit-fields.
45478         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45479         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45480         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45481
45482 2009-04-06  Bruno Haible  <bruno@clisp.org>
45483
45484         Avoid test failures on AIX and OSF/1.
45485         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45486         that malloc(0) = NULL.
45487         * tests/unicase/test-u8-tolower.c (check): Likewise.
45488         * tests/unicase/test-u8-totitle.c (check): Likewise.
45489         * tests/unicase/test-u8-toupper.c (check): Likewise.
45490         * tests/unicase/test-u16-casefold.c (check): Likewise.
45491         * tests/unicase/test-u16-tolower.c (check): Likewise.
45492         * tests/unicase/test-u16-totitle.c (check): Likewise.
45493         * tests/unicase/test-u16-toupper.c (check): Likewise.
45494         * tests/unicase/test-u32-casefold.c (check): Likewise.
45495         * tests/unicase/test-u32-tolower.c (check): Likewise.
45496         * tests/unicase/test-u32-totitle.c (check): Likewise.
45497         * tests/unicase/test-u32-toupper.c (check): Likewise.
45498         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45499         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45500         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45501         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45502         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45503         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45504         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45505         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45506         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45507         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45508         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45509         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45510
45511 2009-04-05  Bruno Haible  <bruno@clisp.org>
45512
45513         Work around an autoconf limitation.
45514         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45515         comment line if it would be longer than 3 KB.
45516
45517 2009-04-05  Bruno Haible  <bruno@clisp.org>
45518
45519         Avoid test failure with libiconv-1.13.
45520         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45521         of the expected test results.
45522
45523 2009-04-05  Bruno Haible  <bruno@clisp.org>
45524
45525         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45526         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45527         that it should be installed.
45528
45529 2009-04-05  Bruno Haible  <bruno@clisp.org>
45530
45531         * gnulib-tool: New option --copy-file.
45532         (func_usage): Document it.
45533         (func_dest_tmpfilename): Moved out of func_import.
45534         (func_add_file, func_update_file): New functions, extracted from
45535         func_import.
45536         (func_import): Update.
45537
45538 2009-04-05  Karl Berry  <karl@gnu.org>
45539
45540         * README: prominently mention gnulib-tool.
45541         Rearrange sections so getting the code is near the top.
45542
45543 2009-04-05  Bruno Haible  <bruno@clisp.org>
45544
45545         * lib/unicase.h: Mention u*_cmp2.
45546         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45547         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45548         * lib/unicase/ulc-casecmp.c: Likewise.
45549         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45550         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45551         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45552         unistr/u8-cmp.
45553         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45554         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45555         unistr/u16-cmp.
45556         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45557         unistr/u32-cmp.
45558
45559         * lib/uninorm.h: Mention u*_cmp2.
45560         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45561         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45562         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45563         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45564         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45565         unistr/u8-cmp.
45566         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45567         unistr/u16-cmp.
45568         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45569         unistr/u32-cmp.
45570
45571         New module 'unistr/u32-cmp2'.
45572         * lib/unistr/u32-cmp2.c: New file.
45573         * modules/unistr/u32-cmp2: New file.
45574
45575         New module 'unistr/u16-cmp2'.
45576         * lib/unistr/u16-cmp2.c: New file.
45577         * modules/unistr/u16-cmp2: New file.
45578
45579         New module 'unistr/u8-cmp2'.
45580         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45581         * lib/unistr/u8-cmp2.c: New file.
45582         * lib/unistr/u-cmp2.h: New file.
45583         * modules/unistr/u8-cmp2: New file.
45584
45585 2009-04-05  Bruno Haible  <bruno@clisp.org>
45586
45587         * lib/unictype.h (uc_property_is_valid): New macro.
45588         * tests/unictype/test-pr_byname.c (main): Use it.
45589
45590         * lib/unistr.h: Doc fixes.
45591         * lib/uniconv.h: Doc fixes.
45592         * lib/unictype.h: Doc fixes.
45593
45594 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45595
45596         Port coreutils 7.2 to Solaris 8.
45597
45598         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45599         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45600         for Solaris 8.  This is a bit of a hack, as it means it's the
45601         caller's responsibility to add -lnsl if needed, but most likely it
45602         won't be needed since only getaddrinfo uses this and getaddrinfo
45603         isn't needed on Solaris 8.
45604
45605         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45606         problem to Solaris 8 encountered with coreutils 7.2, which
45607         resulted in a message "fnmatch.c:292: warning: passing argument 4
45608         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45609         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45610
45611 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45612
45613         * m4/ld-version-script.m4: Add FIXME comment.
45614
45615 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45616
45617         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45618         SOVERSION variable.
45619
45620 2009-04-02  Bruno Haible  <bruno@clisp.org>
45621
45622         * Makefile (info, html, dvi, pdf): Combine the rules.
45623         Suggested by Jim Meyering.
45624
45625 2009-04-01  Bruno Haible  <bruno@clisp.org>
45626
45627         * Makefile (info, html, dvi, pdf): New targets.
45628         Reported by Reuben Thomas <rrt@sc3d.org>.
45629
45630 2009-04-01  Bruno Haible  <bruno@clisp.org>
45631
45632         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45633         can be put into PATH.
45634         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45635
45636 2009-04-01  Bruno Haible  <bruno@clisp.org>
45637
45638         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45639
45640 2009-04-01  Bruno Haible  <bruno@clisp.org>
45641
45642         Rename module 'visibility'.
45643         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45644         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45645         * doc/gnulib.texi: Update.
45646         * MODULES.html.sh (Misc): Update.
45647         * NEWS: Mention the change.
45648
45649 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45650
45651         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45652         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45653         Eric Blake <ebb9@byu.net> for review.
45654         * MODULES.html.sh: Add lib-msvc-compat.
45655         * doc/gnulib.texi: Link to new section.
45656         * m4/ld-output-def.m4: New file.
45657         * doc/ld-output-def.texi: New file.
45658
45659 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45660
45661         Rename ld-version-script to lib-symbol-versions.  Suggested by
45662         Bruno Haible <bruno@clisp.org>.
45663         * modules/ld-version-script: Renamed to lib-symbol-versions.
45664         * doc/ld-version-script.texi: Fix module name.
45665         * MODULES.html.sh: Add lib-symbol-versions.
45666
45667 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45668
45669         * modules/u64-tests: New file.
45670         * tests/test-u64.c: New file.
45671
45672 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45673
45674         * MODULES.html.sh: Mention u64.
45675         * modules/u64: New module.
45676         * modules/crypto/sha512: Depend on u64 module instead of providing
45677         u64.h.
45678
45679 2009-03-27  Eric Blake  <ebb9@byu.net>
45680
45681         test-strerror: make debugging EAI_SYSTEM easier
45682         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45683         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45684         failure was EAI_SYSTEM.
45685
45686 2009-03-25  Bruno Haible  <bruno@clisp.org>
45687
45688         Fix a problem with --enable-relocatable on Solaris 7.
45689         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45690         since 2008-02-24.
45691
45692 2009-03-25  Eric Blake  <ebb9@byu.net>
45693
45694         test-sockets: avoid gcc warning
45695         * tests/test-sockets.c (main): Silence compiler warning.
45696
45697 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45698
45699         New modules nproc, pthread, contributed by Glen Lenker.
45700
45701         * MODULES.html.sh: Add pthread, nproc.
45702         * lib/nproc.c: New file.
45703         * lib/nproc.h: New file.
45704         * lib/pthread.in.h: New file.
45705         * m4/pthread.m4: New file.
45706         * modules/nproc: New file.
45707         * modules/pthread: New file.
45708
45709 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45710
45711         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45712         New variable.
45713
45714 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45715
45716         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45717         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45718         * tests/test-filevercmp.c: Add tests for backup suffixes.
45719
45720 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45721
45722         * modules/stdlib (Depends-on): Add stdint, needed when defining
45723         struct random_data on, for example, HP-UX 10.20.  Reported by
45724         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45725
45726 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45727
45728         * lib/readline.c (readline): Call fflush on stdout after printing
45729         prompt.
45730
45731 2009-03-20  Bruno Haible  <bruno@clisp.org>
45732
45733         Remove dependency from 'close' module to -lws2_32 on native Windows.
45734         * lib/close-hook.h: New file.
45735         * lib/close-hook.c: New file.
45736         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45737         w32sock.h.
45738         (_gl_close_fd_maybe_socket): Remove function.
45739         (rpl_close): Invoke execute_all_close_hooks instead of
45740         _gl_close_fd_maybe_socket.
45741         * lib/sockets.c: Include close-hook.h, w32sock.h.
45742         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45743         (close_sockets_hook): New variable.
45744         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45745         (gl_sockets_cleanup): Unregister it.
45746         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45747         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45748         * modules/close-hook: New file.
45749         * modules/close (Files): Remove lib/w32sock.h.
45750         (Depends-on): Add close-hook.
45751         (Link): Remove section.
45752         * modules/sockets (Files): Add lib/w32sock.h.
45753         (Depends-on): Add close-hook.
45754         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45755         invocation.
45756         * NEWS: Mention that LIB_CLOSE is gone.
45757
45758 2009-03-23  Eric Blake  <ebb9@byu.net>
45759
45760         signal-tests: test previous patch
45761         * tests/test-signal.c: New file.
45762         * modules/signal-tests: Likewise.
45763
45764         signal.h: always support 'volatile sig_atomic_t'
45765         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45766         (gl_SIGNAL_H_DEFAULTS): Add a default.
45767         * modules/signal (Makefile.am): Substitute if needed.
45768         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45769         users can blindly add volatile.
45770         * doc/posix-headers/signal.texi (signal.h): Document it.
45771         Reported by Matthew Woehlke.
45772
45773 2009-03-23  Jim Meyering  <meyering@redhat.com>
45774
45775         pathmax: PATH_MAX: use pathconf only when available
45776         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45777         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45778         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45779         This avoids a link failure in a PSP cross-compilation environment
45780         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45781
45782         * lib/vasnprintf.c (divide): Fix typo in comment.
45783
45784 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45785
45786         * gnulib-tool (func_filter_filelist): Fix comment.
45787
45788 2009-03-20  Bruno Haible  <bruno@clisp.org>
45789
45790         Make sockets.h self-contained.
45791         * lib/sockets.c: Include sockets.h first.
45792         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45793
45794 2009-03-19  Eric Blake  <ebb9@byu.net>
45795
45796         doc: mention more functions added in cygwin 1.7.0
45797         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45798         addition.
45799         * doc/posix-functions/log2f.texi: Likewise.
45800
45801 2009-03-19  Jim Meyering  <meyering@redhat.com>
45802
45803         fsusage: avoid syntax error due to statement-before-declaration
45804         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45805         after all declarations.  Reported by Matthew Woehlke in
45806         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45807
45808 2009-03-18  Eric Blake  <ebb9@byu.net>
45809
45810         build-aux/compile: sync from automake
45811         * build-aux/compile: New file, from automake.
45812         * config/srclist.txt: Mention build-aux/compile.
45813
45814 2009-03-17  Bruno Haible  <bruno@clisp.org>
45815
45816         * lib/git-merge-changelog.c: Fix typo in comment.
45817         Reported by Reuben Thomas <rrt@sc3d.org>.
45818
45819 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45820
45821         * m4/regex.m4: update and improve help for
45822         --without-included-regex.
45823
45824 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45825
45826         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45827         failure on missing include files.
45828
45829 2009-03-17  Eric Blake  <ebb9@byu.net>
45830
45831         doc: mention more functions added in cygwin 1.7.0
45832         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45833         addition.
45834         * doc/posix-functions/fwscanf.texi: Likewise.
45835         * doc/posix-functions/swprintf.texi: Likewise.
45836         * doc/posix-functions/swscanf.texi: Likewise.
45837         * doc/posix-functions/vfwprintf.texi: Likewise.
45838         * doc/posix-functions/vfwscanf.texi: Likewise.
45839         * doc/posix-functions/vswprintf.texi: Likewise.
45840         * doc/posix-functions/vswscanf.texi: Likewise.
45841         * doc/posix-functions/vwprintf.texi: Likewise.
45842         * doc/posix-functions/vwscanf.texi: Likewise.
45843         * doc/posix-functions/wcscasecmp.texi: Likewise.
45844         * doc/posix-functions/wcsdup.texi: Likewise.
45845         * doc/posix-functions/wcsftime.texi: Likewise.
45846         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45847         * doc/posix-functions/wprintf.texi: Likewise.
45848         * doc/posix-functions/wscanf.texi: Likewise.
45849         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45850
45851 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45852
45853         maint.mk: really add $(AM_MAKEFLAGS)
45854         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45855         was inadvertently omitted in the last commit.
45856         Spotted by Bruno Haible.
45857
45858         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45859         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45860         $(AM_MAKEFLAGS)' rather than plain `make'.
45861
45862         gnulib-tool: execute $MAKE not make
45863         * gnulib-tool: Default $MAKE to 'make'.
45864         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45865         than make.  Initialize $MAKE in the do-autobuild script.
45866
45867         gnulib-tool: use $MAKE not make in generated files
45868         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45869         make, in generated files.  Initialize $MAKE in the do-autobuild
45870         script.
45871
45872         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45873
45874         GNUmakefile: disable parallelism only for multiple, recursive targets
45875         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45876         additions in the Makefile.
45877         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45878         by Automake.
45879         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45880         are listed on the command line and at least one of them is
45881         listed in $(ALL_RECURSIVE_TARGETS).
45882
45883 2009-03-14  Bruno Haible  <bruno@clisp.org>
45884
45885         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45886         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45887         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45888         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45889         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45890         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45891         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45892         unistr/u8-uctomb.
45893         * modules/unistr/u8-strchr (Depends-on): Likewise.
45894         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45895         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45896         unistr/u16-uctomb.
45897         * modules/unistr/u16-strchr (Depends-on): Likewise.
45898         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45899
45900 2009-03-12  Bruno Haible  <bruno@clisp.org>
45901
45902         Work around select() bug on Interix 3.5.
45903         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45904         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45905         * m4/select.m4: New file.
45906         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45907         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45908         * modules/select (Files): Add m4/select.m4.
45909         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45910         * modules/nanosleep (Depends-on): Add select.
45911         * modules/poll (Depends-on): Likewise.
45912         * doc/posix-functions/select.texi: Mention the Interix bug.
45913         Reported by Markus Duft <mduft@gentoo.org>.
45914
45915         * lib/select.c: Renamed from lib/winsock-select.c.
45916         * modules/select (Files): Add lib/select.c, remove
45917         lib/winsock-select.c.
45918         (configure.ac): Update.
45919
45920 2009-03-12  Jim Meyering  <meyering@redhat.com>
45921
45922         avoid gcc warnings about unused macro definitions
45923         * lib/readtokens.c (STREQ): Remove unused definition.
45924         * lib/xmalloc.c (SIZE_MAX): Likewise.
45925         * lib/openat-die.c (N_): Likewise.
45926         * lib/mountlist.c (SIZE_MAX): Remove definition.
45927         Instead, include <stdint.h>.
45928         * lib/readutmp.c: Likewise.
45929         * modules/readutmp (Depends-on): Add stdint.
45930         * modules/mountlist (Depends-on): Add stdint.
45931         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45932
45933 2009-03-10  Bruno Haible  <bruno@clisp.org>
45934
45935         Tests for module 'mbmemcasecoll'.
45936         * modules/mbmemcasecoll-tests: New file.
45937         * tests/test-mbmemcasecoll1.sh: New file.
45938         * tests/test-mbmemcasecoll2.sh: New file.
45939         * tests/test-mbmemcasecoll3.sh: New file.
45940         * tests/test-mbmemcasecoll.c: New file.
45941
45942         New module 'mbmemcasecoll'.
45943         * lib/mbmemcasecoll.h: New file.
45944         * lib/mbmemcasecoll.c: New file.
45945         * modules/mbmemcasecoll: New file.
45946
45947         * tests/test-mbmemcasecmp.h: New file, extracted from
45948         tests/test-mbmemcasecmp.c.
45949         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45950         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45951         (main): Update.
45952         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45953
45954 2009-03-09  Bruno Haible  <bruno@clisp.org>
45955
45956         Tests for module 'mbmemcasecmp'.
45957         * modules/mbmemcasecmp-tests: New file.
45958         * tests/test-mbmemcasecmp1.sh: New file.
45959         * tests/test-mbmemcasecmp2.sh: New file.
45960         * tests/test-mbmemcasecmp3.sh: New file.
45961         * tests/test-mbmemcasecmp.c: New file.
45962
45963         New module 'mbmemcasecmp'.
45964         * lib/mbmemcasecmp.h: New file.
45965         * lib/mbmemcasecmp.c: New file.
45966         * modules/mbmemcasecmp: New file.
45967
45968 2009-03-09  Bruno Haible  <bruno@clisp.org>
45969
45970         Tests for module 'unicase/ulc-casecoll'.
45971         * modules/unicase/ulc-casecoll-tests: New file.
45972         * tests/unicase/test-ulc-casecoll1.sh: New file.
45973         * tests/unicase/test-ulc-casecoll2.sh: New file.
45974         * tests/unicase/test-ulc-casecoll.c: New file.
45975
45976         New module 'unicase/ulc-casecoll'.
45977         * lib/unicase.h (ulc_casecoll): New declaration.
45978         * lib/unicase/ulc-casecoll.c: New file.
45979         * modules/unicase/ulc-casecoll: New file.
45980
45981         New module 'unicase/ulc-casexfrm'.
45982         * lib/unicase.h (ulc_casexfrm): New declaration.
45983         * lib/unicase/ulc-casexfrm.c: New file.
45984         * modules/unicase/ulc-casexfrm: New file.
45985
45986 2009-03-09  Bruno Haible  <bruno@clisp.org>
45987
45988         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45989         invocations.
45990
45991         * m4/mbscasecmp.m4: Remove file.
45992         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45993         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45994
45995         * m4/mbscasestr.m4: Remove file.
45996         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45997         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45998
45999         * m4/mbschr.m4: Remove file.
46000         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
46001         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
46002
46003         * m4/mbscspn.m4: Remove file.
46004         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
46005         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
46006
46007         * m4/mbslen.m4: Remove file.
46008         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
46009         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
46010
46011         * m4/mbsncasecmp.m4: Remove file.
46012         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
46013         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
46014
46015         * m4/mbsnlen.m4: Remove file.
46016         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
46017         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
46018
46019         * m4/mbspbrk.m4: Remove file.
46020         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
46021         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
46022
46023         * m4/mbspcasecmp.m4: Remove file.
46024         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
46025         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
46026
46027         * m4/mbsrchr.m4: Remove file.
46028         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
46029         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
46030
46031         * m4/mbssep.m4: Remove file.
46032         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
46033         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
46034
46035         * m4/mbsspn.m4: Remove file.
46036         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
46037         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
46038
46039         * m4/mbsstr.m4: Remove file.
46040         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
46041         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
46042
46043         * m4/mbstok_r.m4: Remove file.
46044         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
46045         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
46046
46047         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
46048
46049         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
46050         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
46051
46052         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
46053
46054 2009-03-08  Bruno Haible  <bruno@clisp.org>
46055
46056         Tests for module 'unicase/ulc-casecmp'.
46057         * modules/unicase/ulc-casecmp-tests: New file.
46058         * tests/unicase/test-ulc-casecmp1.sh: New file.
46059         * tests/unicase/test-ulc-casecmp2.sh: New file.
46060         * tests/unicase/test-ulc-casecmp.c: New file.
46061
46062         New module 'unicase/ulc-casecmp'.
46063         * lib/unicase.h (ulc_casecmp): New declaration.
46064         * lib/unicase/ulc-casecmp.c: New file.
46065         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
46066         'const SRC_UNIT *'.
46067         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
46068         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
46069         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
46070         * modules/unicase/ulc-casecmp: New file.
46071
46072         Tests for module 'unicase/u32-is-cased'.
46073         * modules/unicase/u32-is-cased-tests: New file.
46074         * tests/unicase/test-u32-is-cased.c: New file.
46075
46076         Tests for module 'unicase/u16-is-cased'.
46077         * modules/unicase/u16-is-cased-tests: New file.
46078         * tests/unicase/test-u16-is-cased.c: New file.
46079
46080         Tests for module 'unicase/u8-is-cased'.
46081         * modules/unicase/u8-is-cased-tests: New file.
46082         * tests/unicase/test-u8-is-cased.c: New file.
46083         * tests/unicase/test-is-cased.h: New file.
46084
46085         New module 'unicase/u32-is-cased'.
46086         * lib/unicase/u32-is-cased.c: New file.
46087         * modules/unicase/u32-is-cased: New file.
46088
46089         New module 'unicase/u16-is-cased'.
46090         * lib/unicase/u16-is-cased.c: New file.
46091         * modules/unicase/u16-is-cased: New file.
46092
46093         New module 'unicase/u8-is-cased'.
46094         * lib/unicase/u8-is-cased.c: New file.
46095         * lib/unicase/u-is-cased.h: New file.
46096         * modules/unicase/u8-is-cased: New file.
46097
46098         Tests for module 'unicase/u32-is-casefolded'.
46099         * modules/unicase/u32-is-casefolded-tests: New file.
46100         * tests/unicase/test-u32-is-casefolded.c: New file.
46101
46102         Tests for module 'unicase/u16-is-casefolded'.
46103         * modules/unicase/u16-is-casefolded-tests: New file.
46104         * tests/unicase/test-u16-is-casefolded.c: New file.
46105
46106         Tests for module 'unicase/u8-is-casefolded'.
46107         * modules/unicase/u8-is-casefolded-tests: New file.
46108         * tests/unicase/test-u8-is-casefolded.c: New file.
46109         * tests/unicase/test-is-casefolded.h: New file.
46110
46111         New module 'unicase/u32-is-casefolded'.
46112         * lib/unicase/u32-is-casefolded.c: New file.
46113         * modules/unicase/u32-is-casefolded: New file.
46114
46115         New module 'unicase/u16-is-casefolded'.
46116         * lib/unicase/u16-is-casefolded.c: New file.
46117         * modules/unicase/u16-is-casefolded: New file.
46118
46119         New module 'unicase/u8-is-casefolded'.
46120         * lib/unicase/u8-is-casefolded.c: New file.
46121         * modules/unicase/u8-is-casefolded: New file.
46122
46123         Tests for module 'unicase/u32-is-titlecase'.
46124         * modules/unicase/u32-is-titlecase-tests: New file.
46125         * tests/unicase/test-u32-is-titlecase.c: New file.
46126
46127         Tests for module 'unicase/u16-is-titlecase'.
46128         * modules/unicase/u16-is-titlecase-tests: New file.
46129         * tests/unicase/test-u16-is-titlecase.c: New file.
46130
46131         Tests for module 'unicase/u8-is-titlecase'.
46132         * modules/unicase/u8-is-titlecase-tests: New file.
46133         * tests/unicase/test-u8-is-titlecase.c: New file.
46134         * tests/unicase/test-is-titlecase.h: New file.
46135
46136         New module 'unicase/u32-is-titlecase'.
46137         * lib/unicase/u32-is-titlecase.c: New file.
46138         * modules/unicase/u32-is-titlecase: New file.
46139
46140         New module 'unicase/u16-is-titlecase'.
46141         * lib/unicase/u16-is-titlecase.c: New file.
46142         * modules/unicase/u16-is-titlecase: New file.
46143
46144         New module 'unicase/u8-is-titlecase'.
46145         * lib/unicase/u8-is-titlecase.c: New file.
46146         * modules/unicase/u8-is-titlecase: New file.
46147
46148         Tests for module 'unicase/u32-is-lowercase'.
46149         * modules/unicase/u32-is-lowercase-tests: New file.
46150         * tests/unicase/test-u32-is-lowercase.c: New file.
46151
46152         Tests for module 'unicase/u16-is-lowercase'.
46153         * modules/unicase/u16-is-lowercase-tests: New file.
46154         * tests/unicase/test-u16-is-lowercase.c: New file.
46155
46156         Tests for module 'unicase/u8-is-lowercase'.
46157         * modules/unicase/u8-is-lowercase-tests: New file.
46158         * tests/unicase/test-u8-is-lowercase.c: New file.
46159         * tests/unicase/test-is-lowercase.h: New file.
46160
46161         New module 'unicase/u32-is-lowercase'.
46162         * lib/unicase/u32-is-lowercase.c: New file.
46163         * modules/unicase/u32-is-lowercase: New file.
46164
46165         New module 'unicase/u16-is-lowercase'.
46166         * lib/unicase/u16-is-lowercase.c: New file.
46167         * modules/unicase/u16-is-lowercase: New file.
46168
46169         New module 'unicase/u8-is-lowercase'.
46170         * lib/unicase/u8-is-lowercase.c: New file.
46171         * modules/unicase/u8-is-lowercase: New file.
46172
46173         Tests for module 'unicase/u32-is-uppercase'.
46174         * modules/unicase/u32-is-uppercase-tests: New file.
46175         * tests/unicase/test-u32-is-uppercase.c: New file.
46176
46177         Tests for module 'unicase/u16-is-uppercase'.
46178         * modules/unicase/u16-is-uppercase-tests: New file.
46179         * tests/unicase/test-u16-is-uppercase.c: New file.
46180
46181         Tests for module 'unicase/u8-is-uppercase'.
46182         * modules/unicase/u8-is-uppercase-tests: New file.
46183         * tests/unicase/test-u8-is-uppercase.c: New file.
46184         * tests/unicase/test-is-uppercase.h: New file.
46185
46186         New module 'unicase/u32-is-uppercase'.
46187         * lib/unicase/u32-is-uppercase.c: New file.
46188         * modules/unicase/u32-is-uppercase: New file.
46189
46190         New module 'unicase/u16-is-uppercase'.
46191         * lib/unicase/u16-is-uppercase.c: New file.
46192         * modules/unicase/u16-is-uppercase: New file.
46193
46194         New module 'unicase/u8-is-uppercase'.
46195         * lib/unicase/u8-is-uppercase.c: New file.
46196         * modules/unicase/u8-is-uppercase: New file.
46197
46198         New module 'unicase/u32-is-invariant'.
46199         * lib/unicase/u32-is-invariant.c: New file.
46200         * modules/unicase/u32-is-invariant: New file.
46201
46202         New module 'unicase/u16-is-invariant'.
46203         * lib/unicase/u16-is-invariant.c: New file.
46204         * modules/unicase/u16-is-invariant: New file.
46205
46206         New module 'unicase/u8-is-invariant'.
46207         * lib/unicase/u8-is-invariant.c: New file.
46208         * lib/unicase/invariant.h: New file.
46209         * lib/unicase/u-is-invariant.h: New file.
46210         * modules/unicase/u8-is-invariant: New file.
46211
46212         Tests for module 'unicase/u32-casecoll'.
46213         * modules/unicase/u32-casecoll-tests: New file.
46214         * tests/unicase/test-u32-casecoll.c: New file.
46215
46216         Tests for module 'unicase/u16-casecoll'.
46217         * modules/unicase/u16-casecoll-tests: New file.
46218         * tests/unicase/test-u16-casecoll.c: New file.
46219
46220         Tests for module 'unicase/u8-casecoll'.
46221         * modules/unicase/u8-casecoll-tests: New file.
46222         * tests/unicase/test-u8-casecoll.c: New file.
46223
46224         New module 'unicase/u32-casecoll'.
46225         * lib/unicase/u32-casecoll.c: New file.
46226         * modules/unicase/u32-casecoll: New file.
46227
46228         New module 'unicase/u16-casecoll'.
46229         * lib/unicase/u16-casecoll.c: New file.
46230         * modules/unicase/u16-casecoll: New file.
46231
46232         New module 'unicase/u8-casecoll'.
46233         * lib/unicase/u8-casecoll.c: New file.
46234         * lib/unicase/u-casecoll.h: New file.
46235         * modules/unicase/u8-casecoll: New file.
46236
46237         New module 'unicase/u32-casexfrm'.
46238         * lib/unicase/u32-casexfrm.c: New file.
46239         * modules/unicase/u32-casexfrm: New file.
46240
46241         New module 'unicase/u16-casexfrm'.
46242         * lib/unicase/u16-casexfrm.c: New file.
46243         * modules/unicase/u16-casexfrm: New file.
46244
46245         New module 'unicase/u8-casexfrm'.
46246         * lib/unicase/u8-casexfrm.c: New file.
46247         * lib/unicase/u-casexfrm.h: New file.
46248         * modules/unicase/u8-casexfrm: New file.
46249
46250         Tests for module 'unicase/u32-casecmp'.
46251         * modules/unicase/u32-casecmp-tests: New file.
46252         * tests/unicase/test-u32-casecmp.c: New file.
46253
46254         Tests for module 'unicase/u16-casecmp'.
46255         * modules/unicase/u16-casecmp-tests: New file.
46256         * tests/unicase/test-u16-casecmp.c: New file.
46257
46258         Tests for module 'unicase/u8-casecmp'.
46259         * modules/unicase/u8-casecmp-tests: New file.
46260         * tests/unicase/test-u8-casecmp.c: New file.
46261         * tests/unicase/test-casecmp.h: New file.
46262
46263         New module 'unicase/u32-casecmp'.
46264         * lib/unicase/u32-casecmp.c: New file.
46265         * modules/unicase/u32-casecmp: New file.
46266
46267         New module 'unicase/u16-casecmp'.
46268         * lib/unicase/u16-casecmp.c: New file.
46269         * modules/unicase/u16-casecmp: New file.
46270
46271         New module 'unicase/u8-casecmp'.
46272         * lib/unicase/u8-casecmp.c: New file.
46273         * lib/unicase/u-casecmp.h: New file.
46274         * modules/unicase/u8-casecmp: New file.
46275
46276         Tests for module 'unicase/u32-casefold'.
46277         * modules/unicase/u32-casefold-tests: New file.
46278         * tests/unicase/test-u32-casefold.c: New file.
46279
46280         Tests for module 'unicase/u16-casefold'.
46281         * modules/unicase/u16-casefold-tests: New file.
46282         * tests/unicase/test-u16-casefold.c: New file.
46283
46284         Tests for module 'unicase/u8-casefold'.
46285         * modules/unicase/u8-casefold-tests: New file.
46286         * tests/unicase/test-u8-casefold.c: New file.
46287
46288         New module 'unicase/u32-casefold'.
46289         * lib/unicase/u32-casefold.c: New file.
46290         * modules/unicase/u32-casefold: New file.
46291
46292         New module 'unicase/u16-casefold'.
46293         * lib/unicase/u16-casefold.c: New file.
46294         * modules/unicase/u16-casefold: New file.
46295
46296         New module 'unicase/u8-casefold'.
46297         * lib/unicase/u8-casefold.c: New file.
46298         * lib/unicase/u-casefold.h: New file.
46299         * modules/unicase/u8-casefold: New file.
46300
46301         New module 'unicase/tocasefold'.
46302         * lib/unicase/casefold.h: New file.
46303         * lib/unicase/tocasefold.c: New file.
46304         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
46305         * modules/unicase/tocasefold: New file.
46306
46307         Tests for module 'unicase/u32-totitle'.
46308         * modules/unicase/u32-totitle-tests: New file.
46309         * tests/unicase/test-u32-totitle.c: New file.
46310
46311         Tests for module 'unicase/u16-totitle'.
46312         * modules/unicase/u16-totitle-tests: New file.
46313         * tests/unicase/test-u16-totitle.c: New file.
46314
46315         Tests for module 'unicase/u8-totitle'.
46316         * modules/unicase/u8-totitle-tests: New file.
46317         * tests/unicase/test-u8-totitle.c: New file.
46318
46319         New module 'unicase/u32-totitle'.
46320         * lib/unicase/u32-totitle.c: New file.
46321         * modules/unicase/u32-totitle: New file.
46322
46323         New module 'unicase/u16-totitle'.
46324         * lib/unicase/u16-totitle.c: New file.
46325         * modules/unicase/u16-totitle: New file.
46326
46327         New module 'unicase/u8-totitle'.
46328         * lib/unicase/u8-totitle.c: New file.
46329         * lib/unicase/u-totitle.h: New file.
46330         * modules/unicase/u8-totitle: New file.
46331
46332         Tests for module 'unicase/u32-tolower'.
46333         * modules/unicase/u32-tolower-tests: New file.
46334         * tests/unicase/test-u32-tolower.c: New file.
46335
46336         Tests for module 'unicase/u16-tolower'.
46337         * modules/unicase/u16-tolower-tests: New file.
46338         * tests/unicase/test-u16-tolower.c: New file.
46339
46340         Tests for module 'unicase/u8-tolower'.
46341         * modules/unicase/u8-tolower-tests: New file.
46342         * tests/unicase/test-u8-tolower.c: New file.
46343
46344         New module 'unicase/u32-tolower'.
46345         * lib/unicase/u32-tolower.c: New file.
46346         * modules/unicase/u32-tolower: New file.
46347
46348         New module 'unicase/u16-tolower'.
46349         * lib/unicase/u16-tolower.c: New file.
46350         * modules/unicase/u16-tolower: New file.
46351
46352         New module 'unicase/u8-tolower'.
46353         * lib/unicase/u8-tolower.c: New file.
46354         * modules/unicase/u8-tolower: New file.
46355
46356         Tests for module 'unicase/u32-toupper'.
46357         * modules/unicase/u32-toupper-tests: New file.
46358         * tests/unicase/test-u32-toupper.c: New file.
46359
46360         Tests for module 'unicase/u16-toupper'.
46361         * modules/unicase/u16-toupper-tests: New file.
46362         * tests/unicase/test-u16-toupper.c: New file.
46363
46364         Tests for module 'unicase/u8-toupper'.
46365         * modules/unicase/u8-toupper-tests: New file.
46366         * tests/unicase/test-u8-toupper.c: New file.
46367
46368         New module 'unicase/u32-toupper'.
46369         * lib/unicase/u32-toupper.c: New file.
46370         * modules/unicase/u32-toupper: New file.
46371
46372         New module 'unicase/u16-toupper'.
46373         * lib/unicase/u16-toupper.c: New file.
46374         * modules/unicase/u16-toupper: New file.
46375
46376         New module 'unicase/u8-toupper'.
46377         * lib/unicase/u8-toupper.c: New file.
46378         * modules/unicase/u8-toupper: New file.
46379
46380         New module 'unicase/u32-casemap'.
46381         * lib/unicase/u32-casemap.c: New file.
46382         * modules/unicase/u32-casemap: New file.
46383
46384         New module 'unicase/u16-casemap'.
46385         * lib/unicase/u16-casemap.c: New file.
46386         * modules/unicase/u16-casemap: New file.
46387
46388         New module 'unicase/u8-casemap'.
46389         * lib/unicase/unicasemap.h: New file.
46390         * lib/unicase/u8-casemap.c: New file.
46391         * lib/unicase/u-casemap.h: New file.
46392         * modules/unicase/u8-casemap: New file.
46393
46394         New module 'unicase/special-casing'.
46395         * lib/unicase/special-casing.h: New file.
46396         * lib/unicase/special-casing.c: New file.
46397         * lib/unicase/special-casing-table.gperf: New file, generated by
46398         gen-uni-tables.c.
46399         * modules/unicase/special-casing: New file.
46400
46401         Tests for module 'unicase/locale-language'.
46402         * modules/unicase/locale-language-tests: New file.
46403         * tests/unicase/test-locale-language.sh: New file.
46404         * tests/unicase/test-locale-language.c: New file.
46405
46406         New module 'unicase/locale-language'.
46407         * lib/unicase/locale-language.c: New file.
46408         * lib/unicase/locale-languages.gperf: New file.
46409         * modules/unicase/locale-language: New file.
46410
46411         Generate more tables for case conversion and case folding.
46412         * lib/gen-uni-tables.c (SCC_*): New enum items.
46413         (struct special_casing_rule): New type.
46414         (casing_rules, num_casing_rules, allocated_casing_rules): New
46415         variables.
46416         (add_casing_rule, fill_casing_rules): New functions.
46417         (struct casefold_rule): New type.
46418         (casefolding_rules, num_casefolding_rules,
46419         allocated_casefolding_rules): New variables.
46420         (fill_casefolding_rules): New function.
46421         (unicode_casefold): New variable.
46422         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46423         sort_casing_rules, output_casing_rules): New functions.
46424         (main): Accept to more arguments: SpecialCasing.txt and
46425         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46426         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46427         Output mapping for casefolding.
46428
46429         * lib/unicase.h: Include stdbool.h, uninorm.h.
46430         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46431         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46432         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46433         arguments.
46434         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46435         resultp arguments.
46436         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46437         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46438         resultp arguments.
46439         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46440         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46441         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46442         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46443         declarations.
46444         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46445
46446 2009-03-08  Bruno Haible  <bruno@clisp.org>
46447
46448         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46449         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46450         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46451         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46452
46453 2009-03-07  Bruno Haible  <bruno@clisp.org>
46454
46455         Adjust u*_normcmp, u*_normcoll API.
46456         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46457         u16_normcoll, u32_normcoll): Change failure conventions.
46458         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46459         errno and return -1.
46460         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46461
46462 2009-03-07  Bruno Haible  <bruno@clisp.org>
46463
46464         Tests for module 'uninorm/u32-normcoll'.
46465         * modules/uninorm/u32-normcoll-tests: New file.
46466         * tests/uninorm/test-u32-normcoll.c: New file.
46467
46468         Tests for module 'uninorm/u16-normcoll'.
46469         * modules/uninorm/u16-normcoll-tests: New file.
46470         * tests/uninorm/test-u16-normcoll.c: New file.
46471
46472         Tests for module 'uninorm/u8-normcoll'.
46473         * modules/uninorm/u8-normcoll-tests: New file.
46474         * tests/uninorm/test-u8-normcoll.c: New file.
46475
46476 2009-03-07  Bruno Haible  <bruno@clisp.org>
46477
46478         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46479         tests/uninorm/test-u32-normcmp.c.
46480         * tests/uninorm/test-u32-normcmp.c: Include it.
46481         (test_nonascii): New function, extracted from main. Add some more
46482         tests.
46483         (main): Invoke test_ascii and test_nonascii.
46484         * modules/uninorm/u32-normcmp-tests (Files): Add
46485         tests/uninorm/test-u32-normcmp.h.
46486         (Depends-on): Remove uninorm/u32-normcmp.
46487
46488         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46489         tests/uninorm/test-u16-normcmp.c.
46490         * tests/uninorm/test-u16-normcmp.c: Include it.
46491         (test_nonascii): New function, extracted from main. Add some more
46492         tests.
46493         (main): Invoke test_ascii and test_nonascii.
46494         * modules/uninorm/u16-normcmp-tests (Files): Add
46495         tests/uninorm/test-u16-normcmp.h.
46496         (Depends-on): Remove uninorm/u16-normcmp.
46497
46498         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46499         tests/uninorm/test-u8-normcmp.c.
46500         * tests/uninorm/test-u8-normcmp.c: Include it.
46501         (test_nonascii): New function, extracted from main. Add some more
46502         tests.
46503         (main): Invoke test_ascii and test_nonascii.
46504         * modules/uninorm/u8-normcmp-tests (Files): Add
46505         tests/uninorm/test-u8-normcmp.h.
46506         (Depends-on): Remove uninorm/u8-normcmp.
46507
46508 2009-03-07  Bruno Haible  <bruno@clisp.org>
46509
46510         New module 'uninorm/u32-normcoll'.
46511         * lib/uninorm/u32-normcoll.c: New file.
46512         * modules/uninorm/u32-normcoll: New file.
46513
46514         New module 'uninorm/u16-normcoll'.
46515         * lib/uninorm/u16-normcoll.c: New file.
46516         * modules/uninorm/u16-normcoll: New file.
46517
46518         New module 'uninorm/u8-normcoll'.
46519         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46520         declarations.
46521         * lib/uninorm/u8-normcoll.c: New file.
46522         * lib/uninorm/u-normcoll.h: New file.
46523         * modules/uninorm/u8-normcoll: New file.
46524
46525         New module 'uninorm/u32-normxfrm'.
46526         * lib/uninorm/u32-normxfrm.c: New file.
46527         * modules/uninorm/u32-normxfrm: New file.
46528
46529         New module 'uninorm/u16-normxfrm'.
46530         * lib/uninorm/u16-normxfrm.c: New file.
46531         * modules/uninorm/u16-normxfrm: New file.
46532
46533         New module 'uninorm/u8-normxfrm'.
46534         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46535         declarations.
46536         * lib/uninorm/u8-normxfrm.c: New file.
46537         * lib/uninorm/u-normxfrm.h: New file.
46538         * modules/uninorm/u8-normxfrm: New file.
46539
46540 2009-03-07  Bruno Haible  <bruno@clisp.org>
46541
46542         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46543         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46544         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46545
46546 2009-03-07  Bruno Haible  <bruno@clisp.org>
46547
46548         New module 'memxfrm'.
46549         * lib/memxfrm.h: New file.
46550         * lib/memxfrm.c: New file.
46551         * modules/memxfrm: New file.
46552
46553 2009-03-07  Bruno Haible  <bruno@clisp.org>
46554
46555         New module 'memcmp2'.
46556         * lib/memcmp2.h: New file.
46557         * lib/memcmp2.c: New file.
46558         * modules/memcmp2: New file.
46559
46560 2009-03-07  Bruno Haible  <bruno@clisp.org>
46561
46562         Tests for module 'uninorm/decomposing-form'.
46563         * modules/uninorm/decomposing-form-tests: New file.
46564         * tests/uninorm/test-decomposing-form.c: New file.
46565
46566         New module 'uninorm/decomposing-form'.
46567         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46568         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46569         Add 'decomposing_variant' field.
46570         * lib/uninorm/decomposing-form.c: New file.
46571         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46572         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46573         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46574         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46575         * modules/uninorm/decomposing-form: New file.
46576         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46577         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46578
46579 2009-03-07  Bruno Haible  <bruno@clisp.org>
46580
46581         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46582         strings.
46583
46584 2009-03-06  Bruno Haible  <bruno@clisp.org>
46585
46586         Tests for module 'uninorm/u32-normcmp'.
46587         * tests/uninorm/test-u32-normcmp.c: New file.
46588         * modules/uninorm/u32-normcmp-tests: New file.
46589
46590         Tests for module 'uninorm/u16-normcmp'.
46591         * tests/uninorm/test-u16-normcmp.c: New file.
46592         * modules/uninorm/u16-normcmp-tests: New file.
46593
46594         Tests for module 'uninorm/u8-normcmp'.
46595         * tests/uninorm/test-u8-normcmp.c: New file.
46596         * modules/uninorm/u8-normcmp-tests: New file.
46597
46598         New module 'uninorm/u32-normcmp'.
46599         * lib/uninorm/u32-normcmp.c: New file.
46600         * modules/uninorm/u32-normcmp: New file.
46601
46602         New module 'uninorm/u16-normcmp'.
46603         * lib/uninorm/u16-normcmp.c: New file.
46604         * modules/uninorm/u16-normcmp: New file.
46605
46606         New module 'uninorm/u8-normcmp'.
46607         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46608         declarations.
46609         * lib/uninorm/u8-normcmp.c: New file.
46610         * lib/uninorm/u-normcmp.h: New file.
46611         * modules/uninorm/u8-normcmp: New file.
46612
46613 2009-03-06  Bruno Haible  <bruno@clisp.org>
46614
46615         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46616         Reported by Eric Blake.
46617
46618 2009-03-06  Eric Blake  <ebb9@byu.net>
46619             Bruno Haible  <bruno@clisp.org>
46620
46621         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46622         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46623         condition.
46624         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46625         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46626         condition.
46627         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46628
46629 2009-03-06  Eric Blake  <ebb9@byu.net>
46630
46631         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46632         to avoid compiler warnings.
46633         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46634
46635 2009-03-05  Bruno Haible  <bruno@clisp.org>
46636
46637         * tests/test-ftell.c (main): Disable test beyond end of file on
46638         FreeMiNT.
46639         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46640
46641 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46642
46643         * lib/filevercmp.c: Move hidden files up in ordering.
46644         * tests/test-filevercmp.c: Add tests for hidden files.
46645
46646 2009-03-04  Bruno Haible  <bruno@clisp.org>
46647
46648         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46649         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46650         AM_CFLAGS.
46651         Reported by Simon Josefsson.
46652
46653 2009-03-03  Bruno Haible  <bruno@clisp.org>
46654
46655         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46656         Reported by Simon Josefsson.
46657
46658         * doc/ld-version-script.texi: Update node reference.
46659
46660 2009-03-03  Bruno Haible  <bruno@clisp.org>
46661
46662         * modules/visibility (License): Change to 'unlimited'.
46663         Suggested by Simon Josefsson.
46664
46665 2009-03-03  Jim Meyering  <meyering@redhat.com>
46666
46667         unlinkdir: cannot_unlink_dir may modify process state
46668         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46669         it's neither thread-safe nor appropriate for use in a library.
46670
46671 2009-03-03  Eric Blake  <ebb9@byu.net>
46672
46673         test-closein: silence test under Darwin
46674         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46675         care if it dies from EPIPE or EBADF.
46676
46677 2009-03-03  Bruno Haible  <bruno@clisp.org>
46678
46679         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46680         earlier.
46681         * doc/visibility.texi: Fix @node and @section.
46682
46683 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46684
46685         * doc/gnulib.texi: Link to sections for ld version script and
46686         visibility.
46687         * doc/visibility.texi: Add @node and @section.
46688         * modules/ld-version-script: New module.
46689         * m4/ld-version-script.m4: New file.
46690         * doc/ld-version-script.texi: New file.
46691
46692 2009-03-02  David Lutterkort  <lutter@redhat.com>
46693
46694         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46695         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46696
46697 2009-03-02  Bruno Haible  <bruno@clisp.org>
46698
46699         * doc/visibility.texi: Mention libtool's -export-symbols option.
46700
46701 2009-03-02  Jim Meyering  <meyering@redhat.com>
46702
46703         announce-gen: new option: --no-print-checksums
46704         * build-aux/announce-gen (usage): Describe it.
46705         (print_checksums): Print a newline here, not in the [*] footnote.
46706         (main): Honor it.
46707
46708 2009-03-01  Bruno Haible  <bruno@clisp.org>
46709
46710         Use socklen_t in the native Windows replacements prototypes.
46711         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46712         instead of 'int'.
46713         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46714         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46715         * modules/getsockopt (Depends-on): Add socklen.
46716         * modules/setsockopt (Depends-on): Add socklen.
46717
46718 2009-03-01  Bruno Haible  <bruno@clisp.org>
46719
46720         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46721         least 4.2.
46722
46723 2009-03-01  Eric Blake  <ebb9@byu.net>
46724             Bruno Haible  <bruno@clisp.org>
46725
46726         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46727         error messages.
46728         * lib/wait-process.c (wait_subprocess): Omit error message about
46729         deadly signal sent to the child of termsigp != NULL.
46730
46731 2009-03-01  Eric Blake  <ebb9@byu.net>
46732
46733         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46734
46735 2009-03-01  Bruno Haible  <bruno@clisp.org>
46736
46737         Avoid a gcc warning.
46738         * tests/test-sched.c (b): Make global.
46739         Reported by Eric Blake.
46740
46741 2009-01-19  Martin Lambers  <marlam@marlam.de>
46742
46743         Provide POSIX semantics for socket timeout options on W32.
46744         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46745         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46746         * modules/setsockopt: Depend on sys_time module for struct timeval.
46747         * modules/getsockopt: Depend on sys_time module for struct timeval.
46748
46749 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46750
46751         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46752         __USE_GNU, for consistency with netdb.in.h.
46753         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46754
46755 2009-03-01  Bruno Haible  <bruno@clisp.org>
46756
46757         More support for FreeMiNT.
46758         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46759         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46760
46761 2009-03-01  Bruno Haible  <bruno@clisp.org>
46762
46763         More support for FreeMiNT.
46764         * lib/fpurge.c (fpurge): Correct last commit.
46765         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46766
46767 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46768
46769         Fix unportable awk script in vc-list-files.
46770         * build-aux/vc-list-files: In the replacement awk script, use
46771         substr with a second argument of 1, not zero.
46772         Report by Simon Josefsson.
46773
46774 2009-02-28  Bruno Haible  <bruno@clisp.org>
46775
46776         More support for FreeMiNT.
46777         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46778         to FreeMiNT today.
46779         * lib/fwriting.c (fwriting): Likewise.
46780         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46781
46782 2009-02-28  Bruno Haible  <bruno@clisp.org>
46783
46784         * tests/test-freadseek.c (main): Disable test beyond end of file on
46785         FreeMiNT.
46786         * tests/test-ftello.c (main): Likewise.
46787         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46788
46789 2009-02-28  Bruno Haible  <bruno@clisp.org>
46790
46791         Add tentative support for FreeMiNT.
46792         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46793         * lib/fpurge.c (fpurge): Likewise.
46794         * lib/freadable.c (freadable): Likewise.
46795         * lib/freading.c (freading): Likewise.
46796         * lib/freadptr.c (freadptr): Likewise.
46797         * lib/freadseek.c (freadptrinc): Likewise.
46798         * lib/fseeko.c (rpl_fseeko): Likewise.
46799         * lib/fseterr.c (fseterr): Likewise.
46800         * lib/fwritable.c (fwritable): Likewise.
46801         * lib/fwriting.c (fwriting): Likewise.
46802         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46803         Hourihane.
46804         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46805
46806 2009-02-28  Bruno Haible  <bruno@clisp.org>
46807
46808         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46809         SIGCHLD.
46810         Reported by Jim Meyering.
46811
46812 2009-02-28  Bruno Haible  <bruno@clisp.org>
46813
46814         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46815         Mention the results of these tests on various platforms.
46816         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46817         order.
46818         * doc/posix-functions/printf.texi: Likewise.
46819         * doc/posix-functions/snprintf.texi: Likewise.
46820         * doc/posix-functions/sprintf.texi: Likewise.
46821         * doc/posix-functions/vfprintf.texi: Likewise.
46822         * doc/posix-functions/vprintf.texi: Likewise.
46823         * doc/posix-functions/vsnprintf.texi: Likewise.
46824         * doc/posix-functions/vsprintf.texi: Likewise.
46825         * doc/glibc-functions/obstack_printf.texi: Likewise.
46826         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46827
46828 2009-02-28  Bruno Haible  <bruno@clisp.org>
46829
46830         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46831         Reported by Loïc Minier <lool@dooz.org>.
46832
46833 2009-02-27  Bruno Haible  <bruno@clisp.org>
46834
46835         * gnulib-tool (func_import): Make the sed expression used to create the
46836         sed script for updating the .gitignore file POSIX compliant.
46837         Reported by Eric Blake.
46838
46839 2009-02-27  Bruno Haible  <bruno@clisp.org>
46840
46841         * gnulib-tool (sed): Don't alias as "sed --posix".
46842         Reported by Eric Blake.
46843
46844 2009-02-27  Bruno Haible  <bruno@clisp.org>
46845
46846         Avoid test link errors.
46847         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46848         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46849         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46850         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46851         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46852
46853 2009-02-27  Bruno Haible  <bruno@clisp.org>
46854
46855         Avoid spurious "(cached)" in configure output.
46856         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46857         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46858         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46859         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46860         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46861         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46862         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46863         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46864         Reported by Eric Blake.
46865
46866 2009-02-27  Eric Blake  <ebb9@byu.net>
46867
46868         printf: fix regression in previous patch
46869         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46870
46871 2009-02-27  Bruno Haible  <bruno@clisp.org>
46872
46873         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46874         value.
46875         * lib/stdint.in.h: Likewise.
46876         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46877
46878 2009-02-27  Eric Blake  <ebb9@byu.net>
46879
46880         doc: mention more functions added in cygwin 1.7.0
46881         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46882         addition.
46883         * doc/posix-functions/open_wmemstream.texi: Likewise.
46884         * doc/posix-functions/wcsnlen.texi: Likewise.
46885         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46886         * doc/posix-functions/wcstod.texi: Likewise.
46887         * doc/posix-functions/wcstof.texi: Likewise.
46888         * doc/posix-functions/wcstoimax.texi: Likewise.
46889         * doc/posix-functions/wcstok.texi: Likewise.
46890         * doc/posix-functions/wcstoumax.texi: Likewise.
46891
46892         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46893         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46894         * doc/posix-functions/fprintf.texi: Update.
46895         * doc/posix-functions/printf.texi: Update.
46896         * doc/posix-functions/snprintf.texi: Update.
46897         * doc/posix-functions/sprintf.texi: Update.
46898         * doc/posix-functions/vfprintf.texi: Update.
46899         * doc/posix-functions/vprintf.texi: Update.
46900         * doc/posix-functions/vsnprintf.texi: Update.
46901         * doc/posix-functions/vsprintf.texi: Update.
46902         * doc/glibc-functions/obstack_printf.texi: Update.
46903         * doc/glibc-functions/obstack_vprintf.texi: Update.
46904
46905 2009-02-26  Eric Blake  <ebb9@byu.net>
46906
46907         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46908         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46909         compilation bug by using runtime conversion.
46910         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46911         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46912         * modules/ceill-tests (Files): Use nan.h.
46913         * modules/floorl-tests (Files): Likewise.
46914         * modules/frexpl-tests (Files): Likewise.
46915         * modules/isnanl-tests (Files): Likewise.
46916         * modules/ldexpl-tests (Files): Likewise.
46917         * modules/roundl-tests (Files): Likewise.
46918         * modules/truncl-tests (Files): Likewise.
46919         * tests/test-ceill.c (main): Use a working NaN.
46920         * tests/test-floorl.c (main): Likewise.
46921         * tests/test-frexpl.c (main): Likewise.
46922         * tests/test-isnan.c (test_long_double): Likewise.
46923         * tests/test-isnanl.h (main): Likewise.
46924         * tests/test-ldexpl.h (main): Likewise.
46925         * tests/test-roundl.h (main): Likewise.
46926         * tests/test-truncl.h (main): Likewise.
46927         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46928
46929 2009-02-26  Eric Blake  <ebb9@byu.net>
46930             Bruno Haible  <bruno@clisp.org>
46931
46932         Work around a *printf bug with %ls on Solaris.
46933         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46934         precision is specified, sprintf stops converting the wide string
46935         argument when the number of bytes that have been produced by this
46936         conversion equals or exceeds the precision.
46937         * doc/posix-functions/fprintf.texi: Update.
46938         * doc/posix-functions/printf.texi: Update.
46939         * doc/posix-functions/snprintf.texi: Update.
46940         * doc/posix-functions/sprintf.texi: Update.
46941         * doc/posix-functions/vfprintf.texi: Update.
46942         * doc/posix-functions/vprintf.texi: Update.
46943         * doc/posix-functions/vsnprintf.texi: Update.
46944         * doc/posix-functions/vsprintf.texi: Update.
46945         * doc/glibc-functions/obstack_printf.texi: Update.
46946         * doc/glibc-functions/obstack_vprintf.texi: Update.
46947
46948 2009-02-26  Eric Blake  <ebb9@byu.net>
46949
46950         stdlib: favor compiler check of random.h
46951         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46952         to avoid an ObjC random.h installed by Swarm.
46953
46954 2009-02-26  Bruno Haible  <bruno@clisp.org>
46955
46956         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46957         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46958         Reported by Gary V. Vaughan <gary@gnu.org>.
46959
46960 2009-02-26  Bruno Haible  <bruno@clisp.org>
46961
46962         Fix *printf behaviour regarding the %ls directive.
46963         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46964         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46965         NEED_PRINTF_DIRECTIVE_LS.
46966         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46967         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46968         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46969         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46970         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46971         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46972         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46973         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46974         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46975         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46976         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46977         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46978         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46979         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46980         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46981         * doc/posix-functions/fprintf.texi: Update.
46982         * doc/posix-functions/printf.texi: Update.
46983         * doc/posix-functions/snprintf.texi: Update.
46984         * doc/posix-functions/sprintf.texi: Update.
46985         * doc/posix-functions/vfprintf.texi: Update.
46986         * doc/posix-functions/vprintf.texi: Update.
46987         * doc/posix-functions/vsnprintf.texi: Update.
46988         * doc/posix-functions/vsprintf.texi: Update.
46989         * doc/glibc-functions/obstack_printf.texi: Update.
46990         * doc/glibc-functions/obstack_vprintf.texi: Update.
46991         Reported by Eric Blake.
46992
46993 2009-02-25  Bruno Haible  <bruno@clisp.org>
46994
46995         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46996         with known value.
46997         Reported by Gary V. Vaughan <gary@gnu.org>.
46998
46999 2009-02-25  Bruno Haible  <bruno@clisp.org>
47000
47001         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
47002         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
47003         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
47004         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
47005         Reported by Gary V. Vaughan <gary@gnu.org>.
47006
47007 2009-02-25  Bruno Haible  <bruno@clisp.org>
47008
47009         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
47010         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
47011         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
47012         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
47013         Reported by Gary V. Vaughan <gary@gnu.org>.
47014
47015 2009-02-25  Eric Blake  <ebb9@byu.net>
47016
47017         tests: skip fseek/ftell tests if ungetc is broken
47018         * m4/ungetc.m4: New file.
47019         * modules/fseek-tests: Split test, so ungetc dependency is
47020         separate from rest of test.
47021         * modules/fseeko-tests: Likewise.
47022         * modules/ftell-tests: Likewise.
47023         * modules/ftello-tests: Likewise.
47024         * tests/test-fseek.c (main): Isolate ungetc dependency.
47025         * tests/test-fseeko.c (main): Likewise.
47026         * tests/test-ftell.c (main): Likewise.
47027         * tests/test-ftello.c (main): Likewise.
47028         * tests/test-fseek2.sh: New file.
47029         * tests/test-fseeko2.sh: Likewise.
47030         * tests/test-ftell2.sh: Likewise.
47031         * tests/test-ftello2.sh: Likewise.
47032
47033 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
47034
47035         test-getaddrinfo: fix usage of skip return code 77
47036         * tests/test-gettaddrinfo.c: Return skip code 77 only
47037         for first occurrence of skip (4x77 is not 77)
47038
47039 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
47040
47041         strtod: avoid C99 decl-after-statement
47042         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
47043
47044 2009-02-24  Eric Blake  <ebb9@byu.net>
47045
47046         strtod: detect HP-UX 11.31 bug
47047         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
47048         Reported by Gary V. Vaughan.
47049
47050 2009-02-23  Bruno Haible  <bruno@clisp.org>
47051
47052         Fix invalid read past end of memory block.
47053         * lib/vasnprintf.c (DCHAR_SET): Define.
47054         (local_wcslen): Define only when needed.
47055         (local_strnlen, local_wcsnlen): New functions.
47056         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
47057         directives that involve a conversion ourselves.
47058         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
47059         wcsnlen, mbrtowc, wcrtomb.
47060         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
47061         * tests/test-vasprintf-posix.c (test_function): Likewise.
47062         * tests/test-snprintf-posix.h (test_function): Likewise.
47063         * tests/test-sprintf-posix.h (test_function): Likewise.
47064         Reported by Ben Pfaff <blp@cs.stanford.edu>.
47065
47066 2009-02-22  Bruno Haible  <bruno@clisp.org>
47067
47068         Implement new clarified decomposition of Hangul syllables.
47069         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
47070         of type LTV, return only a pairwise decomposition.
47071         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
47072         Likewise.
47073         * tests/uninorm/test-decomposition.c (main): Updated expected result.
47074         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
47075         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
47076
47077 2009-02-22  Bruno Haible  <bruno@clisp.org>
47078
47079         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
47080         zero-length results and shrink excess allocated memory.
47081         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
47082         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
47083         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
47084         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
47085         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
47086         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
47087         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
47088         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
47089         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
47090         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
47091         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
47092         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
47093
47094 2009-02-21  Bruno Haible  <bruno@clisp.org>
47095
47096         * doc/gnulib.texi: Include safe-alloc.texi earlier.
47097         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
47098         spaces after a period. Put a space between a macro name and its
47099         argument list. Trivial rewordings.
47100         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
47101         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
47102         (main): Return 0 explicitly.
47103
47104 2009-02-21  Bruno Haible  <bruno@clisp.org>
47105
47106         Tests for module 'uninorm/filter'.
47107         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
47108         * modules/uninorm/filter-tests: New file.
47109
47110         New module 'uninorm/filter'.
47111         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
47112         uninorm_filter_flush, uninorm_filter_free): New declarations.
47113         * lib/uninorm/uninorm-filter.c: New file.
47114         * modules/uninorm/filter: New file.
47115
47116 2009-02-21  Bruno Haible  <bruno@clisp.org>
47117
47118         Tests for module 'uninorm/nfkc'.
47119         * tests/uninorm/test-nfkc.c: New file.
47120         * tests/uninorm/test-u8-nfkc.c: New file.
47121         * tests/uninorm/test-u16-nfkc.c: New file.
47122         * tests/uninorm/test-u32-nfkc.c: New file.
47123         * tests/uninorm/test-u32-nfkc-big.sh: New file.
47124         * tests/uninorm/test-u32-nfkc-big.c: New file.
47125         * modules/uninorm/nfkc-tests: New file.
47126
47127         New module 'uninorm/nfkc'.
47128         * lib/uninorm/nfkc.c: New file.
47129         * modules/uninorm/nfkc: New file.
47130
47131         Tests for module 'uninorm/nfkd'.
47132         * tests/uninorm/test-nfkd.c: New file.
47133         * tests/uninorm/test-u8-nfkd.c: New file.
47134         * tests/uninorm/test-u16-nfkd.c: New file.
47135         * tests/uninorm/test-u32-nfkd.c: New file.
47136         * tests/uninorm/test-u32-nfkd-big.sh: New file.
47137         * tests/uninorm/test-u32-nfkd-big.c: New file.
47138         * modules/uninorm/nfkd-tests: New file.
47139
47140         New module 'uninorm/nfkd'.
47141         * lib/uninorm/nfkd.c: New file.
47142         * modules/uninorm/nfkd: New file.
47143
47144         Tests for module 'uninorm/nfc'.
47145         * tests/uninorm/test-nfc.c: New file.
47146         * tests/uninorm/test-u8-nfc.c: New file.
47147         * tests/uninorm/test-u16-nfc.c: New file.
47148         * tests/uninorm/test-u32-nfc.c: New file.
47149         * tests/uninorm/test-u32-nfc-big.sh: New file.
47150         * tests/uninorm/test-u32-nfc-big.c: New file.
47151         * modules/uninorm/nfc-tests: New file.
47152
47153         New module 'uninorm/nfc'.
47154         * lib/uninorm/nfc.c: New file.
47155         * modules/uninorm/nfc: New file.
47156
47157         Tests for module 'uninorm/nfd'.
47158         * tests/uninorm/test-nfd.c: New file.
47159         * tests/uninorm/test-u8-nfd.c: New file.
47160         * tests/uninorm/test-u16-nfd.c: New file.
47161         * tests/uninorm/test-u32-nfd.c: New file.
47162         * tests/uninorm/test-u32-nfd-big.sh: New file.
47163         * tests/uninorm/test-u32-nfd-big.c: New file.
47164         * tests/uninorm/test-u32-normalize-big.h: New file.
47165         * tests/uninorm/test-u32-normalize-big.c: New file.
47166         * tests/uninorm/NormalizationTest.txt: New file, created from
47167         Unicode 5.1.0 NormalizationTest.txt.
47168         * modules/uninorm/nfd-tests: New file.
47169
47170         New module 'uninorm/nfd'.
47171         * lib/uninorm/nfd.c: New file.
47172         * modules/uninorm/nfd: New file.
47173
47174         New module 'uninorm/u32-normalize'.
47175         * lib/uninorm/u32-normalize.c: New file.
47176         * modules/uninorm/u32-normalize: New file.
47177
47178         New module 'uninorm/u16-normalize'.
47179         * lib/uninorm/u16-normalize.c: New file.
47180         * modules/uninorm/u16-normalize: New file.
47181
47182         New module 'uninorm/u8-normalize'.
47183         * lib/uninorm/u8-normalize.c: New file.
47184         * lib/uninorm/normalize-internal.h: New file.
47185         * lib/uninorm/u-normalize-internal.h: New file.
47186         * modules/uninorm/u8-normalize: New file.
47187
47188         New module 'uninorm/decompose-internal'.
47189         * lib/uninorm/decompose-internal.c: New file.
47190         * modules/uninorm/decompose-internal: New file.
47191
47192         Tests for module 'uninorm/composition'.
47193         * tests/uninorm/test-composition.c: New file.
47194         * modules/uninorm/composition-tests: New file.
47195
47196         New module 'uninorm/composition'.
47197         * lib/uninorm/composition.c: New file.
47198         * lib/uninorm/composition-table.gperf: New file, generated by
47199         gen-uni-tables.
47200         * modules/uninorm/composition: New file.
47201
47202         Tests for module 'uninorm/compat-decomposition'.
47203         * tests/uninorm/test-compat-decomposition.c: New file.
47204         * modules/uninorm/compat-decomposition-tests: New file.
47205
47206         New module 'uninorm/compat-decomposition'.
47207         * lib/uninorm/decompose-internal.h: New file.
47208         * lib/uninorm/compat-decomposition.c: New file.
47209         * modules/uninorm/compat-decomposition: New file.
47210
47211         Tests for module 'uninorm/canonical-decomposition'.
47212         * tests/uninorm/test-canonical-decomposition.c: New file.
47213         * modules/uninorm/canonical-decomposition-tests: New file.
47214
47215         New module 'uninorm/canonical-decomposition'.
47216         * lib/uninorm/canonical-decomposition.c: New file.
47217         * modules/uninorm/canonical-decomposition: New file.
47218
47219         Tests for module 'uninorm/decomposition'.
47220         * tests/uninorm/test-decomposition.c: New file.
47221         * modules/uninorm/decomposition-tests: New file.
47222
47223         New module 'uninorm/decomposition'.
47224         * lib/uninorm/decomposition.c: New file.
47225         * modules/uninorm/decomposition: New file.
47226
47227         New module 'uninorm/decomposition-table'.
47228         * lib/uninorm/decomposition-table.h: New file.
47229         * lib/uninorm/decomposition-table.c: New file.
47230         * lib/uninorm/decomposition-table1.h: New file, generated by
47231         gen-uni-tables.
47232         * lib/uninorm/decomposition-table2.h: New file, generated by
47233         gen-uni-tables.
47234         * modules/uninorm/decomposition-table: New file.
47235
47236         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
47237         (UC_DECOMP_*): New enumeration items.
47238         (get_decomposition): New function.
47239         (struct decomp_table): New type.
47240         (output_decomposition, output_decomposition_tables): New functions.
47241         (unicode_composition_exclusions): New variable.
47242         (fill_composition_exclusions, debug_output_composition_tables): New
47243         functions.
47244         (main): Accept one more argument. Invoke fill_composition_exclusions.
47245         Output decomposition and composition tables.
47246
47247         New module 'uninorm/base'.
47248         * lib/uninorm.h: New file.
47249         * lib/unictype.h: Update comment.
47250         * modules/uninorm/base: New file.
47251
47252 2009-02-21  David Lutterkort  <lutter@redhat.com>
47253
47254         Tests for module 'safe-alloc'.
47255         * tests/test-safe-alloc.c: New file.
47256         * modules/safe-alloc-tests: New file.
47257
47258         New module 'safe-alloc'.
47259         * lib/safe-alloc.h: New file.
47260         * lib/safe-alloc.c: New file.
47261         * m4/safe-alloc.m4: New file.
47262         * modules/safe-alloc: New file.
47263         * doc/safe-alloc.texi: New file.
47264         * doc/gnulib.texi: Include it.
47265         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
47266         safe-alloc.
47267
47268 2009-02-18  Bruno Haible  <bruno@clisp.org>
47269
47270         Fix link error on non-glibc systems.
47271         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
47272         variable.
47273         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47274
47275 2009-02-18  Jim Meyering  <meyering@redhat.com>
47276
47277         fts: avoid used-uninitialized error due to recent change
47278         * lib/fts.c (fts_read): Guard uses of the new member,
47279         parent->fts_n_dirs_remaining, since it's not relevant for
47280         the parent of a directory specified on the command-line.
47281
47282 2009-02-17  James Youngman  <jay@gnu.org>
47283             Bruno Haible  <bruno@clisp.org>
47284
47285         * m4/include_next.m4: Reformulate comment.
47286
47287 2009-02-16  Jim Meyering  <meyering@redhat.com>
47288
47289         fts: add #if guards so that the fts_lgpl module still builds
47290         * lib/fts.c: Guard just-added hash-table-using parts with
47291         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
47292         Reported by Simon Josefsson.
47293
47294 2009-02-15  Bruno Haible  <bruno@clisp.org>
47295
47296         * modules/array-mergesort-tests: New file.
47297         * tests/test-array-mergesort.c: New file.
47298
47299         New module 'array-mergesort'.
47300         * modules/array-mergesort: New file.
47301         * lib/array-mergesort.h: New file.
47302
47303 2009-02-15  Bruno Haible  <bruno@clisp.org>
47304
47305         Fix 2009-02-07 commit.
47306         * lib/gen-uni-tables.c (output_predicate, output_category,
47307         output_combclass, output_bidi_category, output_decimal_digit,
47308         output_digit, output_numeric, output_mirror, output_scripts,
47309         output_ident_category, output_simple_mapping): Fix format directives.
47310         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
47311
47312 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47313
47314         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47315         fixes are available from IBM.
47316
47317 2009-02-13  Jim Meyering  <meyering@redhat.com>
47318
47319         fts: arrange not to stat non-directories in more cases
47320         This makes GNU find (when it doesn't need to stat each file)
47321         *much* more efficient at traversing reiserfs file systems.
47322         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47323         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47324         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47325         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47326         (leaf_optimization_applies): New function.
47327         (LCO_hash, LCO_compare): New helper functions.
47328         (link_count_optimize_ok): New function.
47329         (fts_stat): Initialize new member (if dir).
47330         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47331         we've just stat'ed a directory.  Skip the stat call when possible.
47332         ---
47333         Note this AFS-related exchange:
47334         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47335         and note find's pioctl call in find/fstype.c.
47336         But that is necessary only if you want to enable the
47337         optimization for AFS, and for now, I don't.
47338
47339         fts: move a function definition "up" (no semantic change)
47340         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47341         "up" to precede upcoming use of a related function.
47342
47343 2009-02-11  Jim Meyering  <meyering@redhat.com>
47344
47345         fts: correct internal computation of nlinks (optimization-related)
47346         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47347         whether the current entry is a directory, so don't test it.
47348
47349 2009-02-10  Bruno Haible  <bruno@clisp.org>
47350
47351         Tests for module 'uniwbrk/ulc-wordbreaks'.
47352         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47353         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47354         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47355
47356         Tests for module 'uniwbrk/u32-wordbreaks'.
47357         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47358         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47359
47360         Tests for module 'uniwbrk/u16-wordbreaks'.
47361         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47362         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47363
47364         Tests for module 'uniwbrk/u8-wordbreaks'.
47365         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47366         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47367
47368 2009-02-10  Bruno Haible  <bruno@clisp.org>
47369
47370         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47371         property.
47372         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47373         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47374         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47375
47376 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47377
47378         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47379         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47380
47381 2009-02-10  Bruno Haible  <bruno@clisp.org>
47382
47383         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47384         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47385         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47386         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47387         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47388         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47389
47390 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47391
47392         * lib/sockets.h (gl_fd_to_handle): New function.
47393
47394         * tests/test-sockets.c: Call gl_fd_to_handle.
47395
47396 2009-02-09  Bruno Haible  <bruno@clisp.org>
47397
47398         * doc/havelib.texi: Document the conventions on bi-arch systems.
47399
47400 2009-02-08  Bruno Haible  <bruno@clisp.org>
47401
47402         Document the AC_LIB_LINKFLAGS macro.
47403         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47404         * doc/gnulib.texi: Include it.
47405
47406 2009-02-08  Bruno Haible  <bruno@clisp.org>
47407
47408         Fix wrong order of sections, compared to TOC.
47409         * doc/gnulib.texi: Include relocatable-maint.texi after the
47410         "Regular expressions" node, not before.
47411
47412 2009-02-08  Bruno Haible  <bruno@clisp.org>
47413
47414         Tests for module 'unicase/totitle'.
47415         * modules/unicase/totitle-tests: New file.
47416
47417         Tests for module 'unicase/tolower'.
47418         * modules/unicase/tolower-tests: New file.
47419
47420         Tests for module 'unicase/toupper'.
47421         * modules/unicase/toupper-tests: New file.
47422         * tests/unicase/test-mapping-part1.h: New file.
47423         * tests/unicase/test-mapping-part2.h: New file.
47424
47425         New module 'unicase/totitle'.
47426         * modules/unicase/totitle: New file.
47427         * lib/unicase/totitle.c: New file.
47428
47429         New module 'unicase/tolower'.
47430         * modules/unicase/tolower: New file.
47431         * lib/unicase/tolower.c: New file.
47432
47433         New module 'unicase/toupper'.
47434         * modules/unicase/toupper: New file.
47435         * lib/unicase/toupper.c: New file.
47436         * lib/unicase/simple-mapping.h: New file.
47437
47438         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47439         (mapping_table): New structure.
47440         (output_simple_mapping): New function.
47441         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47442         * modules/gen-uni-tables (Description): Update.
47443         * lib/unicase/toupper.h: New file, automatically generated by
47444         gen-uni-tables.
47445         * lib/unicase/tolower.h: New file, automatically generated by
47446         gen-uni-tables.
47447         * lib/unicase/totitle.h: New file, automatically generated by
47448         gen-uni-tables.
47449         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47450         gen-uni-tables.
47451         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47452         gen-uni-tables.
47453         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47454         gen-uni-tables.
47455
47456         New module 'unicase/base'.
47457         * modules/unicase/base: New file.
47458         * lib/unicase.h: New file.
47459
47460 2009-02-08  Bruno Haible  <bruno@clisp.org>
47461
47462         New module 'uniwbrk/ulc-wordbreaks'.
47463         * modules/uniwbrk/ulc-wordbreaks: New file.
47464         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47465
47466         New module 'uniwbrk/u32-wordbreaks'.
47467         * modules/uniwbrk/u32-wordbreaks: New file.
47468         * lib/uniwbrk/u32-wordbreaks.c: New file.
47469
47470         New module 'uniwbrk/u16-wordbreaks'.
47471         * modules/uniwbrk/u16-wordbreaks: New file.
47472         * lib/uniwbrk/u16-wordbreaks.c: New file.
47473
47474         New module 'uniwbrk/u8-wordbreaks'.
47475         * modules/uniwbrk/u8-wordbreaks: New file.
47476         * lib/uniwbrk/u8-wordbreaks.c: New file.
47477         * lib/uniwbrk/u-wordbreaks.h: New file.
47478
47479         New module 'uniwbrk/table'.
47480         * modules/uniwbrk/table: New file.
47481         * lib/uniwbrk/wbrktable.h: New file.
47482         * lib/uniwbrk/wbrktable.c: New file.
47483
47484         New module 'uniwbrk/wordbreak-property'.
47485         * modules/uniwbrk/wordbreak-property: New file.
47486         * lib/uniwbrk/wordbreak-property.c: New file.
47487
47488         * lib/gen-uni-tables.c (WBP_*): New enum items.
47489         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47490         (unicode_org_wbp): New variable.
47491         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47492         New functions.
47493         (wbp_table): New structure.
47494         (output_wbp, output_wbrk_tables): New functions.
47495         (main): Accept additional argument. Invoke fill_org_wbp,
47496         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47497         output_wbrk_tables.
47498         * modules/gen-uni-tables (Description): Update.
47499         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47500         gen-uni-tables.
47501
47502         New module 'uniwbrk/base'.
47503         * modules/uniwbrk/base: New file.
47504         * lib/uniwbrk.h: New file.
47505
47506 2009-02-08  Bruno Haible  <bruno@clisp.org>
47507
47508         Update to Unicode 5.1.0.
47509         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47510         U+2185..U+2188.
47511         (is_property_default_ignorable_code_point): Don't include characters
47512         of category Cc or Cs and not-a-characters.
47513         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47514         U+0D79, U+109E, U+109F, U+A60C.
47515         * lib/unictype/bidi_of.h: Regenerated.
47516         * lib/unictype/blocks.h: Regenerated.
47517         * lib/unictype/categ_C.h: Regenerated.
47518         * lib/unictype/categ_Cf.h: Regenerated.
47519         * lib/unictype/categ_Cn.h: Regenerated.
47520         * lib/unictype/categ_L.h: Regenerated.
47521         * lib/unictype/categ_Ll.h: Regenerated.
47522         * lib/unictype/categ_Lm.h: Regenerated.
47523         * lib/unictype/categ_Lo.h: Regenerated.
47524         * lib/unictype/categ_Lu.h: Regenerated.
47525         * lib/unictype/categ_M.h: Regenerated.
47526         * lib/unictype/categ_Mc.h: Regenerated.
47527         * lib/unictype/categ_Me.h: Regenerated.
47528         * lib/unictype/categ_Mn.h: Regenerated.
47529         * lib/unictype/categ_N.h: Regenerated.
47530         * lib/unictype/categ_Nd.h: Regenerated.
47531         * lib/unictype/categ_Nl.h: Regenerated.
47532         * lib/unictype/categ_No.h: Regenerated.
47533         * lib/unictype/categ_P.h: Regenerated.
47534         * lib/unictype/categ_Pd.h: Regenerated.
47535         * lib/unictype/categ_Pe.h: Regenerated.
47536         * lib/unictype/categ_Pf.h: Regenerated.
47537         * lib/unictype/categ_Pi.h: Regenerated.
47538         * lib/unictype/categ_Po.h: Regenerated.
47539         * lib/unictype/categ_Ps.h: Regenerated.
47540         * lib/unictype/categ_S.h: Regenerated.
47541         * lib/unictype/categ_Sk.h: Regenerated.
47542         * lib/unictype/categ_Sm.h: Regenerated.
47543         * lib/unictype/categ_So.h: Regenerated.
47544         * lib/unictype/categ_of.h: Regenerated.
47545         * lib/unictype/combining.h: Regenerated.
47546         * lib/unictype/ctype_alnum.h: Regenerated.
47547         * lib/unictype/ctype_alpha.h: Regenerated.
47548         * lib/unictype/ctype_graph.h: Regenerated.
47549         * lib/unictype/ctype_lower.h: Regenerated.
47550         * lib/unictype/ctype_print.h: Regenerated.
47551         * lib/unictype/ctype_punct.h: Regenerated.
47552         * lib/unictype/ctype_upper.h: Regenerated.
47553         * lib/unictype/decdigit.h: Regenerated.
47554         * lib/unictype/digit.h: Regenerated.
47555         * lib/unictype/mirror.h: Regenerated.
47556         * lib/unictype/numeric.h: Regenerated.
47557         * lib/unictype/pr_alphabetic.h: Regenerated.
47558         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47559         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47560         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47561         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47562         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47563         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47564         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47565         * lib/unictype/pr_combining.h: Regenerated.
47566         * lib/unictype/pr_dash.h: Regenerated.
47567         * lib/unictype/pr_decimal_digit.h: Regenerated.
47568         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47569         * lib/unictype/pr_deprecated.h: Regenerated.
47570         * lib/unictype/pr_diacritic.h: Regenerated.
47571         * lib/unictype/pr_extender.h: Regenerated.
47572         * lib/unictype/pr_format_control.h: Regenerated.
47573         * lib/unictype/pr_grapheme_base.h: Regenerated.
47574         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47575         * lib/unictype/pr_grapheme_link.h: Regenerated.
47576         * lib/unictype/pr_id_continue.h: Regenerated.
47577         * lib/unictype/pr_id_start.h: Regenerated.
47578         * lib/unictype/pr_ideographic.h: Regenerated.
47579         * lib/unictype/pr_ignorable_control.h: Regenerated.
47580         * lib/unictype/pr_lowercase.h: Regenerated.
47581         * lib/unictype/pr_math.h: Regenerated.
47582         * lib/unictype/pr_numeric.h: Regenerated.
47583         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47584         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47585         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47586         * lib/unictype/pr_other_id_continue.h: Regenerated.
47587         * lib/unictype/pr_other_lowercase.h: Regenerated.
47588         * lib/unictype/pr_other_math.h: Regenerated.
47589         * lib/unictype/pr_punctuation.h: Regenerated.
47590         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47591         * lib/unictype/pr_soft_dotted.h: Regenerated.
47592         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47593         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47594         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47595         * lib/unictype/pr_uppercase.h: Regenerated.
47596         * lib/unictype/pr_xid_continue.h: Regenerated.
47597         * lib/unictype/pr_xid_start.h: Regenerated.
47598         * lib/unictype/pr_zero_width.h: Regenerated.
47599         * lib/unictype/scripts.h: Regenerated.
47600         * lib/unictype/scripts_byname.gperf: Regenerated.
47601         * lib/unictype/sy_java_ident.h: Regenerated.
47602         * lib/unilbrk/lbrkprop1.h: Regenerated.
47603         * lib/unilbrk/lbrkprop2.h: Regenerated.
47604         * tests/unictype/test-categ_C.c: Regenerated.
47605         * tests/unictype/test-categ_Cf.c: Regenerated.
47606         * tests/unictype/test-categ_Cn.c: Regenerated.
47607         * tests/unictype/test-categ_L.c: Regenerated.
47608         * tests/unictype/test-categ_Ll.c: Regenerated.
47609         * tests/unictype/test-categ_Lm.c: Regenerated.
47610         * tests/unictype/test-categ_Lo.c: Regenerated.
47611         * tests/unictype/test-categ_Lu.c: Regenerated.
47612         * tests/unictype/test-categ_M.c: Regenerated.
47613         * tests/unictype/test-categ_Mc.c: Regenerated.
47614         * tests/unictype/test-categ_Me.c: Regenerated.
47615         * tests/unictype/test-categ_Mn.c: Regenerated.
47616         * tests/unictype/test-categ_N.c: Regenerated.
47617         * tests/unictype/test-categ_Nd.c: Regenerated.
47618         * tests/unictype/test-categ_Nl.c: Regenerated.
47619         * tests/unictype/test-categ_No.c: Regenerated.
47620         * tests/unictype/test-categ_P.c: Regenerated.
47621         * tests/unictype/test-categ_Pd.c: Regenerated.
47622         * tests/unictype/test-categ_Pe.c: Regenerated.
47623         * tests/unictype/test-categ_Pf.c: Regenerated.
47624         * tests/unictype/test-categ_Pi.c: Regenerated.
47625         * tests/unictype/test-categ_Po.c: Regenerated.
47626         * tests/unictype/test-categ_Ps.c: Regenerated.
47627         * tests/unictype/test-categ_S.c: Regenerated.
47628         * tests/unictype/test-categ_Sk.c: Regenerated.
47629         * tests/unictype/test-categ_Sm.c: Regenerated.
47630         * tests/unictype/test-categ_So.c: Regenerated.
47631         * tests/unictype/test-ctype_alnum.c: Regenerated.
47632         * tests/unictype/test-ctype_alpha.c: Regenerated.
47633         * tests/unictype/test-ctype_graph.c: Regenerated.
47634         * tests/unictype/test-ctype_lower.c: Regenerated.
47635         * tests/unictype/test-ctype_print.c: Regenerated.
47636         * tests/unictype/test-ctype_punct.c: Regenerated.
47637         * tests/unictype/test-ctype_upper.c: Regenerated.
47638         * tests/unictype/test-decdigit.h: Regenerated.
47639         * tests/unictype/test-digit.h: Regenerated.
47640         * tests/unictype/test-numeric.h: Regenerated.
47641         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47642         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47643         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47644         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47645         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47646         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47647         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47648         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47649         * tests/unictype/test-pr_combining.c: Regenerated.
47650         * tests/unictype/test-pr_dash.c: Regenerated.
47651         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47652         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47653         * tests/unictype/test-pr_deprecated.c: Regenerated.
47654         * tests/unictype/test-pr_diacritic.c: Regenerated.
47655         * tests/unictype/test-pr_extender.c: Regenerated.
47656         * tests/unictype/test-pr_format_control.c: Regenerated.
47657         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47658         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47659         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47660         * tests/unictype/test-pr_id_continue.c: Regenerated.
47661         * tests/unictype/test-pr_id_start.c: Regenerated.
47662         * tests/unictype/test-pr_ideographic.c: Regenerated.
47663         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47664         * tests/unictype/test-pr_lowercase.c: Regenerated.
47665         * tests/unictype/test-pr_math.c: Regenerated.
47666         * tests/unictype/test-pr_numeric.c: Regenerated.
47667         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47668         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47669         Regenerated.
47670         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47671         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47672         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47673         * tests/unictype/test-pr_other_math.c: Regenerated.
47674         * tests/unictype/test-pr_punctuation.c: Regenerated.
47675         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47676         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47677         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47678         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47679         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47680         * tests/unictype/test-pr_uppercase.c: Regenerated.
47681         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47682         * tests/unictype/test-pr_xid_start.c: Regenerated.
47683         * tests/unictype/test-pr_zero_width.c: Regenerated.
47684
47685         Update to Unicode 5.1.0.
47686         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47687         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47688         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47689         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47690         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47691         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47692         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47693         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47694         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47695         (nonspacing_table_ind): Update.
47696         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47697
47698         Update to Unicode 5.1.0.
47699         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47700         code transform.
47701         * lib/uniname/uniname.c (unicode_character_name,
47702         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47703         * lib/uniname/uninames.h: Regenerated.
47704         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47705
47706 2009-02-07  Bruno Haible  <bruno@clisp.org>
47707
47708         Merge gen-ctype and gen-lbrk into a single program.
47709         * lib/gen-uni-tables.c: New file, incorporating
47710         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47711         Add directory prefixes to the names of the generated files.
47712         * lib/unictype/gen-ctype.c: Remove file.
47713         * lib/unilbrk/gen-lbrk.c: Remove file.
47714         * modules/gen-uni-tables: New file.
47715         * modules/unictype/gen-ctype: Remove file.
47716         * modules/unilbrk/gen-lbrk: Remove file.
47717
47718 2009-02-07  Bruno Haible  <bruno@clisp.org>
47719
47720         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47721
47722         New module 'unistr/u32-strcoll'.
47723         * modules/unistr/u32-strcoll: New file.
47724         * lib/unistr/u32-strcoll.c: New file.
47725
47726         New module 'unistr/u16-strcoll'.
47727         * modules/unistr/u16-strcoll: New file.
47728         * lib/unistr/u16-strcoll.c: New file.
47729
47730         New module 'unistr/u8-strcoll'.
47731         * modules/unistr/u8-strcoll: New file.
47732         * lib/unistr/u8-strcoll.c: New file.
47733         * lib/unistr/u-strcoll.h: New file.
47734
47735 2009-02-07  Bruno Haible  <bruno@clisp.org>
47736
47737         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47738         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47739         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47740         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47741         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47742         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47743
47744 2009-02-07  Bruno Haible  <bruno@clisp.org>
47745
47746         Make 64-bit clean.
47747         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47748         output_combclass, output_bidi_category, output_decimal_digit,
47749         output_digit, output_numeric, output_mirror, output_scripts,
47750         output_ident_category): Use proper width specifier in format strings.
47751
47752 2009-02-07  Bruno Haible  <bruno@clisp.org>
47753
47754         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47755         failure behaviour.
47756
47757 2009-02-07  Jim Meyering  <meyering@redhat.com>
47758
47759         regex: avoid compilation failure with upcoming gcc-4.4
47760         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47761         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47762         "... error: integer overflow in preprocessor expression".
47763
47764 2009-02-05  Ben Pfaff  <blp@gnu.org>
47765
47766         Fix link errors on Windows when close module is used.
47767         * modules/close: Add $(LIB_CLOSE) to Link section.
47768         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47769         $(LIB_CLOSE) on Windows.
47770
47771 2009-02-05  Jim Meyering  <meyering@redhat.com>
47772
47773         still avoid unused-parameter warnings, but do it cleanly
47774         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47775         (get_fs_usage): Cast to void instead.
47776         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47777         (dev_from_mount_options, read_file_system_list): Cast to void.
47778         Prompted by Bruno Haible.
47779
47780 2009-02-04  Jim Meyering  <meyering@redhat.com>
47781
47782         fsusage.c: correct copyright year
47783         * lib/fsusage.c: Reflect year in which the change is pushed into
47784
47785         avoid misc. warnings
47786         * lib/fsusage.c (UNUSED_PARAM): Define.
47787         (get_fs_usage): Mark parameter "disk" as unused.
47788         * lib/getugroups.c (getgrent): Use "void" in prototype.
47789         * lib/mountlist.c: Mark unused parameters.
47790         (read_file_system_list): Declare a local with "const".
47791         * lib/nanosleep.c (getnow): Declare static.
47792         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47793
47794         dirfd: set errno upon failure
47795         * lib/dirfd.c: Include <errno.h>.
47796         Set errno to ENOTSUP when returning -1.
47797         * modules/dirfd (Depends-on): Add errno.
47798         Suggested by John Kodis <kodis@comcast.net>.
47799
47800 2009-02-01  Bruno Haible  <bruno@clisp.org>
47801
47802         Don't assume sizeof (long) >= sizeof (void *).
47803         * lib/memcmp.c: Include stdint.h.
47804         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47805         srcp2 to 'const byte *'.
47806         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47807         types to uintptr_t.
47808         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47809         * modules/memcmp (Depends-on): Add stdint.
47810         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47811
47812 2009-01-30  Eric Blake  <ebb9@byu.net>
47813
47814         fix more require-before-expand issues
47815         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47816         expand, AC_PROG_AWK.
47817         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47818
47819 2009-01-28  Eric Blake  <ebb9@byu.net>
47820
47821         version-etc: use consistent URL formatting
47822         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47823         Improve formatting.  Use fputs for string without %.
47824
47825 2009-01-28  Jim Meyering  <meyering@redhat.com>
47826
47827         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47828         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47829         "underquoted definition of NAME" from autoconf-2.59.
47830
47831 2009-01-28  Bruno Haible  <bruno@clisp.org>
47832
47833         * doc/gnulib.texi: Add "Obsolete modules" to index.
47834
47835 2009-01-28  Jim Meyering  <meyering@redhat.com>
47836
47837         useless-if-before-free: recognize more variants
47838         * build-aux/useless-if-before-free: Also recognize e.g.,
47839         if (NULL != p) free (p);
47840
47841 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47842
47843         test-getaddrinfo: skip (don't fail) this test when there's no network
47844         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47845         on the presumption that it means you lack network access.
47846
47847 2009-01-26  Jim Meyering  <meyering@redhat.com>
47848
47849         fflush: avoid warnings on modern systems
47850         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47851         pos and result, into scopes where they're used.
47852
47853 2009-01-26  Eric Blake  <ebb9@byu.net>
47854
47855         Silence warning reintroduced by recent extensions patch.
47856         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47857         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47858         autoconf.
47859
47860         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47861         * m4/00gnulib.m4: New file.
47862         * gnulib-tool (func_get_filelist): Always use it.
47863         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47864         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47865
47866 2009-01-25  Bruno Haible  <bruno@clisp.org>
47867
47868         Make test-quotearg work on MacOS X and AIX.
47869         * tests/test-quotearg.sh: New file.
47870         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47871         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47872         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47873         include <libintl.h>.
47874         (fake_locale): Remove variable.
47875         (gettext, dgettext, dcgettext): Remove functions.
47876         (main): Instead of setting a fake locale, set a real locale. Call
47877         textdomain and bindtextdomain.
47878         * modules/quotearg-tests (Files): Add the new files.
47879         (Depends-on): Add gettext, setenv, unsetenv.
47880         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47881         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47882         Augment TESTS_ENVIRONMENT.
47883
47884 2009-01-25  Bruno Haible  <bruno@clisp.org>
47885
47886         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47887         fr_FR.ISO8859-1 locale on MacOS X.
47888         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47889         ja_JP.eucJP locale on MacOS X.
47890         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47891         zh_CN.GB18030 locale on MacOS X.
47892
47893 2009-01-25  Bruno Haible  <bruno@clisp.org>
47894
47895         Avoid link errors on MacOS X 10.3.
47896         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47897         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47898
47899 2009-01-25  Bruno Haible  <bruno@clisp.org>
47900
47901         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47902         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47903         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47904         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47905         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47906         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47907         posix_spawnattr_init, posix_spawnattr_setsigmask,
47908         posix_spawnattr_setflags, posix_spawnattr_destroy.
47909
47910         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47911         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47912         * modules/execute (Files): Remove m4/posix_spawn.m4.
47913         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47914         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47915         posix_spawnattr_init, posix_spawnattr_setsigmask,
47916         posix_spawnattr_setflags, posix_spawnattr_destroy.
47917
47918 2009-01-25  Bruno Haible  <bruno@clisp.org>
47919
47920         * lib/glthread/threadlib.c: Include <stdlib.h>.
47921
47922 2009-01-25  Bruno Haible  <bruno@clisp.org>
47923
47924         * lib/glthread/threadlib.c (dummy): New declaration.
47925
47926 2009-01-25  Bruno Haible  <bruno@clisp.org>
47927
47928         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47929         multibyte characters also for the GB18030 encoding. Don't crash when
47930         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47931
47932 2009-01-25  Bruno Haible  <bruno@clisp.org>
47933
47934         Avoid redefining 'struct random_data' on OSF/1 5.1.
47935         * lib/stdlib.in.h: Include <random.h> if it exists.
47936         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47937         HAVE_RANDOM_H. Include <random.h> when testing whether
47938         'struct random_data' exists.
47939         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47940
47941 2009-01-25  Bruno Haible  <bruno@clisp.org>
47942
47943         Don't install charset.alias on MacOS X >= 10.3.
47944         * lib/localcharset.c (DARWIN7): New macro.
47945         (get_charset_aliases): Hardcode the result for Darwin7.
47946         * modules/localcharset (install-exec-local): Don't install
47947         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47948
47949 2009-01-25  Bruno Haible  <bruno@clisp.org>
47950
47951         Don't install charset.alias on mingw and Cygwin.
47952         * modules/localcharset (install-exec-local): Don't install
47953         charset.alias on mingw and Cygwin, if the file does not yet exist.
47954         The result for these platforms is hardcoded in localcharset.c.
47955
47956 2009-01-25  Bruno Haible  <bruno@clisp.org>
47957
47958         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47959         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47960         before requiring AC_USE_SYSTEM_EXTENSIONS.
47961
47962 2009-01-25  Jim Meyering  <meyering@redhat.com>
47963
47964         c-strtod: avoid warnings
47965         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47966         "assignment discards qualifiers from pointer target type" warnings.
47967
47968 2009-01-24  Bruno Haible  <bruno@clisp.org>
47969
47970         Add support for non-UTF-8 locales on MacOS X.
47971         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47972         canonical encodings. For Darwin 7 and newer, don't map traditional
47973         encodings to UTF-8.
47974         Reported by Vincent Lefevre <vincent@vinc17.org>
47975         at <http://savannah.gnu.org/bugs/?25235>.
47976
47977 2009-01-24  Bruno Haible  <bruno@clisp.org>
47978
47979         * doc/gnulib.texi (Obsolete modules): New section.
47980         Reported by Mike Frysinger <vapier@gentoo.org>.
47981
47982 2009-01-24  Bruno Haible  <bruno@clisp.org>
47983
47984         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47985         (%.dvi): New rule.
47986
47987 2009-01-24  Bruno Haible  <bruno@clisp.org>
47988
47989         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47990         Reported by Eric Blake.
47991
47992 2009-01-24  Bruno Haible  <bruno@clisp.org>
47993
47994         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47995         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47996         Reported by Gary V. Vaughan <gary@gnu.org>.
47997
47998 2009-01-24  Bruno Haible  <bruno@clisp.org>
47999
48000         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
48001
48002 2009-01-23  Bruno Haible  <bruno@clisp.org>
48003
48004         Make c-strtod, c-strtold usable in libraries.
48005         * lib/c-strtod.c: Include string.h instead of xalloc.h.
48006         (C_STRTOD): Call strdup instead of xstrdup.
48007         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
48008         * modules/c-strtold (Depends-on): Likewise.
48009         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
48010         * NEWS: Mention the change.
48011         Reported by Michael Gold <mgold@ncf.ca>.
48012
48013 2009-01-23  Jim Meyering  <meyering@redhat.com>
48014
48015         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
48016         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
48017         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
48018
48019 2009-01-23  Simon Josefsson  <simon@josefsson.org>
48020
48021         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
48022         GNU CoreUtils.
48023         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
48024         * modules/version-etc (Description): Update.
48025
48026 2009-01-22  Bruno Haible  <bruno@clisp.org>
48027
48028         Cache the C locale object.
48029         * lib/c-strtod.c (c_locale_cache): New variable.
48030         (c_locale): New function.
48031         (C_STRTOD): Use it, and don't call freelocale.
48032         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
48033         Suggested by Paolo Bonzini.
48034
48035 2009-01-21  Bruno Haible  <bruno@clisp.org>
48036
48037         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
48038         conditions other than overflow.
48039
48040 2009-01-21  Bruno Haible  <bruno@clisp.org>
48041
48042         * lib/c-strtod.c: Include errno.h.
48043         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
48044         value from STRTOD_L and STRTOD.
48045
48046 2009-01-21  Bruno Haible  <bruno@clisp.org>
48047         and Jim Meyering  <meyering@redhat.com>
48048
48049         nanosleep: skip configure test (fail it) for apple universal builds
48050         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
48051         universal builds, assume that nanosleep does not work.
48052         * modules/nanosleep (Depends-on): Add multiarch.
48053
48054         mktime: skip configure test (fail it) for apple universal builds
48055         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
48056         universal builds, assume that mktime does not work.
48057         * modules/mktime (Depends-on): Add multiarch.
48058
48059 2009-01-21  Eric Blake  <ebb9@byu.net>
48060
48061         multiarch: avoid expand-before-require warning
48062         * modules/multiarch (configure.ac): Require, rather than expand,
48063         gl_MULTIARCH.
48064         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
48065         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
48066         enforce that all clients require it.  Partial reversion of
48067         2008-12-29 patch.
48068
48069         error: avoid expand-before-require warning
48070         * modules/errno (configure.ac): Require, rather than expand,
48071         gl_HEADER_ERRNO_H.
48072         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
48073         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
48074         enforce that all clients require it.
48075
48076         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
48077         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
48078         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
48079         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
48080
48081 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
48082
48083         Revert:
48084         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48085
48086         regex: do not depend on obsolete modules.
48087         * modules/regex: Remove memcmp and memmove.
48088
48089 2009-01-20  Bruno Haible  <bruno@clisp.org>
48090
48091         Make the 'link' module link on Windows NT 4.
48092         * lib/link.c (_WIN32_WINNT): Don't define.
48093         (CreateHardLinkFuncType): New type.
48094         (CreateHardLinkFunc, initialized): New variables.
48095         (initialize): New function.
48096         (link): Invoke CreateHardLink indirectly through the function pointer.
48097
48098 2009-01-20  Bruno Haible  <bruno@clisp.org>
48099
48100         Fix compilation failure on mingw.
48101         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
48102
48103 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
48104
48105         * doc/c-strtod.texi: Mention a couple of restrictions.
48106
48107 2009-01-20  Jim Meyering  <meyering@redhat.com>
48108
48109         gettimeofday: move more declarations out of functions
48110         * lib/gettimeofday.c: Move extern declarations of tzset and
48111         gmtime out of containing functions.  Prompted by Bruno Haible.
48112
48113 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
48114
48115         regex: do not depend on obsolete modules.
48116         * modules/regex: Remove memcmp and memmove.
48117
48118 2009-01-19  Bruno Haible  <bruno@clisp.org>
48119
48120         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48121         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
48122         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48123         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
48124         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
48125
48126 2009-01-19  Bruno Haible  <bruno@clisp.org>
48127
48128         * tests/test-link.c: Include <errno.h>.
48129         (main): Exit with code 77 when a hard link cannot be created due to
48130         the file system.
48131         * tests/test-link.sh: Skip test when a hard link cannot be created due
48132         to the file system.
48133         Suggested by Eric Blake.
48134
48135 2009-01-19  Martin Lambers  <marlam@marlam.de>
48136
48137         * modules/link-tests: New file.
48138         * tests/test-link.sh: New file.
48139         * tests/test-link.c: New file.
48140
48141 2009-01-19  Eric Blake  <ebb9@byu.net>
48142
48143         doc: mention another function added in cygwin 1.7.0
48144         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
48145         Another new function in cygwin 1.7.
48146
48147 2009-01-19  Bruno Haible  <bruno@clisp.org>
48148
48149         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
48150         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
48151         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
48152         gl_BIGENDIAN, not AC_C_BIGENDIAN.
48153         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
48154         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
48155         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
48156         * m4/md4.m4 (gl_MD4): Likewise.
48157         * m4/md5.m4 (gl_MD5): Likewise.
48158         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
48159         * m4/sha1.m4 (gl_SHA1): Likewise.
48160         * m4/sha256.m4 (gl_SHA256): Likewise.
48161         * m4/sha512.m4 (gl_SHA512): Likewise.
48162
48163 2009-01-19  Bruno Haible  <bruno@clisp.org>
48164
48165         * modules/uniname/uniname-tests (Depends-on): Add progname.
48166         * tests/uniname/test-uninames.c: Include progname.h.
48167         (main): Call set_program_name.
48168
48169         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
48170         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
48171         (main): Call set_program_name.
48172
48173         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
48174         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
48175         (main): Call set_program_name.
48176
48177         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
48178         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
48179         (main): Call set_program_name.
48180
48181         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
48182         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
48183         (main): Call set_program_name.
48184
48185         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
48186         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
48187         (main): Call set_program_name.
48188
48189         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
48190         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
48191         (main): Call set_program_name.
48192
48193         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
48194         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
48195         (main): Call set_program_name.
48196
48197         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
48198         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
48199         (main): Call set_program_name.
48200
48201 2009-01-19  Eric Blake  <ebb9@byu.net>
48202
48203         test-unistd: test previous patch
48204         * tests/test-unistd.c: Test *_FILENO macros.
48205
48206         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
48207         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48208         Guarantee a definition.
48209         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
48210         * modules/unistd-safer (Depends-on): Add dependency on unistd.
48211         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
48212         * lib/dup-safer.c (STDERR_FILENO): Likewise.
48213         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48214         Likewise.
48215         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
48216         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
48217         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
48218         Likewise.
48219         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
48220         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
48221         (STDERR_FILENO): Likewise.
48222         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
48223         (STDERR_FILENO): Likewise.
48224         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
48225         (STDERR_FILENO): Likewise.
48226         Reported by Elbert Pol.
48227
48228 2009-01-19  Eric Blake  <ebb9@byu.net>
48229
48230         doc: mention more functions added in cygwin 1.7.0
48231         * doc/posix-functions/abort.texi (abort): Update wording related
48232         to cygwin.
48233         * doc/posix-functions/daylight.texi (daylight): Likewise.
48234         * doc/posix-functions/optarg.texi (optarg): Likewise.
48235         * doc/posix-functions/optarg.texi (opterr): Likewise.
48236         * doc/posix-functions/optarg.texi (optind): Likewise.
48237         * doc/posix-functions/optarg.texi (optopt): Likewise.
48238         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
48239         worked in 1.5.x, and was withdrawn in 1.7.
48240         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
48241         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
48242         cygwin versions.
48243         * doc/posix-functions/perror.texi (perror): Likewise.
48244         * doc/posix-functions/printf.texi (printf): Likewise.
48245         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
48246         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
48247         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
48248         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
48249         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
48250         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
48251         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
48252         Likewise.
48253         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
48254         Likewise.
48255         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
48256         this function.
48257         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
48258         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
48259         Likewise.
48260         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
48261         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
48262         * doc/posix-functions/confstr.texi (confstr): Likewise.
48263         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
48264         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
48265         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
48266         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
48267         * doc/posix-functions/fputws.texi (fputws): Likewise.
48268         * doc/posix-functions/fwide.texi (fwide): Likewise.
48269         * doc/posix-functions/getwc.texi (getwc): Likewise.
48270         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
48271         * doc/posix-functions/putwc.texi (putwc): Likewise.
48272         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
48273         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
48274         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
48275         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
48276         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
48277         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
48278         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
48279         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
48280         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
48281         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
48282         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
48283
48284 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48285
48286         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
48287         * lib/ioctl.c: Include <sys/ioctl.h>.
48288
48289 2009-01-19  Simon Josefsson  <simon@josefsson.org>
48290
48291         * modules/getdate-tests (Depends-on): Add progname.
48292         * tests/test-getdate.c: Use progname module, to avoid link errors
48293         on non-glibc systems.
48294
48295 2009-01-18  Simon Josefsson  <simon@josefsson.org>
48296
48297         * modules/filenamecat-tests (Depends-on): Add progname.
48298         * modules/fstrcmp-tests (Depends-on): Likewise.
48299
48300         * tests/test-filenamecat.c: Use progname module, to avoid link
48301         errors on non-glibc systems.
48302         * tests/test-fstrcmp.c: Likewise.
48303
48304 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
48305
48306         gettimeofday: avoid warning: nested extern declaration of 'localtime'
48307         * lib/gettimeofday.c: Move extern declaration out of function.
48308
48309 2009-01-18  Bruno Haible  <bruno@clisp.org>
48310
48311         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48312         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48313         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48314
48315 2009-01-18  Bruno Haible  <bruno@clisp.org>
48316
48317         * lib/strftime.c (MEMPCPY): Remove unused macro.
48318         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48319
48320 2009-01-18  Martin Lambers  <marlam@marlam.de>
48321
48322         New module 'link'.
48323         * lib/unistd.in.h (link): New declaration.
48324         * lib/link.c: New file.
48325         * m4/link.m4: New file.
48326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48327         HAVE_LINK.
48328         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48329         * modules/link: New file.
48330         * doc/posix-functions/link.texi: Mention the new module.
48331
48332 2009-01-18  Bruno Haible  <bruno@clisp.org>
48333
48334         * tests/test-avltree_list.c (main): Call set_program_name.
48335         * tests/test-avltree_oset.c (main): Likewise.
48336         * tests/test-obstack-printf.c: Include progname.h.
48337         (main): Call set_program_name.
48338         * tests/test-quotearg.c: Include progname.h.
48339         (main): Call set_program_name.
48340         * tests/test-xmemdup0.c: Include progname.h.
48341         (main): Call set_program_name.
48342
48343 2009-01-18  Bruno Haible  <bruno@clisp.org>
48344
48345         New module 'alphasort'.
48346         * lib/dirent.in.h (alphasort): New declaration.
48347         * lib/alphasort.c: New file, from glibc with modifications.
48348         * m4/alphasort.m4: New file.
48349         * modules/alphasort: New file.
48350         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48351         HAVE_ALPHASORT.
48352         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48353         HAVE_ALPHASORT.
48354         * doc/posix-functions/alphasort.texi: Mention the new module and the
48355         portability problems.
48356
48357 2009-01-18  Bruno Haible  <bruno@clisp.org>
48358
48359         New module 'scandir'.
48360         * lib/dirent.in.h (scandir): New declaration.
48361         * lib/scandir.c: New file, from glibc with modifications.
48362         * m4/scandir.m4: New file.
48363         * modules/scandir: New file.
48364         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48365         HAVE_SCANDIR.
48366         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48367         HAVE_SCANDIR.
48368         * doc/posix-functions/scandir.texi: Mention the new module and the
48369         portability problems.
48370
48371 2009-01-17  Bruno Haible  <bruno@clisp.org>
48372
48373         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48374         Update documentation.
48375         (func_remove_suffix): Escape all dots in the suffix. Update
48376         documentation.
48377         (func_filter_filelist): Update documentation.
48378         Reported by Ralf Wildenhues.
48379
48380 2009-01-17  Bruno Haible  <bruno@clisp.org>
48381
48382         * modules/dprintf-posix-tests: New file.
48383         * tests/test-dprintf-posix.sh: New file.
48384         * tests/test-dprintf-posix.c: New file.
48385
48386         New modules 'dprintf', 'dprintf-posix'.
48387         * lib/stdio.in.h (dprintf): New declaration.
48388         * lib/dprintf.c: New file.
48389         * m4/dprintf.m4: New file.
48390         * m4/dprintf-posix.m4: New file.
48391         * modules/dprintf: New file.
48392         * modules/dprintf-posix: New file.
48393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48394         HAVE_DPRINTF, REPLACE_DPRINTF.
48395         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48396         HAVE_DPRINTF, REPLACE_DPRINTF.
48397         * doc/posix-functions/dprintf.texi: Mention the new modules.
48398
48399 2009-01-17  Bruno Haible  <bruno@clisp.org>
48400
48401         * modules/vdprintf-posix-tests: New file.
48402         * tests/test-vdprintf-posix.sh: New file.
48403         * tests/test-vdprintf-posix.c: New file.
48404
48405         New modules 'vdprintf', 'vdprintf-posix'.
48406         * lib/stdio.in.h (vdprintf): New declaration.
48407         * lib/vdprintf.c: New file.
48408         * m4/vdprintf.m4: New file.
48409         * m4/vdprintf-posix.m4: New file.
48410         * modules/vdprintf: New file.
48411         * modules/vdprintf-posix: New file.
48412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48413         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48414         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48415         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48416         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48417
48418 2009-01-17  Bruno Haible  <bruno@clisp.org>
48419
48420         Fix replacement of fopen on mingw.
48421         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48422         mingw.
48423
48424 2009-01-17  Bruno Haible  <bruno@clisp.org>
48425
48426         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48427         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48428
48429 2009-01-17  Bruno Haible  <bruno@clisp.org>
48430
48431         Avoid test-fflush2.sh failure on mingw.
48432         * tests/test-fflush2.c: Include binary-io.h.
48433         (main): Put standard input into binary mode.
48434         * modules/fflush-tests (Depends-on): Add binary-io.
48435
48436 2009-01-17  Bruno Haible  <bruno@clisp.org>
48437
48438         * lib/wchar.in.h: In another particular situation, include only the
48439         system's <wchar.h> file.
48440         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48441         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48442         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48443
48444 2009-01-17  Bruno Haible  <bruno@clisp.org>
48445
48446         Support for stripping executables in --enable-relocatable.
48447         * build-aux/install-reloc: Expect one more argument, or an environment
48448         variable RELOC_STRIP_PROG. If set, strip the destination program and
48449         its wrapper.
48450         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48451         RELOC_STRIP_PROG.
48452         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48453         to set RELOCATABLE_STRIP.
48454         * NEWS: Mention the new Makefile requirement.
48455
48456 2009-01-17  Bruno Haible  <bruno@clisp.org>
48457
48458         * build-aux/install-reloc: Remove debugging information left over by
48459         C compiler on MacOS X.
48460
48461 2009-01-17  Bruno Haible  <bruno@clisp.org>
48462
48463         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48464         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48465         _NSGetExecutablePath.
48466
48467 2009-01-16  Jim Meyering  <meyering@redhat.com>
48468
48469         strerror: avoid warnings about discarding "const"
48470         * lib/strerror.c (rpl_strerror): Instead of returning a const
48471         string from each and every "case", use a variable, and add a single
48472         cast after the switch.
48473
48474 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48475
48476         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48477
48478 2009-01-16  Bruno Haible  <bruno@clisp.org>
48479
48480         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48481         array initializer syntax that also works in C++ mode.
48482         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48483
48484 2009-01-16  Jim Meyering  <meyering@redhat.com>
48485
48486         poll: suppress a warning
48487         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48488         to ignore "...unsigned expression < 0 is always false" warnings.
48489
48490 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48491
48492         poll: remove declarations of unused variables
48493         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48494         sockbuf and optlen.
48495
48496 2009-01-15  Bruno Haible  <bruno@clisp.org>
48497
48498         Make fflush-after-ungetc POSIX compliant on BSD systems.
48499         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48500         (clear_ungetc_buffer): Implement also for other systems.
48501         (rpl_fflush): On glibc systems, invoke
48502         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48503         clear_ungetc_buffer after fetching the stream's position, not before.
48504
48505 2009-01-15  Bruno Haible  <bruno@clisp.org>
48506
48507         Make fflush-after-ungetc POSIX compliant on glibc systems.
48508         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48509         after ungetc.
48510         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48511         (rpl_fflush): On glibc systems, simply call the system's fflush
48512         function after clearing the ungetc buffer.
48513         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48514         Instead, lseek only to the end of file, then use the system's fseeko
48515         for the rest. On glibc systems, reset the EOF indicator bit.
48516
48517 2009-01-15  Jim Meyering  <meyering@redhat.com>
48518
48519         openmp.m4: revert quote-adding change, for portability to older autoconf
48520         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48521         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48522         Simon Josefsson noticed the problem when using autoconf-2.61.
48523
48524 2009-01-15  Bruno Haible  <bruno@clisp.org>
48525
48526         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48527         * tests/test-fflush2.c (ASSERT): Always fail.
48528         (main): Add two tests for fflush() after ungetc(), taking into account
48529         the Austin Group's clarification.
48530         Suggested by Eric Blake.
48531
48532 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48533
48534         mktime.m4: remove K&R-style function prototypes
48535         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48536         for the Sun C++ compiler.
48537
48538 2009-01-14  Bruno Haible  <bruno@clisp.org>
48539
48540         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48541         while including <wchar.h>.
48542         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48543         the system's <wchar.h> file.
48544         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48545
48546 2009-01-14  Bruno Haible  <bruno@clisp.org>
48547
48548         * m4/csharp.m4: Don't mention gettext on the serial number line.
48549         * m4/csharpexec.m4: Likewise.
48550         * m4/eaccess.m4: Likewise.
48551         * m4/javaexec.m4: Likewise.
48552         * m4/sig_atomic_t.m4: Likewise.
48553         * m4/tmpdir.m4: Likewise.
48554         * m4/intldir.m4: Bump gettext version.
48555         * m4/lib-ld.m4: Likewise.
48556
48557 2009-01-14  Bruno Haible  <bruno@clisp.org>
48558
48559         * lib/progname.c (set_program_name): Add more comments.
48560         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48561
48562 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48563
48564         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48565         were sys/stat.h does not define it.
48566
48567 2009-01-14  Jim Meyering  <meyering@redhat.com>
48568
48569         many *.m4 files: improve m4 quoting
48570         99% of this change was performed by running the following commands:
48571         git ls-files | grep '\.m4$' | xargs perl -pi \
48572           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48573           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48574           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48575           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48576         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48577         The remainder were to add Copyright dates, increment serial numbers,
48578         undo some changes in comments, exclude m4/intl.m4, and add quotes
48579         around the "1" in ",1" where the unusual spacing prohibited the
48580         above regexps from doing the job.  For more details, see
48581         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48582         * m4/acl.m4: Modified.
48583         * m4/afs.m4: Likewise.
48584         * m4/alloca.m4: Likewise.
48585         * m4/argp.m4: Likewise.
48586         * m4/argz.m4: Likewise.
48587         * m4/atexit.m4: Likewise.
48588         * m4/bison-i18n.m4: Likewise.
48589         * m4/bison.m4: Likewise.
48590         * m4/byteswap.m4: Likewise.
48591         * m4/c-stack.m4: Likewise.
48592         * m4/c-strtod.m4: Likewise.
48593         * m4/calloc.m4: Likewise.
48594         * m4/canonicalize-lgpl.m4: Likewise.
48595         * m4/chown.m4: Likewise.
48596         * m4/clock_time.m4: Likewise.
48597         * m4/codeset.m4: Likewise.
48598         * m4/copy-file.m4: Likewise.
48599         * m4/csharp.m4: Likewise.
48600         * m4/csharpcomp.m4: Likewise.
48601         * m4/csharpexec.m4: Likewise.
48602         * m4/d-ino.m4: Likewise.
48603         * m4/d-type.m4: Likewise.
48604         * m4/dirfd.m4: Likewise.
48605         * m4/double-slash-root.m4: Likewise.
48606         * m4/eaccess.m4: Likewise.
48607         * m4/eealloc.m4: Likewise.
48608         * m4/environ.m4: Likewise.
48609         * m4/errno_h.m4: Likewise.
48610         * m4/euidaccess.m4: Likewise.
48611         * m4/execute.m4: Likewise.
48612         * m4/fatal-signal.m4: Likewise.
48613         * m4/fchdir.m4: Likewise.
48614         * m4/fcntl_h.m4: Likewise.
48615         * m4/fileblocks.m4: Likewise.
48616         * m4/filenamecat.m4: Likewise.
48617         * m4/findprog.m4: Likewise.
48618         * m4/flexmember.m4: Likewise.
48619         * m4/fnmatch.m4: Likewise.
48620         * m4/fopen.m4: Likewise.
48621         * m4/fpending.m4: Likewise.
48622         * m4/fprintf-posix.m4: Likewise.
48623         * m4/free.m4: Likewise.
48624         * m4/frexp.m4: Likewise.
48625         * m4/frexpl.m4: Likewise.
48626         * m4/fsusage.m4: Likewise.
48627         * m4/ftruncate.m4: Likewise.
48628         * m4/gc-camellia.m4: Likewise.
48629         * m4/gc-random.m4: Likewise.
48630         * m4/gc.m4: Likewise.
48631         * m4/getaddrinfo.m4: Likewise.
48632         * m4/getcwd-abort-bug.m4: Likewise.
48633         * m4/getcwd-path-max.m4: Likewise.
48634         * m4/getdate.m4: Likewise.
48635         * m4/getdomainname.m4: Likewise.
48636         * m4/getgroups.m4: Likewise.
48637         * m4/gethostname.m4: Likewise.
48638         * m4/gethrxtime.m4: Likewise.
48639         * m4/getline.m4: Likewise.
48640         * m4/getloadavg.m4: Likewise.
48641         * m4/getndelim2.m4: Likewise.
48642         * m4/getpass.m4: Likewise.
48643         * m4/gettext.m4: Likewise.
48644         * m4/gettime.m4: Likewise.
48645         * m4/gettimeofday.m4: Likewise.
48646         * m4/gnulib-common.m4: Likewise.
48647         * m4/group-member.m4: Likewise.
48648         * m4/host-os.m4: Likewise.
48649         * m4/iconv.m4: Likewise.
48650         * m4/iconv_open.m4: Likewise.
48651         * m4/inet_ntop.m4: Likewise.
48652         * m4/inet_pton.m4: Likewise.
48653         * m4/inline.m4: Likewise.
48654         * m4/intldir.m4: Likewise.
48655         * m4/intlmacosx.m4: Likewise.
48656         * m4/intmax.m4: Likewise.
48657         * m4/intmax_t.m4: Likewise.
48658         * m4/inttypes.m4: Likewise.
48659         * m4/inttypes_h.m4: Likewise.
48660         * m4/inttypes-pri.m4: Likewise.
48661         * m4/isapipe.m4: Likewise.
48662         * m4/isnand.m4: Likewise.
48663         * m4/isnanf.m4: Likewise.
48664         * m4/isnanl.m4: Likewise.
48665         * m4/javacomp.m4: Likewise.
48666         * m4/javaexec.m4: Likewise.
48667         * m4/jm-winsz1.m4: Likewise.
48668         * m4/jm-winsz2.m4: Likewise.
48669         * m4/lchown.m4: Likewise.
48670         * m4/lcmessage.m4: Likewise.
48671         * m4/ldexpl.m4: Likewise.
48672         * m4/lib-ld.m4: Likewise.
48673         * m4/lib-link.m4: Likewise.
48674         * m4/libsigsegv.m4: Likewise.
48675         * m4/link-follow.m4: Likewise.
48676         * m4/localcharset.m4: Likewise.
48677         * m4/locale-fr.m4: Likewise.
48678         * m4/locale-ja.m4: Likewise.
48679         * m4/locale-tr.m4: Likewise.
48680         * m4/locale-zh.m4: Likewise.
48681         * m4/lock.m4: Likewise.
48682         * m4/longlong.m4: Likewise.
48683         * m4/ls-mntd-fs.m4: Likewise.
48684         * m4/lstat.m4: Likewise.
48685         * m4/malloc.m4: Likewise.
48686         * m4/mathl.m4: Likewise.
48687         * m4/mbrtowc.m4: Likewise.
48688         * m4/mbstate_t.m4: Likewise.
48689         * m4/mbswidth.m4: Likewise.
48690         * m4/memchr.m4: Likewise.
48691         * m4/memcmp.m4: Likewise.
48692         * m4/memcpy.m4: Likewise.
48693         * m4/memmem.m4: Likewise.
48694         * m4/memmove.m4: Likewise.
48695         * m4/mempcpy.m4: Likewise.
48696         * m4/memrchr.m4: Likewise.
48697         * m4/memset.m4: Likewise.
48698         * m4/minmax.m4: Likewise.
48699         * m4/mkdir-slash.m4: Likewise.
48700         * m4/mkdtemp.m4: Likewise.
48701         * m4/mktime.m4: Likewise.
48702         * m4/mmap-anon.m4: Likewise.
48703         * m4/mountlist.m4: Likewise.
48704         * m4/nanosleep.m4: Likewise.
48705         * m4/nls.m4: Likewise.
48706         * m4/nocrash.m4: Likewise.
48707         * m4/open.m4: Likewise.
48708         * m4/openat.m4: Likewise.
48709         * m4/openmp.m4: Likewise.
48710         * m4/pathmax.m4: Likewise.
48711         * m4/perl.m4: Likewise.
48712         * m4/physmem.m4: Likewise.
48713         * m4/pipe.m4: Likewise.
48714         * m4/po.m4: Likewise.
48715         * m4/poll.m4: Likewise.
48716         * m4/posixtm.m4: Likewise.
48717         * m4/posixver.m4: Likewise.
48718         * m4/printf-frexp.m4: Likewise.
48719         * m4/printf-frexpl.m4: Likewise.
48720         * m4/printf-posix.m4: Likewise.
48721         * m4/printf-posix-rpl.m4: Likewise.
48722         * m4/printf.m4: Likewise.
48723         * m4/progtest.m4: Likewise.
48724         * m4/putenv.m4: Likewise.
48725         * m4/readline.m4: Likewise.
48726         * m4/readlink.m4: Likewise.
48727         * m4/readutmp.m4: Likewise.
48728         * m4/realloc.m4: Likewise.
48729         * m4/regex.m4: Likewise.
48730         * m4/relocatable.m4: Likewise.
48731         * m4/relocatable-lib.m4: Likewise.
48732         * m4/rename-dest-slash.m4: Likewise.
48733         * m4/rename.m4: Likewise.
48734         * m4/rmdir-errno.m4: Likewise.
48735         * m4/rmdir.m4: Likewise.
48736         * m4/roundf.m4: Likewise.
48737         * m4/roundl.m4: Likewise.
48738         * m4/rpmatch.m4: Likewise.
48739         * m4/save-cwd.m4: Likewise.
48740         * m4/selinux-selinux-h.m4: Likewise.
48741         * m4/setenv.m4: Likewise.
48742         * m4/settime.m4: Likewise.
48743         * m4/sig2str.m4: Likewise.
48744         * m4/sig_atomic_t.m4: Likewise.
48745         * m4/signalblocking.m4: Likewise.
48746         * m4/signbit.m4: Likewise.
48747         * m4/sigpipe.m4: Likewise.
48748         * m4/sockets.m4: Likewise.
48749         * m4/sockpfaf.m4: Likewise.
48750         * m4/st_dm_mode.m4: Likewise.
48751         * m4/stat-time.m4: Likewise.
48752         * m4/stdbool.m4: Likewise.
48753         * m4/stdint.m4: Likewise.
48754         * m4/stdint_h.m4: Likewise.
48755         * m4/stpcpy.m4: Likewise.
48756         * m4/stpncpy.m4: Likewise.
48757         * m4/strcase.m4: Likewise.
48758         * m4/strchrnul.m4: Likewise.
48759         * m4/strcspn.m4: Likewise.
48760         * m4/strdup.m4: Likewise.
48761         * m4/strftime.m4: Likewise.
48762         * m4/strndup.m4: Likewise.
48763         * m4/strnlen.m4: Likewise.
48764         * m4/strpbrk.m4: Likewise.
48765         * m4/strptime.m4: Likewise.
48766         * m4/strsep.m4: Likewise.
48767         * m4/strtod.m4: Likewise.
48768         * m4/strtoimax.m4: Likewise.
48769         * m4/strtok_r.m4: Likewise.
48770         * m4/strtol.m4: Likewise.
48771         * m4/strtoll.m4: Likewise.
48772         * m4/strtoul.m4: Likewise.
48773         * m4/strtoull.m4: Likewise.
48774         * m4/strtoumax.m4: Likewise.
48775         * m4/strverscmp.m4: Likewise.
48776         * m4/threadlib.m4: Likewise.
48777         * m4/timegm.m4: Likewise.
48778         * m4/tm_gmtoff.m4: Likewise.
48779         * m4/tmpdir.m4: Likewise.
48780         * m4/tmpfile.m4: Likewise.
48781         * m4/tzset.m4: Likewise.
48782         * m4/uintmax_t.m4: Likewise.
48783         * m4/unlinkdir.m4: Likewise.
48784         * m4/unlocked-io.m4: Likewise.
48785         * m4/uptime.m4: Likewise.
48786         * m4/userspec.m4: Likewise.
48787         * m4/utimbuf.m4: Likewise.
48788         * m4/utime.m4: Likewise.
48789         * m4/utimes-null.m4: Likewise.
48790         * m4/utimes.m4: Likewise.
48791         * m4/vararrays.m4: Likewise.
48792         * m4/vasnprintf.m4: Likewise.
48793         * m4/vfprintf-posix.m4: Likewise.
48794         * m4/vprintf-posix.m4: Likewise.
48795         * m4/wait-process.m4: Likewise.
48796         * m4/wchar_t.m4: Likewise.
48797         * m4/wint_t.m4: Likewise.
48798         * m4/write-any-file.m4: Likewise.
48799         * m4/yield.m4: Likewise.
48800
48801 2009-01-13  Bruno Haible  <bruno@clisp.org>
48802
48803         Avoid test-copy-file.sh failures when ACL support insufficient.
48804         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48805         TESTS_ENVIRONMENT.
48806         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48807         Reported by Jim Meyering.
48808
48809 2009-01-13  Bruno Haible  <bruno@clisp.org>
48810
48811         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48812         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48813         * modules/unistdio/u8-printf-parse (Files): Likewise.
48814         * modules/unistdio/u32-printf-parse (Files): Likewise.
48815         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48816
48817 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48818
48819         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48820         and m4/inttypes_h.m4 too.
48821
48822 2009-01-12  Eric Blake  <ebb9@byu.net>
48823
48824         tests: IRIX 6.2 cc can't compile -0.0 into .data
48825         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48826         rather than at compile-time.
48827         * tests/test-floorl.c (minus_zero): Likewise.
48828         * tests/test-frexpl.c (minus_zero): Likewise.
48829         * tests/test-isnan.c (minus_zerol): Likewise.
48830         * tests/test-isnanl.h (minus_zero): Likewise.
48831         * tests/test-ldexpl.c (minus_zero): Likewise.
48832         * tests/test-roundl.c (minus_zero): Likewise.
48833         * tests/test-signbit.c (minus_zerol): Likewise.
48834         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48835         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48836         * tests/test-truncl.c (minus_zero): Likewise.
48837         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48838         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48839         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48840
48841 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48842
48843         regex: fix glibc bug 9697
48844         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48845         handling.
48846
48847 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48848
48849         regex: fix glibc bug 697
48850         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48851         being NULL also if there are no backreferences.
48852
48853 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48854
48855         regex: merge glibc changes
48856         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48857         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48858         re_string_skip_chars, re_string_reconstruct): Likewise.
48859         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48860
48861 2009-01-07  Jim Meyering  <meyering@redhat.com>
48862
48863         poll: filter through cppi
48864         * lib/poll.c: Indent cpp directives to reflect nesting.
48865
48866 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48867
48868         poll: don't return uninitialized
48869         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48870
48871 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48872
48873         avoid compile failure on AIX 6.1
48874         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48875         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48876
48877 2009-01-04  Jim Meyering  <meyering@redhat.com>
48878
48879         remove duplicate inclusion of <stdio.h>
48880         * tests/test-fprintf-posix.c: Likewise.
48881         * tests/test-printf-posix.c: Likewise.
48882         * tests/test-snprintf-posix.c: Likewise.
48883         * tests/test-sprintf-posix.c: Likewise.
48884         * tests/test-vasprintf-posix.c: Likewise.
48885         * tests/test-vfprintf-posix.c: Likewise.
48886         * tests/test-vprintf-posix.c: Likewise.
48887         * tests/test-vsnprintf-posix.c: Likewise.
48888         * tests/test-vsprintf-posix.c: Likewise.
48889
48890 2009-01-03  Jim Meyering  <meyering@redhat.com>
48891
48892         gnulib-tool: fix sed-based filtering
48893         * gnulib-tool (func_filter_filelist): Remove extra backslash
48894         in sed_fff_filter definition.
48895
48896 2009-01-02  Jim Meyering  <meyering@redhat.com>
48897
48898         strftime: avoid compilation failure on Solaris 2.6
48899         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48900         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48901         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48902         be available.  Reported by Tom G. Christensen.  Details in
48903         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48904
48905 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48906             Bruno Haible  <bruno@clisp.org>
48907
48908         Speed up gnulib-tool by doing more string processing through shell
48909         built-ins.
48910         * gnulib-tool (fast_func_append): New variable.
48911         (func_remove_prefix, func_remove_suffix): New functions.
48912         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48913         (func_filter_filelist): New function.
48914         (func_get_dependencies): Use func_remove_suffix instead of sed.
48915         (func_get_automake_snippet): Use func_filter_filelist instead of a
48916         subshell and sed invocation.
48917
48918 2009-01-01  Bruno Haible  <bruno@clisp.org>
48919
48920         Fix a security bug.
48921         * gnulib-tool (func_import, import, update): Don't allow the characters
48922         '"', '$', '`', '\' in macro arguments that become part of commands that
48923         are evaluated.
48924
48925 2009-01-01  Bruno Haible  <bruno@clisp.org>
48926
48927         * gnulib-tool (func_reset_sigpipe): Add more comments.
48928
48929 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48930
48931         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48932         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48933         already know the answer.
48934
48935 2009-01-01  Jim Meyering  <meyering@redhat.com>
48936
48937         * lib/version-etc.c (version_etc_va): Update copyright year.
48938
48939 2008-12-30  Bruno Haible  <bruno@clisp.org>
48940
48941         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48942         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48943         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48944
48945 2008-12-29  Eric Blake  <ebb9@byu.net>
48946
48947         multiarch: avoid autoconf AC_REQUIRE bug
48948         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48949         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48950         2.63 and older.
48951         Reported by Bruno Haible, and analyzed in
48952         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48953
48954 2008-12-29  Bruno Haible  <bruno@clisp.org>
48955
48956         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48957         files in subdirectories correctly.
48958         Reported by Ralf Wildenhues.
48959
48960 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48961
48962         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48963         rather than 'join FILE -', for Solaris join.
48964
48965 2008-12-29  Bruno Haible  <bruno@clisp.org>
48966
48967         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48968         quoting.
48969         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48970         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48971         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48972         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48973         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48974         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48975         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48976         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48977         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48978         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48979         * m4/nls.m4 (AM_NLS): Likewise.
48980         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48981         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48982         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48983         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48984         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48985         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48986         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48987         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48988         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48989         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48990         * m4/xsize.m4 (gl_XSIZE): Likewise.
48991         Suggested by Jim Meyering.
48992
48993 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48994
48995         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48996         * lib/parse-duration.c: use a switch instead of cascading if's.
48997
48998 2008-12-29  Eric Blake  <ebb9@byu.net>
48999
49000         wchar.h: supply WEOF on Irix 5.3
49001         * lib/wchar.in.h (wint_t): Also supply WEOF.
49002         * lib/wctype.in.h (wint_t): Likewise.
49003         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
49004         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
49005         Reported by Tom G. Christensen.
49006
49007 2008-12-26  Bruno Haible  <bruno@clisp.org>
49008
49009         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
49010         i486, i586, i686.
49011
49012 2008-12-26  Bruno Haible  <bruno@clisp.org>
49013
49014         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
49015
49016 2008-12-26  Bruno Haible  <bruno@clisp.org>
49017
49018         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
49019         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
49020         not __STDC_CONSTANT_MACROS.
49021         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49022
49023 2008-12-25  Bruno Haible  <bruno@clisp.org>
49024
49025         Add support for universal builds to vasnprintf.
49026         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
49027         universal builds, guess no.
49028         * modules/vasnprintf-posix (Depends-on): Add multiarch.
49029         * modules/vasprintf-posix (Depends-on): Likewise.
49030         * modules/fprintf-posix (Depends-on): Likewise.
49031         * modules/vfprintf-posix (Depends-on): Likewise.
49032         * modules/snprintf-posix (Depends-on): Likewise.
49033         * modules/vsnprintf-posix (Depends-on): Likewise.
49034         * modules/sprintf-posix (Depends-on): Likewise.
49035         * modules/vsprintf-posix (Depends-on): Likewise.
49036         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49037         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49038         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49039         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49040         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49041         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49042         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49043
49044         Add support for universal builds to <inttypes.h>.
49045         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
49046         _SCNu64_PREFIX): In Apple
49047         universal builds, define directly, using _LP64.
49048         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
49049         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
49050         * modules/inttypes (Depends-on): Add multiarch.
49051         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49052
49053         Add support for universal builds to <stdint.h>.
49054         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
49055         universal builds, define directly, using _LP64.
49056         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
49057         Apple universal builds, don't test for the size and suffix of ptrdiff_t
49058         and size_t.
49059         * modules/stdint (Depends-on): Add multiarch.
49060         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
49061
49062         New module 'multiarch'.
49063         * modules/multiarch: New file.
49064         * m4/multiarch.m4: New file.
49065
49066 2008-12-25  Bruno Haible  <bruno@clisp.org>
49067
49068         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
49069
49070 2008-12-25  Bruno Haible  <bruno@clisp.org>
49071
49072         * modules/btowc (License): Relicense under LGPLv2+.
49073         * modules/mbsinit (License): Likewise.
49074         * modules/mbrtowc (License): Likewise.
49075         * modules/wcrtomb (License): Likewise.
49076         * modules/streq (License): Likewise.
49077         Reported by David Lutterkort <lutter@redhat.com>.
49078
49079 2008-12-23  Bruno Haible  <bruno@clisp.org>
49080
49081         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
49082
49083 2008-12-23  Bruno Haible  <bruno@clisp.org>
49084
49085         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
49086         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
49087         GETADDRINFO_LIB, not in LIBS.
49088         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
49089         * modules/canon-host (Link): Likewise.
49090         * NEWS: Mention the change.
49091         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
49092         GETADDRINFO_LIB.
49093
49094 2008-12-22  Bruno Haible  <bruno@clisp.org>
49095
49096         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
49097         * doc/posix-functions/iswalpha_l.texi: Likewise.
49098         * doc/posix-functions/iswblank_l.texi: Likewise.
49099         * doc/posix-functions/iswcntrl_l.texi: Likewise.
49100         * doc/posix-functions/iswctype_l.texi: Likewise.
49101         * doc/posix-functions/iswdigit_l.texi: Likewise.
49102         * doc/posix-functions/iswgraph_l.texi: Likewise.
49103         * doc/posix-functions/iswlower_l.texi: Likewise.
49104         * doc/posix-functions/iswprint_l.texi: Likewise.
49105         * doc/posix-functions/iswpunct_l.texi: Likewise.
49106         * doc/posix-functions/iswspace_l.texi: Likewise.
49107         * doc/posix-functions/iswupper_l.texi: Likewise.
49108         * doc/posix-functions/iswxdigit_l.texi: Likewise.
49109         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
49110         * doc/posix-functions/open_wmemstream.texi: Likewise.
49111         * doc/posix-functions/swscanf.texi: Likewise.
49112         * doc/posix-functions/towctrans_l.texi: Likewise.
49113         * doc/posix-functions/towlower.texi: Likewise.
49114         * doc/posix-functions/towlower_l.texi: Likewise.
49115         * doc/posix-functions/towupper.texi: Likewise.
49116         * doc/posix-functions/towupper_l.texi: Likewise.
49117         * doc/posix-functions/vfwprintf.texi: Likewise.
49118         * doc/posix-functions/vfwscanf.texi: Likewise.
49119         * doc/posix-functions/vswscanf.texi: Likewise.
49120         * doc/posix-functions/vwprintf.texi: Likewise.
49121         * doc/posix-functions/vwscanf.texi: Likewise.
49122         * doc/posix-functions/wcpcpy.texi: Likewise.
49123         * doc/posix-functions/wcpncpy.texi: Likewise.
49124         * doc/posix-functions/wcscasecmp.texi: Likewise.
49125         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
49126         * doc/posix-functions/wcscoll_l.texi: Likewise.
49127         * doc/posix-functions/wcsdup.texi: Likewise.
49128         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49129         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
49130         * doc/posix-functions/wcsnlen.texi: Likewise.
49131         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49132         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
49133         * doc/posix-functions/wctrans_l.texi: Likewise.
49134         * doc/posix-functions/wctype_l.texi: Likewise.
49135         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
49136         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
49137         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
49138         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
49139         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
49140         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
49141         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
49142         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
49143         * doc/glibc-functions/wcschrnul.texi: Likewise.
49144         * doc/glibc-functions/wcsftime_l.texi: Likewise.
49145         * doc/glibc-functions/wcstod_l.texi: Likewise.
49146         * doc/glibc-functions/wcstof_l.texi: Likewise.
49147         * doc/glibc-functions/wcstol_l.texi: Likewise.
49148         * doc/glibc-functions/wcstold_l.texi: Likewise.
49149         * doc/glibc-functions/wcstoll_l.texi: Likewise.
49150         * doc/glibc-functions/wcstoq.texi: Likewise.
49151         * doc/glibc-functions/wcstoul_l.texi: Likewise.
49152         * doc/glibc-functions/wcstoull_l.texi: Likewise.
49153         * doc/glibc-functions/wcstouq.texi: Likewise.
49154         * doc/glibc-functions/wmempcpy.texi: Likewise.
49155
49156 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
49157             Eric Blake  <ebb9@byu.net>
49158             Paolo Bonzini  <bonzini@gnu.org>
49159             Bruno Haible  <bruno@clisp.org>
49160
49161         Make c-stack work on Haiku.
49162         * lib/c-stack.c (SA_ONSTACK): Define fallback.
49163         (c_stack_action): Use SA_ONSTACK flag.
49164
49165 2008-12-22  Bruno Haible  <bruno@clisp.org>
49166
49167         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
49168
49169 2008-12-22  Bruno Haible  <bruno@clisp.org>
49170
49171         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
49172         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
49173         being overridden.
49174         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
49175         New macros.
49176         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
49177         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
49178         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
49179         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
49180
49181 2008-12-22  Bruno Haible  <bruno@clisp.org>
49182
49183         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
49184         from test code.
49185
49186 2008-12-22  Eric Blake  <ebb9@byu.net>
49187
49188         Avoid gcc warnings on cygwin.
49189         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
49190         Avoid unused variable.
49191         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
49192         Likewise.
49193
49194 2008-12-22  Bruno Haible  <bruno@clisp.org>
49195
49196         Remove HAVE_MBRTOWC conditionals.
49197         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
49198         (mbscasecmp): Assume mbrtowc function.
49199         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
49200         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
49201         * lib/mbschr.c: Include mbuiter.h unconditionally.
49202         (mbschr): Assume mbrtowc function.
49203         * lib/mbscspn.c: Include mbuiter.h unconditionally.
49204         (mbscspn): Assume mbrtowc function.
49205         * lib/mbslen.c: Include mbuiter.h unconditionally.
49206         (mbslen): Assume mbrtowc function.
49207         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
49208         (mbsncasecmp): Assume mbrtowc function.
49209         * lib/mbsnlen.c: Include mbiter.h unconditionally.
49210         (mbsnlen): Assume mbrtowc function.
49211         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
49212         (mbspbrk): Assume mbrtowc function.
49213         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
49214         (mbspcasecmp): Assume mbrtowc function.
49215         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
49216         (mbsrchr): Assume mbrtowc function.
49217         * lib/mbssep.c: Include mbuiter.h unconditionally.
49218         (mbssep): Assume mbrtowc function.
49219         * lib/mbsspn.c: Include mbuiter.h unconditionally.
49220         (mbsspn): Assume mbrtowc function.
49221         * lib/mbsstr.c: Include mbuiter.h unconditionally.
49222         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
49223         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
49224         (mbstok_r): Assume mbrtowc function.
49225         * lib/propername.c: Include mbuiter.h unconditionally.
49226         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
49227         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
49228         (trim2): Assume mbrtowc function.
49229         * lib/mbswidth.c (mbsinit): Remove fallback definition.
49230         (mbsnwidth): Assume mbrtowc function.
49231         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
49232         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
49233         fallback definitions.
49234         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
49235
49236 2008-12-22  Bruno Haible  <bruno@clisp.org>
49237
49238         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
49239
49240 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
49241
49242         * modules/regex: Request emulations for the mb*/wc* functions we need.
49243         * m4/regex.m4: Don't look for those functions here.
49244         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
49245
49246 2008-12-22  Bruno Haible  <bruno@clisp.org>
49247
49248         * modules/fnmatch (Depends-on): Remove duplicated dependency.
49249
49250 2008-12-21  Bruno Haible  <bruno@clisp.org>
49251
49252         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
49253         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
49254         (Include): Remove conditionalization.
49255         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
49256         (Include): Remove conditionalization.
49257         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
49258         (Include): Remove conditionalization.
49259         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
49260         * m4/mbfile.m4 (gl_MBFILE): Likewise.
49261         * NEWS: Mention the change.
49262         Reported by Alan Hourihane <alanh@fairlite.co.uk>
49263         via Sergey Poznyakoff <gray@gnu.org.ua>.
49264
49265 2008-12-21  Bruno Haible  <bruno@clisp.org>
49266
49267         * MODULES.html.sh (Extended multibyte and wide character utilities
49268         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
49269         wcrtomb, wcsrtombs.
49270         (Support for systems lacking POSIX:2008): Add accept, bind, close,
49271         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
49272         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
49273         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
49274
49275 2008-12-21  Bruno Haible  <bruno@clisp.org>
49276
49277         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
49278
49279 2008-12-21  Bruno Haible  <bruno@clisp.org>
49280
49281         * modules/wcsnrtombs-tests: New file.
49282         * tests/test-wcsnrtombs1.sh: New file.
49283         * tests/test-wcsnrtombs2.sh: New file.
49284         * tests/test-wcsnrtombs3.sh: New file.
49285         * tests/test-wcsnrtombs4.sh: New file.
49286         * tests/test-wcsnrtombs.c: New file.
49287
49288         New module 'wcsnrtombs'.
49289         * lib/wchar.in.h (wcsnrtombs): New declaration.
49290         * lib/wcsnrtombs.c: New file.
49291         * lib/wcsrtombs-state.c: New file.
49292         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
49293         (internal_state): Remove variable.
49294         * m4/wcsnrtombs.m4: New file.
49295         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
49296         compilation units.
49297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
49298         HAVE_WCSNRTOMBS.
49299         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
49300         HAVE_WCSNRTOMBS.
49301         * modules/wcsnrtombs: New file.
49302         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
49303         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
49304
49305 2008-12-21  Bruno Haible  <bruno@clisp.org>
49306
49307         * modules/wcsrtombs-tests: New file.
49308         * tests/test-wcsrtombs1.sh: New file.
49309         * tests/test-wcsrtombs2.sh: New file.
49310         * tests/test-wcsrtombs3.sh: New file.
49311         * tests/test-wcsrtombs4.sh: New file.
49312         * tests/test-wcsrtombs.c: New file.
49313
49314         New module 'wcsrtombs'.
49315         * lib/wchar.in.h (wcsrtombs): New declaration.
49316         * lib/wcsrtombs.c: New file.
49317         * m4/wcsrtombs.m4: New file.
49318         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49319         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49320         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49321         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49322         * modules/wcsrtombs: New file.
49323         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49324         bugs.
49325
49326 2008-12-21  Bruno Haible  <bruno@clisp.org>
49327
49328         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49329         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49330         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49331         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49332         if not correct.
49333         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49334         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49335         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49336         m4/locale-zh.m4, m4/codeset.m4.
49337         * doc/posix-functions/wcrtomb.texi: Document the bug.
49338
49339 2008-12-21  Bruno Haible  <bruno@clisp.org>
49340
49341         Work around a btowc() bug on IRIX 6.5.
49342         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49343         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49344         REPLACE_WTOBC if not.
49345         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49346         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49347         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49348
49349 2008-12-21  Bruno Haible  <bruno@clisp.org>
49350
49351         * modules/wcrtomb-tests: New file.
49352         * tests/test-wcrtomb.sh: New file.
49353         * tests/test-wcrtomb.c: New file.
49354
49355         New module 'wcrtomb'.
49356         * lib/wchar.in.h (wcrtomb): New declaration.
49357         * lib/wcrtomb.c: New file.
49358         * m4/wcrtomb.m4: New file.
49359         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49360         HAVE_WCRTOMB.
49361         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49362         HAVE_WCRTOMB.
49363         * modules/wcrtomb: New file.
49364         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49365
49366 2008-12-21  Bruno Haible  <bruno@clisp.org>
49367
49368         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49369         * modules/mbsrtowcs (Files): Likewise.
49370         * modules/wctob (Files): Likewise.
49371         * modules/c-strcase-tests (Files): Likewise.
49372         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49373         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49374         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49375         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49376         * modules/vasnprintf-posix-tests (Files): Likewise.
49377
49378 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49379
49380         gitlog-to-changelog: pass all command-line arguments to git-log
49381         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49382         it is sometimes convenient to filter the commits in various ways.
49383         gitlog-to-changelog only allows --since to specify a start date,
49384         but git-log itself supports many other filtering mechanisms.
49385         At the moment, I want to filter by branch name.  Rather than
49386         adding a --branch option to gitlog-to-changelog, it seems more
49387         flexible to simply pass all options directly to git-log and let
49388         git do the work.  Notice that this effectively makes --since a
49389         redundant option for gitlog-to-changelog, but removing it would
49390         require current usage to change since calls would then require
49391         an additional '--'.
49392
49393 2008-12-21  Bruno Haible  <bruno@clisp.org>
49394
49395         * modules/mbsnrtowcs-tests: New file.
49396         * tests/test-mbsnrtowcs1.sh: New file.
49397         * tests/test-mbsnrtowcs2.sh: New file.
49398         * tests/test-mbsnrtowcs3.sh: New file.
49399         * tests/test-mbsnrtowcs4.sh: New file.
49400         * tests/test-mbsnrtowcs.c: New file.
49401
49402         New module 'mbsnrtowcs'.
49403         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49404         * lib/mbsnrtowcs.c: New file.
49405         * lib/mbsrtowcs-state.c: New file.
49406         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49407         (internal_state): Remove variable.
49408         * m4/mbsnrtowcs.m4: New file.
49409         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49410         compilation units.
49411         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49412         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49413         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49414         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49415         * modules/mbsnrtowcs: New file.
49416         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49417         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49418         portability problem.
49419
49420 2008-12-21  Bruno Haible  <bruno@clisp.org>
49421
49422         Work around mbsrtowcs bug.
49423         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49424         (gl_FUNC_MBSRTOWCS): Invoke it.
49425         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49426         m4/locale-zh.m4.
49427         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49428
49429 2008-12-21  Bruno Haible  <bruno@clisp.org>
49430
49431         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49432
49433 2008-12-21  Bruno Haible  <bruno@clisp.org>
49434
49435         Update doc for AIX.
49436         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49437         16-bit wchar_t type.
49438         * doc/posix-functions/btowc.texi: Likewise.
49439         * doc/posix-functions/fgetwc.texi: Likewise.
49440         * doc/posix-functions/fgetws.texi: Likewise.
49441         * doc/posix-functions/fputwc.texi: Likewise.
49442         * doc/posix-functions/fputws.texi: Likewise.
49443         * doc/posix-functions/fwide.texi: Likewise.
49444         * doc/posix-functions/fwprintf.texi: Likewise.
49445         * doc/posix-functions/fwscanf.texi: Likewise.
49446         * doc/posix-functions/getwchar.texi: Likewise.
49447         * doc/posix-functions/getwc.texi: Likewise.
49448         * doc/posix-functions/iswalnum.texi: Likewise.
49449         * doc/posix-functions/iswalpha.texi: Likewise.
49450         * doc/posix-functions/iswblank.texi: Likewise.
49451         * doc/posix-functions/iswcntrl.texi: Likewise.
49452         * doc/posix-functions/iswctype.texi: Likewise.
49453         * doc/posix-functions/iswdigit.texi: Likewise.
49454         * doc/posix-functions/iswgraph.texi: Likewise.
49455         * doc/posix-functions/iswlower.texi: Likewise.
49456         * doc/posix-functions/iswprint.texi: Likewise.
49457         * doc/posix-functions/iswpunct.texi: Likewise.
49458         * doc/posix-functions/iswspace.texi: Likewise.
49459         * doc/posix-functions/iswupper.texi: Likewise.
49460         * doc/posix-functions/iswxdigit.texi: Likewise.
49461         * doc/posix-functions/mbrtowc.texi: Likewise.
49462         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49463         * doc/posix-functions/mbstowcs.texi: Likewise.
49464         * doc/posix-functions/mbtowc.texi: Likewise.
49465         * doc/posix-functions/putwchar.texi: Likewise.
49466         * doc/posix-functions/putwc.texi: Likewise.
49467         * doc/posix-functions/swprintf.texi: Likewise.
49468         * doc/posix-functions/tolower.texi: Likewise.
49469         * doc/posix-functions/toupper.texi: Likewise.
49470         * doc/posix-functions/towctrans.texi: Likewise.
49471         * doc/posix-functions/ungetwc.texi: Likewise.
49472         * doc/posix-functions/vswprintf.texi: Likewise.
49473         * doc/posix-functions/wcrtomb.texi: Likewise.
49474         * doc/posix-functions/wcscat.texi: Likewise.
49475         * doc/posix-functions/wcschr.texi: Likewise.
49476         * doc/posix-functions/wcscmp.texi: Likewise.
49477         * doc/posix-functions/wcscoll.texi: Likewise.
49478         * doc/posix-functions/wcscpy.texi: Likewise.
49479         * doc/posix-functions/wcscspn.texi: Likewise.
49480         * doc/posix-functions/wcsftime.texi: Likewise.
49481         * doc/posix-functions/wcslen.texi: Likewise.
49482         * doc/posix-functions/wcsncat.texi: Likewise.
49483         * doc/posix-functions/wcsncmp.texi: Likewise.
49484         * doc/posix-functions/wcsncpy.texi: Likewise.
49485         * doc/posix-functions/wcspbrk.texi: Likewise.
49486         * doc/posix-functions/wcsrchr.texi: Likewise.
49487         * doc/posix-functions/wcsrtombs.texi: Likewise.
49488         * doc/posix-functions/wcsspn.texi: Likewise.
49489         * doc/posix-functions/wcsstr.texi: Likewise.
49490         * doc/posix-functions/wcstod.texi: Likewise.
49491         * doc/posix-functions/wcstof.texi: Likewise.
49492         * doc/posix-functions/wcstoimax.texi: Likewise.
49493         * doc/posix-functions/wcstok.texi: Likewise.
49494         * doc/posix-functions/wcstold.texi: Likewise.
49495         * doc/posix-functions/wcstoll.texi: Likewise.
49496         * doc/posix-functions/wcstol.texi: Likewise.
49497         * doc/posix-functions/wcstombs.texi: Likewise.
49498         * doc/posix-functions/wcstoull.texi: Likewise.
49499         * doc/posix-functions/wcstoul.texi: Likewise.
49500         * doc/posix-functions/wcstoumax.texi: Likewise.
49501         * doc/posix-functions/wcswidth.texi: Likewise.
49502         * doc/posix-functions/wcsxfrm.texi: Likewise.
49503         * doc/posix-functions/wctob.texi: Likewise.
49504         * doc/posix-functions/wctomb.texi: Likewise.
49505         * doc/posix-functions/wctrans.texi: Likewise.
49506         * doc/posix-functions/wctype.texi: Likewise.
49507         * doc/posix-functions/wcwidth.texi: Likewise.
49508         * doc/posix-functions/wmemchr.texi: Likewise.
49509         * doc/posix-functions/wmemcmp.texi: Likewise.
49510         * doc/posix-functions/wmemcpy.texi: Likewise.
49511         * doc/posix-functions/wmemmove.texi: Likewise.
49512         * doc/posix-functions/wmemset.texi: Likewise.
49513         * doc/posix-functions/wprintf.texi: Likewise.
49514         * doc/posix-functions/wscanf.texi: Likewise.
49515
49516 2008-12-21  Bruno Haible  <bruno@clisp.org>
49517
49518         Update doc for HP-UX 11.11.
49519         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49520         in HP-UX version 11.00, not in all versions of HP-UX 11.
49521         * doc/posix-functions/fwide.texi: Likewise.
49522         * doc/posix-functions/fwprintf.texi: Likewise.
49523         * doc/posix-functions/fwscanf.texi: Likewise.
49524         * doc/posix-functions/inet_ntop.texi: Likewise.
49525         * doc/posix-functions/inet_pton.texi: Likewise.
49526         * doc/posix-functions/mbrlen.texi: Likewise.
49527         * doc/posix-functions/mbrtowc.texi: Likewise.
49528         * doc/posix-functions/mbsinit.texi: Likewise.
49529         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49530         * doc/posix-functions/swprintf.texi: Likewise.
49531         * doc/posix-functions/swscanf.texi: Likewise.
49532         * doc/posix-functions/towctrans.texi: Likewise.
49533         * doc/posix-functions/vfwprintf.texi: Likewise.
49534         * doc/posix-functions/vswprintf.texi: Likewise.
49535         * doc/posix-functions/vwprintf.texi: Likewise.
49536         * doc/posix-functions/wcrtomb.texi: Likewise.
49537         * doc/posix-functions/wcsrtombs.texi: Likewise.
49538         * doc/posix-functions/wcsstr.texi: Likewise.
49539         * doc/posix-functions/wctob.texi: Likewise.
49540         * doc/posix-functions/wctrans.texi: Likewise.
49541         * doc/posix-functions/wmemchr.texi: Likewise.
49542         * doc/posix-functions/wmemcmp.texi: Likewise.
49543         * doc/posix-functions/wmemcpy.texi: Likewise.
49544         * doc/posix-functions/wmemmove.texi: Likewise.
49545         * doc/posix-functions/wmemset.texi: Likewise.
49546         * doc/posix-functions/wprintf.texi: Likewise.
49547         * doc/posix-functions/wscanf.texi: Likewise.
49548
49549 2008-12-21  Bruno Haible  <bruno@clisp.org>
49550
49551         Work around a portability problem.
49552         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49553         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49554
49555 2008-12-20  Bruno Haible  <bruno@clisp.org>
49556
49557         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49558         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49559         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49560         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49561         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49562
49563         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49564         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49565         set.
49566         (GNULIB_defined_mbstate_t): New macro.
49567         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49568         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49569         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49570         reuses the system's mbrtowc function but works around the bugs.
49571         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49572         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49573         macros.
49574         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49575         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49576         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49577         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49578         REPLACE_MBSINIT if mbsinit needs to be overridden.
49579         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49580         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49581         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49582         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49583         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49584         m4/locale-zh.m4.
49585         (Depends): Add mbsinit.
49586         * modules/mbsinit (Depends): Add mbrtowc.
49587         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49588
49589 2008-12-20  Bruno Haible  <bruno@clisp.org>
49590
49591         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49592         so that there are no conversion errors on AIX.
49593         * tests/test-mbsrtowcs.c (main): LIkewise.
49594
49595 2008-12-20  Bruno Haible  <bruno@clisp.org>
49596
49597         Work around wctob bug on Solaris <= 9.
49598         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49599         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49601         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49602         * modules/wctob (Files): Add m4/locale-fr.m4.
49603         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49604
49605 2008-12-20  Bruno Haible  <bruno@clisp.org>
49606
49607         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49608         /dev/null.
49609         * tests/test-select-in.sh: Likewise.
49610         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49611
49612 2008-12-20  Bruno Haible  <bruno@clisp.org>
49613
49614         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49615         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49616         Cygwin 1.5.x.
49617
49618 2008-12-20  Bruno Haible  <bruno@clisp.org>
49619
49620         Ensure mbstate_t is defined on HP-UX 11.11.
49621         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49622         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49623         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49624         AC_USE_SYSTEM_EXTENSIONS.
49625         * modules/fnmatch (Depends-on): Add extensions.
49626         * modules/mbrlen (Depends-on): Likewise.
49627         * modules/mbrtowc (Depends-on): Likewise.
49628         * modules/mbsinit (Depends-on): Likewise.
49629         * modules/mbsrtowcs (Depends-on): Likewise.
49630         * modules/mbswidth (Depends-on): Likewise.
49631         * modules/quotearg (Depends-on): Likewise.
49632         * modules/strftime (Depends-on): Likewise.
49633
49634 2008-12-20  Bruno Haible  <bruno@clisp.org>
49635
49636         Ensure wctob is declared on IRIX 6.5.
49637         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49638         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49639         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49640         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49641         of HAVE_WCTOB.
49642         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49643         HAVE_WCTOB.
49644         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49645
49646 2008-12-19  Bruno Haible  <bruno@clisp.org>
49647
49648         * modules/mbsrtowcs-tests: New file.
49649         * tests/test-mbsrtowcs1.sh: New file.
49650         * tests/test-mbsrtowcs2.sh: New file.
49651         * tests/test-mbsrtowcs3.sh: New file.
49652         * tests/test-mbsrtowcs4.sh: New file.
49653         * tests/test-mbsrtowcs.c: New file.
49654
49655         New module 'mbsrtowcs'.
49656         * lib/wchar.in.h (mbsrtowcs): New declaration.
49657         * lib/mbsrtowcs.c: New file.
49658         * m4/mbsrtowcs.m4: New file.
49659         * modules/mbsrtowcs: New file.
49660         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49661         HAVE_MBSRTOWCS.
49662         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49663         HAVE_MBSRTOWCS.
49664         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49665
49666 2008-12-19  Bruno Haible  <bruno@clisp.org>
49667
49668         New module 'mbrlen'.
49669         * lib/wchar.in.h (mbrlen): New declaration.
49670         * lib/mbrlen.c: New file.
49671         * m4/mbrlen.m4: New file.
49672         * modules/mbrlen: New file.
49673         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49674         HAVE_MBRLEN.
49675         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49676         HAVE_MBRLEN.
49677         * doc/posix-functions/mbrlen.texi: Document the new module.
49678
49679 2008-12-19  Bruno Haible  <bruno@clisp.org>
49680
49681         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49682         * modules/mbrtowc (Depends-on): Add verify.
49683         Suggested by Paul Eggert.
49684
49685 2008-12-18  Bruno Haible  <bruno@clisp.org>
49686
49687         * modules/mbsinit-tests: New file.
49688         * tests/test-mbsinit.sh: New file.
49689         * tests/test-mbsinit.c: New file.
49690
49691 2008-12-18  Bruno Haible  <bruno@clisp.org>
49692
49693         * modules/mbrtowc-tests: New file.
49694         * tests/test-mbrtowc1.sh: New file.
49695         * tests/test-mbrtowc2.sh: New file.
49696         * tests/test-mbrtowc3.sh: New file.
49697         * tests/test-mbrtowc4.sh: New file.
49698         * tests/test-mbrtowc.c: New file.
49699
49700         New module 'mbrtowc'.
49701         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49702         mbsinit and mbrtowc.
49703         (mbrtowc): New declaration.
49704         * lib/mbrtowc.c: New file.
49705         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49706         * modules/mbrtowc: New file.
49707         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49708         HAVE_MBRTOWC.
49709         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49710         HAVE_MBRTOWC.
49711         * doc/posix-functions/mbrtowc.texi: Document the new module.
49712
49713 2008-12-18  Bruno Haible  <bruno@clisp.org>
49714
49715         New module 'wctob'.
49716         * lib/wchar.in.h (wctob): New declaration.
49717         * lib/wctob.c: New file.
49718         * m4/wctob.m4: New file.
49719         * modules/wctob: New file.
49720         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49721         HAVE_WCTOB.
49722         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49723         * doc/posix-functions/wctob.texi: Document the new module.
49724
49725 2008-12-18  Bruno Haible  <bruno@clisp.org>
49726
49727         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49728         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49729
49730 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49731
49732         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49733         G. Christensen" <tgc@jupiterrise.com>.
49734
49735         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49736         G. Christensen" <tgc@jupiterrise.com>.
49737
49738         * lib/flock.c: Need to include string.h.  Reported by "Tom
49739         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49740         <ebb9@byu.net>.
49741
49742 2008-12-18  Bruno Haible  <bruno@clisp.org>
49743
49744         * m4/locale-ja.m4: New file, from GNU gettext.
49745
49746 2008-12-17  Bruno Haible  <bruno@clisp.org>
49747
49748         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49749         Suggested by Eric Blake.
49750
49751 2008-12-17  Bruno Haible  <bruno@clisp.org>
49752
49753         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49754
49755 2008-12-17  Bruno Haible  <bruno@clisp.org>
49756
49757         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49758         * modules/mbsinit (Depends-on): Add verify.
49759         Suggested by Paul Eggert.
49760
49761 2008-12-17  Bruno Haible  <bruno@clisp.org>
49762
49763         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49764         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49765         gl_FUNC_MBRTOWC.
49766         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49767         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49768         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49769         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49770         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49771         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49772         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49773         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49774         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49775         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49776         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49777         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49778         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49779         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49780         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49781         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49782         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49783         * modules/trim (configure.ac): Likewise.
49784
49785 2008-12-17  Bruno Haible  <bruno@clisp.org>
49786
49787         * modules/btowc-tests: New file.
49788         * tests/test-btowc1.sh: New file.
49789         * tests/test-btowc2.sh: New file.
49790         * tests/test-btowc.c: New file.
49791
49792         New module 'btowc'.
49793         * lib/wchar.in.h (btowc): New declaration.
49794         * lib/btowc.c: New file.
49795         * m4/btowc.m4: New file.
49796         * modules/btowc: New file.
49797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49798         HAVE_BTOWC.
49799         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49800         * doc/posix-functions/btowc.texi: Document the new module.
49801
49802 2008-12-17  Bruno Haible  <bruno@clisp.org>
49803
49804         New module 'mbsinit'.
49805         * lib/wchar.in.h (mbsinit): New declaration.
49806         * lib/mbsinit.c: New file.
49807         * m4/mbsinit.m4: New file.
49808         * modules/mbsinit: New file.
49809         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49810         HAVE_MBSINIT.
49811         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49812         HAVE_MBSINIT.
49813         * doc/posix-functions/mbsinit.texi: Document the new module.
49814
49815 2008-12-16  Bruno Haible  <bruno@clisp.org>
49816
49817         * lib/unistd.in.h: Add comment.
49818         * tests/test-environ.c: Don't include <stdlib.h>.
49819
49820 2008-12-16  Bruno Haible  <bruno@clisp.org>
49821
49822         * lib/parse-duration.h (parse_duration): Document return value
49823         convention.
49824         * lib/parse-duration.c: Include specification header first. Add
49825         comments.
49826         (_): Remove macro.
49827         (parse_year_month_day, parse_hour_minute_second): Move side effects
49828         outside of strchr call.
49829         (parse_non_iso8601): Move side effects outside of isspace call.
49830         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49831         call.
49832
49833 2008-12-16  Bruno Haible  <bruno@clisp.org>
49834
49835         * tests/test-parse-duration.sh: Produce no output when the test
49836         succeeds.
49837
49838 2008-12-16  Bruno Haible  <bruno@clisp.org>
49839
49840         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49841         expressions.
49842
49843 2008-12-15  Bruno Haible  <bruno@clisp.org>
49844
49845         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49846         * doc/glibc-functions/flistxattr.texi: Likewise.
49847         * doc/glibc-functions/fopencookie.texi: Likewise.
49848         * doc/glibc-functions/fremovexattr.texi: Likewise.
49849         * doc/glibc-functions/fsetxattr.texi: Likewise.
49850         * doc/glibc-functions/getxattr.texi: Likewise.
49851         * doc/glibc-functions/lgetxattr.texi: Likewise.
49852         * doc/glibc-functions/listxattr.texi: Likewise.
49853         * doc/glibc-functions/llistxattr.texi: Likewise.
49854         * doc/glibc-functions/lremovexattr.texi: Likewise.
49855         * doc/glibc-functions/lsetxattr.texi: Likewise.
49856         * doc/glibc-functions/removexattr.texi: Likewise.
49857         * doc/glibc-functions/setxattr.texi: Likewise.
49858         * doc/posix-functions/open_memstream.texi: Likewise.
49859
49860 2008-12-15  Eric Blake  <ebb9@byu.net>
49861
49862         Update doc for cygwin 1.7.
49863         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49864         functions.
49865         * doc/posix-functions/fchmodat.texi: Likewise.
49866         * doc/posix-functions/fchownat.texi: Likewise.
49867         * doc/posix-functions/fdopendir.texi: Likewise.
49868         * doc/posix-functions/fmemopen.texi: Likewise.
49869         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49870         * doc/posix-functions/fstatat.texi: Likewise.
49871         * doc/posix-functions/futimens.texi: Likewise.
49872         * doc/posix-functions/gai_strerror.texi: Likewise.
49873         * doc/posix-functions/getaddrinfo.texi: Likewise.
49874         * doc/posix-functions/getnameinfo.texi: Likewise.
49875         * doc/posix-functions/if_freenameindex.texi: Likewise.
49876         * doc/posix-functions/if_indextoname.texi: Likewise.
49877         * doc/posix-functions/if_nameindex.texi: Likewise.
49878         * doc/posix-functions/if_nametoindex.texi: Likewise.
49879         * doc/posix-functions/insque.texi: Likewise.
49880         * doc/posix-functions/linkat.texi: Likewise.
49881         * doc/posix-functions/llrint.texi: Likewise.
49882         * doc/posix-functions/llrintf.texi: Likewise.
49883         * doc/posix-functions/llrintl.texi: Likewise.
49884         * doc/posix-functions/lockf.texi: Likewise.
49885         * doc/posix-functions/lrintl.texi: Likewise.
49886         * doc/posix-functions/mkdirat.texi: Likewise.
49887         * doc/posix-functions/mkfifoat.texi: Likewise.
49888         * doc/posix-functions/mknodat.texi: Likewise.
49889         * doc/posix-functions/mq_close.texi: Likewise.
49890         * doc/posix-functions/mq_getattr.texi: Likewise.
49891         * doc/posix-functions/mq_notify.texi: Likewise.
49892         * doc/posix-functions/mq_open.texi: Likewise.
49893         * doc/posix-functions/mq_receive.texi: Likewise.
49894         * doc/posix-functions/mq_send.texi: Likewise.
49895         * doc/posix-functions/mq_setattr.texi: Likewise.
49896         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49897         * doc/posix-functions/mq_timedsend.texi: Likewise.
49898         * doc/posix-functions/mq_unlink.texi: Likewise.
49899         * doc/posix-functions/open_memstream.texi: Likewise.
49900         * doc/posix-functions/openat.texi: Likewise.
49901         * doc/posix-functions/posix_fadvise.texi: Likewise.
49902         * doc/posix-functions/posix_fallocate.texi: Likewise.
49903         * doc/posix-functions/posix_madvise.texi: Likewise.
49904         * doc/posix-functions/posix_memalign.texi: Likewise.
49905         * doc/posix-functions/posix_openpt.texi: Likewise.
49906         * doc/posix-functions/readlinkat.texi: Likewise.
49907         * doc/posix-functions/remque.texi: Likewise.
49908         * doc/posix-functions/renameat.texi: Likewise.
49909         * doc/posix-functions/rintl.texi: Likewise.
49910         * doc/posix-functions/sem_unlink.texi: Likewise.
49911         * doc/posix-functions/shm_open.texi: Likewise.
49912         * doc/posix-functions/shm_unlink.texi: Likewise.
49913         * doc/posix-functions/signgam.texi: Likewise.
49914         * doc/posix-functions/sigset.texi: Likewise.
49915         * doc/posix-functions/stpcpy.texi: Likewise.
49916         * doc/posix-functions/stpncpy.texi: Likewise.
49917         * doc/posix-functions/strerror.texi: Likewise.
49918         * doc/posix-functions/strtod.texi: Likewise.
49919         * doc/posix-functions/symlinkat.texi: Likewise.
49920         * doc/posix-functions/unlinkat.texi: Likewise.
49921         * doc/posix-functions/utimensat.texi: Likewise.
49922         * doc/glibc-functions/bindresvport.texi: Likewise.
49923         * doc/glibc-functions/dn_expand.texi: Likewise.
49924         * doc/glibc-functions/exp10.texi: Likewise.
49925         * doc/glibc-functions/exp10f.texi: Likewise.
49926         * doc/glibc-functions/fgetxattr.texi: Likewise.
49927         * doc/glibc-functions/flistxattr.texi: Likewise.
49928         * doc/glibc-functions/fopencookie.texi: Likewise.
49929         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49930         * doc/glibc-functions/fremovexattr.texi: Likewise.
49931         * doc/glibc-functions/fsetxattr.texi: Likewise.
49932         * doc/glibc-functions/getifaddrs.texi: Likewise.
49933         * doc/glibc-functions/getxattr.texi: Likewise.
49934         * doc/glibc-functions/lgetxattr.texi: Likewise.
49935         * doc/glibc-functions/listxattr.texi: Likewise.
49936         * doc/glibc-functions/llistxattr.texi: Likewise.
49937         * doc/glibc-functions/lremovexattr.texi: Likewise.
49938         * doc/glibc-functions/lsetxattr.texi: Likewise.
49939         * doc/glibc-functions/pow10.texi: Likewise.
49940         * doc/glibc-functions/pow10f.texi: Likewise.
49941         * doc/glibc-functions/rcmd_af.texi: Likewise.
49942         * doc/glibc-functions/removexattr.texi: Likewise.
49943         * doc/glibc-functions/res_init.texi: Likewise.
49944         * doc/glibc-functions/res_mkquery.texi: Likewise.
49945         * doc/glibc-functions/res_query.texi: Likewise.
49946         * doc/glibc-functions/res_querydomain.texi: Likewise.
49947         * doc/glibc-functions/res_send.texi: Likewise.
49948         * doc/glibc-functions/rresvport_af.texi: Likewise.
49949         * doc/glibc-functions/setxattr.texi: Likewise.
49950         * doc/glibc-functions/strcasestr.texi: Likewise.
49951
49952 2008-12-15  Bruno Haible  <bruno@clisp.org>
49953
49954         Fix compilation error on OSF/1 4.0.
49955         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49956         <sys/time.h>, simply delegate to the system header.
49957         Reported by Daniel Richard G. <oss@teragram.com>.
49958
49959 2008-12-15  Bruno Haible  <bruno@clisp.org>
49960
49961         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49962         * doc/posix-functions/fchmodat.texi: Likewise.
49963         * doc/posix-functions/fchownat.texi: Likewise.
49964         * doc/posix-functions/fdopendir.texi: Likewise.
49965         * doc/posix-functions/fstatat.texi: Likewise.
49966         * doc/posix-functions/mkdirat.texi: Likewise.
49967         * doc/posix-functions/unlinkat.texi: Likewise.
49968
49969 2008-12-14  Bruno Haible  <bruno@clisp.org>
49970
49971         Update doc for POSIX:2008.
49972         * doc/posix-functions/faccessat.texi: New file.
49973         * doc/posix-functions/fchmodat.texi: New file.
49974         * doc/posix-functions/fchownat.texi: New file.
49975         * doc/posix-functions/fdopendir.texi: New file.
49976         * doc/posix-functions/fstatat.texi: New file.
49977         * doc/posix-functions/futimens.texi: New file.
49978         * doc/posix-functions/linkat.texi: New file.
49979         * doc/posix-functions/mkdirat.texi: New file.
49980         * doc/posix-functions/mkfifoat.texi: New file.
49981         * doc/posix-functions/mknodat.texi: New file.
49982         * doc/posix-functions/open_wmemstream.texi: New file.
49983         * doc/posix-functions/openat.texi: New file.
49984         * doc/posix-functions/psiginfo.texi: New file.
49985         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49986         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49987         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49988         * doc/posix-functions/readlinkat.texi: New file.
49989         * doc/posix-functions/renameat.texi: New file.
49990         * doc/posix-functions/strerror_l.texi: New file.
49991         * doc/posix-functions/symlinkat.texi: New file.
49992         * doc/posix-functions/unlinkat.texi: New file.
49993         * doc/posix-functions/utimensat.texi: New file.
49994         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49995
49996 2008-12-14  Bruno Haible  <bruno@clisp.org>
49997
49998         Update doc for POSIX:2008.
49999         * doc/posix-functions/alphasort.texi: Renamed from
50000         doc/glibc-functions/alphasort.texi.
50001         * doc/posix-functions/dirfd.texi: Renamed from
50002         doc/glibc-functions/dirfd.texi.
50003         * doc/posix-functions/dprintf.texi: Renamed from
50004         doc/glibc-functions/dprintf.texi.
50005         * doc/posix-functions/duplocale.texi: Renamed from
50006         doc/glibc-functions/duplocale.texi.
50007         * doc/posix-functions/fexecve.texi: Renamed from
50008         doc/glibc-functions/fexecve.texi.
50009         * doc/posix-functions/fmemopen.texi: Renamed from
50010         doc/glibc-functions/fmemopen.texi.
50011         * doc/posix-functions/freelocale.texi: Renamed from
50012         doc/glibc-functions/freelocale.texi.
50013         * doc/posix-functions/getdate_err.texi: Renamed from
50014         doc/glibc-functions/getdate_err.texi.
50015         * doc/posix-functions/isalnum_l.texi: Renamed from
50016         doc/glibc-functions/isalnum_l.texi.
50017         * doc/posix-functions/isalpha_l.texi: Renamed from
50018         doc/glibc-functions/isalpha_l.texi.
50019         * doc/posix-functions/isblank_l.texi: Renamed from
50020         doc/glibc-functions/isblank_l.texi.
50021         * doc/posix-functions/iscntrl_l.texi: Renamed from
50022         doc/glibc-functions/iscntrl_l.texi.
50023         * doc/posix-functions/isdigit_l.texi: Renamed from
50024         doc/glibc-functions/isdigit_l.texi.
50025         * doc/posix-functions/isgraph_l.texi: Renamed from
50026         doc/glibc-functions/isgraph_l.texi.
50027         * doc/posix-functions/islower_l.texi: Renamed from
50028         doc/glibc-functions/islower_l.texi.
50029         * doc/posix-functions/isprint_l.texi: Renamed from
50030         doc/glibc-functions/isprint_l.texi.
50031         * doc/posix-functions/ispunct_l.texi: Renamed from
50032         doc/glibc-functions/ispunct_l.texi.
50033         * doc/posix-functions/isspace_l.texi: Renamed from
50034         doc/glibc-functions/isspace_l.texi.
50035         * doc/posix-functions/isupper_l.texi: Renamed from
50036         doc/glibc-functions/isupper_l.texi.
50037         * doc/posix-functions/iswalnum_l.texi: Renamed from
50038         doc/glibc-functions/iswalnum_l.texi.
50039         * doc/posix-functions/iswalpha_l.texi: Renamed from
50040         doc/glibc-functions/iswalpha_l.texi.
50041         * doc/posix-functions/iswblank_l.texi: Renamed from
50042         doc/glibc-functions/iswblank_l.texi.
50043         * doc/posix-functions/iswcntrl_l.texi: Renamed from
50044         doc/glibc-functions/iswcntrl_l.texi.
50045         * doc/posix-functions/iswctype_l.texi: Renamed from
50046         doc/glibc-functions/iswctype_l.texi.
50047         * doc/posix-functions/iswdigit_l.texi: Renamed from
50048         doc/glibc-functions/iswdigit_l.texi.
50049         * doc/posix-functions/iswgraph_l.texi: Renamed from
50050         doc/glibc-functions/iswgraph_l.texi.
50051         * doc/posix-functions/iswlower_l.texi: Renamed from
50052         doc/glibc-functions/iswlower_l.texi.
50053         * doc/posix-functions/iswprint_l.texi: Renamed from
50054         doc/glibc-functions/iswprint_l.texi.
50055         * doc/posix-functions/iswpunct_l.texi: Renamed from
50056         doc/glibc-functions/iswpunct_l.texi.
50057         * doc/posix-functions/iswspace_l.texi: Renamed from
50058         doc/glibc-functions/iswspace_l.texi.
50059         * doc/posix-functions/iswupper_l.texi: Renamed from
50060         doc/glibc-functions/iswupper_l.texi.
50061         * doc/posix-functions/iswxdigit_l.texi: Renamed from
50062         doc/glibc-functions/iswxdigit_l.texi.
50063         * doc/posix-functions/isxdigit_l.texi: Renamed from
50064         doc/glibc-functions/isxdigit_l.texi.
50065         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
50066         doc/glibc-functions/mbsnrtowcs.texi.
50067         * doc/posix-functions/mkdtemp.texi: Renamed from
50068         doc/glibc-functions/mkdtemp.texi.
50069         * doc/posix-functions/newlocale.texi: Renamed from
50070         doc/glibc-functions/newlocale.texi.
50071         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
50072         doc/glibc-functions/nl_langinfo_l.texi.
50073         * doc/posix-functions/open_memstream.texi: Renamed from
50074         doc/glibc-functions/open_memstream.texi.
50075         * doc/posix-functions/opterr.texi: Renamed from
50076         doc/glibc-functions/opterr.texi.
50077         * doc/posix-functions/optind.texi: Renamed from
50078         doc/glibc-functions/optind.texi.
50079         * doc/posix-functions/optopt.texi: Renamed from
50080         doc/glibc-functions/optopt.texi.
50081         * doc/posix-functions/psignal.texi: Renamed from
50082         doc/glibc-functions/psignal.texi.
50083         * doc/posix-functions/scandir.texi: Renamed from
50084         doc/glibc-functions/scandir.texi.
50085         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
50086         doc/glibc-functions/sched_get_priority_min.texi.
50087         * doc/posix-functions/signgam.texi: Renamed from
50088         doc/glibc-functions/signgam.texi.
50089         * doc/posix-functions/stpcpy.texi: Renamed from
50090         doc/glibc-functions/stpcpy.texi.
50091         * doc/posix-functions/stpncpy.texi: Renamed from
50092         doc/glibc-functions/stpncpy.texi.
50093         * doc/posix-functions/strcasecmp_l.texi: Renamed from
50094         doc/glibc-functions/strcasecmp_l.texi.
50095         * doc/posix-functions/strcoll_l.texi: Renamed from
50096         doc/glibc-functions/strcoll_l.texi.
50097         * doc/posix-functions/strfmon_l.texi: Renamed from
50098         doc/glibc-functions/strfmon_l.texi.
50099         * doc/posix-functions/strftime_l.texi: Renamed from
50100         doc/glibc-functions/strftime_l.texi.
50101         * doc/posix-functions/strncasecmp_l.texi: Renamed from
50102         doc/glibc-functions/strncasecmp_l.texi.
50103         * doc/posix-functions/strndup.texi: Renamed from
50104         doc/glibc-functions/strndup.texi.
50105         * doc/posix-functions/strnlen.texi: Renamed from
50106         doc/glibc-functions/strnlen.texi.
50107         * doc/posix-functions/strsignal.texi: Renamed from
50108         doc/glibc-functions/strsignal.texi.
50109         * doc/posix-functions/strxfrm_l.texi: Renamed from
50110         doc/glibc-functions/strxfrm_l.texi.
50111         * doc/posix-functions/timer_gettime.texi: Renamed from
50112         doc/glibc-functions/timer_gettime.texi.
50113         * doc/posix-functions/tolower_l.texi: Renamed from
50114         doc/glibc-functions/tolower_l.texi.
50115         * doc/posix-functions/toupper_l.texi: Renamed from
50116         doc/glibc-functions/toupper_l.texi.
50117         * doc/posix-functions/towctrans_l.texi: Renamed from
50118         doc/glibc-functions/towctrans_l.texi.
50119         * doc/posix-functions/towlower_l.texi: Renamed from
50120         doc/glibc-functions/towlower_l.texi.
50121         * doc/posix-functions/towupper_l.texi: Renamed from
50122         doc/glibc-functions/towupper_l.texi.
50123         * doc/posix-functions/uselocale.texi: Renamed from
50124         doc/glibc-functions/uselocale.texi.
50125         * doc/posix-functions/vdprintf.texi: Renamed from
50126         doc/glibc-functions/vdprintf.texi.
50127         * doc/posix-functions/wcpcpy.texi:
50128         Renamed from doc/glibc-functions/wcpcpy.texi.
50129         * doc/posix-functions/wcpncpy.texi: Renamed from
50130         doc/glibc-functions/wcpncpy.texi.
50131         * doc/posix-functions/wcscasecmp.texi: Renamed from
50132         doc/glibc-functions/wcscasecmp.texi.
50133         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
50134         doc/glibc-functions/wcscasecmp_l.texi.
50135         * doc/posix-functions/wcscoll_l.texi: Renamed from
50136         doc/glibc-functions/wcscoll_l.texi.
50137         * doc/posix-functions/wcsdup.texi: Renamed from
50138         doc/glibc-functions/wcsdup.texi.
50139         * doc/posix-functions/wcsncasecmp.texi: Renamed from
50140         doc/glibc-functions/wcsncasecmp.texi.
50141         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
50142         doc/glibc-functions/wcsncasecmp_l.texi.
50143         * doc/posix-functions/wcsnlen.texi: Renamed from
50144         doc/glibc-functions/wcsnlen.texi.
50145         * doc/posix-functions/wcsnrtombs.texi: Renamed from
50146         doc/glibc-functions/wcsnrtombs.texi.
50147         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
50148         doc/glibc-functions/wcsxfrm_l.texi.
50149         * doc/posix-functions/wctrans_l.texi: Renamed from
50150         doc/glibc-functions/wctrans_l.texi.
50151         * doc/posix-functions/wctype_l.texi: Renamed from
50152         doc/glibc-functions/wctype_l.texi.
50153         * doc/gnulib.texi (Function Substitutes): Add these subsections.
50154         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
50155         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
50156         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
50157         these subsections.
50158         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
50159         Remove sections.
50160
50161 2008-12-14  Bruno Haible  <bruno@clisp.org>
50162
50163         Update doc for POSIX:2008.
50164         * doc/posix-functions/*.texi: Update URL of POSIX specification.
50165
50166 2008-12-14  Bruno Haible  <bruno@clisp.org>
50167
50168         Update doc for POSIX:2008.
50169         * doc/pastposix-functions/bcmp.texi: Renamed from
50170         doc/posix-functions/bcmp.texi.
50171         * doc/pastposix-functions/bcopy.texi: Renamed from
50172         doc/posix-functions/bcopy.texi.
50173         * doc/pastposix-functions/bsd_signal.texi: Renamed from
50174         doc/posix-functions/bsd_signal.texi.
50175         * doc/pastposix-functions/bzero.texi: Renamed from
50176         doc/posix-functions/bzero.texi.
50177         * doc/pastposix-functions/ecvt.texi: Renamed from
50178         doc/posix-functions/ecvt.texi.
50179         * doc/pastposix-functions/fcvt.texi: Renamed from
50180         doc/posix-functions/fcvt.texi.
50181         * doc/pastposix-functions/ftime.texi: Renamed from
50182         doc/posix-functions/ftime.texi.
50183         * doc/pastposix-functions/gcvt.texi: Renamed from
50184         doc/posix-functions/gcvt.texi.
50185         * doc/pastposix-functions/getcontext.texi: Renamed from
50186         doc/posix-functions/getcontext.texi.
50187         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
50188         doc/posix-functions/gethostbyaddr.texi.
50189         * doc/pastposix-functions/gethostbyname.texi: Renamed from
50190         doc/posix-functions/gethostbyname.texi.
50191         * doc/pastposix-functions/getwd.texi: Renamed from
50192         doc/posix-functions/getwd.texi.
50193         * doc/pastposix-functions/h_errno.texi: Renamed from
50194         doc/posix-functions/h_errno.texi.
50195         * doc/pastposix-functions/index.texi: Renamed from
50196         doc/posix-functions/index.texi.
50197         * doc/pastposix-functions/makecontext.texi: Renamed from
50198         doc/posix-functions/makecontext.texi.
50199         * doc/pastposix-functions/mktemp.texi: Renamed from
50200         doc/posix-functions/mktemp.texi.
50201         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
50202         doc/posix-functions/pthread_attr_getstackaddr.texi.
50203         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
50204         doc/posix-functions/pthread_attr_setstackaddr.texi.
50205         * doc/pastposix-functions/rindex.texi: Renamed from
50206         doc/posix-functions/rindex.texi.
50207         * doc/pastposix-functions/scalb.texi: Renamed from
50208         doc/posix-functions/scalb.texi.
50209         * doc/pastposix-functions/setcontext.texi: Renamed from
50210         doc/posix-functions/setcontext.texi.
50211         * doc/pastposix-functions/swapcontext.texi: Renamed from
50212         doc/posix-functions/swapcontext.texi.
50213         * doc/pastposix-functions/ualarm.texi: Renamed from
50214         doc/posix-functions/ualarm.texi.
50215         * doc/pastposix-functions/usleep.texi: Renamed from
50216         doc/posix-functions/usleep.texi.
50217         * doc/pastposix-functions/vfork.texi: Renamed from
50218         doc/posix-functions/vfork.texi.
50219         * doc/pastposix-functions/wcswcs.texi: Renamed from
50220         doc/posix-functions/wcswcs.texi.
50221         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
50222         (Function Substitutes): Update.
50223
50224 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50225
50226         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
50227         m4/strerror.m4.
50228
50229 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50230             Bruno Haible  <bruno@clisp.org>
50231
50232         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
50233
50234 2008-12-13  Bruno Haible  <bruno@clisp.org>
50235
50236         * modules/strtoull (Depends-on): Remove unistd.
50237
50238 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50239
50240         * modules/strtoull (Depends-on): Add stdlib.
50241
50242 2008-12-11  Simon Josefsson  <simon@josefsson.org>
50243
50244         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
50245
50246 2008-12-10  Jim Meyering  <meyering@redhat.com>
50247
50248         gl_ASSERT: don't say assertions are disabled when they're not
50249         * m4/assert.m4 (gl_ASSERT): Do not make configure report
50250         "checking whether to enable assertions... no", when they are in
50251         fact enabled.  This is solely a bug in the output of configure.
50252         In spite of saying "no", NDEBUG was not defined in that case.
50253         Also, as noted by Eric Blake, leave assertions enabled upon
50254         --enable-assert=INVALID.
50255
50256 2008-12-10  Bruno Haible  <bruno@clisp.org>
50257
50258         Change MODULES.html to refer to POSIX:2008 where possible.
50259         * MODULES.html.sh (POSIX2008_URL): New variable.
50260         (posix_headers): Remove sys/timeb, ucontext.
50261         (posix2001_headers): New variable.
50262         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
50263         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
50264         index, makecontext, mktemp, pthread_attr_getstackaddr,
50265         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
50266         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
50267         (posix2001_functions): New variable.
50268         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
50269         otherwise.
50270
50271 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50272
50273         add missing include to parse-duration.c
50274         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
50275         * modules/parse-duration (Depends-on): Add xalloc.
50276
50277         fix sed script reading maint.mk
50278         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
50279         (syntax-check-rules): Use it.
50280
50281 2008-12-09  Bruno Haible  <bruno@clisp.org>
50282
50283         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
50284         MacOS X 10.4/PowerPC.
50285         Reported by Simon Josefsson.
50286
50287 2008-12-08  Jim Meyering  <meyering@redhat.com>
50288
50289         work around mingw's lack of some S_IF definitions
50290         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
50291         Reported by Simon Josefsson.
50292
50293 2008-12-08  Bruno Haible  <bruno@clisp.org>
50294
50295         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
50296         applied to variables. Needed on MacOS X 10.4/PowerPC.
50297         Reported by Simon Josefsson.
50298
50299 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
50300         and Eric Blake  <ebb9@byu.net>
50301
50302         assert: honor --enable-assert
50303         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
50304         order to honor --enable-assert, rather than treating it as a
50305         synonym for --disable-assert.
50306
50307 2008-12-08  Jim Meyering  <meyering@redhat.com>
50308
50309         * lib/posixtm.c: Remove now-useless declaration of mktime.
50310
50311         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50312
50313 2008-12-07  Bruno Haible  <bruno@clisp.org>
50314
50315         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50316         test_once): Mark functions as static.
50317         * tests/test-tls.c (test_tls): Likewise.
50318
50319 2008-12-07  Bruno Haible  <bruno@clisp.org>
50320
50321         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50322         iconv_register_autodetect.
50323
50324 2008-12-07  Jim Meyering  <meyering@redhat.com>
50325
50326         posixtm.c: avoid a warning
50327         * lib/posixtm.c (posixtime): Don't initialize tm0.
50328         It's no longer needed to placate gcc4's -Wuninitialized,
50329         and the attempt to placate would elicit a new warning.
50330
50331         unicodeio.c: mark unused parameters
50332         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50333         (fallback_failure_callback): Likewise.
50334
50335 2008-12-07  Bruno Haible  <bruno@clisp.org>
50336
50337         * gnulib-tool (func_create_testdir): When building the tests
50338         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50339         Reported by Simon Josefsson.
50340
50341 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50342
50343         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50344
50345 2008-12-06  Bruno Haible  <bruno@clisp.org>
50346
50347         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50348         Suggested by Eric Blake.
50349
50350 2008-12-06  Bruno Haible  <bruno@clisp.org>
50351
50352         Fix a c-stack test failure on MacOS X.
50353         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50354         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50355         handler for SIGBUS as well.
50356         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50357         install a signal handler for SIGBUS as well.
50358         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50359
50360 2008-12-06  Bruno Haible  <bruno@clisp.org>
50361
50362         Advocacy documentation.
50363         * doc/gnulib-intro.texi (Benefits): New section.
50364         * doc/gnulib.texi: Update.
50365
50366 2008-12-06  Bruno Haible  <bruno@clisp.org>
50367
50368         Document the 'manywarnings' module.
50369         * doc/manywarnings.texi: New file.
50370         * doc/gnulib.texi: Include it.
50371
50372 2008-12-05  Eric Blake  <ebb9@byu.net>
50373
50374         tests: silence some gcc warnings
50375         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50376         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50377         type mismatches.
50378
50379 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50380             Bruno Haible  <bruno@clisp.org>
50381
50382         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50383
50384 2008-11-29  Jim Meyering  <meyering@redhat.com>
50385
50386         unicodeio.c: mark unused parameters
50387         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50388         (fallback_failure_callback): Likewise.
50389
50390         fts: fix a thinko
50391         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50392         (set_stat_type): Return S_IF*-valued "type" directly.
50393         Prompted by James Youngman's spotting a related bug.
50394         Confirmed by further testing through find.
50395
50396         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50397         * lib/fts.c (D_TYPE): Define.
50398         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50399         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50400         (s_ifmt_shift_bits): New function.
50401         (set_stat_type): New function.
50402         (fts_build): When not calling fts_stat, call set_stat_type
50403         to propagate dirent.d_type info to fts_read caller.
50404         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50405         fts_statp->st_mode type information may be valid.
50406
50407 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50408
50409         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50410         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50411         <sds@gnu.org>.
50412
50413 2008-11-20  Bruno Haible  <bruno@clisp.org>
50414
50415         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50416         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50417         INCLUDE_NEXT.
50418         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50419         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50420         * modules/math (Makefile.am): Substitute
50421         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50422         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50423
50424 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50425             Bruno Haible  <bruno@clisp.org>
50426
50427         * lib/stdint.in.h: Define all type macros so that their expansion is
50428         a single typedef'ed token. Fixes a compilation failure in Boost which
50429         does "using ::int8_t;".
50430
50431 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50432
50433         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50434         gl_MANYWARN_ALL_GCC.
50435         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50436         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50437         * modules/manywarnings: New file.
50438         * MODULES.html.sh: Mention manywarnings module.
50439
50440 2008-11-18  Bruno Haible  <bruno@clisp.org>
50441
50442         * doc/gnulib-tool.texi (Unit tests): New section.
50443
50444 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50445
50446         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50447         paths like 'lib/po/foo.po'.
50448
50449 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50450
50451         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50452         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50453
50454 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50455
50456         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50457         parameter works.
50458
50459 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50460
50461         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50462
50463 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50464
50465         * modules/parse-duration-tests: New file.
50466         * tests/test-parse-duration.sh: New file.
50467         * tests/test-parse-duration.c: New file.
50468
50469         New module 'parse-duration'.
50470         * lib/parse-duration.h: New file.
50471         * lib/parse-duration.c: New file.
50472         * modules/parse-duration: New file.
50473
50474 2008-11-17  Bruno Haible  <bruno@clisp.org>
50475
50476         * tests/test-select-out.sh: Comment out the first pipe test.
50477         Reported by Simon Josefsson.
50478
50479 2008-11-17  Bruno Haible  <bruno@clisp.org>
50480
50481         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50482         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50483         gl_HOSTENT.
50484
50485 2008-11-17  Bruno Haible  <bruno@clisp.org>
50486
50487         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50488         -lnetwork and -lnet. Needed for Haiku and BeOS.
50489
50490 2008-11-16  Bruno Haible  <bruno@clisp.org>
50491
50492         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50493
50494 2008-11-16  Bruno Haible  <bruno@clisp.org>
50495
50496         Avoid test failure on Haiku.
50497         * tests/test-fsync.c: Include <errno.h>.
50498         (main): Don't require that fsync (0) fails.
50499
50500 2008-11-15  Bruno Haible  <bruno@clisp.org>
50501
50502         New module 'hostent'.
50503         * modules/hostent: New file.
50504         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50505
50506 2008-11-15  Bruno Haible  <bruno@clisp.org>
50507
50508         New module 'servent'.
50509         * modules/servent: New file.
50510         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50511
50512 2008-11-15  Bruno Haible  <bruno@clisp.org>
50513
50514         Avoid generating same test program with two different rules.
50515         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50516         test-frexp to test-frexp-nolibm.
50517         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50518         test-frexpl to test-frexpl-nolibm.
50519
50520 2008-11-15  Bruno Haible  <bruno@clisp.org>
50521
50522         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50523         $(FREXPL_LIBM).
50524
50525 2008-11-15  Bruno Haible  <bruno@clisp.org>
50526
50527         * lib/netdb.in.h: Activate the definitions also when the system's
50528         <netdb.h> has 'struct addrinfo'.
50529         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50530         EAI_OVERFLOW or AI_NUMERICSERV.
50531         * doc/posix-headers/netdb.texi: Document the problem.
50532
50533 2008-11-15  Bruno Haible  <bruno@clisp.org>
50534
50535         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50536
50537         Make the 'sched' module work on platforms where <sched.h> exists but
50538         is incomplete (such as Haiku).
50539         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50540         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50541         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50542         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50543         HAVE_STRUCT_SCHED_PARAM.
50544         * modules/sched (Depends-on): Add include_next.
50545         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50546         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50547         * doc/posix-headers/sched.texi: Document the issue.
50548
50549 2008-11-13  Jim Meyering  <meyering@redhat.com>
50550
50551         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50552         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50553         test would fail due to the difference in the Report bugs to ...
50554         line.  The expected address is empty, "<>", while the actual
50555         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50556
50557 2008-11-12  Bruno Haible  <bruno@clisp.org>
50558
50559         lstat: don't compile lstat.c on systems lacking lstat
50560         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50561         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50562         Reported by Daniel P. Berrange via Jim Meyering.
50563
50564 2008-11-12  Jim Meyering  <meyering@redhat.com>
50565
50566         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50567
50568 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50569
50570         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50571         instead.
50572
50573 2008-11-12  Bruno Haible  <bruno@clisp.org>
50574
50575         * lib/unicodeio.c: Include unistr.h.
50576         (utf8_wctomb): Remove function.
50577         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50578
50579 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50580
50581         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50582         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50583         <bruno@clisp.org>.
50584         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50585
50586 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50587
50588         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50589         * doc/gnulib.texi: Add section for warnings.
50590
50591 2008-11-11  Bruno Haible  <bruno@clisp.org>
50592
50593         * lib/sockets.h: Add a comment.
50594
50595 2008-11-11  Karl Berry  <karl@gnu.org>
50596
50597         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50598
50599 2008-11-11  Eric Blake  <ebb9@byu.net>
50600
50601         fdl.texi: avoid git symlinks
50602         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50603
50604 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50605
50606         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50607
50608 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50609
50610         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50611         (gl_WARN_ADD): Substitute $2 if literal.
50612
50613 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50614
50615         * m4/warning.m4: Remove.
50616
50617 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50618
50619         * m4/warnings.m4: Almost complete rewrite. :-)
50620
50621 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50622
50623         * modules/warnings: New module.
50624         * m4/warnings.m4: New file.
50625         * MODULES.html.sh: Mention warnings module.
50626         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50627         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50628
50629 2008-11-10  Eric Blake  <ebb9@byu.net>
50630
50631         fdl.texi: make a symlink to the latest version
50632         * doc/standards.texi: Revert today's earlier change.
50633         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50634         * doc/fdl.texi: ...and replace this with a symlink to the newer
50635         fdl-1.3.texi.
50636
50637 2008-11-10  Bruno Haible  <bruno@clisp.org>
50638
50639         * tests/test-select-fd.c (main): Accept the result file name as fourth
50640         argument.
50641         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50642         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50643
50644 2008-11-10  Bruno Haible  <bruno@clisp.org>
50645
50646         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50647         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50648         as autoconf-substituted macros.
50649         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50650         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50651         gl_NETDB_H_DEFAULTS. Set these variables.
50652         * modules/netdb (Makefile.am): Substitute these variables.
50653
50654 2008-11-10  Eric Blake  <ebb9@byu.net>
50655
50656         standards.texi: include correct file for FDL 1.3
50657         * doc/standards.texi (GNU Free Documentation License): Change
50658         include file to pull in FDL 1.3, not 1.2.
50659
50660         fdl.texi: revert accidental change to license
50661         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50662
50663 2008-11-10  Bruno Haible  <bruno@clisp.org>
50664
50665         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50666         cross-compiling guesses also when the native compile gives no result.
50667
50668 2008-11-10  Bruno Haible  <bruno@clisp.org>
50669
50670         * lib/spawni.c (__spawni): Force variable into the stack.
50671
50672 2008-11-10  Bruno Haible  <bruno@clisp.org>
50673
50674         Add support for Haiku.
50675         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50676         glibc and BeOS, but also on Haiku.
50677         * lib/fpurge.c (fpurge): Likewise.
50678         * lib/freadable.c (freadable): Likewise.
50679         * lib/freadahead.c (freadahead): Likewise.
50680         * lib/freading.c (freading): Likewise.
50681         * lib/freadptr.c (freadptr): Likewise.
50682         * lib/freadseek.c (freadptrinc): Likewise.
50683         * lib/fseeko.c (rpl_fseeko): Likewise.
50684         * lib/fseterr.c (fseterr): Likewise.
50685         * lib/fwritable.c (fwritable): Likewise.
50686         * lib/fwriting.c (fwriting): Likewise.
50687         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50688
50689 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50690
50691         * lib/config.charset: Treat Haiku like BeOS.
50692
50693 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50694
50695         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50696         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50697
50698 2008-11-08  Bruno Haible  <bruno@clisp.org>
50699
50700         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50701         AC_CACHE_CHECK.
50702
50703 2008-11-08  Bruno Haible  <bruno@clisp.org>
50704
50705         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50706
50707 2008-11-08  Bruno Haible  <bruno@clisp.org>
50708
50709         * tests/test-select-fd.c: New file.
50710         * tests/test-select-in.sh: New file.
50711         * tests/test-select-out.sh: New file.
50712         * tests/test-select-stdin.c: New file.
50713         * modules/select-tests (Files): Add the new files.
50714         (Depends-on): Add gettimeofday.
50715         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50716         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50717         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50718
50719 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50720             Bruno Haible  <bruno@clisp.org>
50721
50722         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50723
50724 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50725
50726         * build-aux/pmccabe2html: Added support for C++ source files.
50727
50728 2008-11-05  Ben Pfaff  <blp@gnu.org>
50729
50730         Fix lib/close.c build on Windows.
50731         * modules/close (Files): Add lib/w32sock.h.
50732
50733 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50734
50735         Accept Bison's NEWS format.
50736         * build-aux/announce-gen (print_news_deltas): Tweak
50737         $re_prefix.
50738
50739 2008-11-04  Bruno Haible  <bruno@clisp.org>
50740
50741         * modules/random_r (Maintainer): Add glibc.
50742
50743 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50744
50745         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50746         by karl@freefriends.org (Karl Berry).
50747         * doc/alloca.texi: Likewise.
50748         * doc/c-ctype.texi: Likewise.
50749         * doc/c-strcase.texi: Likewise.
50750         * doc/c-strcaseeq.texi: Likewise.
50751         * doc/c-strcasestr.texi: Likewise.
50752         * doc/c-strstr.texi: Likewise.
50753         * doc/c-strtod.texi: Likewise.
50754         * doc/c-strtold.texi: Likewise.
50755         * doc/ctime.texi: Likewise.
50756         * doc/error.texi: Likewise.
50757         * doc/fdl.texi: Likewise.
50758         * doc/gcd.texi: Likewise.
50759         * doc/getdate.texi: Likewise.
50760         * doc/gnulib-intro.texi: Likewise.
50761         * doc/gnulib-tool.texi: Likewise.
50762         * doc/gnulib.texi: Likewise.
50763         * doc/inet_ntoa.texi: Likewise.
50764         * doc/maintain.texi: Likewise.
50765         * doc/make-stds.texi: Likewise.
50766         * doc/quote.texi: Likewise.
50767         * doc/regexprops-generic.texi: Likewise.
50768         * doc/standards.texi: Likewise.
50769         * doc/verify.texi: Likewise.
50770         * doc/visibility.texi: Likewise.
50771         * doc/gnulib.texi (GNU Free Documentation License): Include
50772         fdl-1.3.texi instead of fdl.texi.
50773
50774 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50775
50776         * doc/fdl-1.3.texi: New file, from
50777         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50778         * modules/fdl-1.3: Add.
50779         * MODULES.html.sh: Add fdl-1.3.
50780
50781 2008-11-03  Bruno Haible  <bruno@clisp.org>
50782
50783         Make determination of absolute name of header file work with AIX xlc.
50784         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50785         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50786         preprocessing.
50787         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50788         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50789
50790 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50791
50792         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50793         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50794         <ludo@gnu.org>.
50795
50796 2008-11-02  Bruno Haible  <bruno@clisp.org>
50797
50798         Mark 'strpbrk' obsolete.
50799         * modules/strpbrk (Status, Notice): New sections.
50800         * modules/strtok_r (Depends-on): Add strpbrk.
50801
50802 2008-11-02  Bruno Haible  <bruno@clisp.org>
50803
50804         Mark 'strdup' obsolete.
50805         * modules/strdup (Status, Notice): New sections.
50806         * modules/findprog (Depends-on): Add strdup.
50807         * modules/getaddrinfo (Depends-on): Likewise.
50808         * modules/localename (Depends-on): Likewise.
50809         * modules/relocatable-lib (Depends-on): Likewise.
50810         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50811         * modules/relocatable-prog (Depends-on): Likewise.
50812         * modules/trim (Depends-on): Likewise.
50813         * modules/unictype/gen-ctype (Depends-on): Likewise.
50814         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50815
50816 2008-11-02  Bruno Haible  <bruno@clisp.org>
50817
50818         Mark 'strcspn' obsolete.
50819         * modules/strcspn (Status, Notice): New sections.
50820
50821 2008-11-02  Bruno Haible  <bruno@clisp.org>
50822
50823         Mark 'rmdir' obsolete.
50824         * modules/rmdir (Status, Notice): New sections.
50825         * modules/clean-temp (Depends-on): Add rmdir.
50826         * modules/openat (Depends-on): Likewise.
50827
50828 2008-11-02  Bruno Haible  <bruno@clisp.org>
50829
50830         Mark 'raise' obsolete.
50831         * modules/raise (Status, Notice): New sections.
50832         (Include): Specify <signal.h>.
50833         * modules/stdio (Depends-on): Add raise.
50834         * modules/write (Depends-on): Likewise.
50835
50836 2008-11-02  Bruno Haible  <bruno@clisp.org>
50837
50838         Mark 'memset' obsolete.
50839         * modules/memset (Status, Notice): New sections.
50840
50841 2008-11-02  Bruno Haible  <bruno@clisp.org>
50842
50843         Mark 'memmove' obsolete.
50844         * modules/memmove (Status, Notice): New sections.
50845         * modules/argp (Depends-on): Add memmove.
50846         * modules/argz (Depends-on): Likewise.
50847         * modules/canonicalize (Depends-on): Likewise.
50848         * modules/canonicalize-lgpl (Depends-on): Likewise.
50849         * modules/fts (Depends-on): Likewise.
50850         * modules/getcwd (Depends-on): Likewise.
50851         * modules/human (Depends-on): Likewise.
50852         * modules/regex (Depends-on): Likewise.
50853         * modules/striconveh (Depends-on): Likewise.
50854         * modules/trim (Depends-on): Likewise.
50855         * modules/unistr/u8-move (Depends-on): Likewise.
50856         * modules/unistr/u16-move (Depends-on): Likewise.
50857         * modules/unistr/u32-move (Depends-on): Likewise.
50858
50859 2008-11-02  Bruno Haible  <bruno@clisp.org>
50860
50861         Mark 'memcpy' obsolete.
50862         * modules/memcpy (Status, Notice): New sections.
50863
50864 2008-11-02  Bruno Haible  <bruno@clisp.org>
50865
50866         Mark 'memcmp' obsolete.
50867         * modules/memcmp (Status, Notice): New sections.
50868         * modules/argmatch (Depends-on): Add memchr.
50869         * modules/backupfile (Depends-on): Likewise.
50870         * modules/c-strcasestr (Depends-on): Likewise.
50871         * modules/crypto/des (Depends-on): Likewise.
50872         * modules/csharpcomp (Depends-on): Likewise.
50873         * modules/fnmatch (Depends-on): Likewise.
50874         * modules/git-merge-changelog (Depends-on): Likewise.
50875         * modules/isnand (Depends-on): Likewise.
50876         * modules/isnand-nolibm (Depends-on): Likewise.
50877         * modules/isnanf (Depends-on): Likewise.
50878         * modules/isnanf-nolibm (Depends-on): Likewise.
50879         * modules/isnanl (Depends-on): Likewise.
50880         * modules/isnanl-nolibm (Depends-on): Likewise.
50881         * modules/mbchar (Depends-on): Likewise.
50882         * modules/memcoll (Depends-on): Likewise.
50883         * modules/quotearg (Depends-on): Likewise.
50884         * modules/regex (Depends-on): Likewise.
50885         * modules/relocatable-prog (Depends-on): Likewise.
50886         * modules/same (Depends-on): Likewise.
50887         * modules/signbit (Depends-on): Likewise.
50888         * modules/strcasestr-simple (Depends-on): Likewise.
50889         * modules/unictype/gen-ctype (Depends-on): Likewise.
50890         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50891         * modules/uniname/uniname (Depends-on): Likewise.
50892         * modules/unistr/u8-cmp (Depends-on): Likewise.
50893
50894 2008-11-02  Bruno Haible  <bruno@clisp.org>
50895
50896         Mark 'memchr' obsolete.
50897         * modules/memchr (Status, Notice): New sections.
50898         * modules/argp (Depends-on): Add memchr.
50899         * modules/base64 (Depends-on): Likewise.
50900         * modules/c-strcasestr (Depends-on): Likewise.
50901         * modules/chdir-long (Depends-on): Likewise.
50902         * modules/fnmatch (Depends-on): Likewise.
50903         * modules/getsubopt (Depends-on): Likewise.
50904         * modules/git-merge-changelog (Depends-on): Likewise.
50905         * modules/glob (Depends-on): Likewise.
50906         * modules/strcasestr-simple (Depends-on): Likewise.
50907         * modules/strnlen (Depends-on): Likewise.
50908
50909 2008-11-02  Bruno Haible  <bruno@clisp.org>
50910
50911         Mark 'atexit' obsolete.
50912         * modules/atexit (Status, Notice): New sections.
50913         * modules/chdir-long (Depends-on): Add atexit.
50914         * modules/wait-process (Depends-on): Likewise.
50915
50916 2008-11-02  Bruno Haible  <bruno@clisp.org>
50917
50918         * gnulib-tool: New option --with-obsolete.
50919         (func_usage): Document it.
50920         (func_modules_transitive_closure): Drop obsolete dependencies if
50921         incobsolete is not true.
50922         (func_import): Read and save the incobsolete variable to the cache.
50923
50924 2008-11-02  Bruno Haible  <bruno@clisp.org>
50925
50926         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50927         * gnulib-tool: New option --extract-status.
50928         (func_usage): Document it.
50929         (sed_extract_prog): Recognize it.
50930         (func_get_status): New function.
50931
50932 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50933
50934         * modules/sockets (License): Change from LGPL to LGPLv2+.
50935
50936 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50937
50938         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50939
50940 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50941
50942         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50943         Mention times and sys_times.
50944         * modules/sys_times, modules/sys_times-tests: New modules.
50945         * modules/times, modules/times-tests: Likewise
50946         * m4/sys_times_h.m4: New file.
50947         * lib/sys_times.in.h: Likewise
50948         * lib/times.c: Likewise.
50949         * tests/test-sys_times.c: Likewise.
50950         * tests/test-times.c: Likewise.
50951         * doc/posix-headers/sys_times.texi: Update.
50952         * doc/posix-functions/times.texi: Update.
50953
50954 2008-10-28  Jim Meyering  <meyering@redhat.com>
50955
50956         * modules/tempname (Depends-on): Add lstat.
50957
50958         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50959
50960 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50961
50962         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50963         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50964         using idiom used elsewhere in gnulib.
50965
50966 2008-10-27  Jim Meyering  <meyering@redhat.com>
50967
50968         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50969
50970 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50971
50972         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50973         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50974         programs.
50975         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50976
50977 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50978
50979         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50980
50981 2008-10-27  Bruno Haible  <bruno@clisp.org>
50982
50983         * tests/test-lstat.c: Include <stdio.h>.
50984
50985 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50986
50987         * modules/lstat-tests: New module.
50988         * tests/test-lstat.c: New file.
50989
50990 2008-10-26  Jim Meyering  <meyering@redhat.com>
50991
50992         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50993
50994 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50995             Bruno Haible  <bruno@clisp.org>
50996
50997         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50998         * modules/configmake (Include): Add a note that the include must come
50999         after all system headers.
51000         * lib/javaversion.c: Include configmake.h after all other includes.
51001
51002 2008-10-26  Bruno Haible  <bruno@clisp.org>
51003
51004         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
51005         HAVE_STRUCT_RANDOM_DATA to 1.
51006         (gl_STDLIB_H): Simplify.
51007
51008 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51009
51010         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
51011         substitute HAVE_STRUCT_RANDOM_DATA.
51012         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
51013         random_data.
51014         * modules/stdlib (Makefile.am): Substitute
51015         HAVE_STRUCT_RANDOM_DATA.
51016
51017 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51018
51019         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
51020         * doc/gnulib-intro.texi (Copyright): Likewise.
51021
51022 2008-10-26  Simon Josefsson  <simon@josefsson.org>
51023
51024         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
51025         findings.
51026
51027 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
51028             Bruno Haible  <bruno@clisp.org>
51029
51030         * lib/unistd.in.h: Include <winsock2.h>.
51031         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
51032         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
51033         Provide dummy declarations.
51034         (gethostname): Override.
51035         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
51036         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
51037         gl_PREREQ_SYS_H_WINSOCK2.
51038         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
51039         * doc/posix-functions/gethostname.texi: More details.
51040
51041 2008-10-25  Bruno Haible  <bruno@clisp.org>
51042
51043         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51044         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
51045         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
51046
51047         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
51048         here ...
51049         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
51050         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
51051         gl_UNISTD_H_DEFAULTS.
51052
51053 2008-10-25  Eric Blake  <ebb9@byu.net>
51054
51055         signbit: avoid spurious compiler failure
51056         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
51057         declarations inside function.
51058
51059 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51060             Bruno Haible  <bruno@clisp.org>
51061
51062         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
51063         * modules/random_r (Depends-on): Add stdint.
51064
51065 2008-10-24  Bruno Haible  <bruno@clisp.org>
51066
51067         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
51068         Eggert.
51069         * modules/strerror (License): Likewise.
51070
51071 2008-10-24  Jim Meyering  <meyering@redhat.com>
51072
51073         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
51074         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
51075
51076 2008-10-24  Eric Blake  <ebb9@byu.net>
51077
51078         getgroups: fix compilation when getgroups is available
51079         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
51080         but with <config.h> override of getgroups disabled.
51081
51082 2008-10-24  Simon Josefsson  <simon@josefsson.org>
51083
51084         * doc/gnulib.texi (Header files): Add note about C++ problems.
51085         Explained by Bruno Haible <bruno@clisp.org>.
51086
51087 2008-10-23  Bruno Haible  <bruno@clisp.org>
51088
51089         Define a dummy SA_NODEFER macro on Interix.
51090         * lib/signal.in.h (SA_NODEFER): Define fallback.
51091         Reported by Aleksey Cheusov <cheusov@tut.by> via
51092         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
51093
51094 2008-10-23  Bruno Haible  <bruno@clisp.org>
51095
51096         * modules/freadahead (License): Change to LGPLv2+.
51097         Suggested by Simon Josefsson.
51098
51099 2008-10-23  Jim Meyering  <meyering@redhat.com>
51100
51101         random_r: new module
51102         * modules/random_r: New file.
51103         * m4/random_r.m4: New file.
51104         * lib/random_r.c: New file, from glibc.
51105         * modules/random_r-tests: New file.
51106         * tests/test-random_r.c: New file.
51107         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
51108          Declare.
51109         (RAND_MAX): Define.
51110         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
51111         * modules/stdlib: Substitute them, too.
51112         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
51113         * doc/glibc-functions/initstate_r.texi: Mention the new module.
51114         * doc/glibc-functions/random_r.texi: Likewise.
51115         * doc/glibc-functions/setstate_r.texi: Likewise.
51116         * doc/glibc-functions/srandom_r.texi: Likewise.
51117         * config/srclist.txt: Mention it.
51118
51119 2008-10-23  David Lutterkort  <lutter@redhat.com>
51120
51121         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
51122         link requirement
51123
51124 2008-10-23  Jim Meyering  <meyering@redhat.com>
51125
51126         selinux-h: mark parameters of stub functions as intentionally unused
51127         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
51128         * lib/se-context.in.h: Likewise.
51129
51130 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51131
51132         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
51133
51134 2008-10-22  Simon Josefsson  <simon@josefsson.org>
51135
51136         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
51137
51138 2008-10-22  Eric Blake  <ebb9@byu.net>
51139
51140         glthread/thread: avoid compiler warning
51141         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
51142         Add unreachable abort to silence compiler.
51143
51144 2008-10-22  Eric Blake  <ebb9@byu.net>
51145
51146         netdb: also supply struct addrinfo for cygwin 1.5.x
51147         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
51148         older cygwin.
51149         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
51150         cygwin.
51151         * doc/posix-headers/netdb.texi (netdb.h): Document this.
51152
51153 2008-10-22  Bruno Haible  <bruno@clisp.org>
51154
51155         * users.txt: Update entry about pspp.
51156
51157 2008-10-21  Bruno Haible  <bruno@clisp.org>
51158
51159         Simplification.
51160         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
51161         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
51162
51163         Simplification.
51164         * lib/ioctl.c (ioctl): Don't undefine.
51165         * lib/socket.c (socket): Don't undefine.
51166
51167         Remove unused module indicator macros.
51168         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
51169         GNULIB_$1 as a C macro.
51170
51171         * doc/posix-functions/close.texi: Undo last change.
51172         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
51173         Windows platforms.
51174
51175 2008-10-21  Bruno Haible  <bruno@clisp.org>
51176
51177         Add gethostname() declaration to <unistd.h>.
51178         * lib/unistd.in.h (gethostname): New declaration.
51179         * lib/gethostname.c: Include <unistd.h>.
51180         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
51181         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
51182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
51183         and HAVE_GETHOSTNAME.
51184         * modules/gethostname (Depends-on): Add unistd.
51185         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51186         (Include): Specify <unistd.h>.
51187         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
51188         HAVE_GETHOSTNAME.
51189         * tests/test-gethostname.c: Include <unistd.h> first.
51190
51191 2008-10-21  Bruno Haible  <bruno@clisp.org>
51192
51193         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
51194         * modules/select-tests (Depends-on): Likewise.
51195         Reported by Simon Josefsson.
51196
51197 2008-10-21  Simon Josefsson  <simon@josefsson.org>
51198
51199         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
51200         * lib/accept.c: New file, based on winsock.c.
51201         * lib/bind.c: New file, based on winsock.c.
51202         * lib/connect.c: New file, based on winsock.c.
51203         * lib/getpeername.c: New file, based on winsock.c.
51204         * lib/getsockname.c: New file, based on winsock.c.
51205         * lib/getsockopt.c: New file, based on winsock.c.
51206         * lib/ioctl.c: New file, based on winsock.c.
51207         * lib/listen.c: New file, based on winsock.c.
51208         * lib/recv.c: New file, based on winsock.c.
51209         * lib/recvfrom.c: New file, based on winsock.c.
51210         * lib/send.c: New file, based on winsock.c.
51211         * lib/sendto.c: New file, based on winsock.c.
51212         * lib/setsockopt.c: New file, based on winsock.c.
51213         * lib/shutdown.c: New file, based on winsock.c.
51214         * lib/socket.c: New file, based on winsock.c.
51215         * lib/w32sock.h: New file, based on winsock.c.
51216         * lib/winsock.c: Remove file.
51217         * modules/accept: Likewise.
51218         * modules/bind: Likewise.
51219         * modules/connect: Likewise.
51220         * modules/getpeername: Likewise.
51221         * modules/getsockname: Likewise.
51222         * modules/getsockopt: Likewise.
51223         * modules/ioctl: Likewise.
51224         * modules/listen: Likewise.
51225         * modules/recv: Likewise.
51226         * modules/recvfrom: Likewise.
51227         * modules/send: Likewise.
51228         * modules/sendto: Likewise.
51229         * modules/setsockopt: Likewise.
51230         * modules/shutdown: Likewise.
51231         * modules/socket: Use socket.c instead of winsock.c.
51232         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
51233         * doc/posix-functions/accept.texi: Doc fix.
51234         * doc/posix-functions/bind.texi: Doc fix.
51235         * doc/posix-functions/close.texi: Doc fix.
51236         * doc/posix-functions/connect.texi: Doc fix.
51237         * doc/posix-functions/getpeername.texi: Doc fix.
51238         * doc/posix-functions/getsockname.texi: Doc fix.
51239         * doc/posix-functions/getsockopt.texi: Doc fix.
51240         * doc/posix-functions/ioctl.texi: Doc fix.
51241         * doc/posix-functions/listen.texi: Doc fix.
51242         * doc/posix-functions/recv.texi: Doc fix.
51243         * doc/posix-functions/recvfrom.texi: Doc fix.
51244         * doc/posix-functions/send.texi: Doc fix.
51245         * doc/posix-functions/sendto.texi: Doc fix.
51246         * doc/posix-functions/setsockopt.texi: Doc fix.
51247         * doc/posix-functions/shutdown.texi: Doc fix.
51248         * doc/posix-functions/socket.texi: Doc fix.
51249
51250 2008-10-20  Bruno Haible  <bruno@clisp.org>
51251
51252         Take into account the role of SIGABRT_COMPAT on Windows 2008.
51253         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
51254         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
51255         as an alias for SIGABRT.
51256         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
51257         (sigaction): Map it to SIGABRT.
51258         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
51259
51260 2008-10-20  Bruno Haible  <bruno@clisp.org>
51261
51262         * lib/fts.c: Don't include lstat.h.
51263         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
51264
51265         Move the lstat() declaration to <sys/stat.h>.
51266         * lib/lstat.h: Remove file.
51267         * lib/sys_stat.in.h: Add special invocation convention.
51268         (lstat): New declaration.
51269         * lib/lstat.c (orig_lstat): New function.
51270         (rpl_lstat): Use orig_lstat instead of lstat.
51271         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
51272         AC_C_INLINE. Set REPLACE_LSTAT.
51273         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
51274         and REPLACE_LSTAT.
51275         * modules/lstat (Files): Remove lib/lstat.h.
51276         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51277         (Include): Specify <sys/stat.h> instead of lstat.h.
51278         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
51279         REPLACE_LSTAT.
51280         * NEWS: Mention the change.
51281
51282 2008-10-20  Bruno Haible  <bruno@clisp.org>
51283
51284         * modules/posix_spawn-tests: New file.
51285         * tests/test-posix_spawn3.c: New file.
51286
51287 2008-10-20  Bruno Haible  <bruno@clisp.org>
51288
51289         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
51290         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51291         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
51292         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
51293         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
51294
51295 2008-10-20  Bruno Haible  <bruno@clisp.org>
51296
51297         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
51298         of posix_spawn on AIX 5.3.
51299
51300 2008-10-20  Bruno Haible  <bruno@clisp.org>
51301
51302         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
51303
51304 2008-10-20  Bruno Haible  <bruno@clisp.org>
51305
51306         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
51307         of AC_LANG_PROGRAM.
51308
51309 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51310
51311         * lib/netdb.in.h: Don't define GNU specific constants until they
51312         are supported or needed.  Reported by Bruno Haible
51313         <bruno@clisp.org>.
51314
51315 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51316
51317         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51318
51319 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51320
51321         * lib/getaddrinfo.h: Remove file.
51322         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51323         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51324         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51325         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51326         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51327         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51328         * tests/test-getaddrinfo.c: Likewise.
51329         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51330         * NEWS: Mention change.
51331
51332 2008-10-19  Bruno Haible  <bruno@clisp.org>
51333
51334         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51335
51336 2008-10-19  Bruno Haible  <bruno@clisp.org>
51337
51338         * lib/wait-process.c: Include simply <sys/wait.h>.
51339         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51340         WIFSTOPPED): Remove fallback definitions.
51341         * modules/wait-process (Depends-on): Add sys_wait.
51342
51343         New module 'sys_wait'.
51344         * modules/sys_wait: New file.
51345         * lib/sys_wait.in.h: New file, partially copied from
51346         lib/wait-process.c.
51347         * m4/sys_wait_h.m4: New file.
51348         * doc/posix-headers/sys_wait.texi: Mention the new module.
51349
51350 2008-10-19  Bruno Haible  <bruno@clisp.org>
51351
51352         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51353
51354 2008-10-19  Bruno Haible  <bruno@clisp.org>
51355
51356         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51357         * lib/wait-process.c (WAIT_T): Remove type.
51358         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51359         (wait_subprocess): Update.
51360
51361 2008-10-19  Bruno Haible  <bruno@clisp.org>
51362
51363         New module 'atoll'.
51364         * modules/atoll: New file.
51365         * lib/stdlib.in.h (atoll): New declaration.
51366         * lib/atoll.c: New file, from glibc with modifications.
51367         * m4/atoll.m4: New file.
51368         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51369         HAVE_ATOLL.
51370         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51371         * doc/posix-functions/atoll.texi: Mention the new module.
51372
51373 2008-10-19  Bruno Haible  <bruno@clisp.org>
51374
51375         Add strtoull() declaration to <stdlib.h>.
51376         * lib/stdlib.in.h (strtoull): New declaration.
51377         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51378         Set HAVE_STRTOULL.
51379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51380         HAVE_STRTOULL.
51381         * modules/strtoull (Depends-on): Add stdlib.
51382         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51383         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51384         HAVE_STRTOULL.
51385
51386 2008-10-19  Bruno Haible  <bruno@clisp.org>
51387
51388         Add strtoll() declaration to <stdlib.h>.
51389         * lib/stdlib.in.h (strtoll): New declaration.
51390         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51391         Set HAVE_STRTOLL.
51392         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51393         HAVE_STRTOLL.
51394         * modules/strtoll (Depends-on): Add stdlib.
51395         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51396         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51397
51398 2008-10-19  Bruno Haible  <bruno@clisp.org>
51399
51400         * modules/bcopy (Depends-on): Add strings.
51401         (Include): Specify <strings.h>.
51402
51403 2008-10-19  Bruno Haible  <bruno@clisp.org>
51404
51405         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51406
51407 2008-10-19  Bruno Haible  <bruno@clisp.org>
51408
51409         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51410         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51411         mingw.
51412
51413 2008-10-19  Bruno Haible  <bruno@clisp.org>
51414
51415         * lib/atanl.c: Don't include isnanl.h.
51416         * lib/cosl.c: Likewise.
51417         * lib/ldexpl.c: Likewise.
51418         * lib/logl.c: Likewise.
51419         * lib/sinl.c: Likewise.
51420         * lib/sqrtl.c: Likewise.
51421         * lib/tanl.c: Likewise.
51422
51423         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51424         * lib/isnanf.h: Remove file.
51425         * lib/isnand.h: Remove file.
51426         * lib/isnanl.h: Remove file.
51427         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51428         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51429         macros.
51430         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51431         HAVE_ISNANF, don't define it as a C macro.
51432         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51433         HAVE_ISNAND, don't define it as a C macro.
51434         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51435         HAVE_ISNANL, don't define it as a C macro.
51436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51437         HAVE_ISNAN[FDL].
51438         * modules/isnanf (Files): Remove lib/isnanf.h.
51439         (Depends-on): Add math.
51440         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51441         (Include): Specify <math.h> instead of isnanf.h.
51442         * modules/isnand (Files): Remove lib/isnand.h.
51443         (Depends-on): Add math.
51444         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51445         (Include): Specify <math.h> instead of isnand.h.
51446         * modules/isnanl (Files): Remove lib/isnanl.h.
51447         (Depends-on): Add math.
51448         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51449         (Include): Specify <math.h> instead of isnanl.h.
51450         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51451         HAVE_ISNAN[FDL].
51452         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51453         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51454         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51455         * NEWS: Mention the change.
51456
51457 2008-10-18  Bruno Haible  <bruno@clisp.org>
51458
51459         Add getusershell(), setusershell(), endusershell() declarations to
51460         <unistd.h>.
51461         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51462         declarations.
51463         * lib/getusershell.c: Include unistd.h.
51464         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51465         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51466         HAVE_GETUSERSHELL.
51467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51468         and HAVE_GETUSERSHELL.
51469         * modules/getusershell (Depends-on): Add unistd, extensions.
51470         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51471         (Include): Specify <unistd.h>.
51472         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51473         HAVE_GETUSERSHELL.
51474
51475 2008-10-18  Bruno Haible  <bruno@clisp.org>
51476
51477         Add a getloadavg() declaration to <stdlib.h>.
51478         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51479         getloadavg declaration.
51480         (getloadavg): New declaration.
51481         * lib/getloadavg.c: Include <stdlib.h> first.
51482         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51483         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51484         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51485         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51486         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51487         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51488         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51489         (Include): Specify <stdlib.h>.
51490         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51491         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51492
51493 2008-10-18  Bruno Haible  <bruno@clisp.org>
51494
51495         * lib/dirchownmod.c: Don't include lchmod.h.
51496
51497         Move the lchmod() declaration to <sys/stat.h>.
51498         * lib/lchmod.h: Remove file.
51499         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51500         (lchmod): New declaration, moved here from lib/lchown.h.
51501         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51502         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51503         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51504         and HAVE_LCHMOD.
51505         * modules/lchmod (Files): Remove lib/lchmod.h.
51506         (Depends-on): Add sys_stat, extensions.
51507         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51508         (Include): Specify <sys/stat.h> instead of lchmod.h.
51509         * modules/sys_stat (Depends-on): Add link-warning.
51510         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51511         definition of GL_LINK_WARNING.
51512         * NEWS: Mention the change.
51513
51514 2008-10-18  Bruno Haible  <bruno@clisp.org>
51515
51516         * lib/fchdir.c: Don't include dirfd.h.
51517         * lib/fts.c: Likewise.
51518         * lib/getcwd.c: Likewise.
51519         * lib/glob.c: Likewise.
51520
51521         Move the dirfd() declaration to <dirent.h>.
51522         * lib/dirfd.h: Remove file.
51523         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51524         (dirfd): New declaration.
51525         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51526         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51527         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51528         HAVE_DECL_DIRFD.
51529         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51530         HAVE_DECL_DIRFD.
51531         * modules/dirfd (Files): Remove lib/dirfd.h.
51532         (Depends-on): Add dirent, extensions.
51533         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51534         (Include): Specify <dirent.h> instead of dirfd.h.
51535         * modules/dirent (Depends-on): Add link-warning.
51536         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51537         definition of GL_LINK_WARNING.
51538         * NEWS: Mention the change.
51539
51540 2008-10-18  Bruno Haible  <bruno@clisp.org>
51541
51542         Move the euidaccess() declaration to <unistd.h>.
51543         * lib/euidaccess.h: Remove file.
51544         * lib/unistd.in.h (euidaccess): New declaration.
51545         * lib/euidaccess.c: Don't include euidaccess.h.
51546         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51547         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51549         and HAVE_EUIDACCESS.
51550         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51551         (Depends-on): Add unistd.
51552         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51553         (Include): Specify <unistd.h> instead of euidaccess.h.
51554         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51555         HAVE_EUIDACCESS.
51556         * NEWS: Mention the change.
51557
51558 2008-10-18  Bruno Haible  <bruno@clisp.org>
51559
51560         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51561
51562         Move the getdomainname() declaration to <unistd.h>.
51563         * lib/getdomainname.h: Remove file.
51564         * lib/unistd.in.h (getdomainname): New declaration.
51565         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51566         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51567         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51568         HAVE_GETDOMAINNAME.
51569         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51570         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51571         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51572         (Depends-on): Add unistd, extensions.
51573         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51574         (Includes): Specify <unistd.h> instead of getdomainname.h.
51575         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51576         HAVE_GETDOMAINNAME.
51577         * NEWS: Mention the change.
51578
51579 2008-10-18  Bruno Haible  <bruno@clisp.org>
51580
51581         * modules/dirent: New file.
51582         * m4/dirent_h.m4: New file.
51583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51584         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51585         * modules/fchdir (Files): Remove lib/dirent.in.h.
51586         (Depends-on): Add dirent.
51587         (Makefile.am): Move rules to modules/dirent.
51588         * doc/posix-headers/dirent.texi: Mention the new module.
51589
51590 2008-10-18  Bruno Haible  <bruno@clisp.org>
51591
51592         Avoid -Wunused-parameter warnings in public gnulib header files.
51593         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51594         macro.
51595         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51596
51597 2008-10-18  Bruno Haible  <bruno@clisp.org>
51598
51599         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51600         * doc/glibc-functions/error.texi: Mention the module 'error'.
51601         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51602         * doc/glibc-functions/getdomainname.texi: Mention the module
51603         'getdomainname'.
51604         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51605         * doc/glibc-functions/getpagesize.texi: Mention the module
51606         'getpagesize'.
51607         * doc/glibc-functions/getusershell.texi: Mention the module
51608         'getusershell'.
51609         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51610         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51611         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51612         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51613         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51614         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51615         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51616         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51617         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51618         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51619         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51620         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51621         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51622         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51623
51624 2008-10-17  Bruno Haible  <bruno@clisp.org>
51625
51626         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51627         HP-UX and IRIX, use -0.0L.
51628         * tests/test-ceill.c (minus_zero): Likewise.
51629         * tests/test-floorl.c (minus_zero): Likewise.
51630         * tests/test-frexpl.c (minus_zero): Likewise.
51631         * tests/test-isnan.c (minus_zerol): Likewise.
51632         * tests/test-isnanl.h (minus_zero): Likewise.
51633         * tests/test-ldexpl.c (minus_zero): Likewise.
51634         * tests/test-roundl.c (minus_zero): Likewise.
51635         * tests/test-signbit.c (minus_zerol): Likewise.
51636         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51637         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51638         * tests/test-truncl.c (minus_zero): Likewise.
51639         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51640         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51641         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51642         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51643
51644 2008-10-17  Bruno Haible  <bruno@clisp.org>
51645
51646         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51647         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51648         that it gets activated only for gcc >= 3.0.
51649         * lib/dirent.in.h: Likewise.
51650         * lib/errno.in.h: Likewise.
51651         * lib/fcntl.in.h: Likewise.
51652         * lib/float.in.h: Likewise.
51653         * lib/iconv.in.h: Likewise.
51654         * lib/inttypes.in.h: Likewise.
51655         * lib/locale.in.h: Likewise.
51656         * lib/math.in.h: Likewise.
51657         * lib/netdb.in.h: Likewise.
51658         * lib/netinet_in.in.h: Likewise.
51659         * lib/search.in.h: Likewise.
51660         * lib/signal.in.h: Likewise.
51661         * lib/spawn.in.h: Likewise.
51662         * lib/stdarg.in.h: Likewise.
51663         * lib/stdint.in.h: Likewise.
51664         * lib/stdio.in.h: Likewise.
51665         * lib/stdlib.in.h: Likewise.
51666         * lib/string.in.h: Likewise.
51667         * lib/strings.in.h: Likewise.
51668         * lib/sys_file.in.h: Likewise.
51669         * lib/sys_ioctl.in.h: Likewise.
51670         * lib/sys_select.in.h: Likewise.
51671         * lib/sys_socket.in.h: Likewise.
51672         * lib/sys_stat.in.h: Likewise.
51673         * lib/sys_time.in.h: Likewise.
51674         * lib/sysexits.in.h: Likewise.
51675         * lib/time.in.h: Likewise.
51676         * lib/unistd.in.h: Likewise.
51677         * lib/wchar.in.h: Likewise.
51678         * lib/wctype.in.h: Likewise.
51679         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51680
51681 2008-10-17  Jim Meyering  <meyering@redhat.com>
51682
51683         ignore-value: don't depend on inline module
51684         * modules/ignore-value (Depends-on): Remove 'inline'.
51685         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51686         Suggestion from Bruno Haible.
51687
51688 2008-10-17  Bruno Haible  <bruno@clisp.org>
51689
51690         New implementation of condition variables for Win32.
51691         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51692         (gl_linked_waitqueue_t): New type.
51693         (gl_cond_t): Use it.
51694         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51695         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51696         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51697         (glthread_cond_init_func, glthread_cond_wait_func,
51698         glthread_cond_timedwait_func, glthread_cond_signal_func,
51699         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51700         Reimplemented on the basis of gl_linked_waitqueue_t.
51701         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51702         gl_waitqueue_t.
51703         (gl_rwlock_t): Update.
51704         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51705
51706 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51707
51708         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51709         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51710
51711 2008-10-17  Jim Meyering  <meyering@redhat.com>
51712
51713         ignore-value: new module
51714         * modules/ignore-value: New file.
51715         * lib/ignore-value.h: New file.
51716         * MODULES.html.sh (Compiler warning management): New section,
51717         just for this module.  More to come.
51718
51719 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51720
51721         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51722         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51723         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51724
51725 2008-10-16  Jim Meyering  <meyering@redhat.com>
51726
51727         openat-die.c: avoid 'no previous prototype' warning
51728         * lib/openat-die.c: Include "openat.h".
51729         Reported by Reuben Thomas <rrt@sc3d.org>.
51730
51731 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51732
51733         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51734         * lib/netdb.in.h: Fix typo.
51735         Reported by Bruno Haible  <bruno@clisp.org>
51736
51737         * lib/netdb.in.h: Include sys/socket.h for platforms without
51738         netdb.h, to get structures like hostent on MinGW.
51739         * modules/netdb (Depends-on): Add sys_socket.
51740
51741 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51742
51743         * modules/netdb, modules/netdb-tests: New file.
51744         * m4/netdb_h.m4: New file.
51745         * lib/netdb.in.h: Add, currently just an empty file pending
51746         definitions.
51747         * tests/test-netdb.c: New file.
51748         * doc/posix-headers/netdb.texi: Mention that we replace it if
51749         needed.
51750         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51751         netdb.
51752
51753 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51754
51755         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51756         with code.
51757
51758 2008-10-13  Bruno Haible  <bruno@clisp.org>
51759
51760         * lib/glthread/cond.c (glthread_cond_wait_func,
51761         glthread_cond_timedwait_func): Add a comment.
51762
51763 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51764
51765         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51766         * tests/test-select.c: Likewise,
51767
51768 2008-10-13  Bruno Haible  <bruno@clisp.org>
51769
51770         * lib/glthread/cond.c (glthread_cond_wait_func,
51771         glthread_cond_timedwait_func): Fix variable name.
51772         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51773
51774 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51775
51776         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51777         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51778         struct sockaddr.sa_len.
51779         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51780
51781 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51782
51783         * build-aux/pmccabe2html: Add css and css_url parameters.
51784
51785 2008-10-12  Bruno Haible  <bruno@clisp.org>
51786
51787         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51788         calling aclx_get.
51789         Reported by Rainer Tammer <tammer@tammer.net>.
51790
51791 2008-10-12  Bruno Haible  <bruno@clisp.org>
51792
51793         Use msvcrt aware primitives for creation/termination of Win32 threads.
51794         * lib/glthread/thread.c: Include <process.h>.
51795         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51796         (wrapper_func): Update signature.
51797         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51798
51799 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51800             Bruno Haible  <bruno@clisp.org>
51801
51802         Provide a Win32 implementation of the 'cond' module.
51803         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51804         * lib/glthread/cond.c (glthread_cond_init_func,
51805         glthread_cond_wait_func, glthread_cond_timedwait_func,
51806         glthread_cond_signal_func, glthread_cond_broadcast_func,
51807         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51808         * modules/cond (Dependencies): Add gettimeofday.
51809
51810 2008-10-11  Bruno Haible  <bruno@clisp.org>
51811
51812         Make sleep work on older versions of mingw.
51813         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51814         only whether it exists.
51815         * doc/posix-functions/sleep.texi: Mention the problem with older
51816         versions of mingw.
51817
51818 2008-10-11  Bruno Haible  <bruno@clisp.org>
51819
51820         New module 'shutdown'.
51821         * modules/shutdown: New file.
51822         * lib/sys_socket.in.h (shutdown): New declaration.
51823         * lib/winsock.c (shutdown): New function.
51824         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51825         GNULIB_SHUTDOWN.
51826         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51827         * doc/posix-functions/shutdown.texi: Document the new module.
51828
51829 2008-10-11  Jim Meyering  <meyering@redhat.com>
51830
51831         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51832
51833 2008-10-11  Bruno Haible  <bruno@clisp.org>
51834
51835         New module 'fclose'.
51836         * modules/fclose: New file.
51837         * lib/stdio.in.h (fclose): New declaration.
51838         * lib/fclose.c: New file.
51839         * m4/fclose.m4: New file.
51840         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51841         REPLACE_FCLOSE.
51842         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51843         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51844         REPLACE_FCLOSE.
51845         * modules/close (Depends-on): fclose.
51846         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51847
51848 2008-10-11  Bruno Haible  <bruno@clisp.org>
51849
51850         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51851         set errno and don't call _close.
51852
51853 2008-10-10  Bruno Haible  <bruno@clisp.org>
51854
51855         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51856         ACL, not afterwards. Fixes test failure on Cygwin.
51857
51858 2008-10-09  Ben Pfaff  <blp@gnu.org>
51859
51860         * build-aux/announce-gen: Fix gnulib version related part of usage
51861         message.  Die with a useful error message if no tarballs are
51862         found.
51863
51864 2008-10-10  Jim Meyering  <meyering@redhat.com>
51865
51866         bootstrap: use git's --depth=N option only if it's supported
51867         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51868         recognize the --depth option.  Reported by Pádraig Brady.
51869
51870 2008-10-09  Bruno Haible  <bruno@clisp.org>
51871
51872         New module 'ioctl'.
51873         * modules/ioctl: New file.
51874         * lib/sys_socket.in.h (ioctl): Remove declaration.
51875         * lib/winsock.c: Include <sys/ioctl.h>.
51876         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51877         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51878         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51879         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51880         * doc/posix-functions/ioctl.texi: Mention the new module.
51881
51882 2008-10-09  Bruno Haible  <bruno@clisp.org>
51883
51884         New module 'sys_ioctl'.
51885         * lib/sys_ioctl.in.h: New file.
51886         * m4/sys_ioctl_h.m4: New file.
51887         * modules/sys_ioctl: New file.
51888         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51889
51890 2008-10-09  Bruno Haible  <bruno@clisp.org>
51891
51892         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51893         * lib/winsock.c: Include <stdarg.h>.
51894         (rpl_ioctl): Change to second argument 'int' and then varargs.
51895
51896 2008-10-09  Bruno Haible  <bruno@clisp.org>
51897
51898         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51899         when the sys_socket module is present and the system has <winsock2.h>.
51900
51901 2008-10-09  Bruno Haible  <bruno@clisp.org>
51902
51903         * doc/posix-functions/close.texi: Mention module 'close' instead of
51904         module 'sys_socket'.
51905
51906 2008-10-09  Bruno Haible  <bruno@clisp.org>
51907
51908         * doc/glibc-headers/sys_ioctl.texi: New file.
51909         * doc/gnulib.texi: Include it.
51910
51911 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51912             Bruno Haible  <bruno@clisp.org>
51913
51914         Combine the two replacements of 'close'.
51915         * lib/sys_socket.in.h (close): Define to a reminder to include
51916         <unistd.h>.
51917         (_gl_close_fd_maybe_socket): New declaration.
51918         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51919         * lib/winsock.c (close): Remove undefinition.
51920         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51921         needed for the gnulib module 'close'.
51922         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51923         define to an error symbol or to a warning, if suitable.
51924         * lib/close.c: Include <sys/socket.h>.
51925         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51926         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51927         UNISTD_H_HAVE_WINSOCK2_H.
51928         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51930         UNISTD_H_HAVE_WINSOCK2_H.
51931         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51932         (configure.ac): Set a module indicator.
51933         (Makefile.am): Substitute GNULIB_CLOSE.
51934         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51935         * modules/poll-tests (Depends-on): Add close.
51936         * modules/select-tests (Depends-on): Likewise.
51937
51938 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51939             Bruno Haible  <bruno@clisp.org>
51940
51941         New module 'close'.
51942         * modules/close: New file.
51943         * lib/unistd.in.h (close): Move declaration out of the
51944         FCHDIR_REPLACEMENT scope.
51945         (_gl_unregister_fd): New declaration.
51946         * lib/close.c: New file.
51947         * lib/fchdir.c (rpl_close): Remove function.
51948         * m4/close.m4: New file.
51949         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51950         close.
51951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51952         REPLACE_CLOSE.
51953         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51954         REPLACE_CLOSE.
51955         * modules/fchdir (Depends-on): Add close.
51956
51957 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51958             Bruno Haible  <bruno@clisp.org>
51959
51960         * lib/fcntl.in.h (open): Simplify conditionals.
51961         (_gl_register_fd): New declaration.
51962         * lib/fchdir.c (rpl_open): Remove function.
51963         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51964         also.
51965         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51966         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51967         open.
51968
51969 2008-10-09  Jim Meyering  <meyering@redhat.com>
51970
51971         GNUmakefile: use the more name-space-friendly "_version"
51972         * top/GNUmakefile (_dummy): Update.
51973         (_version): Rename from "version".
51974
51975 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51976             Bruno Haible  <bruno@clisp.org>
51977
51978         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51979         rpl_close.
51980         (_gl_register_fd): New function, extracted from rpl_open.
51981         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51982         (rpl_open, rpl_opendir): Use _gl_register_fd.
51983
51984 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51985
51986         Fix organization of 'open' replacement.
51987         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51988         (gl_FUNC_OPEN): Use it.
51989         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51990
51991 2008-10-08  Bruno Haible  <bruno@clisp.org>
51992
51993         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51994
51995 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51996
51997         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51998         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51999         listen).
52000
52001 2008-10-08  Eric Blake  <ebb9@byu.net>
52002
52003         GNUmakefile: add 'make version' target
52004         * top/GNUmakefile (_curr-ver): Split version update rules...
52005         (version): ...into a target.
52006
52007 2008-10-07  Bruno Haible  <bruno@clisp.org>
52008
52009         Use a more portable replacement expression for -0.0L.
52010         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
52011         instead of -0.0L. Fix m4 quotation.
52012
52013         * tests/test-signbit.c: Include <float.h>.
52014         (minus_zero): New variable.
52015         (test_signbitl): Use minus_zero instead of -zero.
52016         * modules/signbit-tests (Depends-on): Add float.
52017
52018         * tests/test-ceill.c: Include <float.h>.
52019         (zero): Remove variable.
52020         (minus_zero): New variable.
52021         (main): Use minus_zero instead of -zero.
52022         * modules/ceill-tests (Depends-on): Add float.
52023
52024         * tests/test-floorl.c: Include <float.h>.
52025         (zero): Remove variable.
52026         (minus_zero): New variable.
52027         (main): Use minus_zero instead of -zero.
52028         * modules/floorl-tests (Depends-on): Add float.
52029
52030         * tests/test-roundl.c: Include <float.h>.
52031         (zero): Remove variable.
52032         (minus_zero): New variable.
52033         (main): Use minus_zero instead of -zero.
52034         * modules/roundl-tests (Depends-on): Add float.
52035
52036         * tests/test-truncl.c: Include <float.h>.
52037         (zero): Remove variable.
52038         (minus_zero): New variable.
52039         (main): Use minus_zero instead of -zero.
52040         * modules/truncl-tests (Depends-on): Add float.
52041
52042         * tests/test-frexpl.c (zero): Remove variable.
52043         (minus_zero): New variable.
52044         (main): Use minus_zero instead of -zero.
52045         * modules/frexpl-tests (Depends-on): Add float.
52046
52047         * tests/test-isnan.c (zerol): Remove variable.
52048         (minus_zerol): New variable.
52049         (test_long_double): Use minus_zerol instead of -zerol.
52050         * modules/isnan-tests (Depends-on): Add float.
52051
52052         * tests/test-isnanl.h (zero): Remove variable.
52053         (minus_zero): New variable.
52054         (main): Use minus_zero instead of -zero.
52055         * modules/isnanl-nolibm-tests (Depends-on): Add float.
52056         * modules/isnanl-tests (Depends-on): Add float.
52057
52058         * tests/test-ldexpl.c (zero): Remove variable.
52059         (minus_zero): New variable.
52060         (main): Use minus_zero instead of -zero.
52061         * modules/ldexpl-tests (Depends-on): Add float.
52062
52063         * tests/test-snprintf-posix.h (zerol): Remove variable.
52064         (minus_zerol): New variable.
52065         (test_function): Use minus_zerol instead of -zerol.
52066         * modules/snprintf-posix-tests (Depends-on): Add float.
52067         * modules/vsnprintf-posix-tests (Depends-on): Add float.
52068
52069         * tests/test-sprintf-posix.h (zerol): Remove variable.
52070         (minus_zerol): New variable.
52071         (test_function): Use minus_zerol instead of -zerol.
52072         * modules/sprintf-posix-tests (Depends-on): Add float.
52073         * modules/vsprintf-posix-tests (Depends-on): Add float.
52074
52075         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
52076         (minus_zerol): New variable.
52077         (test_function): Use minus_zerol instead of -zerol.
52078         * modules/vasnprintf-posix-tests (Depends-on): Add float.
52079
52080         * tests/test-vasprintf-posix.c (zerol): Remove variable.
52081         (minus_zerol): New variable.
52082         (test_function): Use minus_zerol instead of -zerol.
52083         * modules/vasprintf-posix-tests (Depends-on): Add float.
52084
52085 2008-10-07  Simon Josefsson  <simon@josefsson.org>
52086
52087         * MODULES.html.sh (Support for building documentation): Mention
52088         pmccabe2html.  Sort entries.
52089
52090         Add pmccabe2html module, from gnupdf.
52091         * build-aux/pmccabe.css: New file.
52092         * build-aux/pmccabe2html: New file.
52093         * m4/pmccabe2html.m4: New file.
52094         * modules/pmccabe2html: New file.
52095
52096 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
52097
52098         flock: new module
52099         * MODULES.html.sh: Add to list of modules.
52100         * lib/flock.c: flock implementation for Windows and Unix systems
52101         which have fcntl.
52102         * doc/glibc-functions/flock.texi: Update documentation.
52103         * lib/sys_file.in.h: <sys/file.h> header file.
52104         * m4/flock.m4: M4 macros.
52105         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
52106         * modules/flock: flock module.
52107         * modules/flock-tests: flock tests module.
52108         * modules/sys_file: sys/file.h module.
52109         * tests/test-flock.c: test suite for flock.
52110
52111 2008-10-06  Jim Meyering  <meyering@redhat.com>
52112
52113         bootstrap: check for LT_INIT more portably still ;-)
52114         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
52115         Spotted by Bruno Haible.
52116
52117 2008-10-06  Eric Blake  <ebb9@byu.net>
52118
52119         test-signbit: avoid tripping Irix cc bug on -0.0L
52120         * tests/test-signbit.c (minus_zerol): Delete, and replace with
52121         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
52122         entire testsuite consistent and avoids an Irix 6.2 bug.
52123
52124 2008-10-05  Bruno Haible  <bruno@clisp.org>
52125             Jim Meyering  <jim@meyering.net>
52126
52127         Add an option for ignoring EPIPE during close_stdout.
52128         * lib/closeout.h: Include <stdbool.h>.
52129         (close_stdout_set_ignore_EPIPE): New declaration.
52130         * lib/closeout.c: Include <stdbool.h>.
52131         (ignore_EPIPE): New variable.
52132         (close_stdout_set_ignore_EPIPE): New function.
52133         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
52134         * lib/close-stream.c (close_stream): Mention the possible EPIPE
52135         failure.
52136         * modules/closeout (Depends-on): Add stdbool.
52137
52138 2008-10-05  Bruno Haible  <bruno@clisp.org>
52139
52140         * modules/accept: New file.
52141         * modules/bind: New file.
52142         * modules/connect: New file.
52143         * modules/getpeername: New file.
52144         * modules/getsockname: New file.
52145         * modules/getsockopt: New file.
52146         * modules/listen: New file.
52147         * modules/recv: New file.
52148         * modules/recvfrom: New file.
52149         * modules/send: New file.
52150         * modules/sendto: New file.
52151         * modules/setsockopt: New file.
52152         * modules/socket: New file.
52153         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
52154         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
52155         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
52156         the particular module is requested. Add a link warning when the
52157         particular module is not requested.
52158         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
52159         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
52160         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
52161         the particular module is requested.
52162         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
52163         gl_SYS_SOCKET_H_DEFAULTS): New macros.
52164         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
52165         * modules/sys_socket (Depends-on): Add link-warning.
52166         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
52167         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
52168         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
52169         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
52170         GL_LINK_WARNING.
52171         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
52172         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
52173         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
52174         * doc/posix-functions/getpeername.texi: Mention the new module
52175         'getpeername'.
52176         * doc/posix-functions/getsockname.texi: Mention the new module
52177         'getsockname'.
52178         * doc/posix-functions/getsockopt.texi: Mention the new module
52179         'getsockopt'.
52180         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
52181         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
52182         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
52183         * doc/posix-functions/send.texi: Mention the new module 'send'.
52184         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
52185         * doc/posix-functions/setsockopt.texi: Mention the new module
52186         'setsockopt'.
52187         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
52188         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
52189         listen, connect, accept.
52190         * modules/select-tests (Depends-on): Likewise.
52191
52192 2008-10-05  Bruno Haible  <bruno@clisp.org>
52193
52194         * lib/winsock.c (strerror): Remove unused #undef.
52195         (rpl_close): Remove unused local variable.
52196
52197         * modules/sys_socket (Depends-on); Add errno.
52198
52199 2008-10-05  Bruno Haible  <bruno@clisp.org>
52200
52201         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
52202         (select): Add a link warning when the 'select' module is not used.
52203         * modules/sys_select (Depends-on): Add link-warning.
52204         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
52205         Suggested by Paolo Bonzini.
52206
52207 2008-10-05  Jim Meyering  <meyering@redhat.com>
52208
52209         bootstrap: check for LT_INIT more portably
52210         * build-aux/bootstrap: Avoid using grep -E, since it's not
52211         portable enough.  Suggestion from Bruno Haible.
52212
52213 2008-10-05  Bruno Haible  <bruno@clisp.org>
52214
52215         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
52216         as being fixed by gnulib.
52217
52218 2008-10-05  Bruno Haible  <bruno@clisp.org>
52219
52220         * modules/select-tests: New file, mostly copied from
52221         modules/sys_select-tests.
52222         * tests/test-select.c: New file, mostly copied from
52223         tests/test-sys_select.c.
52224         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
52225         * modules/sys_select-tests (Depends-on): Remove all dependencies.
52226         (Makefile.am): Remove test_sys_select_LDADD.
52227
52228         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
52229         to an undefined symbol, for an error message.
52230         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
52231         (gl_SYS_SELECT_H_DEFAULTS): New macro.
52232         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
52233         winsock-select.c here.
52234         * modules/sys_select (Files): Remove lib/winsock-select.c.
52235         (Depends-on): Remove alloca.
52236         (Makefile.am): Substitute GNULIB_SELECT.
52237         * modules/select: New file.
52238         * doc/posix-functions/select.texi: Update.
52239
52240 2008-10-05  Bruno Haible  <bruno@clisp.org>
52241
52242         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
52243         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
52244         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
52245         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
52246         getdtablesize.
52247         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
52248         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
52249
52250 2008-10-05  Bruno Haible  <bruno@clisp.org>
52251
52252         * modules/getdtablesize-tests: New file.
52253         * tests/test-getdtablesize.c: New file.
52254
52255         New module 'getdtablesize'.
52256         * lib/unistd.in.h (getdtablesize): New declaration.
52257         * lib/getdtablesize.c: New file.
52258         * m4/getdtablesize.m4: New file.
52259         * modules/getdtablesize: New file.
52260         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52261         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
52262         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
52263         HAVE_GETDTABLESIZE.
52264         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
52265
52266 2008-10-05  Bruno Haible  <bruno@clisp.org>
52267
52268         * modules/sched (Makefile.am): Fix typo.
52269         Reported by Simon Josefsson.
52270
52271 2008-10-05  Jim Meyering  <meyering@redhat.com>
52272
52273         bootstrap: check for LT_INIT, too
52274         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
52275         are deprecated.  Suggestion from Ralf Wildenhues.
52276
52277 2008-10-05  Bruno Haible  <bruno@clisp.org>
52278
52279         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
52280         overriding them by ours.
52281         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
52282
52283 2008-10-05  Jim Meyering  <meyering@redhat.com>
52284
52285         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
52286         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
52287         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
52288
52289 2008-10-04  Bruno Haible  <bruno@clisp.org>
52290
52291         * modules/dup2 (License): Change to LGPLv2+.
52292         * modules/sleep (License): Likewise.
52293         * modules/perror (License): Likewise.
52294         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
52295         Blake.
52296         * modules/signal (License): Likewise.
52297         * modules/sigprocmask (License): Likewise.
52298         * modules/raise (License): Change to LGPLv2+, with approval by Jim
52299         Meyering.
52300
52301 2008-10-04  Bruno Haible  <bruno@clisp.org>
52302
52303         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
52304         Reported by Rainer Tammer <tammer@tammer.net>.
52305
52306 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
52307             Bruno Haible  <bruno@clisp.org>
52308
52309         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
52310         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
52311         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52312
52313 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52314
52315         filevercmp: new module
52316         * lib/filevercmp.h: New function filevercmp comparing version strings.
52317         * lib/filevercmp.c: Implementation of filevercmp function.
52318         * modules/filevercmp: Module metadata.
52319         * tests/test-filevercmp.c: Unit test for new module.
52320         * modules/filevercmp-tests: Unit test metadata.
52321         * MODULES.html.sh: Add filevercmp module.
52322
52323 2008-10-03  Bruno Haible  <bruno@clisp.org>
52324
52325         * lib/c-ctype.h: Add comment.
52326         Reported by Jim Meyering.
52327
52328 2008-10-02  Bruno Haible  <bruno@clisp.org>
52329
52330         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52331
52332 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52333
52334         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52335         name of bootstrap.conf accordingly.
52336
52337 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52338
52339         * build-aux/bootstrap: Install git-merge-changelog configuration
52340         items into .gitconfig if needed.
52341
52342 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52343
52344         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52345         git repository, and initialize/update it accordingly.
52346
52347 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52348
52349         * modules/fsync-tests: New file.
52350         * tests/test-fsync.c: New file.
52351
52352         New module 'fsync'.
52353         * lib/fsync.c: New file.
52354         * m4/fsync.m4: New file.
52355         * modules/fsync: New file.
52356         * lib/unistd.in.h (fsync): New declaration.
52357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52358         GNULIB_FSYNC and HAVE_FSYNC.
52359         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52360         * MODULES.html.sh (posix_functions): Add fsync.
52361         * doc/posix-functions/fsync.texi: Mention the new module.
52362
52363 2008-10-02  Jim Meyering  <meyering@redhat.com>
52364
52365         fts.c: sync with similar code from coreutils' remove.c
52366         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52367         Guard also with "#if defined __linux__", since for now at least,
52368         this code is Linux-kernel-specific.
52369
52370 2008-10-02  Jim Meyering  <meyering@redhat.com>
52371
52372         fts: bug fixes
52373         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52374         Include <sys/vfs.h>, not <sys/statfs.h>.
52375
52376         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52377         Include <sys/vfs.h>, not <sys/statfs.h>.
52378
52379 2008-10-01  Bruno Haible  <bruno@clisp.org>
52380
52381         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52382         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52383         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52384         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52385         * doc/posix-functions/posix_spawnp.texi: Likewise.
52386         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52387         whether posix_spawn actually works.
52388         * m4/pipe.m4 (gl_PIPE): Likewise.
52389         * modules/execute (Files): Add m4/posix_spawn.m4.
52390         * modules/pipe (Files): Add m4/posix_spawn.m4.
52391         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52392
52393 2008-10-01  Jim Meyering  <meyering@redhat.com>
52394
52395         remove trailing spaces
52396         * NEWS: Likewise.
52397         * lib/poll.c (poll): Likewise.
52398         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52399         * lib/winsock.c (rpl_close): Likewise.
52400         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52401         * modules/yield: Likewise.
52402         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52403         * tests/test-sys_select.c (connect_to_socket): Likewise.
52404
52405         fts.c: adjust a new interface to be more generally useful
52406         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52407         (fts_build): Adjust caller.
52408
52409 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52410
52411         * modules/cond-tests: New file.
52412         * tests/test-cond.c: New file.
52413
52414 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52415             Bruno Haible  <bruno@clisp.org>
52416
52417         * modules/cond (Dependencies): Add errno, time.
52418         * lib/glthread/cond.h: Include <time.h>.
52419         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52420         across platforms.
52421
52422 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52423             Bruno Haible  <bruno@clisp.org>
52424
52425         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52426
52427 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52428             Bruno Haible  <bruno@clisp.org>
52429
52430         * modules/tls-tests (Depends-on): Add thread, yield.
52431         (configure.ac): Remove all checks.
52432         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52433         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52434         gl_thread_self): Remove definitions. Include glthread/thread.h and
52435         glthread/yield.h instead.
52436         (test_tls): Pass an additional NULL argument to gl_thread_join.
52437
52438 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52439             Bruno Haible  <bruno@clisp.org>
52440
52441         * modules/lock-tests (Depends-on): Add thread, yield.
52442         (configure.ac): Remove all checks.
52443         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52444         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52445         gl_thread_self): Remove definitions. Include glthread/thread.h and
52446         glthread/yield.h instead.
52447         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52448         additional NULL argument to gl_thread_join.
52449
52450 2008-09-30  Bruno Haible  <bruno@clisp.org>
52451
52452         Fix the Win32 implementation of the 'thread' module.
52453         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52454         pointer type.
52455         (gl_thread_self): Invoke gl_thread_self_func.
52456         (gl_thread_self_func): New declaration.
52457         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52458         (do_init_self_key, init_self_key): New functions.
52459         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52460         Remove some fields.
52461         (running_threads, running_lock): Remove variables.
52462         (get_current_thread_handle): New function.
52463         (gl_thread_self_func, wrapper_func, glthread_create_func,
52464         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52465         simplified.
52466
52467 2008-09-30  Bruno Haible  <bruno@clisp.org>
52468
52469         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52470         files.
52471
52472 2008-09-30  Jim Meyering  <meyering@redhat.com>
52473
52474         fts.m4: correct the test for statfs.f_type
52475         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52476         when checking for statfs.f_type.
52477
52478 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52479
52480         tests: avoid some compiler warnings
52481         * tests/test-memchr.c (main): Pass NULL indirectly.
52482         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52483
52484 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
52485
52486         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52487         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52488         exactly specified dayshifts.
52489         (dayshift): New rule.
52490         (rel): Add dayshift.
52491         (relative_time_table) [tomorrow, yesterday, today, now]:
52492         Use tDAY_SHIFT in place of tDAY_UNIT.
52493         * tests/test-getdate.c: Add tests for now-disallowed countable
52494         dayshifts, e.g., "4 yesterday ago".
52495
52496 2008-09-29  Bruno Haible  <bruno@clisp.org>
52497
52498         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52499         * tests/test-posix_spawn1.in.sh: Renamed from
52500         tests/test-posix_spawn.in.sh.
52501         * tests/test-posix_spawn2.c: New file.
52502         * tests/test-posix_spawn2.in.sh: New file.
52503         * modules/posix_spawnp-tests (Files): Update.
52504         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52505
52506 2008-09-29  Bruno Haible  <bruno@clisp.org>
52507
52508         Propagate effects of putenv/setenv/unsetenv to child processes.
52509         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52510         * lib/pipe.c (create_pipe): Likewise.
52511
52512 2008-09-29  Bruno Haible  <bruno@clisp.org>
52513
52514         Enable use of shell scripts as executables in mingw.
52515         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52516         run the program as a shell script.
52517         * lib/pipe.c (create_pipe): Likewise.
52518         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52519         resulting array.
52520
52521 2008-09-29  Eric Blake  <ebb9@byu.net>
52522
52523         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52524
52525 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52526
52527         * doc/posix-functions/accept.texi: Update mingw problems.
52528         * doc/posix-functions/bind.texi: Update mingw problems.
52529         * doc/posix-functions/close.texi: Update mingw problems.
52530         * doc/posix-functions/connect.texi: Update mingw problems.
52531         * doc/posix-functions/getpeername.texi: Update mingw problems.
52532         * doc/posix-functions/getsockname.texi: Update mingw problems.
52533         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52534         * doc/posix-functions/ioctl.texi: Update mingw problems.
52535         * doc/posix-functions/listen.texi: Update mingw problems.
52536         * doc/posix-functions/recv.texi: Update mingw problems.
52537         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52538         * doc/posix-functions/select.texi: Update mingw problems.
52539         * doc/posix-functions/send.texi: Update mingw problems.
52540         * doc/posix-functions/sendto.texi: Update mingw problems.
52541         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52542         * doc/posix-functions/socket.texi: Update mingw problems.
52543
52544 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52545             Bruno Haible  <bruno@clisp.org>
52546
52547         * lib/sys_select.in.h: Include sys/time.h.
52548         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52549         * modules/sys_select: Depend on sys_time.
52550         * tests/test-sys_select.c: Test that sys/select.h defines struct
52551         timeval fully.
52552
52553 2008-09-29  Bruno Haible  <bruno@clisp.org>
52554
52555         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52556         * lib/sys_select.in.h: Likewise.
52557
52558 2008-09-29  Bruno Haible  <bruno@clisp.org>
52559
52560         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52561
52562 2008-09-29  Bruno Haible  <bruno@clisp.org>
52563
52564         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52565         Set LIBSOCKET instead of augmenting LIBS.
52566         * modules/sockets (Link): New section.
52567         * modules/sockets-tests (test_sockets_LDADD): New variable.
52568         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52569         * modules/poll-tests (test_poll_LDADD): New variable.
52570         * NEWS: Document the change.
52571
52572 2008-09-29  Bruno Haible  <bruno@clisp.org>
52573
52574         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52575         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52576         ARPA_INET_H directly.
52577         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52578
52579 2008-09-28  Bruno Haible  <bruno@clisp.org>
52580
52581         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52582         from gl_HEADER_SYS_SOCKET.
52583         (gl_HEADER_SYS_SOCKET): Invoke it.
52584         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52585
52586 2008-09-28  Bruno Haible  <bruno@clisp.org>
52587
52588         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52589         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52590         Needed on OSF/1 4.0.
52591
52592 2008-09-28  Bruno Haible  <bruno@clisp.org>
52593
52594         Override open more carefully.
52595         * lib/open.c (orig_open): New function.
52596         (rpl_open): Use orig_open instead of open.
52597         * lib/fcntl.in.h: Add special invocation convention.
52598         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52599         (gl_FUNC_OPEN): Invoke it.
52600
52601         Override freopen more carefully.
52602         * lib/freopen.c (orig_freopen): New function.
52603         (rpl_freopen): Use orig_freopen instead of freopen.
52604         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52605         (gl_FUNC_FREOPEN): Invoke it.
52606
52607         Override fopen more carefully.
52608         * lib/fopen.c (orig_fopen): New function.
52609         (rpl_fopen): Use orig_fopen instead of fopen.
52610         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52611         (gl_FUNC_FOPEN): Invoke it.
52612         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52613
52614 2008-09-28  Bruno Haible  <bruno@clisp.org>
52615
52616         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52617         SIGPIPE.
52618
52619 2008-09-28  Bruno Haible  <bruno@clisp.org>
52620
52621         * tests/test-sigaction.c (handler, main): Disable the check whether
52622         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52623         glibc systems with LinuxThreads.
52624
52625 2008-09-28  Bruno Haible  <bruno@clisp.org>
52626
52627         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52628
52629         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52630         with AIX xlc.
52631         * lib/fcntl.in.h (open): Likewise.
52632         Reported by Rainer Tammer <tammer@tammer.net>.
52633
52634 2008-09-28  Bruno Haible  <bruno@clisp.org>
52635
52636         * modules/posix_spawnp-tests: New file.
52637         * tests/test-posix_spawn.c: New file.
52638         * tests/test-posix_spawn.in.sh: New file.
52639
52640         New module 'posix_spawnp'.
52641         * modules/posix_spawnp: New file.
52642         * lib/spawnp.c: New file, from GNU libc with modifications.
52643         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52644
52645         New module 'posix_spawn'.
52646         * modules/posix_spawn: New file.
52647         * lib/spawn.c: New file, from GNU libc with modifications.
52648         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52649
52650         New module 'posix_spawnattr_destroy'.
52651         * modules/posix_spawnattr_destroy: New file.
52652         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52653         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52654         module.
52655
52656         New module 'posix_spawnattr_setsigmask'.
52657         * modules/posix_spawnattr_setsigmask: New file.
52658         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52659         modifications.
52660         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52661         new module.
52662
52663         New module 'posix_spawnattr_getsigmask'.
52664         * modules/posix_spawnattr_getsigmask: New file.
52665         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52666         modifications.
52667         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52668         new module.
52669
52670         New module 'posix_spawnattr_setsigdefault'.
52671         * modules/posix_spawnattr_setsigdefault: New file.
52672         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52673         modifications.
52674         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52675         new module.
52676
52677         New module 'posix_spawnattr_getsigdefault'.
52678         * modules/posix_spawnattr_getsigdefault: New file.
52679         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52680         modifications.
52681         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52682         new module.
52683
52684         New module 'posix_spawnattr_setschedpolicy'.
52685         * modules/posix_spawnattr_setschedpolicy: New file.
52686         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52687         modifications.
52688         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52689         new module.
52690
52691         New module 'posix_spawnattr_getschedpolicy'.
52692         * modules/posix_spawnattr_getschedpolicy: New file.
52693         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52694         modifications.
52695         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52696         new module.
52697
52698         New module 'posix_spawnattr_setschedparam'.
52699         * modules/posix_spawnattr_setschedparam: New file.
52700         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52701         modifications.
52702         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52703         new module.
52704
52705         New module 'posix_spawnattr_getschedparam'.
52706         * modules/posix_spawnattr_getschedparam: New file.
52707         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52708         modifications.
52709         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52710         new module.
52711
52712         New module 'posix_spawnattr_setpgroup'.
52713         * modules/posix_spawnattr_setpgroup: New file.
52714         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52715         modifications.
52716         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52717         module.
52718
52719         New module 'posix_spawnattr_getpgroup'.
52720         * modules/posix_spawnattr_getpgroup: New file.
52721         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52722         modifications.
52723         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52724         module.
52725
52726         New module 'posix_spawnattr_setflags'.
52727         * modules/posix_spawnattr_setflags: New file.
52728         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52729         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52730         module.
52731
52732         New module 'posix_spawnattr_getflags'.
52733         * modules/posix_spawnattr_getflags: New file.
52734         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52735         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52736         module.
52737
52738         New module 'posix_spawnattr_init'.
52739         * modules/posix_spawnattr_init: New file.
52740         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52741         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52742         module.
52743
52744         New module 'posix_spawn_file_actions_destroy'.
52745         * modules/posix_spawn_file_actions_destroy: New file.
52746         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52747         modifications.
52748         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52749         the new module.
52750
52751         New module 'posix_spawn_file_actions_addopen'.
52752         * modules/posix_spawn_file_actions_addopen: New file.
52753         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52754         modifications.
52755         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52756         the new module.
52757
52758         New module 'posix_spawn_file_actions_adddup2'.
52759         * modules/posix_spawn_file_actions_adddup2: New file.
52760         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52761         modifications.
52762         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52763         the new module.
52764
52765         New module 'posix_spawn_file_actions_addclose'.
52766         * modules/posix_spawn_file_actions_addclose: New file.
52767         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52768         modifications.
52769         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52770         the new module.
52771
52772         New module 'posix_spawn_file_actions_init'.
52773         * modules/posix_spawn_file_actions_init: New file.
52774         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52775         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52776         new module.
52777
52778         New module 'posix_spawn-internal'.
52779         * modules/posix_spawn-internal: New file.
52780         * lib/spawn_int.h: New file, from GNU libc with modifications.
52781         * lib/spawni.c: New file, from GNU libc with modifications.
52782         * m4/posix_spawn.m4: New file.
52783
52784         New module 'spawn'.
52785         * modules/spawn: New file.
52786         * lib/spawn.in.h: New file, from GNU libc with modifications.
52787         * m4/spawn_h.m4: New file.
52788         * doc/posix-headers/spawn.texi: Mention the new module.
52789
52790 2008-09-28  Bruno Haible  <bruno@clisp.org>
52791
52792         * modules/sched-tests: New file.
52793         * tests/test-sched.c: New file.
52794
52795         New module 'sched'.
52796         * modules/sched: New file.
52797         * lib/sched.in.h: New file.
52798         * m4/sched_h.m4: New file.
52799         * doc/posix-headers/sched.texi: Mention the new module.
52800
52801 2008-09-27  Eric Blake  <ebb9@byu.net>
52802
52803         Fix previous patch, and tweak references to $0.
52804         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52805         (func_version, func_gnulib_dir): Don't call this program
52806         gnulib-tool.
52807         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52808         with using $0 in function.
52809         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52810         (func_fatal_error): Reuse the name the user invoked us with.
52811
52812 2008-09-27  Bruno Haible  <bruno@clisp.org>
52813
52814         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52815         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52816         (gl_ICONV_H): Not here.
52817         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52818         instead of assigning ICONV_H directly.
52819
52820         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52822         WCHAR_H directly.
52823
52824 2008-09-27  Bruno Haible  <bruno@clisp.org>
52825
52826         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52827         * modules/arpa_inet (Depends-on): Add link-warning.
52828         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52829         * modules/unistd (Makefile.am): Likewise.
52830
52831 2008-09-26  Bruno Haible  <bruno@clisp.org>
52832
52833         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52834         variables.
52835         (func_version): Essentially copied from gnulib-tool.
52836         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52837         func_readlink): Copied from gnulib-tool.
52838
52839 2008-09-26  Bruno Haible  <bruno@clisp.org>
52840
52841         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52842         invoking git-version-gen.
52843
52844 2008-09-26  Bruno Haible  <bruno@clisp.org>
52845
52846         * posix-modules: Update to directory names changed on 2008-01-19.
52847         Remove commas in output before splitting into words. No more need to
52848         avoid 'ftruncate' since 2007-02-19.
52849
52850 2008-09-26  Bruno Haible  <bruno@clisp.org>
52851
52852         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52853
52854 2008-09-26  Bruno Haible  <bruno@clisp.org>
52855
52856         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52857         * modules/fwriteerror (Depends-on): Add errno.
52858
52859 2008-09-26  Bruno Haible  <bruno@clisp.org>
52860
52861         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52862         * tests/test-vc-list-files-cvs.sh: Likewise.
52863
52864 2008-09-26  Bruno Haible  <bruno@clisp.org>
52865
52866         * doc/posix-headers/sys_resource.texi: Reorder items.
52867
52868 2008-09-26  Jim Meyering  <meyering@redhat.com>
52869
52870         fts: tweak inode comparison function
52871         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52872         inode numbers, as documented.
52873
52874         fts: sort dirent entries on inode number before traversing
52875         This avoids a quadratic, seek-related performance penalty when
52876         operating on a directory containing many entries (measurable at 10k;
52877         3.5 hours at 2 million entries with a cold cache) on certain types
52878         of file systems, including ext3 and ext4, but not tmpfs.
52879         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52880         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52881         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52882         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52883         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52884         (fts_build): Set the stat.st_ino member from D_INO.
52885         If it is likely to be useful, sort dirent entries on inode number.
52886
52887         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52888         and the struct statfs.f_type member.
52889         * modules/fts (Depends-on): Add d-ino.
52890
52891 2008-09-26  Bruno Haible  <bruno@clisp.org>
52892
52893         * modules/sigpipe-die (Depends-on): Add sigpipe.
52894
52895         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52896         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52897         and GNULIB_STDIO_H_SIGPIPE are set.
52898         * lib/stdio-write.c: New file.
52899         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52900         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52901         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52902         REPLACE_STDIO_WRITE_FUNCS.
52903         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52904         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52905         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52906         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52907         * modules/stdio (Files): Add lib/stdio-write.c.
52908         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52909         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52910         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52911         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52912         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52913         REPLACE_FPRINTF_POSIX.
52914         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52915         REPLACE_PRINTF_POSIX.
52916         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52917         REPLACE_VFPRINTF_POSIX.
52918         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52919         REPLACE_VPRINTF_POSIX.
52920         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52921         SIGPIPE issue.
52922         * doc/posix-functions/fputc.texi: Likewise.
52923         * doc/posix-functions/fputs.texi: Likewise.
52924         * doc/posix-functions/fwrite.texi: Likewise.
52925         * doc/posix-functions/printf.texi: Likewise.
52926         * doc/posix-functions/putc.texi: Likewise.
52927         * doc/posix-functions/putchar.texi: Likewise.
52928         * doc/posix-functions/puts.texi: Likewise.
52929         * doc/posix-functions/vfprintf.texi: Likewise.
52930         * doc/posix-functions/vprintf.texi: Likewise.
52931
52932         * modules/safe-write (Depends-on): Add write.
52933
52934         * modules/sigpipe-tests: New file.
52935         * tests/test-sigpipe.c: New file.
52936         * tests/test-sigpipe.sh: New file.
52937
52938         * modules/write: New file.
52939         * lib/unistd.in.h: Include <sys/types.h>.
52940         (write): New declaration.
52941         * lib/write.c: New file.
52942         * m4/write.m4: New file.
52943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52944         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52945         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52946         GNULIB_WRITE, REPLACE_WRITE.
52947         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52948         and the SIGPIPE issue.
52949
52950         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52951         (raise): New declaration.
52952         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52953         (ext_signal): New function.
52954         (rpl_raise): New function.
52955         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52956         GNULIB_SIGNAL_H_SIGPIPE.
52957         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52958         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52959
52960         * modules/sigpipe: New file.
52961         * m4/sigpipe.m4: New file.
52962
52963 2008-09-25  Derek Price  <derek@ximbiot.com>
52964             Bruno Haible  <bruno@clisp.org>
52965
52966         * gnulib-tool (func_import): Report all license incompatibilities, not
52967         just the first one.
52968
52969 2008-09-25  Bruno Haible  <bruno@clisp.org>
52970
52971         * gnulib-tool (func_import): When computing the edits, consider not
52972         only the Makefile.ams that exist but also those that will be generated.
52973
52974 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52975
52976         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52977         fixes gnulib-tool --test warning about duplicate dependency.
52978
52979 2008-09-25  Bruno Haible  <bruno@clisp.org>
52980
52981         * gnulib-tool: Don't ask the user to perform edits in the generated
52982         Makefile.ams.
52983         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52984         apply to the Makefile.am being generated.
52985         (func_emit_tests_Makefile_am): Execute edits that apply to the
52986         Makefile.am being generated.
52987         (func_import): Setup list of Makefile.am edits before emitting the
52988         Makefile.ams, not at the end.
52989         (func_create_testdir): Update.
52990         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52991
52992 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52993
52994         * gnulib-tool (func_import): Store the --tests-base option in the
52995         comment in gnulib-cache.m4.
52996
52997 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52998
52999         * NEWS: Document increased portability that sys_select now provides.
53000
53001         * lib/sys_select.in.h: Install select wrapper.
53002         * lib/sys_socket.in.h: Use more descriptive name when there is no
53003         select wrapper.
53004         * lib/winsock-select.c: New.
53005         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
53006         Require gl_HEADER_SYS_SOCKET.
53007         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
53008         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
53009         * tests/test-sys_select.c: Add functional tests.
53010
53011 2008-09-24  Eric Blake  <ebb9@byu.net>
53012
53013         open, fopen: close fd leak in last patch
53014         * lib/open.c (rpl_open): Close fd before returning error.
53015         * lib/fopen.c (rpl_fopen): Close fd before returning error.
53016         * doc/posix-functions/open.texi (open): Document that Irix also
53017         has the bug.
53018         * doc/posix-functions/fopen.texi (fopen): Likewise.
53019         Reported by Paolo Bonzini.
53020
53021 2008-09-24  Bruno Haible  <bruno@clisp.org>
53022
53023         Ensure that a filename ending in a slash cannot be used to access a
53024         non-directory.
53025         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
53026         to check whether it's really a directory.
53027         * lib/fopen.c: Include fcntl.h, unistd.h.
53028         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
53029         and fdopen().
53030         * modules/fopen (Depends-on): Add unistd.
53031         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
53032         * tests/test-fopen.c (main): Likewise.
53033         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
53034         * doc/posix-functions/fopen.texi: Likewise.
53035         Reported by Eric Blake.
53036
53037 2008-09-23  Eric Blake  <ebb9@byu.net>
53038
53039         c-stack: avoid compiler optimizations when provoking overflow
53040         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
53041         recursion harder to optimize, to ensure a stack overflow occurs.
53042         * tests/test-c-stack.c (recurse): Likewise.
53043         Borrowed from libsigsegv.
53044
53045         c-stack: work around Irix sigaltstack bug
53046         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
53047         whether sigaltstack uses wrong end of stack_t (copied in part from
53048         libsigsegv).
53049         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
53050         Irix bug, without requiring an over-allocation.
53051         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
53052         bug.
53053
53054         fopen: document mingw bug on directories
53055         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
53056         not allowing a stream visiting a directory, even though reading
53057         from such a stream is not portable.
53058
53059 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53060
53061         * lib/poll.c: Rewrite.
53062         * modules/poll: Depend on alloca.
53063
53064 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53065
53066         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
53067         instead define prototypes for a full set of wrappers.  Ensure
53068         that Cygwin does not use the compatibility code, which is only
53069         for MinGW.
53070         * lib/winsock.c: New.
53071         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
53072         * modules/sys_socket: Add lib/winsock.c.
53073
53074         * modules/poll-tests: Add errno and perror.
53075         * tests/test-poll.c: Use ioctl, not ioctlsocket.
53076
53077 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
53078
53079         * tests/test-poll.c: Downgrade minimum needed Winsock version.
53080
53081 2008-09-23  Bruno Haible  <bruno@clisp.org>
53082
53083         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
53084         * doc/glibc-functions/*: Likewise.
53085
53086 2008-09-23  Simon Josefsson  <simon@josefsson.org>
53087
53088         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
53089         success.
53090
53091 2008-09-22  Eric Blake  <ebb9@byu.net>
53092             Bruno Haible  <bruno@clisp.org>
53093
53094         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
53095         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
53096         supply %A but mishandle pseudo-NaN.
53097         Reported by Simon Josefsson.
53098
53099 2008-09-21  Bruno Haible  <bruno@clisp.org>
53100
53101         * tests/test-lock.c (main): Tweak skip message.
53102         * tests/test-tls.c (main): Likewise.
53103
53104 2008-09-21  Bruno Haible  <bruno@clisp.org>
53105
53106         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
53107         whether 'struct sigaction' has sa_sigaction here...
53108         (gl_PREREQ_SIG_HANDLER_H): ... not here.
53109         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
53110
53111 2008-09-21  Bruno Haible  <bruno@clisp.org>
53112
53113         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
53114         section.
53115         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
53116         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
53117         the new section.
53118         (Support for obsolete systems lacking POSIX:2001): New section.
53119         (String handling <string.h>): Move strdup to the new section.
53120         Suggested by Simon Josefsson and Paolo Bonzini.
53121
53122 2008-09-21  Bruno Haible  <bruno@clisp.org>
53123
53124         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
53125         exponents in %e and %g results on 'long double'. Needed for mingw's
53126         improved *printf functions.
53127         * tests/test-vasprintf-posix.c (test_function): Likewise.
53128         * tests/test-snprintf-posix.h (test_function): Likewise.
53129         * tests/test-sprintf-posix.h (test_function): Likewise.
53130         Reported by Eric Blake.
53131
53132 2008-09-21  Bruno Haible  <bruno@clisp.org>
53133
53134         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
53135         * tests/test-sprintf-posix.h (test_function): Likewise.
53136
53137 2008-09-21  Bruno Haible  <bruno@clisp.org>
53138
53139         * modules/getpass (Depends-on): Add strdup-posix.
53140
53141         New module 'strdup-posix'.
53142         * modules/strdup-posix: New file.
53143         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
53144         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
53145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53146         REPLACE_STRDUP.
53147         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
53148         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
53149         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53150         strdup-posix.
53151
53152         * modules/strdup (Depends-on): Remove malloc-posix.
53153
53154 2008-09-20  Bruno Haible  <bruno@clisp.org>
53155
53156         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
53157         Wildenhues.
53158
53159 2008-09-20  Bruno Haible  <bruno@clisp.org>
53160
53161         Ensure that wint_t gets defined on IRIX 5.3.
53162         * lib/wchar.in.h (wint_t): Define if not defined by the system.
53163         * lib/wctype.in.h (wint_t): Likewise.
53164         (__wctype_wint_t): Remove type.
53165         (isw*): Use wint_t instead of __wctype_wint_t.
53166         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
53167         * modules/wchar (Files): Add m4/wint_t.m4.
53168         (Makefile.am): Substitute HAVE_WINT_T.
53169         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
53170         * tests/test-wctype.c: Check that wint_t is defined.
53171         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
53172         * doc/posix-headers/wctype.texi: Likewise.
53173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
53174
53175 2008-09-18  Bruno Haible  <bruno@clisp.org>
53176
53177         * gnulib-tool (func_exit): Update comment.
53178
53179 2008-09-18  Simon Josefsson  <simon@josefsson.org>
53180
53181         * modules/getaddrinfo (Depends-on): Remove strdup, this module
53182         assumes strdup exists and does not depend on strdup to return
53183         ENOMEM on out of memory conditions.
53184
53185 2008-09-18  Bruno Haible  <bruno@clisp.org>
53186
53187         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
53188         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
53189         digits for the exponent.
53190
53191 2008-09-18  Jim Meyering  <meyering@redhat.com>
53192             Bruno Haible  <bruno@clisp.org>
53193
53194         * lib/vasnprintf.c (decimal_point_char): Define also if
53195         NEED_PRINTF_INFINITE_LONG_DOUBLE.
53196
53197 2008-09-16  Bruno Haible  <bruno@clisp.org>
53198         and Eric Blake  <ebb9@byu.net>
53199
53200         vasnprintf: support Irix 5.3
53201         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
53202         that mishandle long double infinity.
53203         Reported by Tom G. Christensen.
53204
53205 2008-09-16  Bruno Haible  <bruno@clisp.org>
53206
53207         * doc/glibc-functions/scandir.texi: Mention the function is missing on
53208         Solaris 9.
53209         * doc/glibc-functions/alphasort.texi: Likewise.
53210         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
53211
53212 2008-09-16  Jim Meyering  <meyering@redhat.com>
53213
53214         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
53215         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
53216         a umask modification leak out of a subshell.  Otherwise, the
53217         opensolaris /bin/sh would be accepted and thus cause unwarranted
53218         failures in the coreutils test suite.
53219
53220 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
53221
53222         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
53223         to succeed.
53224
53225 2008-09-16  Jim Meyering  <meyering@redhat.com>
53226
53227         avoid spurious test failure when library is built without ACL support
53228         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
53229         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
53230         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
53231         * tests/test-copy-acl.sh: Likewise.
53232
53233 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53234
53235         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
53236         based on character occurrence counts.
53237
53238 2008-09-15  Eric Blake  <ebb9@byu.net>
53239
53240         tests: avoid some compiler warnings
53241         * tests/test-memchr.c (main): Pass NULL indirectly.
53242         * tests/test-closein.c (main): Avoid unused variable.
53243
53244 2008-09-15  Bruno Haible  <bruno@clisp.org>
53245
53246         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
53247         are missing on OpenBSD 4.0 individually.
53248         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53249
53250 2008-09-15  Bruno Haible  <bruno@clisp.org>
53251
53252         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
53253         * doc/posix-functions/strerror.texi: Mention also Cygwin.
53254         * doc/posix-functions/perror.texi: Likewise.
53255         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
53256         is missing.
53257         Reported by Eric Blake.
53258
53259         * lib/errno.in.h: Use replacement values >= 2000.
53260         Reported by Eric Blake.
53261
53262 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53263
53264         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
53265         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
53266         limit.
53267         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
53268         compareseq was aborted.
53269
53270 2008-09-14  Bruno Haible  <bruno@clisp.org>
53271
53272         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
53273         yvec_edit_count.
53274         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
53275         (fstrcmp_bounded): Simplify result computation accordingly.
53276
53277 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53278
53279         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
53280         (fstrcmp): Define in terms of fstrcmp_bounded.
53281         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
53282         lower_bound argument.
53283         Return quickly if the result is certainly < lower_bound.
53284         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
53285
53286 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53287
53288         * lib/diffseq.h (EARLY_ABORT): New macro.
53289         (compareseq): Change return type to bool. Return true when EARLY_ABORT
53290         evaluates to true.
53291
53292 2008-09-14  Bruno Haible  <bruno@clisp.org>
53293
53294         * modules/perror-tests: New file.
53295         * tests/test-perror.sh: New file.
53296         * tests/test-perror.c: New file.
53297
53298         New module 'perror'.
53299         * lib/stdio.in.h (perror): New declaration.
53300         * lib/perror.c: New file.
53301         * m4/perror.m4: New file.
53302         * modules/perror: New file.
53303         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
53304         * doc/posix-functions/perror.texi: Mention the perror module.
53305         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
53306         REPLACE_PERROR.
53307         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
53308         REPLACE_PERROR.
53309
53310 2008-09-14  Bruno Haible  <bruno@clisp.org>
53311
53312         * modules/stdio (Makefile.am): Reorder to match the order in
53313         lib/stdio.in.h.
53314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53315
53316 2008-09-13  Bruno Haible  <bruno@clisp.org>
53317
53318         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53319
53320 2008-09-13  Bruno Haible  <bruno@clisp.org>
53321
53322         Extend strerror to cover the added errno values.
53323         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53324         (rpl_strerror): Provide error messages for the added errno values and
53325         for the WSA* values.
53326         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53327         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53328         strerror.
53329         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53330         * modules/strerror (Depends-on): Add errno.
53331         * doc/posix-functions/strerror.texi: Document the change.
53332         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53333         and EOVERFLOW.
53334
53335 2008-09-13  Bruno Haible  <bruno@clisp.org>
53336
53337         * modules/EOVERFLOW: Remove file.
53338         * m4/eoverflow.m4: Remove file.
53339         * modules/EOVERFLOW-tests: Remove file.
53340         * tests/test-EOVERFLOW.c: Remove file.
53341         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53342         * modules/ftell (Depends-on): Likewise.
53343         * modules/getdelim (Depends-on): Likewise.
53344         * modules/getugroups (Depends-on): Likewise.
53345         * modules/poll (Depends-on): Likewise.
53346         * modules/snprintf (Depends-on): Likewise.
53347         * modules/sprintf-posix (Depends-on): Likewise.
53348         * modules/vasnprintf (Depends-on): Likewise.
53349         * modules/vasprintf (Depends-on): Likewise.
53350         * modules/vfprintf-posix (Depends-on): Likewise.
53351         * modules/vsnprintf (Depends-on): Likewise.
53352         * modules/vsprintf-posix (Depends-on): Likewise.
53353         * modules/xvasprintf (Depends-on): Likewise.
53354         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53355         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53356         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53357         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53358         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53359         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53360         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53361         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53362         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53363         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53364         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53365         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53366         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53367         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53368         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53369         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53370         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53371         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53372         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53373         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53374         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53375         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53376         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53377         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53378         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53379         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53380         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53381         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53382         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53383         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53384         * MODULES.html.sh: Remove EOVERFLOW.
53385         * NEWS: Mention the change.
53386
53387 2008-09-13  Bruno Haible  <bruno@clisp.org>
53388
53389         * modules/errno-tests: New file.
53390         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53391
53392         * lib/errno.in.h: New file.
53393         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53394         * modules/errno: New file.
53395         * doc/posix-headers/errno.texi: Update documentation.
53396         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53397
53398 2008-09-13  Bruno Haible  <bruno@clisp.org>
53399
53400         * tests/test-poll.c: Use #if for native Windows, rather than testing
53401         __MSVCRT__.
53402
53403 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53404             Bruno Haible  <bruno@clisp.org>
53405
53406         * lib/glob.c: Don't include <pwd.h> on native Windows.
53407         (WINDOWS32): New macro.
53408         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53409
53410 2008-09-13  Bruno Haible  <bruno@clisp.org>
53411
53412         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53413         (ETIMEDOUT): Remove macro.
53414         (glthread_cond_timedwait_multithreaded): New declaration.
53415         (glthread_cond_timedwait): Use it.
53416         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53417         (glthread_cond_timedwait_multithreaded): New function.
53418
53419 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53420
53421         * modules/poll-tests: Do not check for io.h.
53422         * tests/test-poll.c: Check for __MSVCRT__ instead.
53423
53424 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53425
53426         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53427         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53428         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53429
53430 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53431
53432         * modules/poll-tests: New.
53433         * tests/test-poll.c: New.
53434
53435 2008-09-12  Eric Blake  <ebb9@byu.net>
53436
53437         frexp: test for NetBSD failure on -0.0
53438         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53439         not all, bugs from NetBSD 3.0 have been fixed.
53440         * doc/posix-functions/frexp.texi (frexp): Document bug.
53441         Reported by Thomas Klausner.
53442
53443         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53444         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53445         literal -0.0.
53446         Reported by Jonathan C. Patschke <jp@centtech.com>.
53447
53448 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53449
53450         * lib/glthread/cond.h: Use dummy implementation also if
53451         USE_WIN32_THREADS.
53452
53453 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53454
53455         * modules/fnmatch-posix (License): Change to LGPLv2+.
53456         * modules/fnmatch-gnu (License): Likewise.
53457
53458 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53459
53460         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53461
53462 2008-09-11  Jim Meyering  <meyering@redhat.com>
53463
53464         * users.txt: Add gtk-vnc.
53465
53466 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53467
53468         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53469         rotate amounts.
53470
53471         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53472         required for 16-bit and 8-bit rotates.
53473         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53474         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53475         UINT8_MAX instead of hard-coded constants.
53476         Suggested by Paul Eggert.
53477
53478 2008-09-07  Bruno Haible  <bruno@clisp.org>
53479
53480         * tests/test-striconveh.c (main): Check behaviour when converting from
53481         UTF-7.
53482
53483         Make striconveh work better with stateful encodings.
53484         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53485         that iconv does not increment the inptr when returning -1/EINVAL.
53486
53487 2008-09-07  Bruno Haible  <bruno@clisp.org>
53488
53489         * build-aux/config.rpath: Update according to libtool-2.2.6.
53490         * build-aux/config.libpath: Likewise.
53491
53492 2008-09-06  Bruno Haible  <bruno@clisp.org>
53493
53494         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53495         * lib/freadptr.c (freadptr): Likewise.
53496         * lib/freadseek.c (freadptrinc): Likewise.
53497         Reported by Simon Josefsson.
53498
53499 2008-09-06  Bruno Haible  <bruno@clisp.org>
53500
53501         * modules/freadptr (License): Change to LGPLv2+.
53502         * modules/freadseek (License): Likewise.
53503         Suggested by Eric Blake.
53504
53505         * modules/memchr2 (License): Change to LGPLv2+.
53506         Approved by Eric Blake.
53507
53508 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53509             Bruno Haible  <bruno@clisp.org>
53510
53511         Make gnulib-tool work with native 'sed' on AIX.
53512         * gnulib-tool (sed_noop): New variable.
53513         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53514         func_add_or_update, func_create_testdir): Use it to initialize sed
53515         script variables.
53516         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53517
53518 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53519             Bruno Haible  <bruno@clisp.org>
53520
53521         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53522         also works after #include directives.
53523
53524 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
53525
53526         getdate.y: reject an out-of-range timezone value
53527         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53528         the range [-24...+24].  When specified with only one or two digits,
53529         * tests/test-getdate.c: Tests for the fix.
53530         * doc/getdate.texi: Document this change.
53531
53532 2008-09-03  Bruno Haible  <bruno@clisp.org>
53533
53534         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53535
53536 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53537
53538         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53539         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53540         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53541         Blake <ebb9@byu.net>.
53542
53543         * tests/test-bitrotate.c: Add more test vectors.
53544
53545 2008-09-02  Eric Blake  <ebb9@byu.net>
53546
53547         vasnprintf-posix: handle large precision via %.*d
53548         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53549         when handling it ourselves.
53550         * tests/test-vasnprintf-posix.c (test_function): Add test.
53551         * tests/test-snprintf-posix.h (test_function): Likewise.
53552         * tests/test-sprintf-posix.h (test_function): Likewise.
53553         * tests/test-vasprintf-posix.c (test_function): Likewise.
53554         Reported by Alain Guibert.
53555
53556 2008-09-01  Eric Blake  <ebb9@byu.net>
53557
53558         c-stack: make configure-time check more robust
53559         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53560         successful sigaction call.
53561         Reported by Tom G. Christensen.
53562
53563 2008-09-01  Bruno Haible  <bruno@clisp.org>
53564
53565         New module 'findprog-lgpl'.
53566         * modules/findprog-lgpl: New file.
53567         * lib/findprog-lgpl.c: New file.
53568         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53569         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53570         to decide whether to use strdup or xstrdup, concatenated_filename or
53571         xconcatenated_filename.
53572
53573 2008-09-01  Bruno Haible  <bruno@clisp.org>
53574
53575         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53576         'xconcat-filename' (GPL).
53577         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53578         (License): Change to LGPLv2+.
53579         * modules/xconcat-filename: New file.
53580         * lib/concat-filename.h (concatenated_filename): Change specification.
53581         (xconcatenated_filename): New declaration.
53582         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53583         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53584         memory situations.
53585         * lib/xconcat-filename.c: New file.
53586         * NEWS: Mention the change.
53587         * lib/findprog.c: Include concat-filename.h, not filename.h.
53588         (find_in_path): Use xconcatenated_filename instead of
53589         concatenated_filename.
53590         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53591         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53592         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53593         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53594         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53595         instead of concatenated_filename.
53596         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53597         (execute_java_class): Use xconcatenated_filename instead of
53598         concatenated_filename.
53599         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53600         * modules/javacomp (Depends-on): Likewise.
53601         * modules/javaexec (Depends-on): Likewise.
53602
53603 2008-09-01  Bruno Haible  <bruno@clisp.org>
53604
53605         Split module 'filename' into 'filename' and 'concat-filename'.
53606         * modules/filename: Keep only lib/filename.h.
53607         (License): Change to LGPLv2+.
53608         * modules/concat-filename: New file, extracted from modules/filename.
53609         * lib/filename.h (concatenated_filename): Remove declaration.
53610         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53611         * lib/concat-filename.c: Include concat-filename.h.
53612         * NEWS: Mention the change.
53613
53614 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53615
53616         * lib/bitrotate.h (rotl8, rotr8): Add.
53617
53618         * modules/bitrotate (configure.ac): Need
53619         AC_REQUIRE([AC_C_INLINE]).
53620         (Description): Mention stdint.h.  Reported by Bruno Haible
53621         <bruno@clisp.org>.
53622
53623         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53624         Paolo Bonzini <bonzini@gnu.org>.
53625
53626 2008-08-31  Bruno Haible  <bruno@clisp.org>
53627
53628         Assume Solaris specific bi-arch conventions on Solaris systems.
53629         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53630         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53631         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53632         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53633         like acl_libdirstem.
53634         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53635         acl_libdirstem.
53636         * NEWS: Mention the change.
53637         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53638
53639 2008-08-31  Jim Meyering  <meyering@redhat.com>
53640
53641         * lib/strftime.h: Add comments describing the two added arguments.
53642
53643         remove duplicate #include directives
53644         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53645         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53646
53647 2008-08-31  Bruno Haible  <bruno@clisp.org>
53648
53649         New module 'sigpipe-die'.
53650         * modules/sigpipe-die: New file.
53651         * lib/sigpipe-die.h: New file.
53652         * lib/sigpipe-die.c: New file.
53653         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53654
53655 2008-08-31  Bruno Haible  <bruno@clisp.org>
53656
53657         Don't override previously installed signal handlers.
53658         * lib/fatal-signal.c (saved_sigactions): New variable.
53659         (uninstall_handlers): Reset the signal to the saved handler, not
53660         to SIG_DFL (except when ignored).
53661         (install_handlers): Save the previous handlers.
53662
53663 2008-08-30  Bruno Haible  <bruno@clisp.org>
53664
53665         * gnulib-tool (func_reset_sigpipe): New function.
53666         (func_get_automake_snippet, func_modules_transitive_closure,
53667         func_import): Invoke it before a join command that reads from stdin,
53668         to avoid "echo: write error: Broken pipe" error messages on stderr.
53669         Reported by Sam Steingold <sds@gnu.org>.
53670
53671 2008-08-30  Bruno Haible  <bruno@clisp.org>
53672
53673         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53674         Code copied from m4/open.m4.
53675         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53676         access and the filename ends in a slash. Code copied from lib/open.c.
53677         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53678         * tests/test-fopen.c (main): Check against bug with trailing slash.
53679
53680 2008-08-29  Bruno Haible  <bruno@clisp.org>
53681
53682         Avoid some "gcc -pedantic" warnings.
53683         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53684         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53685         * lib/dirent.in.h: Likewise.
53686         * lib/fcntl.in.h: Likewise.
53687         * lib/float.in.h: Likewise.
53688         * lib/iconv.in.h: Likewise.
53689         * lib/inttypes.in.h: Likewise.
53690         * lib/locale.in.h: Likewise.
53691         * lib/math.in.h: Likewise.
53692         * lib/netinet_in.in.h: Likewise.
53693         * lib/search.in.h: Likewise.
53694         * lib/signal.in.h: Likewise.
53695         * lib/stdarg.in.h: Likewise.
53696         * lib/stdint.in.h: Likewise.
53697         * lib/stdio.in.h: Likewise.
53698         * lib/stdlib.in.h: Likewise.
53699         * lib/string.in.h: Likewise.
53700         * lib/strings.in.h: Likewise.
53701         * lib/sys_select.in.h: Likewise.
53702         * lib/sys_socket.in.h: Likewise.
53703         * lib/sys_stat.in.h: Likewise.
53704         * lib/sys_time.in.h: Likewise.
53705         * lib/sysexits.in.h: Likewise.
53706         * lib/time.in.h: Likewise.
53707         * lib/unistd.in.h: Likewise.
53708         * lib/wchar.in.h: Likewise.
53709         * lib/wctype.in.h: Likewise.
53710         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53711         * modules/fchdir (Makefile.am): Likewise.
53712         * modules/fcntl (Makefile.am): Likewise.
53713         * modules/float (Makefile.am): Likewise.
53714         * modules/iconv_open (Makefile.am): Likewise.
53715         * modules/inttypes (Makefile.am): Likewise.
53716         * modules/locale (Makefile.am): Likewise.
53717         * modules/math (Makefile.am): Likewise.
53718         * modules/netinet_in (Makefile.am): Likewise.
53719         * modules/search (Makefile.am): Likewise.
53720         * modules/signal (Makefile.am): Likewise.
53721         * modules/stdarg (Makefile.am): Likewise.
53722         * modules/stdint (Makefile.am): Likewise.
53723         * modules/stdio (Makefile.am): Likewise.
53724         * modules/stdlib (Makefile.am): Likewise.
53725         * modules/string (Makefile.am): Likewise.
53726         * modules/strings (Makefile.am): Likewise.
53727         * modules/sys_select (Makefile.am): Likewise.
53728         * modules/sys_socket (Makefile.am): Likewise.
53729         * modules/sys_stat (Makefile.am): Likewise.
53730         * modules/sys_time (Makefile.am): Likewise.
53731         * modules/sysexits (Makefile.am): Likewise.
53732         * modules/time (Makefile.am): Likewise.
53733         * modules/unistd (Makefile.am): Likewise.
53734         * modules/wchar (Makefile.am): Likewise.
53735         * modules/wctype (Makefile.am): Likewise.
53736         Reported by Reuben Thomas <rrt@sc3d.org>.
53737
53738 2008-08-29  Bruno Haible  <bruno@clisp.org>
53739
53740         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53741         any more.
53742
53743 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53744
53745         * MODULES.html.sh (Misc): Add bitrotate.
53746
53747         * modules/bitrotate: New file.
53748
53749         * lib/bitrotate.h: New file.
53750
53751         * modules/bitrotate-tests: New file.
53752
53753         * tests/test-bitrotate.c: New file.
53754
53755         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53756         on the bitrotate module.
53757
53758         * lib/arctwo.c: Use new bitrotate module.
53759
53760 2008-08-29  Jim Meyering  <meyering@redhat.com>
53761
53762         bootstrap: merge changes from coreutils
53763         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53764         of copied files.  Remove a kludge, now that this is fixed.
53765         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53766         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53767         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53768
53769 2008-08-29  Bruno Haible  <bruno@clisp.org>
53770
53771         * MODULES.html.sh: Remove --cvs-urls option.
53772
53773 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53774
53775         maint.mk: adjust to file name change
53776         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53777
53778 2008-08-28  Jim Meyering  <meyering@redhat.com>
53779
53780         * modules/getndelim2 (License): Relicense to LGPLv2+.
53781         Approved by Richard Stallman for the version of 1995, and by
53782         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53783
53784 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53785
53786         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53787         dummy if one is not available.  Do not touch them if
53788         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53789         (getc_maybe_unlocked): New.
53790         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53791
53792 2008-08-26  Eric Blake  <ebb9@byu.net>
53793
53794         doc/INSTALL: resync from autoconf
53795         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53796         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53797         moving...
53798         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53799         * INSTALL: Regenerate.
53800         * INSTALL.ISO: New file.
53801         * INSTALL.UTF-8: Likewise.
53802
53803 2008-08-26  Jim Meyering  <meyering@redhat.com>
53804
53805         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53806         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53807         these definitions conditional, so that they may be overridden, too.
53808
53809 2008-08-26  Bruno Haible  <bruno@clisp.org>
53810
53811         Generate INSTALL file variants with prettier quotes.
53812         * doc/Makefile (INSTALL_PRELUDE): New macro.
53813         (INSTALL): Use it.
53814         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53815
53816 2008-08-26  Bruno Haible  <bruno@clisp.org>
53817
53818         Run makeinfo in an English locale.
53819         * doc/Makefile (MAKEINFO): New variable.
53820
53821 2008-08-26  Bruno Haible  <bruno@clisp.org>
53822
53823         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53824         Suggested by Eric Blake.
53825
53826 2008-08-25  Bruno Haible  <bruno@clisp.org>
53827
53828         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53829
53830 2008-08-25  Eric Blake  <ebb9@byu.net>
53831
53832         c-stack: test that stack overflow can be caught
53833         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53834         that platform allows handling stack overflow; at least OS/2 EMX
53835         has sigaltstack, but crashes before transferring control to
53836         handler on stack overflow.
53837         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53838         check for HAVE_STACK_OVERFLOW_HANDLING.
53839         Reported by Elbert Pol.
53840
53841 2008-08-25  Bruno Haible  <bruno@clisp.org>
53842
53843         * doc/posix-functions/strftime.texi: Fix description of strftime
53844         module.
53845
53846 2008-08-24  Bruno Haible  <bruno@clisp.org>
53847
53848         * tests/uniwidth/test-uc_width2.c: New file.
53849         * tests/uniwidth/test-uc_width2.sh: New file.
53850         * modules/uniwidth/width-tests (Files): Add the new files.
53851         (TESTS): Add uniwidth/test-uc_width2.sh.
53852         (TESTS_ENVIRONMENT): New variable.
53853         (check_PROGRAMS): Add test-uc_width2.
53854         (test_uc_width2_SOURCES): New variable.
53855
53856         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53857         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53858         not 0x00AB.
53859         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53860
53861 2008-08-22  Eric Blake  <ebb9@byu.net>
53862
53863         test-lock, test-tls: mention why a test is skipped
53864         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53865         skipped.
53866         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53867
53868         count-one-bits: relax license
53869         * modules/count-one-bits (License): Relicense to LGPLv2+.
53870         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53871
53872 2008-08-22  Andreas Schwab  <schwab@suse.de>
53873
53874         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53875         Remove spurious space in assignment.
53876
53877 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53878
53879         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53880         Paul Eggert <eggert@CS.UCLA.EDU>.
53881
53882 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53883
53884         * modules/gettext: Add m4/threadlib.m4.
53885
53886 2008-08-19  Eric Blake  <ebb9@byu.net>
53887
53888         test-c-stack: fix compilation failure on FreeBSD 5.0
53889         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53890         headers before <sys/resource.h>.
53891         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53892         the bug.
53893         Reported by Nelson H. F. Beebe.
53894
53895         strverscmp: migrate from "strverscmp.h" to <string.h>
53896         * modules/string (Makefile.am): Add new hooks.
53897         * modules/strverscmp (Files): Remove strverscmp.h.
53898         (Depends-on): Add string.
53899         (configure.ac): Add indicator.
53900         (Include): Mention new header.
53901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53902         defaults.
53903         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53904         results.
53905         * lib/strverscmp.h: Delete.
53906         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53907         * tests/test-strverscmp.c (includes): Adjust client.
53908         * lib/check-version.c (includes): Likewise.
53909         * NEWS: Document the change.
53910
53911         strverscmp: add unit test
53912         * modules/strverscmp-tests: New file.
53913         * tests/test-strverscmp.c: Likewise.
53914
53915 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53916
53917         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53918         regarding Windows crypto stuff, from Mono.
53919
53920 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53921
53922         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53923         if present, for intel RND.  Return error on failures.
53924
53925 2008-08-18  Ben Pfaff  <blp@gnu.org>
53926
53927         gitlog-to-changelog: give better diagnostic for failed pipe-open
53928         * build-aux/gitlog-to-changelog: Improve error message: suggest
53929         that the version of Git may be too old.
53930
53931 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53932
53933         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53934         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53935
53936 2008-08-18  Bruno Haible  <bruno@clisp.org>
53937
53938         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53939         pthread_in_use().
53940
53941 2008-08-18  Bruno Haible  <bruno@clisp.org>
53942
53943         * lib/glthread/threadlib.c: Include <pthread.h>.
53944
53945 2008-08-18  Bruno Haible  <bruno@clisp.org>
53946
53947         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53948         glthread_recursive_lock_* macros.
53949         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53950         Fix syntax error.
53951
53952 2008-08-18  Bruno Haible  <bruno@clisp.org>
53953
53954         * lib/glthread/thread.c: Avoid forcing a context switch right after
53955         thread creation.
53956
53957 2008-08-17  Bruno Haible  <bruno@clisp.org>
53958
53959         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53960         * lib/glthread/thread.h: Provide Win32 specific implementation.
53961         * modules/thread (Files): Add lib/glthread/thread.c.
53962         (Depends-on): Add lock.
53963         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53964
53965 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53966
53967         New module 'yield'.
53968         * modules/yield: New file.
53969         * lib/glthread/yield.h: New file.
53970         * m4/yield.m4: New file.
53971         * MODULES.html.sh (Multithreading): Add yield.
53972
53973 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53974
53975         New module 'thread'.
53976         * modules/thread: New file.
53977         * lib/glthread/thread.h: New file.
53978         * m4/thread.m4: New file.
53979         * MODULES.html.sh (Multithreading): Add thread.
53980
53981 2008-08-17  Bruno Haible  <bruno@clisp.org>
53982
53983         * lib/glthread/lock.h: Include <stdlib.h> always.
53984         * lib/glthread/tls.h: Likewise.
53985         * lib/glthread/cond.h: Likewise.
53986
53987 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53988
53989         New module 'cond'.
53990         * modules/cond: New file.
53991         * lib/glthread/cond.h: New file.
53992         * lib/glthread/cond.c: New file.
53993         * m4/cond.m4: New file.
53994         * MODULES.html.sh (Multithreading): Add cond.
53995
53996 2008-08-16  Eric Blake  <ebb9@byu.net>
53997
53998         c-stack: fix regression on Irix 5.3 from 2008-06-21
53999         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
54000         sa_sigaction...
54001         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
54002         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
54003         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
54004         * modules/signal (Makefile.am): Use the value.
54005         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
54006         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
54007         * doc/posix-headers/signal.texi (signal.h): Document this
54008         portability issue.
54009         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
54010         Reported by Tom G. Christensen.
54011
54012 2008-08-17  Bruno Haible  <bruno@clisp.org>
54013
54014         New module 'threadlib'.
54015         * modules/threadlib: New file.
54016         * lib/glthread/threadlib.c: New file, extracted from
54017         lib/glthread/lock.c.
54018         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
54019         functions.
54020         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
54021         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
54022         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
54023         macros.
54024         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
54025         (gl_DISABLE_THREADS): Remove macro.
54026         * modules/lock (Files): Remove build-aux/config.rpath.
54027         (Depends-on): Remove havelib. Add threadlib.
54028         (configure.ac-early): Remove section.
54029         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
54030         * modules/tls (Depends-on): Remove lock. Add threadlib.
54031         (Link): New section, copied from threadlib.
54032         * MODULES.html.sh (Multithreading): Add threadlib.
54033
54034 2008-08-14  Bruno Haible  <bruno@clisp.org>
54035
54036         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
54037         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
54038         glthread_rwlock_unlock, glthread_rwlock_destroy,
54039         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
54040         glthread_recursive_lock_destroy): Define as macros always.
54041         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
54042         glthread_lock_lock.
54043         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
54044         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
54045         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
54046         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
54047         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
54048         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
54049         (glthread_recursive_lock_lock_func): Renamed from
54050         glthread_recursive_lock_lock.
54051         (glthread_recursive_lock_unlock_func): Renamed from
54052         glthread_recursive_lock_unlock.
54053         (glthread_recursive_lock_destroy_func): Renamed from
54054         glthread_recursive_lock_destroy.
54055
54056 2008-08-14  Bruno Haible  <bruno@clisp.org>
54057
54058         * lib/glthread/lock.h: Renamed from lib/lock.h.
54059         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
54060         * lib/glthread/tls.h: Renamed from lib/tls.h.
54061         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
54062         * lib/fstrcmp.c: Update includes.
54063         * lib/strsignal.c: Update includes.
54064         * modules/lock (Files, Makefile.am): Update.
54065         (Include): Change to "glthread/lock.h".
54066         * modules/tls (Files, Makefile.am): Update.
54067         (Include): Change to "glthread/tls.h".
54068         * tests/test-lock.c: Update includes.
54069         * tests/test-tls.c: Update includes.
54070         * NEWS: Mention the renamed header files.
54071
54072 2008-08-11  Jim Meyering  <meyering@redhat.com>
54073
54074         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
54075
54076 2008-08-11  Eric Blake  <ebb9@byu.net>
54077
54078         test-c-stack: avoid C99-ism
54079         * tests/test-c-stack.c (main): Fix whitespace, move declaration
54080         before statement.
54081         Reported by Alain Guibert.
54082
54083 2008-08-10  Jim Meyering  <meyering@redhat.com>
54084
54085         ensure that return value of uinttostr et al are not ignored
54086         * lib/inttostr.h (__GNUC_PREREQ): Define.
54087         (__attribute_warn_unused_result__): Define.
54088         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
54089
54090 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
54091
54092         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
54093         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
54094
54095 2008-08-07  Jim Meyering  <meyering@redhat.com>
54096
54097         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
54098
54099         * modules/mkstemp (License): Relicense under LGPLv2+.
54100         * modules/tempname (License): Likewise.
54101
54102 2008-08-06  Bruno Haible  <bruno@clisp.org>
54103
54104         * lib/poll.c (poll): Further micro-optimization.
54105
54106 2008-08-06  Jim Meyering  <meyering@redhat.com>
54107
54108         inet_pton.c: use locale-independent tolower
54109         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
54110         (inet_pton6): Use c_tolower rather than tolower.
54111         * modules/inet_pton (Depends-on): Add c-ctype.
54112
54113 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
54114
54115         * lib/poll.c (poll): Avoid division when timeout is 0, cache
54116         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
54117
54118 2008-08-06  Jim Meyering  <meyering@redhat.com>
54119
54120         * modules/inet_pton (License): Relicense under LGPLv2+.
54121
54122 2008-08-03  Bruno Haible  <bruno@clisp.org>
54123
54124         Additional non-aborting API for lock and tls.
54125         * lib/lock.h: Include <errno.h>.
54126         (glthread_lock_init): New macro/function.
54127         (gl_lock_init): Define as wrapper around glthread_lock_init.
54128         (glthread_lock_lock): New macro/function.
54129         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
54130         (glthread_lock_unlock): New macro/function.
54131         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
54132         (glthread_lock_destroy): New macro/function.
54133         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
54134         (glthread_rwlock_init): New macro/function.
54135         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
54136         (glthread_rwlock_rdlock): New macro/function.
54137         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
54138         (glthread_rwlock_wrlock): New macro/function.
54139         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
54140         (glthread_rwlock_unlock): New macro/function.
54141         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
54142         (glthread_rwlock_destroy): New macro/function.
54143         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
54144         (glthread_recursive_lock_init): New macro/function.
54145         (gl_recursive_lock_init): Define as wrapper around
54146         glthread_recursive_lock_init.
54147         (glthread_recursive_lock_lock): New macro/function.
54148         (gl_recursive_lock_lock): Define as wrapper around
54149         glthread_recursive_lock_lock.
54150         (glthread_recursive_lock_unlock): New macro/function.
54151         (gl_recursive_lock_unlock): Define as wrapper around
54152         glthread_recursive_lock_unlock.
54153         (glthread_recursive_lock_destroy): New macro/function.
54154         (gl_recursive_lock_destroy): Define as wrapper around
54155         glthread_recursive_lock_destroy.
54156         (glthread_once): New macro/function.
54157         (gl_once): Define as wrapper around glthread_once.
54158         Update function declarations.
54159         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
54160         glthread_rwlock_init. Return error code.
54161         (glthread_rwlock_rdlock_multithreaded): Renamed from
54162         glthread_rwlock_rdlock. Return error code.
54163         (glthread_rwlock_wrlock_multithreaded): Renamed from
54164         glthread_rwlock_wrlock. Return error code.
54165         (glthread_rwlock_unlock_multithreaded): Renamed from
54166         glthread_rwlock_unlock. Return error code.
54167         (glthread_rwlock_destroy_multithreaded): Renamed from
54168         glthread_rwlock_destroy. Return error code.
54169         (glthread_recursive_lock_init_multithreaded): Renamed from
54170         glthread_recursive_lock_init. Return error code.
54171         (glthread_recursive_lock_lock_multithreaded): Renamed from
54172         glthread_recursive_lock_lock. Return error code.
54173         (glthread_recursive_lock_unlock_multithreaded): Renamed from
54174         glthread_recursive_lock_unlock. Return error code.
54175         (glthread_recursive_lock_destroy_multithreaded): Renamed from
54176         glthread_recursive_lock_destroy. Return error code.
54177         (glthread_once_call): Make static.
54178         (glthread_once_multithreaded): Renamed from glthread_once.
54179         * lib/tls.h: Include <errno.h>.
54180         (glthread_tls_key_init): New macro/function.
54181         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
54182         (glthread_tls_set): New macro/function.
54183         (gl_tls_set): Define as wrapper around glthread_tls_set.
54184         (glthread_tls_key_destroy): New macro/function.
54185         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
54186         Update function declarations.
54187         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
54188         glthread_tls_get.
54189         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54190
54191 2008-08-04  Eric Blake  <ebb9@byu.net>
54192
54193         gnumakefile: use space, not TAB, outside of targets
54194         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
54195
54196 2008-08-02  Jim Meyering  <meyering@redhat.com>
54197
54198         getdate.y: avoid locale-dependent date parsing failure
54199         In Turkish locales, getdate would fail to recognize keywords
54200         containing a lowercase "i".  The solution is not to rely on
54201         locale-sensitive case-conversion.
54202         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
54203         (lookup_word): Use c_toupper in place of toupper.
54204         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
54205         Reported by Vefa Bicakci <bicave@superonline.com> in
54206         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
54207         * modules/getdate (Depends-on): Add c-ctype.
54208
54209 2008-08-02  Bruno Haible  <bruno@clisp.org>
54210
54211         * gnulib-tool (func_import): When updating or creating a .gitignore
54212         file, prepend each added line with a slash, and ignore leading slashes
54213         from the existing lines.
54214         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54215
54216 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54217
54218         Portability fix for GNU make 3.79.1.
54219         * top/GNUmakefile: Avoid 'else COND', which older GNU make
54220         versions do not understand.
54221
54222 2008-08-01  Bruno Haible  <bruno@clisp.org>
54223
54224         Work around bug of HP-UX 10.20 cc with -0.0 literal.
54225         * tests/test-isnanf.h (zero): New variable.
54226         (main): Avoid literal -0.0f.
54227         * tests/test-isnand.h (zero): New variable.
54228         (main): Avoid literal -0.0.
54229         * tests/test-isnanl.h (zero): New variable.
54230         (main): Avoid literal -0.0L.
54231         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
54232         (test_float, test_double, test_long_double): Avoid literals -0.0f,
54233         -0.0, -0.0L.
54234         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
54235         (test_signbitd): Avoid literal -0.0.
54236         (test_signbitl): Avoid literal -0.0L.
54237         * tests/test-ceilf1.c (zero): New variable.
54238         (main): Avoid literal -0.0f.
54239         * tests/test-ceill.c (zero): New variable.
54240         (main): Avoid literal -0.0L.
54241         * tests/test-floorf1.c (zero): New variable.
54242         (main): Avoid literal -0.0f.
54243         * tests/test-floorl.c (zero): New variable.
54244         (main): Avoid literal -0.0L.
54245         * tests/test-roundf1.c (zero): New variable.
54246         (main): Avoid literal -0.0f.
54247         * tests/test-round1.c (zero): New variable.
54248         (main): Avoid literal -0.0.
54249         * tests/test-roundl.c (zero): New variable.
54250         (main): Avoid literal -0.0L.
54251         * tests/test-truncf1.c (zero): New variable.
54252         (main): Avoid literal -0.0f.
54253         * tests/test-trunc1.c (zero): New variable.
54254         (main): Avoid literal -0.0.
54255         * tests/test-truncl.c (zero): New variable.
54256         (main): Avoid literal -0.0L.
54257         * tests/test-frexp.c (zero): New variable.
54258         (main): Avoid literal -0.0.
54259         * tests/test-frexpl.c (zero): New variable.
54260         (main): Avoid literal -0.0L.
54261         * tests/test-ldexpl.c (zero): New variable.
54262         (main): Avoid literal -0.0L.
54263         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54264         (zerod, zerol): New variables.
54265         (test_function): Avoid literals -0.0, -0.0L.
54266         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
54267         (zerod, zerol): New variables.
54268         (test_function): Avoid literals -0.0, -0.0L.
54269         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54270         (zerod, zerol): New variables.
54271         (test_function): Avoid literals -0.0, -0.0L.
54272         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
54273         (zerod, zerol): New variables.
54274         (test_function): Avoid literals -0.0, -0.0L.
54275         * tests/test-strtod.c (zero): New variable.
54276         (main): Avoid literal -0.0.
54277         Reported by Jonathan C. Patschke <jp@centtech.com>.
54278
54279 2008-07-31  Jim Meyering  <meyering@redhat.com>
54280
54281         sha256.h: correct definition of SHA224_DIGEST_SIZE
54282         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
54283         Reported by Paulie Pena IV <paulie4@gmail.com>.
54284         Define as 224 / 8, rather than as a literal.
54285         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
54286         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
54287         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
54288
54289 2008-07-31  Bruno Haible  <bruno@clisp.org>
54290
54291         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
54292         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
54293         Reported by Jonathan Patschke <jp@centtech.com>.
54294
54295 2008-07-31  Bruno Haible  <bruno@clisp.org>
54296
54297         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
54298         Reported by Paolo Bonzini <bonzini@gnu.org>.
54299
54300 2008-07-30  Eric Blake  <ebb9@byu.net>
54301
54302         test-strtod: allow compilation without -lm
54303         * tests/test-strtod.c (main): Avoid link dependence on fabs.
54304         Reported by Dennis Clarke <blastwave@gmail.com>.
54305
54306 2008-07-28  Jim Meyering  <meyering@redhat.com>
54307
54308         bootstrap: work also when there are no .po files in po/
54309         * build-aux/bootstrap (update_po_files): Complete the change
54310         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
54311
54312 2008-07-27  Jim Meyering  <meyering@redhat.com>
54313
54314         * users.txt: Add zile.
54315
54316 2008-07-26  Ben Pfaff  <blp@gnu.org>
54317
54318         Add missing dependencies on new m4/exponent[fdl].m4 files.
54319         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54320         * modules/isnand-nolibm: Add m4/exponentd.m4.
54321         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54322         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54323         m4/isnan[fdl].m4, because the macros actually used moved.
54324         Reported by Jim Meyering.
54325
54326 2008-07-14  Ben Pfaff  <blp@gnu.org>
54327
54328         Add isinf module.
54329         * lib/isinf.c: New file.
54330         * lib/math.in.h: Define isinf macro if we have decided to replace
54331         it.
54332         * m4/isinf.m4: New file.
54333         * m4/math_h.m4: Initialize and substitute variables for isinf
54334         module.
54335         * modules/isinf: New file.
54336         * modules/isinf-tests: New file.
54337         * modules/math: Add substitutions for new module.
54338         * tests/test-isinf.c: New file.
54339         * doc/posix-functions/isinf.texi: Mention new module.
54340         * MODULES.html.sh: Mention new module.
54341
54342 2008-07-14  Ben Pfaff  <blp@gnu.org>
54343
54344         Factor out some macros for use by additional modules.
54345         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54346         exponentf.m4.
54347         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54348         exponentd.m4.
54349         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54350         file exponentl.m4.
54351         * m4/exponentf.m4: New file.
54352         * m4/exponentd.m4: New file.
54353         * m4/exponentl.m4: New file.
54354         * modules/isnanf: Use new file m4/exponentf.m4.
54355         * modules/isnand: Use new file m4/exponentd.m4.
54356         * modules/isnanl: Use new file m4/exponentl.m4.
54357
54358 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54359
54360         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54361         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54362         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54363         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54364
54365         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54366         readlink on platforms without PATH_MAX.
54367
54368 2008-07-21  Eric Blake  <ebb9@byu.net>
54369
54370         Warn, not fail, on stale version.
54371         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54372
54373         Don't allow installation with stale devel version number.
54374         * top/GNUmakefile (_is-install-target): New macro.
54375         (_curr-ver): Forbid installation with stale version number.
54376
54377 2008-07-20  Bruno Haible  <bruno@clisp.org>
54378
54379         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54380         TESTS_ENVIRONMENT.
54381         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54382
54383 2008-07-20  Bruno Haible  <bruno@clisp.org>
54384
54385         * lib/c-stack.h (c_stack_action): Add documentation.
54386         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54387
54388 2008-07-20  Bruno Haible  <bruno@clisp.org>
54389
54390         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54391         * modules/readlink (License): Likewise.
54392
54393 2008-07-17  Eric Blake  <ebb9@byu.net>
54394
54395         * modules/c-stack (Link): Fix typo.
54396
54397         Make c-stack use libsigsegv, when available.
54398         * modules/c-stack (Depends-on): Add libsigsegv.
54399         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54400         needed.
54401         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54402         (segv_handler, overflow_handler, c_stack_action)
54403         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54404         implementation when libsigsegv is available, but only when using
54405         the library is necessary.
54406         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54407         comment, explaining why XSI check fails on Linux.
54408         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54409         * tests/test-c-stack2.sh: Tweak skip message.
54410         * NEWS: Document new link-time requirements.
54411
54412 2008-07-16  Eric Blake  <ebb9@byu.net>
54413
54414         c-stack: Expose false positives when not using libsigsegv.
54415         * modules/c-stack-tests (Files): Expand test.
54416         * tests/test-c-stack.c (main): Add means to conditionally trigger
54417         non-overflow SIGSEGV.
54418         * tests/test-c-stack2.sh: New file.
54419
54420 2008-07-14  Bruno Haible  <bruno@clisp.org>
54421
54422         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54423         Reported by Eric Blake.
54424
54425 2008-07-14  Sam Steingold  <sds@gnu.org>
54426             Bruno Haible  <bruno@clisp.org>
54427
54428         New module libsigsegv.
54429         * modules/libsigsegv: New file.
54430         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54431         modifications.
54432         * MODULES.html.sh (Signal handling): New section.
54433
54434 2008-07-14  Bruno Haible  <bruno@clisp.org>
54435
54436         * modules/unictype/ctype-* (Description): Add the word "function".
54437         Improves the resulting doc in MODULES.html.
54438
54439 2008-07-12  Ben Pfaff  <blp@gnu.org>
54440
54441         Add longlong module.
54442         * modules/longlong: New file.
54443
54444 2008-07-12  Bruno Haible  <bruno@clisp.org>
54445
54446         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54447         to empty.
54448
54449 2008-07-10  Ben Pfaff  <blp@gnu.org>
54450
54451         Add isnan module.
54452         * doc/posix-functions/isnan.texi: Mention new module.
54453         * lib/math.in.h: Define isnan macro if we have decided to replace
54454         it.
54455         * m4/isnan.m4: New file.
54456         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54457         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54458         also.
54459         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54460         redundancy.
54461         * m4/math_h.m4: Initialize and substitute variables for isnan
54462         module.
54463         * modules/isnan: New file.
54464         * modules/isnan-tests: New file.
54465         * modules/math: Add substitutions for new module.
54466         * tests/test-isnan.c: New file.
54467         * MODULES.html.sh: Mention new module.
54468
54469 2008-07-10  Ben Pfaff  <blp@gnu.org>
54470
54471         Add isnanf module.
54472         * lib/isnanf.m4: New file.
54473         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54474         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54475         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54476         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54477         * modules/isnanf: New file.
54478         * modules/isnanf-tests: New file.
54479         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54480         files.
54481         * tests/test-isnanf-nolibm.c: factored most of its contents into
54482         new file tests/test-isnanf.h.
54483         * tests/test-isnanf.h: New file.
54484         * tests/test-isnanf.c: New file.
54485         * MODULES.html.sh: Mention new module.
54486         * doc/glibc-functions/isnanf.texi: Mention new module.
54487
54488 2008-07-10  Ben Pfaff  <blp@gnu.org>
54489
54490         Add isnand module.
54491         * lib/isnand.h: New file.
54492         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54493         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54494         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54495         functionality also.
54496         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54497         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54498         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54499         * modules/isnand: New file.
54500         * modules/isnand-tests: New file.
54501         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54502         files.
54503         * tests/test-isnand-nolibm.c: factored most of its contents into
54504         new file tests/test-isnand.h.
54505         * tests/test-isnand.h: New file.
54506         * tests/test-isnand.c: New file.
54507         * MODULES.html.sh: Mention new module.
54508
54509 2008-07-10  Ben Pfaff  <blp@gnu.org>
54510
54511         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54512         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54513         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54514         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54515         * modules/isnanf-nolibm: Update references to renamed files.
54516         * modules/isnand-nolibm: Likewise.
54517         * modules/isnanf-nolibm-tests: Likewise.
54518         * modules/isnand-nolibm-tests: Likewise.
54519         * lib/frexp.c: Likewise.
54520         * lib/isfinite.c: Likewise.
54521         * lib/signbitd.c: Likewise.
54522         * lib/signbitf.c: Likewise.
54523         * lib/vasnprintf.c: Likewise.
54524         * tests/test-ceilf1.c: Likewise.
54525         * tests/test-ceilf2.c: Likewise.
54526         * tests/test-floorf1.c: Likewise.
54527         * tests/test-floorf2.c: Likewise.
54528         * tests/test-frexp.c: Likewise.
54529         * tests/test-round1.c: Likewise.
54530         * tests/test-round2.c: Likewise.
54531         * tests/test-roundf1.c: Likewise.
54532         * tests/test-strtod.c: Likewise.
54533         * tests/test-trunc1.c: Likewise.
54534         * tests/test-trunc2.c: Likewise.
54535         * tests/test-truncf1.c: Likewise.
54536         * tests/test-truncf2.c: Likewise.
54537         * NEWS: Mention the renamed header files.
54538
54539 2008-07-11  Jim Meyering  <meyering@redhat.com>
54540
54541         vc-list-files: make the last-resort awk code more portable
54542         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54543         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54544         does not support it.
54545
54546 2008-07-10  Eric Blake  <ebb9@byu.net>
54547
54548         Work with tar's bootstrap.
54549         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54550         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54551         an m4 comment.
54552
54553 2008-07-09  Jim Meyering  <meyering@redhat.com>
54554
54555         posix-shell.m4: fix typo that made this test malfunction
54556         * m4/posix-shell.m4: Remove capitalization in variable name.
54557
54558 2008-07-08  Bruno Haible  <bruno@clisp.org>
54559
54560         * m4/onceonly.m4: Update comments.
54561         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54562
54563 2008-07-04  Jim Meyering  <meyering@redhat.com>
54564
54565         * users.txt: Add vc-dwim.
54566         (bison, coreutils): Use the gitweb URL.
54567
54568 2008-07-03  Jim Meyering  <meyering@redhat.com>
54569
54570         * users.txt: Add libffcall.  From Sam Steingold.
54571
54572 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
54573
54574         getdate.y: do not ignore TZ with relative day, month or year offset
54575         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54576         relative-date-handling, since otherwise, the latter would clobber the
54577         sole output (an updated Start value) of the tz-handling block.
54578         * tests/test-getdate.c: Tests for the fix
54579
54580 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54581
54582         Recognize 'foo_LIBRARIES += libgnu.a'.
54583         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54584         makefile snippet has already specified an installation location,
54585         also using '+='.
54586
54587 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
54588
54589         getdate.y: factor out common actions
54590         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54591         Use them in place of open-coded actions.
54592
54593 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54594
54595         Add self-test for getdate module.
54596         * modules/getdate-tests: New file.
54597         * tests/test-getdate.c: New file.
54598
54599 2008-06-29  Bruno Haible  <bruno@clisp.org>
54600
54601         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54602         .gitignore.
54603         Reported by Sylvain Beucler <beuc@beuc.net>.
54604
54605 2008-06-29  Bruno Haible  <bruno@clisp.org>
54606
54607         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54608         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54609
54610 2008-06-29  Bruno Haible  <bruno@clisp.org>
54611
54612         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54613         EXTRA_DIST.
54614         Reported by Sylvain Beucler <beuc@beuc.net>.
54615
54616 2008-06-26  Jim Meyering  <meyering@redhat.com>
54617
54618         make several modules depend on the "open" module
54619         This provides slightly increased consistency when opening-for-write
54620         the name of a non-directory spelled with a trailing slash.
54621         * modules/chdir-safer: Likewise.
54622         * modules/chown: Likewise.
54623         * modules/clean-temp: Likewise.
54624         * modules/copy-file: Likewise.
54625         * modules/fchdir: Likewise.
54626         * modules/fcntl-safer: Likewise.
54627         * modules/pipe: Likewise.
54628         * modules/utime: Likewise.
54629         Prompted by Eric Blake and Bruno Haible.
54630
54631 2008-06-24  Andreas Schwab  <schwab@suse.de>
54632
54633         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54634         literals can be used as initializers for global variables.
54635
54636 2008-06-23  Eric Blake  <ebb9@byu.net>
54637
54638         Make gnulib-cache.m4 easier to diff.
54639         * gnulib-tool (func_import): Allow newlines when reading cached
54640         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54641
54642 2008-06-23  Bruno Haible  <bruno@clisp.org>
54643
54644         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54645         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54646         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54647         m4/signalblocking.m4.
54648         (gl_PREREQ_SIGACTION): Don't invoke it.
54649         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54650         gl_PREREQ_SIG_HANDLER_H.
54651         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54652         Don't check for sigaction here.
54653
54654 2008-06-23  Bruno Haible  <bruno@clisp.org>
54655
54656         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54657         (install_handlers): Don't set the SA_RESETHAND flag.
54658
54659 2008-06-23  Bruno Haible  <bruno@clisp.org>
54660
54661         * m4/sigaction.m4: Comment fixes.
54662         * lib/signal.in.h: Likewise.
54663
54664 2008-06-23  Eric Blake  <ebb9@byu.net>
54665
54666         Fix typo.
54667         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54668
54669         Avoid SA_ namespace.
54670         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54671         Reported by Ralf Wildenhues.
54672
54673         Avoid test failure due to SA_RESTORER.
54674         * tests/test-sigaction.c (SA_MASK): New macro.
54675         (main): Avoid failing due to extension flags being set.
54676         Reported by Jim Meyering.
54677
54678         Revert use of sig-handler.h in sigprocmask.c.
54679         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54680         it requires the existence of struct sigaction.
54681         * lib/sigprocmask.c (handler_t): Restore typedef.
54682         (rpl_signal, old_handlers): Use local type.
54683
54684 2008-06-22  Bruno Haible  <bruno@clisp.org>
54685
54686         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54687         conditionally.
54688         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54689
54690 2008-06-22  Bruno Haible  <bruno@clisp.org>
54691
54692         * doc/posix-functions/siginterrupt.texi: Move note.
54693
54694         * lib/signal.in.h (SA_RESTART): New macro.
54695         * lib/sigaction.c: Update comment.
54696
54697         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54698
54699         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54700         (gl_PREREQ_SIGPROCMASK): Invoke it.
54701         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54702
54703         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54704
54705         * lib/sigprocmask.c: Update a comment.
54706
54707 2008-06-21  Eric Blake  <ebb9@byu.net>
54708
54709         Use sigaction module rather than signal().
54710         * modules/c-stack (Depends-on): Add sigaction.
54711         * modules/fatal-signal (Depends-on): Likewise.
54712         * modules/nanosleep (Depends-on): Likewise.
54713         * modules/sigprocmask (Files): Add sig-handler.h.
54714         * modules/sigaction (Files): Likewise.
54715         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54716         Eggert.
54717         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54718         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54719         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54720         (init_fatal_signals): Likewise.
54721         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54722         (siginterrupt): Delete fallback.
54723         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54724         instead.
54725         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54726         siginterrupt.
54727
54728         New module sigaction, for mingw.
54729         * modules/sigaction: New module...
54730         * modules/sigaction-tests: ...and its test.
54731         * m4/sigaction.m4: New file.
54732         * lib/sigaction.c: Likewise.
54733         * tests/test-sigaction.c: Likewise.
54734         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54735         * modules/signal (Makefile.am): Likewise.
54736         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54737         needed.
54738         * doc/posix-headers/signal.texi (signal.h): Mention provided
54739         types.
54740         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54741         that sigaction is preferable.
54742         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54743         module.
54744         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54745         sigaction.
54746
54747         Improve robustness of sigprocmask by overriding signal.
54748         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54749         is in use.
54750         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54751         (SIGKILL, SIGSTOP): Provide fallbacks.
54752         (rpl_signal): Implement.
54753         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54754         signal can be called inside handlers.
54755
54756         Fix nanosleep module on mingw.
54757         * modules/nanosleep (Depends-on): Add sys_select.
54758         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54759
54760         Fix licensing of sigprocmask.
54761         * modules/raise (License): Relicense as LGPL.
54762
54763 2008-06-21  Bruno Haible  <bruno@clisp.org>
54764
54765         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54766         result if it contains question marks.
54767         Reported by Michael Geng <linux@michaelgeng.de>.
54768
54769 2008-06-19  Bruno Haible  <bruno@clisp.org>
54770
54771         Fix CVS-ism.
54772         * doc/gnulib.texi: Include updated-stamp.texi.
54773         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54774         (updated-stamp.texi): New rule.
54775         (gnulib.info): Depend on it.
54776         * doc/.gitignore: Add updated-stamp.texi.
54777         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54778
54779 2008-06-19  Bruno Haible  <bruno@clisp.org>
54780
54781         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54782         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54783
54784 2008-06-19  Eric Blake  <ebb9@byu.net>
54785
54786         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54787         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54788         Reported by Stepan Kasal.
54789
54790 2008-06-18  Bruno Haible  <bruno@clisp.org>
54791
54792         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54793         Reported by Eric Blake.
54794
54795 2008-06-18  Eric Blake  <ebb9@byu.net>
54796
54797         Work around cygwin 1.5.25 strsignal bug.
54798         * tests/test-strsignal.c: Allow for const char *.
54799         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54800
54801 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54802
54803         * users.txt: Update URL to article and add author/date
54804         information.
54805
54806 2008-06-17  Bruno Haible  <bruno@clisp.org>
54807
54808         New macro gl_DISABLE_THREADS.
54809         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54810         if the user did not pass --enable-threads or --disable-threads option.
54811         (gl_DISABLE_THREADS): New macro.
54812         Reported by Eric Blake <ebb9@byu.net>.
54813
54814 2008-06-17  Bruno Haible  <bruno@clisp.org>
54815
54816         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54817         when the macro ignores it.
54818         Based on a patch by Eric Blake <ebb9@byu.net>.
54819
54820 2008-06-17  Bruno Haible  <bruno@clisp.org>
54821
54822         * modules/tls (License): Change to LGPLv2+.
54823         Reported by Eric Blake.
54824
54825 2008-06-17  Eric Blake  <ebb9@byu.net>
54826
54827         Simplify c-stack prerequisites.
54828         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54829         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54830         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54831         check.
54832         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54833         <sys/resource.h>.
54834
54835         Move c-stack test into testsuite.
54836         * modules/c-stack-tests: New file.
54837         * lib/c-stack.c [DEBUG]: Move test program...
54838         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54839         fail test if sigaltstack is lacking.
54840         * tests/test-c-stack.sh: New driver file.
54841
54842 2008-06-16  Eric Blake  <ebb9@byu.net>
54843
54844         Use raise module consistently.
54845         * modules/fatal-signal (Depends-on): Add raise.
54846         * modules/sigprocmask (Depends-on): Likewise.
54847         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54848         * lib/sigprocmask.c (sigprocmask): Likewise.
54849         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54850         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54851
54852         Fix compliance bug in sigpending.
54853         * lib/sigprocmask.c (sigpending): Return pending array via
54854         parameter, not return value.
54855
54856 2008-06-14  Eric Blake  <ebb9@byu.net>
54857
54858         Improve obstack-printf test code.
54859         * tests/test-obstack-printf.c (test_function): Fix comment, and
54860         simplify usage of obstack_* in macros.  Add a test for coverage.
54861         Reported by Bruno Haible.
54862
54863 2008-06-14  Bruno Haible  <bruno@clisp.org>
54864
54865         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54866         array size as a constant, not as a const variable.
54867         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54868         AC_USE_SYSTEM_EXTENSIONS.
54869         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54870         Test whether the obstack_printf function actually exists.
54871         * modules/obstack-printf (Depends-on): Add extensions.
54872         (Include): Remove obstack.h.
54873         * modules/obstack-printf-posix (Depends-on): Add extensions.
54874         (Include): Remove obstack.h.
54875
54876 2008-06-13  Eric Blake  <ebb9@byu.net>
54877
54878         Add obstack-printf and obstack-printf-posix modules.
54879         * modules/obstack-printf: New file.
54880         * modules/obstack-printf-posix: Likewise.
54881         * MODULES.html.sh (Misc): Mention them.
54882         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54883         Likewise.
54884         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54885         Likewise.
54886         * modules/stdio (Makefile.am): Accomodate new modules.
54887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54888         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54889         Declare.
54890         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54891         functions.
54892         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54893         (gl_REPLACE_OBSTACK_PRINTF): New macros
54894         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54895         * tests/test-obstack-printf.c: New file.
54896         * modules/obstack-printf-tests: Likewise.
54897         * modules/obstack-printf-posix-tests: Likewise.
54898
54899 2008-06-11  Bruno Haible  <bruno@clisp.org>
54900
54901         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54902         * lib/open.c: Include errno.h.
54903         (open): Fail when attempting to write to a file that has a trailing
54904         slash.
54905         * tests/test-open.c (main): Test against trailing slash bug.
54906         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54907
54908 2008-06-10  Bruno Haible  <bruno@clisp.org>
54909
54910         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54911         for $? to work inside the trap command, with various /bin/sh-s.
54912         * tests/test-vc-list-files-cvs.sh: Likewise.
54913
54914 2008-06-10  Bruno Haible  <bruno@clisp.org>
54915
54916         * lib/acl-internal.h: Don't include gettext.h here.
54917         * lib/set-mode-acl.c: Include gettext.h here.
54918         * lib/copy-acl.c: Likewise.
54919
54920 2008-06-10  Bruno Haible  <bruno@clisp.org>
54921
54922         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54923         * lib/wait-process.c (wait_subprocess): Likewise.
54924         * lib/execute.h (execute): Add termsigp argument.
54925         * lib/execute.c (execute): Likewise.
54926         * lib/csharpcomp.c (compile_csharp_using_pnet,
54927         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54928         * lib/csharpexec.c (execute_csharp_using_pnet,
54929         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54930         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54931         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54932         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54933         is_jikes_present): Update.
54934         * lib/javaexec.c (execute_java_class): Update.
54935         * lib/javaversion.c (execute_and_read_line): Update.
54936         * NEWS: Document the changes.
54937         Reported by Eric Blake.
54938
54939 2008-06-10  Eric Blake  <ebb9@byu.net>
54940
54941         Add missing include.
54942         * tests/test-strstr.c (includes): Add <signal.h>.
54943         * tests/test-strcasestr.c (includes): Likewise.
54944         * tests/test-memmem.c (includes): Likewise.
54945
54946 2008-06-10  Bruno Haible  <bruno@clisp.org>
54947
54948         * lib/wait-process.c (wait_subprocess): Add an assertion.
54949
54950 2008-06-10  Bruno Haible  <bruno@clisp.org>
54951
54952         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54953
54954 2008-06-10  Bruno Haible  <bruno@clisp.org>
54955
54956         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54957         using alarm().
54958         * tests/test-strcasestr.c (main): Likewise.
54959         * tests/test-strstr.c (main): Likewise.
54960
54961 2008-06-09  Bruno Haible  <bruno@clisp.org>
54962
54963         Work around the Solaris 10 ACE ACLs ABI change.
54964         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54965         declare if ACL_NO_TRIVIAL is present.
54966         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54967         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54968         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54969         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54970         define if ACL_NO_TRIVIAL is present.
54971         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54972         and use the current ABI.
54973         (file_has_acl): Use same #if condition as elsewhere.
54974         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54975         in use, and use the current ABI.
54976         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54977         Reported by Jim Meyering.
54978
54979 2008-06-09  Eric Blake  <ebb9@byu.net>
54980
54981         Work around environments that (stupidly) ignore SIGALRM.
54982         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54983         before using alarm().
54984         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54985         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54986         Reported by Ian Beckwith <ianb@erislabs.net>.
54987
54988         Produce autobuild blurb earlier in log.
54989         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54990
54991 2008-06-09  Jim Meyering  <meyering@redhat.com>
54992         and Ondřej Vašík  <ovasik@redhat.com>
54993
54994         utimens.c: correct kernel bug work-around
54995         Ondřej Vašík found that the invalid return value of 280 indicates
54996         failure, not success, and the kernel bug we're trying to work
54997         around affects not just the utimensat call, but also the fallback
54998         futimens call.
54999         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
55000         not success.
55001         [HAVE_FUTIMENS]: Use the same work-around, here.
55002
55003 2008-06-09  Jim Meyering  <meyering@redhat.com>
55004
55005         add more guards around definition of ACE_-related code
55006         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
55007         ALLOW and ACE_OWNER are also defined.
55008
55009 2008-06-08  Bruno Haible  <bruno@clisp.org>
55010
55011         * lib/acl-internal.h: Add me as co-author.
55012         * lib/file-has-acl.c: Likewise.
55013         * lib/set-mode-acl.c: Likewise.
55014         * lib/copy-acl.c: Likewise.
55015
55016 2008-06-08  Bruno Haible  <bruno@clisp.org>
55017
55018         Add support for AIX ACLs.
55019         * lib/acl-internal.h (acl_nontrivial): New declaration.
55020         * lib/file-has-acl.c (acl_nontrivial): New function.
55021         (file_has_acl): Add implementation using AIX 4 ACL API.
55022         * lib/set-mode-acl.c (qset_acl): Likewise.
55023         * lib/copy-acl.c (qcopy_acl): Likewise.
55024
55025 2008-06-08  Bruno Haible  <bruno@clisp.org>
55026
55027         Add support for HP-UX ACLs.
55028         * lib/acl-internal.h (acl_nontrivial): New declaration.
55029         * lib/file-has-acl.c (acl_nontrivial): New function.
55030         (file_has_acl): Add implementation using HP-UX 11 ACL API.
55031         * lib/set-mode-acl.c (qset_acl): Likewise.
55032         * lib/copy-acl.c (qcopy_acl): Likewise.
55033
55034 2008-06-08  Bruno Haible  <bruno@clisp.org>
55035
55036         Add support for Cygwin ACLs.
55037         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
55038         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
55039         the chmod_or_fchmod call.
55040         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
55041
55042 2008-06-08  Bruno Haible  <bruno@clisp.org>
55043
55044         Fix bug with setuid modes in Solaris 10+ code.
55045         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
55046         succeeded, when the mode contains some special bits.
55047
55048 2008-06-08  Bruno Haible  <bruno@clisp.org>
55049
55050         Add support for Solaris 7..10 ACLs.
55051         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
55052         declarations.
55053         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
55054         functions.
55055         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
55056         * lib/set-mode-acl.c (qset_acl): Likewise.
55057         * lib/copy-acl.c (qcopy_acl): Likewise.
55058
55059 2008-06-08  Bruno Haible  <bruno@clisp.org>
55060
55061         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
55062         declaration.
55063         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
55064         (acl_access_nontrivial): Remove MacOS X case.
55065         (file_has_acl): Use acl_extended_nontrivial.
55066         * lib/copy-acl.c (qcopy_acl): Likewise.
55067
55068 2008-06-08  Bruno Haible  <bruno@clisp.org>
55069
55070         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
55071
55072 2008-06-08  Jim Meyering  <meyering@redhat.com>
55073
55074         * modules/acl (Maintainer): Add Bruno Haible.
55075
55076 2008-06-07  Bruno Haible  <bruno@clisp.org>
55077
55078         Improve support for Tru64 ACLs.
55079         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
55080         ACL on OSF/1.
55081
55082 2008-06-07  Bruno Haible  <bruno@clisp.org>
55083
55084         Add support for MacOS X ACLs.
55085         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
55086         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
55087         * lib/set-mode-acl.c (qset_acl): Likewise.
55088         * lib/copy-acl.c (qcopy_acl): Likewise.
55089
55090 2008-06-07  Bruno Haible  <bruno@clisp.org>
55091
55092         Fix memory leak introduced on 2008-05-22.
55093         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
55094         use.
55095
55096 2008-06-07  Bruno Haible  <bruno@clisp.org>
55097
55098         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
55099         to construct an empty ACL.
55100
55101 2008-06-07  Bruno Haible  <bruno@clisp.org>
55102
55103         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
55104         precisely.
55105         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
55106
55107 2008-06-07  Bruno Haible  <bruno@clisp.org>
55108
55109         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
55110         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
55111
55112 2008-06-07  Bruno Haible  <bruno@clisp.org>
55113
55114         * doc/posix-functions/_setjmp.texi: Explain the use of this function
55115         regardless of POSIX.
55116         * doc/posix-functions/_longjmp.texi: Likewise.
55117         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
55118         SystemV platform in this case.
55119
55120 2008-06-06  Eric Blake  <ebb9@byu.net>
55121
55122         Document abort() bugs.
55123         * doc/posix-functions/abort.texi (abort): Mention anomalies.
55124
55125         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
55126         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
55127         sigsetjmp.
55128         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
55129         siglongjmp, but only as a macro.
55130         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
55131         is obsolete.
55132         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
55133
55134         Tweak documentation to cover cygwin argz bugs.
55135         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
55136         argz bug fix; no code change needed since no cygwin releases
55137         occurred between the last fix and the bug being tested.
55138         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
55139         module and recently fixed cygwin bugs.
55140         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
55141         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
55142         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
55143         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
55144         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
55145         Likewise.
55146         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
55147         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
55148         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
55149         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
55150         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
55151         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
55152         Likewise.
55153
55154         Avoid gcc warning on cygwin.
55155         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
55156         !ACL_NO_TRIVIAL]: Avoid unused variable.
55157
55158 2008-06-05  Eric Blake  <ebb9@byu.net>
55159
55160         Be tolerant of UNKNOWN version in gnulib-tool test dir.
55161         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
55162         git-version-gen fails to come up with a version.
55163         Reported by Simon Josefsson.
55164
55165 2008-06-05  Jim Meyering  <meyering@redhat.com>
55166             Paul Eggert  <eggert@cs.ucla.edu>
55167
55168         utimens.c: work around a probable Linux kernel bug
55169         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
55170         appears to be a kernel bug that causes utimensat to return 280
55171         instead of 0, indicating success.
55172
55173 2008-06-04  Bruno Haible  <bruno@clisp.org>
55174
55175         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
55176         2008-06-01 commit.
55177
55178 2008-06-04  Bruno Haible  <bruno@clisp.org>
55179
55180         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
55181         * lib/file-has-acl.c (acl_access_nontrivial): New function.
55182         (file_has_acl): Use it. Save errno afterwards.
55183         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
55184
55185 2008-06-03  Bruno Haible  <bruno@clisp.org>
55186
55187         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
55188         draft code. Simplify #ifs.
55189         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
55190         Put Solaris code after POSIX-draft code. Fix comments regarding
55191         Solaris 10, HP-UX. Mention Cygwin.
55192         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
55193
55194 2008-06-03  Eric Blake  <ebb9@byu.net>
55195
55196         Provide fallback for older kernels.
55197         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
55198         Provide runtime fallback if kernel lacks support.
55199         Reported by Mike Frysinger.
55200
55201 2008-06-02  Bruno Haible  <bruno@clisp.org>
55202
55203         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
55204         it exists.
55205
55206 2008-06-02  Bruno Haible  <bruno@clisp.org>
55207
55208         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
55209         * lib/copy-acl.c (qcopy_acl): Update comment.
55210
55211 2008-06-02  Bruno Haible  <bruno@clisp.org>
55212
55213         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
55214         like ACL APIs.
55215
55216 2008-06-02  Bruno Haible  <bruno@clisp.org>
55217
55218         * tests/test-file-has-acl.sh: Use different code for Cygwin.
55219         * tests/test-set-mode-acl.sh: Likewise.
55220         * tests/test-copy-acl.sh: Likewise.
55221         * tests/test-copy-file.sh: Likewise.
55222
55223 2008-06-02  Bruno Haible  <bruno@clisp.org>
55224
55225         * tests/test-file-has-acl.sh: Remove unused code.
55226
55227 2008-06-01  Bruno Haible  <bruno@clisp.org>
55228
55229         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
55230         (copy_acl): Just a wrapper around qcopy_acl that emits the error
55231         messages.
55232         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
55233
55234 2008-06-01  Bruno Haible  <bruno@clisp.org>
55235
55236         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
55237         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
55238         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
55239         APIs.
55240         * modules/acl-tests (configure.ac): Remove tests now contained in
55241         m4/acl.m4.
55242
55243 2008-06-02  Jim Meyering  <meyering@redhat.com>
55244
55245         announce-gen: use a better key-server host name
55246         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
55247         it may be more consistently reliable.  Suggested by Werner Koch
55248         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
55249
55250 2008-06-01  Bruno Haible  <bruno@clisp.org>
55251
55252         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
55253         Reported by Voroskoi Andras <voroskoi@gmail.com>.
55254
55255 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
55256
55257         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
55258
55259 2008-06-01  Bruno Haible  <bruno@clisp.org>
55260
55261         New ACL tests.
55262         * tests/test-file-has-acl.sh: New file.
55263         * tests/test-file-has-acl.c: New file.
55264         * tests/test-set-mode-acl.sh: New file.
55265         * tests/test-set-mode-acl.c: New file.
55266         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
55267         * tests/test-copy-acl.c: New file.
55268         * modules/acl-tests: New file, based on modules/copy-file-tests.
55269         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
55270         (Depends-on): Add acl-tests.
55271         (configure.ac): Remove checks.
55272         (Makefile.am): Don't create test-sameacls program here any more.
55273
55274 2008-06-01  Bruno Haible  <bruno@clisp.org>
55275
55276         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
55277         * tests/test-sameacls.c: Include progname.h.
55278         (main): Invoke set_program_name. Portability fixes for MacOS X,
55279         Solaris, HP-UX.
55280
55281 2008-06-01  Bruno Haible  <bruno@clisp.org>
55282
55283         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
55284         function.
55285         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
55286
55287 2008-06-01  Bruno Haible  <bruno@clisp.org>
55288
55289         * modules/rpmatch (Depends-on): Add strdup.
55290
55291 2008-06-01  Bruno Haible  <bruno@clisp.org>
55292
55293         * lib/pipe.c: Include unistd-safer.h.
55294         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
55295         * modules/pipe (Depends-on): Add unistd-safer.
55296
55297 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55298
55299         * modules/autobuild (configure.ac): Call AB_INIT.
55300
55301 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55302
55303         * tests/test-getaddrinfo.c: Don't print debug messages by default.
55304         Suggested by Bruno Haible <bruno@clisp.org>.
55305
55306 2008-05-30  Simon Josefsson  <simon@josefsson.org>
55307
55308         * tests/test-base64.c: Cast size_t to unsigned long when invoking
55309         printf.  Use %lu instead of %d.  Reported by Bruno Haible
55310         <bruno@clisp.org>.
55311
55312 2008-05-29  Eric Blake  <ebb9@byu.net>
55313
55314         Prefer new POSIX 200x interfaces over futimesat.
55315         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55316         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55317         when available.
55318         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55319
55320 2008-05-28  Bruno Haible  <bruno@clisp.org>
55321
55322         * modules/stpcpy (License): Change to LGPLv2+.
55323         Requested by David Lutterkort <dlutter@redhat.com>.
55324
55325 2008-05-27  Bruno Haible  <bruno@clisp.org>
55326
55327         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55328         current mingw.
55329         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55330
55331 2008-05-27  Bruno Haible  <bruno@clisp.org>
55332
55333         * modules/iconv_open (Link): New section, from module 'iconv'.
55334         * modules/striconv (Link): Likewise.
55335         * modules/striconveh (Link): Likewise.
55336         * modules/xstriconv (Link): Likewise.
55337         * modules/unicodeio (Link): Likewise.
55338         * modules/propername (Link): Likewise.
55339         Reported by Jim Meyering.
55340
55341 2008-05-26  Jim Meyering  <meyering@redhat.com>
55342
55343         sha256: do not artificially restrict buffer length to be < 2^32
55344         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55345         uint32_t to size_t.
55346         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55347         to match.
55348
55349         avoid unaligned access errors, e.g., on sparc
55350         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55351         direct access through a possibly-unaligned uint64* pointer.
55352         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55353         direct access through a possibly-unaligned uint32* pointer.
55354         Prompted by this patch from Tom "spot" Callaway:
55355         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55356
55357         sha512.c: fix typo in comment
55358         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55359
55360 2008-05-25  Bruno Haible  <bruno@clisp.org>
55361
55362         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55363         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55364         (Makefile.am): Update lib_SOURCES.
55365
55366 2008-05-25  Bruno Haible  <bruno@clisp.org>
55367
55368         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55369
55370 2008-05-25  Jim Meyering  <meyering@redhat.com>
55371
55372         useless-if-before-free: freed expr may have white-space differences
55373         * build-aux/useless-if-before-free: Recognize cases in which the
55374         freed expression differs from the tested one in embedded white
55375         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55376         $1 was used, so we can't make any regexp shy.  Improved tests now
55377         detect this.
55378
55379         useless-if-before-free: accept white space in the expression.
55380         * build-aux/useless-if-before-free: For now, any white space
55381         in the expression must be identical in the free argument.
55382
55383         useless-if-before-free: efficiency tweak
55384         * build-aux/useless-if-before-free: Make the expression-matching
55385         regexp "shy".
55386         Make the *outer* regexp shy, not the expr-matching one.
55387
55388         update code-in-comment to accept cast of free arg
55389         * build-aux/useless-if-before-free: Update regexp.
55390
55391 2008-05-25  Bruno Haible  <bruno@clisp.org>
55392
55393         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55394         * modules/copy-file-tests (Files, Makefile.am): Update.
55395         * tests/test-copy-file.c (func_test_copy): Update.
55396
55397 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55398
55399         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55400
55401 2008-05-23  Bruno Haible  <bruno@clisp.org>
55402
55403         Improve support for ACLs on OSF/1.
55404         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55405         Remove fallback for unknown flavors of ACLs.
55406
55407 2008-05-22  Bruno Haible  <bruno@clisp.org>
55408
55409         Add support for ACLs on OSF/1.
55410         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55411         replacements.
55412         (acl_free_text): New macro fallback.
55413         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55414         acl_free.
55415         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55416         acl_free_text function. Require AC_C_INLINE.
55417
55418 2008-05-22  Bruno Haible  <bruno@clisp.org>
55419
55420         Make copy_acl work on MacOS X 10.5.
55421         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55422         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55423         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55424         If MODE_INSIDE_ACL, don't assume that every system has the same text
55425         representation for ACLs as FreeBSD.
55426         * lib/copy-acl.c (copy_acl): Add support for platforms with
55427         !MODE_INSIDE_ACL.
55428         * lib/file-has-acl.c (file_has_acl): Likewise.
55429         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55430         FreeBSD, MacOS X, or IRIX, respectively.
55431
55432 2008-05-22  Bruno Haible  <bruno@clisp.org>
55433
55434         * lib/acl.h: Don't include <sys/acl.h>.
55435         (GETACLCNT): Move fallback to lib/acl-internal.h.
55436         * lib/acl-internal.h: Include <sys/acl.h> here.
55437         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55438
55439 2008-05-22  Bruno Haible  <bruno@clisp.org>
55440
55441         Split off copy_acl function to separate file.
55442         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55443         * lib/acl.c (copy_acl): Moved function to separate file.
55444         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55445         * modules/acl (Files): Add lib/copy-acl.c.
55446         (Makefiles.am): Augment lib_SOURCES.
55447
55448 2008-05-22  Bruno Haible  <bruno@clisp.org>
55449
55450         * modules/copy-file-tests: New file.
55451         * tests/test-copy-file.sh: New file.
55452         * tests/test-copy-file.c: New file.
55453         * tests/test-copy-file-sameacls.c: New file.
55454
55455 2008-05-22  Eric Blake  <ebb9@byu.net>
55456
55457         Avoid gcc warning.
55458         * tests/test-memcmp.c (main): Pass NULL indirectly.
55459
55460 2008-05-21  Bruno Haible  <bruno@clisp.org>
55461
55462         Add reference doc about ACLs.
55463         * doc/acl-resources.txt: New file.
55464         * doc/acl-cygwin.txt: New file.
55465
55466 2008-05-21  Bruno Haible  <bruno@clisp.org>
55467
55468         Avoid one more warning from gcc.
55469         * lib/vasnprintf.c (IF_LINT): Update comments.
55470         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55471
55472 2008-05-21  Jim Meyering  <meyering@redhat.com>
55473
55474         avoid a warning from gcc
55475         * lib/vasnprintf.c (IF_LINT): Define.
55476         (scale10_round_decimal_long_double):
55477         Use it to avoid a "may be used uninitialized" warning.
55478         (scale10_round_decimal_double): Likewise.
55479
55480 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55481
55482         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55483         declared.
55484
55485 2008-05-20  Bruno Haible  <bruno@clisp.org>
55486
55487         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55488         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55489
55490 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55491
55492         * modules/memcmp-tests: New file.
55493         * tests/test-memcmp.c: New file.
55494
55495 2008-05-19  Bruno Haible  <bruno@clisp.org>
55496
55497         * modules/propername (Notice, configure.ac): Put quoted "..." into
55498         --keyword option.
55499         * lib/propername.h: Update comments accordingly.
55500         Reported by Eric Blake.
55501
55502 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55503
55504         * modules/getpass-gnu (Depends-on): Add fseeko.
55505
55506 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55507
55508         * modules/base64-tests: New file.
55509
55510 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55511
55512         * lib/base64.c (base64_decode_ctx): If a decode context structure
55513         was passed in use it to ignore newlines.  If a context structure
55514         was _not_ passed in, continue to treat newlines as garbage (this
55515         is the historical behavior).  Formerly base64_decode.
55516         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55517         takes a decode context structure.
55518         * lib/base64.h (base64_decode): Macro for four-argument calls.
55519         (base64_decode_alloc): Likewise.
55520         * lib/base64.c (base64_decode_ctx): If a decode context structure
55521         was passed in use it to ignore newlines.  If a context structure
55522         was _not_ passed in, continue to treat newlines as garbage (this
55523         is the historical behavior).  Formerly base64_decode.
55524         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55525         takes a decode context structure.
55526         * lib/base64.h (base64_decode): Macro for four-argument calls.
55527         (base64_decode_alloc): Likewise.
55528
55529 2008-05-19  Jim Meyering  <meyering@redhat.com>
55530
55531         avoid a warning from gcc
55532         * lib/trim.c (IF_LINT): Define.
55533         (trim2): Use it to avoid a "may be used uninitialized" warning.
55534
55535         Fix doc typo.
55536         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55537
55538 2008-05-19  Bruno Haible  <bruno@clisp.org>
55539
55540         * doc/glibc-functions/getpass.texi: Document limits of other
55541         implementations.
55542
55543 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55544             Bruno Haible <bruno@clisp.org>
55545
55546         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55547
55548 2008-05-18  Bruno Haible  <bruno@clisp.org>
55549
55550         * modules/propername: New file, from GNU gettext.
55551         * lib/propername.h: New file, from GNU gettext.
55552         * lib/propername.c: New file, from GNU gettext.
55553         * MODULES.html.sh (Internationalization functions): Add propername.
55554
55555 2008-05-16  Jim Meyering  <meyering@redhat.com>
55556             Bruno Haible  <bruno@clisp.org>
55557
55558         Avoid some warnings from "gcc -Wshadow".
55559         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55560
55561 2008-05-15  Eric Blake  <ebb9@byu.net>
55562
55563         Extend previous patch to cygwin 1.7.0.
55564         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55565         fast implementation in cygwin >= 1.7.0.
55566         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55567         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55568
55569 2008-05-15  Bruno Haible  <bruno@clisp.org>
55570
55571         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55572         implementation in glibc >= 2.9.
55573         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55574         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55575
55576 2008-05-15  Bruno Haible  <bruno@clisp.org>
55577
55578         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55579         (Unicode string functions): Add unilbrk/*.
55580         Reported by Karl Berry.
55581
55582 2008-05-15  Eric Blake  <ebb9@byu.net>
55583
55584         Fix violation of <stdbool.h> replacement in regex.
55585         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55586         * lib/regexec.c (re_search_internal): Likewise.
55587         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55588
55589 2008-05-15  Jim Meyering  <meyering@redhat.com>
55590
55591         avoid distracting test output when git or cvs is not found
55592         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55593         * tests/test-vc-list-files-git.sh: Likewise.
55594
55595 2008-05-15  Eric Blake  <ebb9@byu.net>
55596
55597         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55598         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55599         glibc version.
55600         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55601         * doc/posix-functions/strstr.texi (strstr): Likewise.
55602         * lib/str-two-way.h (MAX): Sychronize with glibc.
55603
55604 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55605
55606         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55607         opr.ctx_type.
55608         (calc_first): Initialize constraint field.
55609         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55610         Fix grammar.
55611         (duplicate_node): Merge constraint field for all node types.
55612         (calc_eclosure_iter): Look at constraint field for all node types.
55613         * lib/regex_internal.c (create_cd_newstate): Don't look at
55614         opr.ctx_type.
55615
55616 2008-05-14  Bruno Haible  <bruno@clisp.org>
55617
55618         Help GCC to do better code generation.
55619         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55620         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55621         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55622         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55623         Declare with attribute 'malloc' if supported.
55624
55625 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55626
55627         use "echo STR|wc -c" rather than unportable "expr length STR"
55628         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55629         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55630
55631 2008-05-14  Jim Meyering  <meyering@redhat.com>
55632
55633         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55634         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55635         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55636         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55637         via Collin Lasse.
55638
55639 2008-05-14  Eric Blake  <ebb9@byu.net>
55640
55641         Avoid quadratic growth in gl_LIBSOURCES.
55642         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55643         Suggested by Bruno Haible.
55644
55645         Test xmemdup0.
55646         * modules/xmemdup0-tests: New file.
55647         * tests/test-xmemdup0.c: Likewise.
55648
55649 2008-05-13  Eric Blake  <ebb9@byu.net>
55650
55651         Split xmemdup0 into its own module.
55652         * modules/xmemdup0: New file.
55653         * lib/xmemdup0.h: Likewise.
55654         * lib/xmemdup0.c: Likewise.
55655         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55656         * lib/xalloc.h (xmemdup0): Remove.
55657         * lib/xmalloc.c (xmemdup0): Likewise.
55658
55659 2008-05-13  Eric Blake  <ebb9@byu.net>
55660             Bruno Haible  <bruno@clisp.org>
55661
55662         Reduce number of forks required during autoconf.
55663         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55664         and gl_LIBSOURCES_DIR.
55665         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55666         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55667         m4_syscmd per file.
55668         <m4_foreach_w>: Move...
55669         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55670
55671 2008-05-13  Eric Blake  <ebb9@byu.net>
55672
55673         * gnulib-tool: Fix various comment typos.
55674
55675 2008-05-12  Bruno Haible  <bruno@clisp.org>
55676
55677         Tailor the linebreaking algorithm.
55678         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55679
55680 2008-05-12  Bruno Haible  <bruno@clisp.org>
55681
55682         Update to Unicode 5.0.0.
55683         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55684         LBP_JV, LBP_JT. Redistribute values.
55685         (unilbrk_table): Change size.
55686         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55687         Unicode TR#14 rev. 22.
55688         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55689         LBP_JV, LBP_JT. Redistribute values.
55690         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55691         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55692         Update.
55693         * lib/unilbrk/lbrkprop1.h: Regenerated.
55694         * lib/unilbrk/lbrkprop2.h: Regenerated.
55695         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55696         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55697         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55698         Likewise.
55699         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55700         Likewise.
55701         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55702         result.
55703         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55704         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55705         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55706         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55707         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55708         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55709
55710 2008-05-11  Bruno Haible  <bruno@clisp.org>
55711
55712         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55713
55714 2008-05-11  Bruno Haible  <bruno@clisp.org>
55715
55716         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55717         * modules/unilbrk/gen-lbrk: New file.
55718
55719 2008-05-11  Bruno Haible  <bruno@clisp.org>
55720
55721         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55722         * m4/sha512.m4 (gl_SHA512): Likewise.
55723
55724 2008-05-11  Jim Meyering  <meyering@redhat.com>
55725
55726         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55727         * modules/crypto/sha256: New file.
55728         * modules/crypto/sha512: Likewise.
55729         * lib/sha256.c: Likewise.
55730         * lib/sha256.h: Likewise.
55731         * lib/sha512.c: Likewise.
55732         * lib/sha512.h: Likewise.
55733         * lib/u64.h: Likewise.
55734         * m4/sha256.m4: Likewise.
55735         * m4/sha512.m4: Likewise.
55736         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55737
55738 2008-05-10  Bruno Haible  <bruno@clisp.org>
55739
55740         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55741         (Input/Output <stdio.h>): Add xprintf.
55742         (Signal handling <signal.h>): Add strsignal.
55743         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55744         (Core language properties): Add func.
55745         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55746         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55747         strings.
55748         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55749         (Input/output): New section.
55750         (File system functions): Add openat-die, stat-macros.
55751         (Networking functions): Add sockets.
55752         (Unicode string functions): Add unictype/*.
55753         (Support for building libraries and executables): Add gperf.
55754         (Support for building documentation): Add agpl-3.0.
55755         (Misc): Add nocrash.
55756
55757 2008-05-10  Bruno Haible  <bruno@clisp.org>
55758
55759         * modules/unictype/gen-ctype: New file.
55760
55761 2008-05-10  Jim Meyering  <meyering@redhat.com>
55762
55763         Make chdir-safer.c more efficient on a system with no symlinks.
55764         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55765         also if ELOOP is zero.  Suggested by Bruno Haible.
55766
55767         Make chdir-safer.c slightly safer.
55768         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55769         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55770
55771         Avoid compile failure on systems without ELOOP (like mingw).
55772         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55773         Reported by Bruno Haible.
55774
55775 2008-05-10  Bruno Haible  <bruno@clisp.org>
55776
55777         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55778         (is_utf8_encoding): Use a case-insensitive comparison.
55779         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55780         streq.
55781
55782 2008-05-10  Bruno Haible  <bruno@clisp.org>
55783
55784         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55785         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55786         * lib/unilbrk/ulc-common.h (iconv_string_length,
55787         iconv_string_keeping_offsets): Remove declarations.
55788         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55789         Don't include <iconv.h>, streq.h, xsize.h.
55790         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55791         conversion.
55792         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55793         <iconv.h>, streq.h, xsize.h.
55794         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55795         conversion.
55796         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55797         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55798         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55799         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55800
55801 2008-05-10  Bruno Haible  <bruno@clisp.org>
55802
55803         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55804         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55805
55806         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55807         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55808
55809         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55810         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55811
55812         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55813         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55814
55815         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55816         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55817
55818         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55819         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55820
55821         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55822         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55823
55824         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55825         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55826
55827 2008-05-10  Bruno Haible  <bruno@clisp.org>
55828
55829         Split up 'linebreak' module.
55830         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55831         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55832         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55833         modifications.
55834         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55835         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55836         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55837         lib/linebreak.c.
55838         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55839         lib/linebreak.c.
55840         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55841         lib/linebreak.c.
55842         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55843         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55844         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55845         lib/linebreak.c.
55846         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55847         lib/linebreak.c.
55848         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55849         lib/linebreak.c.
55850         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55851         lib/linebreak.c.
55852         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55853         lib/linebreak.c.
55854         * modules/unilbrk/base: New file.
55855         * modules/unilbrk/tables: New file.
55856         * modules/unilbrk/u8-possible-linebreaks: New file.
55857         * modules/unilbrk/u16-possible-linebreaks: New file.
55858         * modules/unilbrk/u32-possible-linebreaks: New file.
55859         * modules/unilbrk/ulc-common: New file.
55860         * modules/unilbrk/ulc-possible-linebreaks: New file.
55861         * modules/unilbrk/u8-width-linebreaks: New file.
55862         * modules/unilbrk/u16-width-linebreaks: New file.
55863         * modules/unilbrk/u32-width-linebreaks: New file.
55864         * modules/unilbrk/ulc-width-linebreaks: New file.
55865         * lib/linebreak.h: Remove file.
55866         * lib/linebreak.c: Remove file.
55867         * m4/linebreak.m4: Remove file.
55868         * modules/linebreak: Remove file.
55869         * NEWS: Mention the changes.
55870
55871 2008-05-09  Eric Blake  <ebb9@byu.net>
55872
55873         Add xmemdup0.
55874         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55875         implementation.
55876         * lib/xmalloc.c (xmemdup0): New C implementation.
55877
55878 2008-05-08  Bruno Haible  <bruno@clisp.org>
55879
55880         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55881
55882 2008-05-07  Eric Blake  <ebb9@byu.net>
55883
55884         Support cross-compilation of <wctype.h>.
55885         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55886         AC_CACHE_CHECK.
55887
55888 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55889
55890         * build-aux/vc-list-files: Add support for bzr.
55891
55892 2008-05-03  Jim Meyering  <meyering@redhat.com>
55893
55894         avoid failed assertion with tight malloc
55895         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55896
55897 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55898
55899         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55900         are needed from arpa/inet.h.
55901         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55902         Reported by Bruno Haible.
55903
55904 2008-05-02  Jim Meyering  <meyering@redhat.com>
55905
55906         avoid compilation error on FreeBSD 6
55907         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55908
55909 2008-05-01  Jim Meyering  <meyering@redhat.com>
55910
55911         useless-if-before-free: correct --help's exit status description
55912         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55913         for one or more matches, etc.  Reported by Bruno Haible.
55914
55915         vc-list-files: make the stand-alone gnulib test work
55916         * modules/vc-list-files-tests (configure.ac):
55917         Define and AC_SUBST abs_aux_dir.
55918         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55919         $(abs_top_srcdir) to each script and having each of them
55920         duplicate the work of setting PATH, set PATH here, using
55921         the new variable, abs_aux_dir instead.
55922         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55923         * tests/test-vc-list-files-git.sh: Likewise.
55924         Reported by Bruno Haible.
55925
55926 2008-05-01  Bruno Haible  <bruno@clisp.org>
55927
55928         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55929         reallocation. Rename 'done' to 'found_delimiter'.
55930
55931 2008-05-01  Jim Meyering  <meyering@redhat.com>
55932
55933         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55934         * build-aux/vc-list-files: Use `...`, not $(...).
55935
55936 2008-04-30  Jim Meyering  <meyering@redhat.com>
55937
55938         add tests for vc-list-files
55939         * modules/vc-list-files-tests: New module.
55940         * tests/test-vc-list-files-cvs.sh: New file.
55941         * tests/test-vc-list-files-git.sh: New file.
55942
55943         avoid a warning from gcc
55944         * lib/getndelim2.c (IF_LINT): Define.
55945         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55946
55947         vc-list-files: work properly with build-aux/cvsu, too
55948         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55949         to all cvs-based clauses.
55950
55951         vc-list-files: work properly in the CVS+awk case, too
55952         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55953
55954         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55955         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55956         take more than one file argument, so .  Add quotes, just in case $dir
55957         ever contains a shell meta-character.  Prompted by Soren Hansen in
55958         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55959
55960 2008-04-29  Eric Blake  <ebb9@byu.net>
55961
55962         Optimize getndelim2 to use block operations when possible.
55963         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55964         freadseek, and memchr2.
55965         * lib/getndelim2.c (getndelim2): Use them for block reads.
55966
55967 2008-04-29  Bruno Haible  <bruno@clisp.org>
55968
55969         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55970         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55971         * modules/inet_ntop (Depends-on): Add extensions.
55972         * modules/inet_pton (Depends-on): Likewise.
55973         Reported by Simon Josefsson.
55974
55975 2008-04-29  Jim Meyering  <meyering@redhat.com>
55976
55977         When the is more than one match in a block, match all of them.
55978         * build-aux/useless-if-before-free: Iterate through each block
55979         until there are no more matches.
55980
55981         Fix broken useless-if-before-free script.
55982         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55983         the expression to match cast of argument to free-like function.
55984
55985 2008-04-29  Eric Blake  <ebb9@byu.net>
55986
55987         Use new header.
55988         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55989
55990 2008-04-29  Jim Meyering  <meyering@redhat.com>
55991
55992         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55993         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55994         by gnulib to exist and to declare e.g., inet_ntop.
55995         Don't include "inet_ntop.h", now removed.
55996
55997         * m4/arpa_inet_h.m4: Remove trailing blanks.
55998
55999 2008-04-29  Eric Blake  <ebb9@byu.net>
56000
56001         Silence valgrind on safe reads beyond potential array bounds.
56002         * lib/rawmemchr.valgrind: New file.
56003         * lib/strchrnul.valgrind: Likewise.
56004         * modules/rawmemchr (Files): Distribute new file.
56005         * modules/strchrnul (Files): Likewise.
56006         Suggested by Bruno Haible.
56007
56008 2008-04-29  Bruno Haible  <bruno@clisp.org>
56009
56010         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
56011         (inet_ntop, inet_pton): Change portability warning's wording.
56012         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
56013         Invoke gl_CHECK_NEXT_HEADERS.
56014         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
56015         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
56016         set ARPA_INET_H.
56017         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
56018         * modules/arpa_inet (Description): No longer only for systems that
56019         lack it.
56020         (Depends-on): Add include_next.
56021         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
56022         HAVE_ARPA_INET_H.
56023
56024 2008-04-29  Jim Meyering  <meyering@redhat.com>
56025
56026         * modules/mkdir (License): Re-license as LGPLv2+.
56027
56028 2008-04-29  Bruno Haible  <bruno@clisp.org>
56029
56030         * modules/rawmemchr (Maintainer): Set to Eric.
56031         * modules/strchrnul (Maintainer): Likewise.
56032
56033 2008-04-29  Simon Josefsson  <simon@josefsson.org>
56034
56035         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
56036         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
56037
56038         * modules/arpa_inet (arpa/inet.h): Use them.
56039
56040 2008-04-28  Eric Blake  <ebb9@byu.net>
56041
56042         Test getndelim2.
56043         * modules/getndelim2-tests: New file.
56044         * tests/test-getndelim2.c: Likewise.
56045         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
56046         stream.
56047         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
56048
56049         * MODULES.html.sh: Document new module.
56050
56051 2008-04-20  Bruno Haible  <bruno@clisp.org>
56052
56053         * lib/c-stack.c (die): Use raise.
56054         * modules/c-stack (Depends-on): Add raise.
56055
56056 2008-04-28  Bruno Haible  <bruno@clisp.org>
56057
56058         Expect rpmatch to be declared.
56059         * lib/yesno.c (rpmatch): Remove declaration.
56060
56061         Declare rpmatch.
56062         * lib/stdlib.in.h (rpmatch): New declaration.
56063         * lib/rpmatch.c: Include <stdlib.h> first.
56064         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
56065         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
56066         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
56067         HAVE_RPMATCH.
56068         * modules/rpmatch (Depends-on): Add stdlib, extensions.
56069         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56070         (Include): Set to <stdlib.h>.
56071         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
56072         HAVE_RPMATCH.
56073         * NEWS: Document the change.
56074
56075 2008-04-28  Bruno Haible  <bruno@clisp.org>
56076
56077         Change rpmatch to use nl_langinfo when appropriate.
56078         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
56079         (N_): New macro.
56080         (localized_pattern): New function/macro.
56081         (try): Remove match, nomatch arguments. Copy the pattern into safe
56082         memory before caching it.
56083         (rpmatch): Use localized_pattern. Add translator comments.
56084         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
56085         Suggested by Eric Blake.
56086         * modules/rpmatch (Depends-on): Add stdbool.
56087
56088 2008-04-28  Eric Blake  <ebb9@byu.net>
56089
56090         Add rawmemchr module, matching glibc.
56091         * modules/string (Makefile.am): New indicator.
56092         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
56093         * lib/string.in.h (rawmemchr): Declare when appropriate.
56094         * modules/rawmemchr: New file.
56095         * m4/rawmemchr.m4: Likewise.
56096         * lib/rawmemchr.c: Likewise.
56097         * modules/rawmemchr-tests: Likewise.
56098         * tests/test-rawmemchr.c: Likewise.
56099         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
56100         module.
56101         * modules/strchrnul (Depends-on): Add rawmemchr.
56102         * lib/strchrnul.c (strchrnul): Optimize a corner case.
56103
56104         Whitespace cleanup.
56105         * tests/test-strchrnul.c: Reindent.
56106         * lib/strchrnul.c: Likewise.
56107
56108         Optimize and test strchrnul.
56109         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
56110         * modules/strchrnul-tests: New file.
56111         * tests/test-strchrnul.c: Likewise.
56112
56113         Remove intprops dependency.
56114         * modules/memchr (Depends-on): Remove intprops.
56115         * modules/memrchr (Depends-on): Likewise.
56116         * modules/memchr2 (Depends-on): Likewise.
56117         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
56118         * lib/memrchr.c (__memrchr): Likewise.
56119         * lib/memrchr2.c (memchr2): Likewise.
56120         Reported by Simon Josefsson.
56121
56122 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56123
56124         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
56125         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56126
56127 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56128
56129         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
56130
56131         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
56132
56133         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
56134
56135         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
56136         declarations.
56137         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
56138
56139         * m4/inet_pton.m4: Don't check for header files.
56140
56141         * m4/inet_ntop.m4: Don't check for header files.
56142
56143 2008-04-28  Simon Josefsson  <simon@josefsson.org>
56144
56145         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
56146         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
56147         trigger for cygwin).
56148         Reported by Bruno Haible  <bruno@clisp.org>.
56149
56150 2008-04-28  Bruno Haible  <bruno@clisp.org>
56151
56152         * doc/posix-functions/strdup.texi: Mention mingw problem.
56153
56154 2008-04-27  Bruno Haible  <bruno@clisp.org>
56155
56156         * modules/stat-time-tests (Depends-on): Add sleep.
56157         * tests/test-stat-time.c (force_unlink): New function.
56158         (cleanup): Use it.
56159         (test_mtime): Remove the ctime related tests.
56160         (test_ctime): New function, containing the ctime related tests.
56161         (main): Call test_ctime, except on native Windows platforms.
56162
56163 2008-04-27  Bruno Haible  <bruno@clisp.org>
56164
56165         * lib/rpmatch.c (rpmatch): Add some comments.
56166         Reported by James Youngman <jay@gnu.org>.
56167
56168 2008-04-27  Bruno Haible  <bruno@clisp.org>
56169
56170         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
56171         quiet NaNs.
56172
56173 2008-04-27  Bruno Haible  <bruno@clisp.org>
56174
56175         Make test-yesno.sh work on mingw.
56176         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
56177         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
56178         (main): Set stdin to binary mode.
56179         * modules/yesno-tests (Depends-on): Add binary-io.
56180
56181 2008-04-27  Bruno Haible  <bruno@clisp.org>
56182
56183         Fix 'isfinite' on x86, x86_64, ia64 platforms.
56184         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
56185         argument that lie outside the IEEE 854 domain.
56186         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
56187         (gl_ISFINITE): Use it.
56188         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
56189
56190 2008-04-27  Bruno Haible  <bruno@clisp.org>
56191
56192         Allow local renaming in config.h.
56193         * lib/memrchr.c (memrchr): Don't undefine outside libc.
56194
56195 2008-04-27  Bruno Haible  <bruno@clisp.org>
56196
56197         * lib/memchr.c (__memchr): Change type of 'i'.
56198         * lib/memchr2.c (memchr2): Likewise.
56199
56200 2008-04-26  Eric Blake  <ebb9@byu.net>
56201         and Bruno Haible  <bruno@clisp.org>
56202
56203         Optimize and test memrchr.
56204         * modules/memrchr (Depends-on): Add intprops.
56205         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
56206         * modules/memrchr-tests: New file.
56207         * tests/test-memrchr.c: New file.
56208
56209 2008-04-26  Bruno Haible  <bruno@clisp.org>
56210
56211         Add tentative support for DragonFly BSD.
56212         * lib/stdio-impl.h: Add macros for DragonFly BSD.
56213         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
56214         fp.
56215         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56216         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
56217         * lib/fpurge.c (fpurge): Likewise.
56218         * lib/freadable.c (freaadable): Likewise.
56219         * lib/freadahead.c (freadahead): Likewise.
56220         * lib/freading.c (freading): Likewise.
56221         * lib/freadptr.c (freadptr): Likewise.
56222         * lib/freadseek.c (freadptrinc): Likewise.
56223         * lib/fseeko.c (fseeko): Likewise.
56224         * lib/fseterr.c (fseterr): Likewise.
56225         * lib/fwritable.c (fwritable): Likewise.
56226         * lib/fwriting.c (fwriting): Likewise.
56227
56228 2008-04-26  Bruno Haible  <bruno@clisp.org>
56229
56230         * lib/stdio-impl.h: New file.
56231         * lib/fbufmode.c: Include stdio-impl.h.
56232         (fbufmode): Use fp_, remove redundant #defines.
56233         * lib/fflush.c: Include stdio-impl.h.
56234         (clear_ungetc_buffer): Remove redundant #defines.
56235         * lib/fpurge.c: Include stdio-impl.h.
56236         (fpurge): Remove redundant #defines.
56237         * lib/freadable.c: Include stdio-impl.h.
56238         (freadable): Remove redundant #defines.
56239         * lib/freadahead.c: Include stdio-impl.h.
56240         (freadahead): Remove redundant #defines.
56241         * lib/freading.c: Include stdio-impl.h.
56242         (freading): Remove redundant #defines.
56243         * lib/freadptr.c: Include stdio-impl.h.
56244         (freadptr): Remove redundant #defines.
56245         * lib/freadseek.c: Include stdio-impl.h.
56246         (freadptrinc): Remove redundant #defines.
56247         * lib/fseeko.c: Include stdio-impl.h.
56248         (rpl_fseeko): Remove redundant #defines.
56249         * lib/fseterr.c: Include stdio-impl.h.
56250         (fseterr): Remove redundant #defines.
56251         * lib/fwritable.c: Include stdio-impl.h.
56252         (fwritable: Remove redundant #defines.
56253         * lib/fwriting.c: Include stdio-impl.h.
56254         (fwriting): Remove redundant #defines.
56255         * modules/fbufmode (Files): Add lib/stdio-impl.h.
56256         * modules/fflush (Files): Likewise.
56257         * modules/fpurge (Files): Likewise.
56258         * modules/freadable (Files): Likewise.
56259         * modules/freadahead (Files): Likewise.
56260         * modules/freading (Files): Likewise.
56261         * modules/freadptr (Files): Likewise.
56262         * modules/freadseek (Files): Likewise.
56263         * modules/fseeko (Files): Likewise.
56264         * modules/fseterr (Files): Likewise.
56265         * modules/fwritable (Files): Likewise.
56266         * modules/fwriting (Files): Likewise.
56267
56268 2008-04-26  Bruno Haible  <bruno@clisp.org>
56269
56270         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
56271         restore_seek_optimization, update_fpos_cache): New functions, extracted
56272         from rpl_fflush.
56273         (rpl_fflush): Use them.
56274         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
56275         (gl_REPLACE_FFLUSH): Use it.
56276
56277 2008-04-26  Bruno Haible  <bruno@clisp.org>
56278
56279         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
56280         on Solaris.
56281         * tests/test-xstrtoimax.sh: Likewise.
56282         * tests/test-xstrtoumax.sh: Likewise.
56283         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56284
56285 2008-04-26  Bruno Haible  <bruno@clisp.org>
56286
56287         * modules/memchr-tests: New file.
56288         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
56289
56290 2008-04-26  Eric Blake  <ebb9@byu.net>
56291             Bruno Haible  <bruno@clisp.org>
56292
56293         * lib/memchr.c: Include intprops.h.
56294         (__memchr): Optimize parallel detection of matching bytes. Rename local
56295         variables. Add explanatory comments.
56296
56297 2008-04-26  Bruno Haible  <bruno@clisp.org>
56298
56299         Fix module 'memchr', broken since 2000-10-28.
56300         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
56301
56302 2008-04-26  Bruno Haible  <bruno@clisp.org>
56303
56304         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
56305         comments.
56306
56307 2008-04-25  Eric Blake  <ebb9@byu.net>
56308
56309         Use native fstatat on cygwin 1.7.0.
56310         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
56311         first.
56312
56313 2008-04-23  Eric Blake  <ebb9@byu.net>
56314
56315         Improve memchr2 performance.
56316         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56317         NUL bytes.
56318         * modules/memchr2 (Depends-on): Use intprops.h.
56319
56320 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56321
56322         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56323         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56324         <blp@cs.stanford.edu>.
56325
56326 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56327
56328         * lib/arpa_inet.in.h: New file.
56329
56330         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56331         (Makefile.am): Sed in substitute header file.
56332
56333         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56334         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56335
56336         * modules/inet_ntop (configure.ac): Use
56337         gl_ARPA_INET_MODULE_INDICATOR.
56338
56339         * modules/inet_pton (configure.ac): Use
56340         gl_ARPA_INET_MODULE_INDICATOR.
56341
56342 2008-04-22  Jim Meyering  <meyering@redhat.com>
56343
56344         * modules/verify (License): Re-license as LGPLv2+.
56345
56346 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56347
56348         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56349         parameter to void* as per POSIX standard (MinGW uses char*).
56350
56351 2008-04-21  Bruno Haible  <bruno@clisp.org>
56352
56353         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56354         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56355         Define to replacements if REPLACE_ISWCNTRL is 1.
56356         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56357         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56358         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56359         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56360         what it fixes.
56361         * doc/posix-functions/iswalpha.texi: Likewise.
56362         * doc/posix-functions/iswblank.texi: Likewise.
56363         * doc/posix-functions/iswcntrl.texi: Likewise.
56364         * doc/posix-functions/iswdigit.texi: Likewise.
56365         * doc/posix-functions/iswgraph.texi: Likewise.
56366         * doc/posix-functions/iswlower.texi: Likewise.
56367         * doc/posix-functions/iswprint.texi: Likewise.
56368         * doc/posix-functions/iswpunct.texi: Likewise.
56369         * doc/posix-functions/iswspace.texi: Likewise.
56370         * doc/posix-functions/iswupper.texi: Likewise.
56371         * doc/posix-functions/iswxdigit.texi: Likewise.
56372         Reported by Alain Guibert.
56373
56374 2008-04-21  Bruno Haible  <bruno@clisp.org>
56375
56376         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56377         Patch by Alain Guibert.
56378
56379 2008-04-21  Bruno Haible  <bruno@clisp.org>
56380
56381         Fix test failures on mingw.
56382         * tests/test-xstrtol.c (print_no_progname): New function.
56383         (main): Install it in error_print_progname hook.
56384         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56385         * tests/test-xstrtoimax.sh: Likewise.
56386         * tests/test-xstrtoumax.sh: Likewise.
56387
56388 2008-04-21  Bruno Haible  <bruno@clisp.org>
56389
56390         Fix test failure on mingw.
56391         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56392
56393 2008-04-21  Bruno Haible  <bruno@clisp.org>
56394
56395         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56396         Actually assign a value.
56397
56398 2008-04-20  Bruno Haible  <bruno@clisp.org>
56399
56400         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56401         take 2.
56402         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56403         'canonicalize-lgpl' module is also used.
56404         * lib/canonicalize-lgpl.c: Undo last change.
56405         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56406
56407 2008-04-20  Bruno Haible  <bruno@clisp.org>
56408
56409         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56410         config.h. Provide _mkdir based fallback for mingw.
56411         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56412         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56413         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56414         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56415         rather than defining mkdir in config.h.
56416         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56417         (gl_SYS_STAT_H_DEFAULTS): New macro.
56418         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56419         HAVE_IO_H any more.
56420         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56421         HAVE_DECL_MKDIR and HAVE_IO_H.
56422
56423 2008-04-20  Bruno Haible  <bruno@clisp.org>
56424
56425         * lib/isapipe.c: Port to native Windows platforms.
56426
56427 2008-04-20  Bruno Haible  <bruno@clisp.org>
56428
56429         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56430
56431 2008-04-21  Eric Blake  <ebb9@byu.net>
56432
56433         Work around preprocessors that don't handle UINTMAX_MAX.
56434         * lib/memchr2.c (memchr2): Avoid embedded #if.
56435         Reported by Alain Guibert, fix suggested by Bruno Haible.
56436
56437 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56438
56439         * doc/posix-functions/strftime.texi (strftime): Explain better
56440         Windows incompatibility.  Suggested by Micah Cowan
56441         <micah@cowan.name>.
56442
56443 2008-04-20  Bruno Haible  <bruno@clisp.org>
56444
56445         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56446         unistr/u8-mblen.
56447
56448 2008-04-20  Bruno Haible  <bruno@clisp.org>
56449
56450         Fix test failure on platforms with non-GNU iconv.
56451         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56452         (U_TO_U8): Use it, rather than u16_to_u8.
56453         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56454         units at the end of the input string.
56455         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56456
56457 2008-04-20  Bruno Haible  <bruno@clisp.org>
56458
56459         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56460         when the resulting length is 0.
56461         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56462
56463 2008-04-20  Bruno Haible  <bruno@clisp.org>
56464
56465         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56466         works.
56467         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56468
56469 2008-04-20  Bruno Haible  <bruno@clisp.org>
56470
56471         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56472         * modules/tsearch-tests (configure.ac): Test for initstate function.
56473
56474 2008-04-20  Bruno Haible  <bruno@clisp.org>
56475
56476         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56477         for nlink_t if missing.
56478         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56479
56480 2008-04-19  Bruno Haible  <bruno@clisp.org>
56481
56482         Work around snprintf bug on Linux libc5.
56483         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56484         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56485         gl_SNPRINTF_SIZE1.
56486         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56487         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56488         that test failed.
56489         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56490         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56491         * modules/snprintf (Files): Add m4/printf.m4.
56492         * modules/vsnprintf (Files): Likewise.
56493         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56494         * doc/posix-functions/vsnprintf.texi: Likewise.
56495
56496 2008-04-19  Bruno Haible  <bruno@clisp.org>
56497
56498         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56499         from 0.0058 to less than 10^-7.
56500
56501 2008-04-19  Bruno Haible  <bruno@clisp.org>
56502
56503         Fix rounding when a precision is given.
56504         * lib/vasnprintf.c (is_borderline): New function.
56505         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56506         9...9x.
56507         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56508         %e, %g.
56509         * tests/test-vasprintf-posix.c (test_function): Likewise.
56510         * tests/test-snprintf-posix.h (test_function): Likewise.
56511         * tests/test-sprintf-posix.h (test_function): Likewise.
56512         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56513         * tests/test-printf-posix.h (test_function): Likewise.
56514         * tests/test-printf-posix.output: Update.
56515         Reported by John Darrington <john@darrington.wattle.id.au> via
56516         Ben Pfaff <blp@cs.stanford.edu>.
56517
56518 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56519
56520         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56521         Suggested by Bruno Haible <bruno@clisp.org>.
56522
56523 2008-04-17  Bruno Haible  <bruno@clisp.org>
56524
56525         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56526         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56527         implementation.
56528         Patch by Bruce Merry <bmerry@gmail.com>.
56529
56530 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56531
56532         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56533         doesn't work under Windows.
56534
56535 2008-04-16  Bruno Haible  <bruno@clisp.org>
56536
56537         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56538         New macros.
56539         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56540         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56541         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56542         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56543         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56544         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56545         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56546         macros.
56547         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56548         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56549         Northern Sotho, Uighur.
56550
56551 2008-04-16  Bruno Haible  <bruno@clisp.org>
56552
56553         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56554         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56555         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56556         Reported by Daniel Bergström <daniel@octocode.com>.
56557
56558 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56559             Bruno Haible  <bruno@clisp.org>
56560
56561         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56562         function.
56563         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56564         New functions, mostly extracted from gl_locale_name_default.
56565         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56566
56567 2008-04-16  Eric Blake  <ebb9@byu.net>
56568
56569         Adjust strtod detection to catch glibc 2.7 bug.
56570         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56571         Reported by John Gatewood Ham.
56572
56573 2008-04-16  Bruno Haible  <bruno@clisp.org>
56574
56575         Add tentative support for Linux libc5.
56576         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56577         * lib/fpurge.c (fpurge): Likewise.
56578         * lib/freadable.c (freadable): Likewise.
56579         * lib/freadahead.c (freadahead): Likewise.
56580         * lib/freading.c (freading): Likewise.
56581         * lib/freadptr.c (freadptr): Likewise.
56582         * lib/freadseek.c (freadptrinc): Likewise.
56583         * lib/fseeko.c (rpl_fseeko): Likewise.
56584         * lib/fseterr.c (fseterr): Likewise.
56585         * lib/fwritable.c (fwritable): Likewise.
56586         * lib/fwriting.c (fwriting): Likewise.
56587         Reported by Alain Guibert <alguibert+bts@free.fr>.
56588
56589 2008-04-15  Bruno Haible  <bruno@clisp.org>
56590
56591         * modules/mathl (configure.ac): Define module indicator.
56592
56593 2008-04-15  Bruno Haible  <bruno@clisp.org>
56594
56595         * lib/logl.c (logl): Remove unused variables.
56596
56597 2008-04-15  Bruno Haible  <bruno@clisp.org>
56598
56599         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56600         fails.
56601
56602 2008-04-15  Bruno Haible  <bruno@clisp.org>
56603
56604         * lib/trim.c (trim2): Fix argument of isspace() macro.
56605
56606 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56607
56608         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56609         to 0.
56610         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56611
56612 2008-04-14  Bruno Haible  <bruno@clisp.org>
56613
56614         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56615         AC_LANG_PROGRAM argument.
56616         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56617         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56618         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56619         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56620         * m4/math_h.m4 (gl_MATH_H): Likewise.
56621         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56622         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56623         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56624         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56625         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56626         * m4/regex.m4 (gl_REGEX): Likewise.
56627         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56628         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56629         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56630         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56631         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56632         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56633         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56634         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56635
56636 2008-04-14  Jim Meyering  <meyering@redhat.com>
56637
56638         test-strtod: fix typos: s/abs/fabs/
56639         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56640
56641 2008-04-13  Bruno Haible  <bruno@clisp.org>
56642
56643         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56644         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56645         module is also used and while not building the reloc-wrapper.
56646
56647 2008-04-13  Bruno Haible  <bruno@clisp.org>
56648
56649         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56650
56651 2008-04-13  Bruno Haible  <bruno@clisp.org>
56652
56653         Fix AIX compilation failure introduced on 2008-04-02.
56654         * tests/test-frexp.c (exp): Undefine before redefining.
56655         * tests/test-frexpl.c (exp): Likewise.
56656
56657 2008-04-13  Bruno Haible  <bruno@clisp.org>
56658
56659         Work around a HP-UX stdio bug.
56660         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56661         * tests/test-ftello.c (main): Likewise.
56662         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56663         * doc/posix-functions/ftello.texi: Likewise.
56664
56665 2008-04-13  Bruno Haible  <bruno@clisp.org>
56666
56667         Make test-signbit pass on HP-UX/hppa.
56668         * tests/test-signbit.c (minus_zerol): New variable.
56669         (test_signbitl): Use it.
56670
56671 2008-04-13  Bruno Haible  <bruno@clisp.org>
56672
56673         Make truncl work on OSF/1 4.0.
56674         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56675         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56676         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56677         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56678         HAVE_DECL_TRUNCL.
56679         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56680         HAVE_DECL_TRUNCL.
56681         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56682
56683 2008-04-13  Bruno Haible  <bruno@clisp.org>
56684
56685         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56686
56687 2008-04-13  Bruno Haible  <bruno@clisp.org>
56688
56689         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56690         expression, so as to avoid HP-UX 11 cc compiler bug.
56691
56692 2008-04-13  Bruno Haible  <bruno@clisp.org>
56693
56694         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56695
56696 2008-04-13  Bruno Haible  <bruno@clisp.org>
56697
56698         * lib/git-merge-changelog.c: Remove empty declaration outside of
56699         functions.
56700
56701 2008-04-13  Bruno Haible  <bruno@clisp.org>
56702
56703         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56704
56705 2008-04-13  Bruno Haible  <bruno@clisp.org>
56706
56707         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56708         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56709         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56710         also if it exists but lacks definitions of the SHUT_* macros.
56711         * modules/sys_socket (Description): Update.
56712         Reported by Elbert Pol <e.pol@chello.nl>.
56713
56714 2008-04-13  Bruno Haible  <bruno@clisp.org>
56715
56716         * lib/localcharset.c (OS2): Don't redefine if already defined.
56717         Reported by Elbert Pol <e.pol@chello.nl>.
56718
56719 2008-04-13  Bruno Haible  <bruno@clisp.org>
56720
56721         * lib/binary-io.h [__EMX__]: Include <io.h>.
56722         Reported by Elbert Pol <e.pol@chello.nl>.
56723
56724 2008-04-12  Bruno Haible  <bruno@clisp.org>
56725
56726         * lib/fpucw.h: Enable the definitions also for x86_64.
56727         Needed for NetBSD/x86_64.
56728         Reported by Thomas Klausner <tk@giga.or.at>.
56729
56730 2008-04-12  Bruno Haible  <bruno@clisp.org>
56731
56732         * tests/test-strtod.c: Include isnand.h.
56733         (main): Use isnand instead of isnan.
56734         Reported by Jim Meyering.
56735
56736 2008-04-12  Bruno Haible  <bruno@clisp.org>
56737
56738         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56739         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56740
56741 2008-04-12  Jim Meyering  <meyering@redhat.com>
56742
56743         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56744
56745 2008-04-12  Bruno Haible  <bruno@clisp.org>
56746
56747         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56748         Reported by Elbert Pol <e.pol@chello.nl>.
56749
56750 2008-04-12  Eric Blake  <ebb9@byu.net>
56751
56752         Work around Solaris 10 math.h bug.
56753         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56754         (gl_MATH_H_DEFAULTS): Set up default.
56755         * modules/math (Makefile.am): Replace new indicators.
56756         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56757         * tests/test-math.c (main): Test this.
56758         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56759         * doc/posix-headers/math.texi (math.h): Mention bug.
56760         Reported by Nelson H. F. Beebe and Jim Meyering.
56761
56762 2008-04-11  Bruno Haible  <bruno@clisp.org>
56763
56764         Adapt to future versions of Apple GCC.
56765         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56766         Reported by Peter O'Gorman <peter@pogma.com>.
56767
56768 2008-04-11  Bruno Haible  <bruno@clisp.org>
56769
56770         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56771
56772 2008-04-11  Bruno Haible  <bruno@clisp.org>
56773
56774         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56775
56776         * modules/getaddrinfo-tests (Makefile.am): Define
56777         test_getaddrinfo_LDADD.
56778
56779 2008-04-11  Bruno Haible  <bruno@clisp.org>
56780
56781         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56782         (init): Fix syntax error.
56783         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56784         is declared.
56785
56786 2008-04-11  Bruno Haible  <bruno@clisp.org>
56787
56788         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56789         * modules/glob (Depends-on): Add stdbool.
56790
56791 2008-04-11  Bruno Haible  <bruno@clisp.org>
56792
56793         * lib/trim.c: Include <string.h>.
56794
56795 2008-04-11  Eric Blake  <ebb9@byu.net>
56796
56797         Avoid compile failure on OS/2.
56798         * lib/regex_internal.h (internal_function): Disable optimization
56799         on OS/2 (__EMX__), where it caused compiler error.
56800         Reported by Elbert Pol.
56801
56802 2008-04-11  Bruno Haible  <bruno@clisp.org>
56803
56804         Flush the standard error stream before aborting. Needed on mingw.
56805         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56806         * tests/test-array_list.c (ASSERT): Likewise.
56807         * tests/test-array_oset.c (ASSERT): Likewise.
56808         * tests/test-avltree_list.c (ASSERT): Likewise.
56809         * tests/test-avltree_oset.c (ASSERT): Likewise.
56810         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56811         * tests/test-binary-io.c (ASSERT): Likewise.
56812         * tests/test-byteswap.c (ASSERT): Likewise.
56813         * tests/test-c-ctype.c (ASSERT): Likewise.
56814         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56815         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56816         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56817         * tests/test-c-strstr.c (ASSERT): Likewise.
56818         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56819         * tests/test-canonicalize.c (ASSERT): Likewise.
56820         * tests/test-carray_list.c (ASSERT): Likewise.
56821         * tests/test-ceilf1.c (ASSERT): Likewise.
56822         * tests/test-ceilf2.c (ASSERT): Likewise.
56823         * tests/test-ceill.c (ASSERT): Likewise.
56824         * tests/test-count-one-bits.c (ASSERT): Likewise.
56825         * tests/test-fbufmode.c (ASSERT): Likewise.
56826         * tests/test-fflush2.c (ASSERT): Likewise.
56827         * tests/test-floorf1.c (ASSERT): Likewise.
56828         * tests/test-floorf2.c (ASSERT): Likewise.
56829         * tests/test-floorl.c (ASSERT): Likewise.
56830         * tests/test-fopen.c (ASSERT): Likewise.
56831         * tests/test-fpending.c (ASSERT): Likewise.
56832         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56833         * tests/test-fpurge.c (ASSERT): Likewise.
56834         * tests/test-freadable.c (ASSERT): Likewise.
56835         * tests/test-freadahead.c (ASSERT): Likewise.
56836         * tests/test-freading.c (ASSERT): Likewise.
56837         * tests/test-freadptr.c (ASSERT): Likewise.
56838         * tests/test-freadptr2.c (ASSERT): Likewise.
56839         * tests/test-freadseek.c (ASSERT): Likewise.
56840         * tests/test-freopen.c (ASSERT): Likewise.
56841         * tests/test-frexp.c (ASSERT): Likewise.
56842         * tests/test-frexpl.c (ASSERT): Likewise.
56843         * tests/test-fseek.c (ASSERT): Likewise.
56844         * tests/test-fseeko.c (ASSERT): Likewise.
56845         * tests/test-fstrcmp.c (ASSERT): Likewise.
56846         * tests/test-ftell.c (ASSERT): Likewise.
56847         * tests/test-ftello.c (ASSERT): Likewise.
56848         * tests/test-func.c (ASSERT): Likewise.
56849         * tests/test-fwritable.c (ASSERT): Likewise.
56850         * tests/test-fwriting.c (ASSERT): Likewise.
56851         * tests/test-getdelim.c (ASSERT): Likewise.
56852         * tests/test-getline.c (ASSERT): Likewise.
56853         * tests/test-i-ring.c (ASSERT): Likewise.
56854         * tests/test-iconv-utf.c (ASSERT): Likewise.
56855         * tests/test-iconv.c (ASSERT): Likewise.
56856         * tests/test-isfinite.c (ASSERT): Likewise.
56857         * tests/test-isnand.c (ASSERT): Likewise.
56858         * tests/test-isnanf.c (ASSERT): Likewise.
56859         * tests/test-isnanl.h (ASSERT): Likewise.
56860         * tests/test-ldexpl.c (ASSERT): Likewise.
56861         * tests/test-linked_list.c (ASSERT): Likewise.
56862         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56863         * tests/test-localename.c (ASSERT): Likewise.
56864         * tests/test-lseek.c (ASSERT): Likewise.
56865         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56866         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56867         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56868         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56869         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56870         * tests/test-mbschr.c (ASSERT): Likewise.
56871         * tests/test-mbscspn.c (ASSERT): Likewise.
56872         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56873         * tests/test-mbspbrk.c (ASSERT): Likewise.
56874         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56875         * tests/test-mbsrchr.c (ASSERT): Likewise.
56876         * tests/test-mbsspn.c (ASSERT): Likewise.
56877         * tests/test-mbsstr1.c (ASSERT): Likewise.
56878         * tests/test-mbsstr2.c (ASSERT): Likewise.
56879         * tests/test-mbsstr3.c (ASSERT): Likewise.
56880         * tests/test-memchr2.c (ASSERT): Likewise.
56881         * tests/test-memmem.c (ASSERT): Likewise.
56882         * tests/test-open.c (ASSERT): Likewise.
56883         * tests/test-printf-frexp.c (ASSERT): Likewise.
56884         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56885         * tests/test-printf-posix.c (ASSERT): Likewise.
56886         * tests/test-quotearg.c (ASSERT): Likewise.
56887         * tests/test-rbtree_list.c (ASSERT): Likewise.
56888         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56889         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56890         * tests/test-round1.c (ASSERT): Likewise.
56891         * tests/test-roundf1.c (ASSERT): Likewise.
56892         * tests/test-roundl.c (ASSERT): Likewise.
56893         * tests/test-signbit.c (ASSERT): Likewise.
56894         * tests/test-sleep.c (ASSERT): Likewise.
56895         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56896         * tests/test-snprintf.c (ASSERT): Likewise.
56897         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56898         * tests/test-stat-time.c (ASSERT): Likewise.
56899         * tests/test-strcasestr.c (ASSERT): Likewise.
56900         * tests/test-strerror.c (ASSERT): Likewise.
56901         * tests/test-striconv.c (ASSERT): Likewise.
56902         * tests/test-striconveh.c (ASSERT): Likewise.
56903         * tests/test-striconveha.c (ASSERT): Likewise.
56904         * tests/test-strsignal.c (ASSERT): Likewise.
56905         * tests/test-strstr.c (ASSERT): Likewise.
56906         * tests/test-strtod.c (ASSERT): Likewise.
56907         * tests/test-trunc1.c (ASSERT): Likewise.
56908         * tests/test-trunc2.c (ASSERT): Likewise.
56909         * tests/test-truncf1.c (ASSERT): Likewise.
56910         * tests/test-truncf2.c (ASSERT): Likewise.
56911         * tests/test-truncl.c (ASSERT): Likewise.
56912         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56913         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56914         * tests/test-vasnprintf.c (ASSERT): Likewise.
56915         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56916         * tests/test-vasprintf.c (ASSERT): Likewise.
56917         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56918         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56919         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56920         * tests/test-vsnprintf.c (ASSERT): Likewise.
56921         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56922         * tests/test-wcwidth.c (ASSERT): Likewise.
56923         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56924         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56925         * tests/test-xvasprintf.c (ASSERT): Likewise.
56926         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56927         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56928         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56929         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56930         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56931         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56932         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56933         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56934         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56935         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56936         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56937         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56938         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56939         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56940         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56941         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56942         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56943         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56944         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56945         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56946         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56947         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56948         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56949         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56950         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56951         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56952         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56953         * tests/unictype/test-combining.c (ASSERT): Likewise.
56954         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56955         * tests/unictype/test-digit.c (ASSERT): Likewise.
56956         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56957         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56958         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56959         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56960         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56961         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56962         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56963         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56964         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56965         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56966         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56967         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56968         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56969         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56970         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56971         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56972         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56973         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56974         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56975         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56976         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56977         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56978         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56979         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56980         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56981         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56982         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56983         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56984         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56985         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56986         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56987         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56988         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56989         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56990         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56991         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56992         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56993         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56994         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56995         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56996         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56997         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56998         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56999         Reported by Eric Blake.
57000
57001 2008-04-11  Bruno Haible  <bruno@clisp.org>
57002
57003         * lib/wchar.in.h: Tweak comment.
57004
57005 2008-04-11  Bruno Haible  <bruno@clisp.org>
57006
57007         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
57008         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
57009         gl_COMMON.
57010         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
57011
57012 2008-04-11  Bruno Haible  <bruno@clisp.org>
57013
57014         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
57015
57016 2008-04-11  Simon Josefsson  <simon@josefsson.org>
57017
57018         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
57019         of attempting to use non-existing /dev/*random.  Based on patch
57020         from Adam Strzelecki <ono@java.pl> in
57021         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
57022
57023 2008-04-08  Bruno Haible  <bruno@clisp.org>
57024
57025         Add tentative support for emx+gcc.
57026         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
57027         * lib/fpurge.c (fpurge): Likewise.
57028         * lib/freadable.c (freadable): Likewise.
57029         * lib/freadahead.c (freadahead): Likewise.
57030         * lib/freading.c (freading): Likewise.
57031         * lib/freadptr.c (freadptr): Likewise.
57032         * lib/freadseek.c (freadptrinc): Likewise.
57033         * lib/fseeko.c (rpl_fseeko): Likewise.
57034         * lib/fseterr.c (fseterr): Likewise.
57035         * lib/fwritable.c (fwritable): Likewise.
57036         * lib/fwriting.c (fwriting): Likewise.
57037         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
57038
57039 2008-04-09  Eric Blake  <ebb9@byu.net>
57040
57041         Avoid some autoconf warnings.
57042         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
57043         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
57044         * m4/afs.m4 (gl_AFS): Likewise.
57045         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
57046         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
57047         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57048         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
57049         (gl_INTEGER_TYPE_SUFFIX): Likewise.
57050         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
57051         (AC_CHECK_DECLS_ONCE): Likewise.
57052         Rename file...
57053         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
57054         gnulib-tool requires autoconf 2.59 or better.
57055         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
57056
57057 2008-04-08  Eric Blake  <ebb9@byu.net>
57058
57059         Use 'git describe --match' if present (added in git 1.5.5).
57060         * build-aux/git-version-gen: Limit result to tags that match 'v*'
57061         if possible.
57062
57063 2008-04-08  Bruno Haible  <bruno@clisp.org>
57064
57065         Add tentative support for OpenServer.
57066         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
57067         _ptr, _cnt.
57068         * lib/fpurge.c (fpurge): Likewise.
57069         * lib/freadable.c (freadable): Likewise.
57070         * lib/freadahead.c (freadahead): Likewise.
57071         * lib/freading.c (freading): Likewise.
57072         * lib/freadptr.c (freadptr): Likewise.
57073         * lib/freadseek.c (freadptrinc): Likewise.
57074         * lib/fseeko.c (rpl_fseeko): Likewise.
57075         * lib/fseterr.c (fseterr): Likewise.
57076         * lib/fwritable.c (fwritable): Likewise.
57077         * lib/fwriting.c (fwriting): Likewise.
57078         Reported by Roger Cornelius <rac@tenzing.org> and
57079         Brian K. White <brian@aljex.com>.
57080
57081 2008-04-06  Jim Meyering  <meyering@redhat.com>
57082
57083         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
57084
57085 2008-04-06  Bruno Haible  <bruno@clisp.org>
57086
57087         Avoid possible error with non-ASCII bytes in UTF-8 locales.
57088         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
57089         * tests/test-printf-posix.sh: Likewise.
57090         * tests/test-vfprintf-posix.sh: Likewise.
57091         * tests/test-vprintf-posix.sh: Likewise.
57092         * tests/test-xprintf-posix.sh: Likewise.
57093
57094 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57095
57096         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
57097         hide error from 'ls', needed on OS/2.
57098         Report by Elbert Pol <elbert.pol@gmail.com>.
57099
57100 2008-04-04  Eric Blake  <ebb9@byu.net>
57101
57102         Make test-fseeko.c failures meaningful.
57103         * tests/test-fseeko.c: Print line number on failure.
57104         * tests/test-fseek.c: Likewise.
57105         Reported by Nelson H. F. Beebe.
57106
57107         Improve strtod bug detection check.
57108         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
57109         required for Solaris 10.
57110         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
57111
57112 2008-04-04  Bruno Haible  <bruno@clisp.org>
57113
57114         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
57115         by m4/setenv.m4.
57116
57117 2008-04-03  Eric Blake  <ebb9@byu.net>
57118
57119         Ensure sane .version contents.
57120         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
57121         version string.
57122         * build-aux/git-version-gen: Improve documentation.
57123
57124         Make GNU make output nicer.
57125         * top/GNUmakefile [!_have-Makefile]: Add dependency on
57126         MAKECMDGOALS to enforce message for all command line targets.  Set
57127         srcdir for use in maint.mk.
57128
57129         Another maintainer tweak.
57130         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
57131         a target that regenerates version.
57132
57133 2008-04-03  Jim Meyering  <meyering@redhat.com>
57134
57135         vc-list-files: don't cause coreutils "make po-check" failure
57136         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
57137
57138 2008-04-03  Eric Blake  <ebb9@byu.net>
57139
57140         Allow VPATH usage of vc-list-files.
57141         * build-aux/vc-list-files (scriptversion): Add timestamp.
57142         (options): Add --help, --version, -C.
57143         (CVS): Support installed cvsu.
57144
57145 2008-04-02  Bruno Haible  <bruno@clisp.org>
57146
57147         Avoid some "statement with no effect" warnings from gcc.
57148         * tests/test-wctype.c (main): Explicitly ignore unused values.
57149         Reported by Jim Meyering.
57150
57151 2008-04-02  Jim Meyering  <meyering@redhat.com>
57152
57153         Avoid some warnings from "gcc -Wshadow".
57154         * tests/test-frexp.c (exp): Define to a different identifier.
57155         * tests/test-frexpl.c (exp): Likewise.
57156
57157 2008-04-03  Jim Meyering  <meyering@redhat.com>
57158
57159         bootstrap: remove dangling *.[ch] symlinks from lib
57160         * build-aux/bootstrap [dangling symlink removal]: Move find's
57161         -depth option to precede all others, to avoid a warning.
57162         Remove *.[ch] files too, and from "$source_base" (usually lib/).
57163
57164 2008-04-02  Bruno Haible  <bruno@clisp.org>
57165
57166         Avoid some warnings from "gcc -Wshadow".
57167         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
57168         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
57169         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
57170         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
57171         Reported by Jim Meyering.
57172
57173 2008-04-01  Bruno Haible  <bruno@clisp.org>
57174
57175         Fix test to work on IRIX 6.5 with cc.
57176         * tests/test-math.c (numeric_equal): New function.
57177         (main): Use it.
57178
57179 2008-04-01  Bruno Haible  <bruno@clisp.org>
57180
57181         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
57182
57183 2008-04-01  Bruno Haible  <bruno@clisp.org>
57184
57185         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
57186         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57187         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
57188         (Depends-on): Remove math.
57189
57190         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
57191         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57192         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
57193         (Depends-on): Remove math.
57194
57195         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
57196         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57197         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
57198         (Depends-on): Remove math.
57199         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
57200         (Depends-on): Remove math.
57201
57202         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
57203         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
57204         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
57205         (Depends-on): Remove math.
57206         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
57207         (Depends-on): Remove math.
57208
57209         * tests/test-round1.c: Include nan.h.
57210         (main): Use NaNd instead of NAN.
57211         * modules/round-tests (Files): Add tests/nan.h.
57212
57213         * tests/test-trunc1.c: Include nan.h.
57214         (main): Use NaNd instead of NAN.
57215         * modules/trunc-tests (Files): Add tests/nan.h.
57216
57217         * tests/test-roundf1.c: Include nan.h.
57218         (main): Use NaNf instead of NAN.
57219         * modules/roundf-tests (Files): Add tests/nan.h.
57220
57221         * tests/test-truncf1.c: Include nan.h.
57222         (main): Use NaNf instead of NAN.
57223         * modules/truncf-tests (Files): Add tests/nan.h.
57224
57225         * tests/test-ceilf1.c: Include nan.h.
57226         (main): Use NaNf instead of NAN.
57227         * modules/ceilf-tests (Files): Add tests/nan.h.
57228
57229         * tests/test-floorf1.c: Include nan.h.
57230         (main): Use NaNf instead of NAN.
57231         * modules/floorf-tests (Files): Add tests/nan.h.
57232
57233         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
57234         (main): Use NaNf instead of NAN.
57235         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
57236
57237         * tests/test-isnand.c: Include nan.h instead of <math.h>.
57238         (main): Use NaNd instead of NAN.
57239         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
57240
57241         * tests/test-frexp.c: Include nan.h.
57242         (main): Use NaNd instead of NAN.
57243         * modules/frexp-tests (Files): Add tests/nan.h.
57244
57245         * lib/isnan.c: Don't include <math.h>.
57246         (FUNC): Don't use NAN macro.
57247         * modules/isnand-nolibm (Depends-on): Remove math.
57248         * modules/isnanf-nolibm (Depends-on): Remove math.
57249         * modules/isnanl (Depends-on): Remove math.
57250         * modules/isnanl-nolibm (Depends-on): Remove math.
57251
57252         * tests/nan.h: New file.
57253
57254 2008-04-01  Eric Blake  <ebb9@byu.net>
57255
57256         Fix typos.
57257         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
57258         values to be the right type.
57259
57260         For now, cater to gnulib strtod inaccuracies.
57261         * tests/test-strtod.c (main): Allow 1-ulp error on expected
57262         fractional results.  While not as nice from a QoI perspective, it
57263         is a quicker patch than correctly implementing decimal to binary
57264         rounding.
57265
57266 2008-03-31  Eric Blake  <ebb9@byu.net>
57267
57268         Guarantee a definition of NAN.
57269         * lib/math.in.h (NAN): Define if missing.
57270         * tests/test-math.c (main): Test it.
57271         * doc/posix-headers/math.texi (math.h): Document this.
57272         * lib/isnan.c (rpl_isnand): Use it.
57273         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
57274         * tests/test-floorf1.c (NaN): Likewise.
57275         * tests/test-frexp.c (NaN): Likewise.
57276         * tests/test-isnand.c (NaN): Likewise.
57277         * tests/test-isnanf.c (NaN): Likewise.
57278         * tests/test-round1.c (NaN): Likewise.
57279         * tests/test-roundf1.c (NaN): Likewise.
57280         * tests/test-snprintf-posix.h (NaN): Likewise.
57281         * tests/test-sprintf-posix.h (NaN): Likewise.
57282         * tests/test-trunc1.c (NaN): Likewise.
57283         * tests/test-truncf1.c (NaN): Likewise.
57284         * tests/test-vasnprintf-posix.c (NaN): Likewise.
57285         * tests/test-vasprintf-posix.c (NaN): Likewise.
57286         * modules/isnand-nolibm (Depends-on): Add math.
57287         * modules/isnanf-nolibm (Depends-on): Likewise.
57288         * modules/isnanl (Depends-on): Likewise.
57289         * modules/isnanl-nolibm (Depends-on): Likewise.
57290         * modules/snprintf-posix-tests (Depends-on): Likewise.
57291         * modules/sprintf-posix-tests (Depends-on): Likewise.
57292         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
57293         * modules/vsprintf-posix-tests (Depends-on): Likewise.
57294         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
57295         * modules/vasprintf-posix-tests (Depends-on): Likewise.
57296
57297 2008-03-31  Bruno Haible  <bruno@clisp.org>
57298
57299         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
57300         * doc/posix-functions/strtod.texi: Likewise.
57301
57302 2008-03-31  Bruno Haible  <bruno@clisp.org>
57303
57304         * tests/test-strtod.c (main): Don't use C99 syntax.
57305
57306 2008-03-31  Bruno Haible  <bruno@clisp.org>
57307
57308         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
57309         Reported by Eric Blake.
57310
57311 2008-03-31  Jim Meyering  <meyering@redhat.com>
57312
57313         Don't compare actual signbit return values.
57314         * tests/test-strtod.c (main): Rather, compare only their
57315         zero/non-zero nature.
57316
57317 2008-03-31  Eric Blake  <ebb9@byu.net>
57318
57319         More strtod documentation.
57320         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57321         failures as distinct bugs.
57322
57323 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57324
57325         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57326         Problem reported by Erik Benada in
57327         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57328
57329 2008-03-30  Bruno Haible  <bruno@clisp.org>
57330
57331         * tests/test-strtod.c: Add comments about which assertion fails on which
57332         platform.
57333         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57334
57335 2008-03-30  Eric Blake  <ebb9@byu.net>
57336
57337         Test signbit behavior on zeros.
57338         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57339         (test_signbitd, test_signbitl): Likewise.
57340
57341         More strtod touchups.
57342         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57343         sign of negative underflow, for now.  Use .5, not .1.
57344         * doc/posix-functions/strtod.texi (strtod): Mention these
57345         limitations.
57346         Reported by Jim Meyering.
57347
57348 2008-03-30  Bruno Haible  <bruno@clisp.org>
57349
57350         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57351         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57352
57353 2008-03-30  Bruno Haible  <bruno@clisp.org>
57354
57355         Avoid failure when attempting to return empty iconv results on some
57356         platforms.
57357         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57358         allocation, don't report ENOMEM when the resulting string is empty.
57359
57360 2008-03-30  Bruno Haible  <bruno@clisp.org>
57361
57362         Fix buffer overrun.
57363         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57364         Don't consider the width for tmp_length. Check count against tmp_length
57365         before doing the padding. Ensure enough allocation during padding.
57366
57367 2008-03-30  Eric Blake  <ebb9@byu.net>
57368
57369         strtod touchups.
57370         * lib/strtod.c (strtod): Avoid compiler warnings.
57371         Reported by Jim Meyering.
57372
57373 2008-03-30  Bruno Haible  <bruno@clisp.org>
57374
57375         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57376         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57377         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57378         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57379         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57380         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57381         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57382         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57383
57384         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57385         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57386         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57387         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57388         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57389         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57390         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57391         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57392
57393         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57394         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57395         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57396         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57397         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57398         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57399         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57400         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57401
57402         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57403         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57404
57405         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57406         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57407
57408         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57409         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57410
57411         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57412         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57413         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57414
57415         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57416         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57417         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57418
57419         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57420         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57421         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57422
57423         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57424         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57425         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57426
57427         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57428         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57429         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57430         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57431         (Depends-on): Add EOVERFLOW.
57432         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57433         (Depends-on): Add EOVERFLOW.
57434         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57435         (Depends-on): Add EOVERFLOW.
57436         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57437         (Depends-on): Add EOVERFLOW.
57438         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57439         (Depends-on): Add EOVERFLOW.
57440         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57441         (Depends-on): Add EOVERFLOW.
57442         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57443         (Depends-on): Add EOVERFLOW.
57444         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57445         (Depends-on): Add EOVERFLOW.
57446
57447         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57448         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57449         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57450
57451         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57452         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57453         * modules/snprintf (Depends-on): Add EOVERFLOW.
57454
57455         * lib/poll.c (EOVERFLOW): Remove fallback.
57456         * modules/poll (Depends-on): Add EOVERFLOW.
57457
57458         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57459         * modules/getugroups (Depends-on): Add EOVERFLOW.
57460
57461         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57462         * modules/getdelim (Depends-on): Add EOVERFLOW.
57463
57464         * lib/ftell.c (EOVERFLOW): Remove fallback.
57465         * modules/ftell (Depends-on): Add EOVERFLOW.
57466
57467         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57468         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57469         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57470
57471         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57472
57473         * modules/EOVERFLOW-tests: New file.
57474         * tests/test-EOVERFLOW.c: New file.
57475
57476         * modules/EOVERFLOW: New file.
57477         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57478
57479 2008-03-30  Bruno Haible  <bruno@clisp.org>
57480
57481         Fix bug introduced on 2007-06-10.
57482         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57483         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57484
57485 2008-03-30  Bruno Haible  <bruno@clisp.org>
57486
57487         Improve freadseek's efficiency after ungetc.
57488         * lib/freadseek.c: Include freadahead.h.
57489         (freadptrinc): New function, extracted from freadseek.
57490         (freadseek): Use it in a loop. Use freadahead to determine the number
57491         of loop iterations.
57492         * modules/freadseek (Depends-on): Add freadahead.
57493         (configure.ac): Require AC_C_INLINE.
57494
57495 2008-03-30  Bruno Haible  <bruno@clisp.org>
57496
57497         * lib/freadseek.c (freadseek): Don't ignore the return value of
57498         freadptr.
57499
57500 2008-03-29  Eric Blake  <ebb9@byu.net>
57501
57502         Add hex float support.
57503         * modules/strtod (Depends-on): Add c-ctype.
57504         (Link): Mention POW_LIB.
57505         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57506         whitespace between 'e' and exponent.
57507         * tests/test-strtod.c (main): Enable hex float tests.
57508         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57509         now provides.
57510
57511         Document various strtod bugs, with some fixes.
57512         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57513         "-0x", "inf", "nan", and hex constants.
57514         * doc/posix-functions/atof.texi (atof): Likewise.
57515         * modules/stdlib (Makefile.am): Support strtod.
57516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57517         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57518         detect additional strtod bugs.
57519         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57520         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57521         bool where appropriate.  Parse 'inf' and 'nan'.
57522         * tests/test-strtod.c: New file.
57523         * modules/strtod (Depends-on): Add stdbool, stdlib.
57524         (configure.ac): Turn on module indicator.
57525         * modules/strtod-tests: New module.
57526
57527 2008-03-29  Eric Blake  <ebb9@byu.net>
57528
57529         Fix ftell on mingw.
57530         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57531         * modules/ftell-tests (Depends-on): Add binary-io.
57532         * modules/ftello-tests (Depends-on): Likewise.
57533         * tests/test-ftell.c (main): Enhance test to cover behavior after
57534         ungetc.  Enforce binary mode.
57535         * tests/test-ftello.c (main): Likewise.
57536
57537         Pass test-freadseek on cygwin.
57538         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57539         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57540         ungetc buffer.
57541
57542         * tests/test-fflush2.c (main): Fix typo.
57543
57544 2008-03-29  Bruno Haible  <bruno@clisp.org>
57545
57546         * tests/test-fflush2.c (main): Temporarily disable the contents of
57547         this test.
57548         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57549         Reported by Eric Blake.
57550
57551 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57552
57553         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57554         (GC_SHA224_DIGEST_SIZE): Add.
57555
57556         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57557         (gc_hash_digest_length): Likewise.
57558         (gc_hash_buffer): Likewise.
57559
57560 2008-03-25  Bruno Haible  <bruno@clisp.org>
57561
57562         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57563         detail which gettext release to use.
57564         Reported by Simon Josefsson.
57565
57566 2008-03-26  Jim Meyering  <meyering@redhat.com>
57567
57568         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57569         * modules/gnumakefile (clean-GNUmakefile): Also, use
57570         test ... && ... || : syntax rather than if-then ... fi.
57571
57572         gnumakefile: Don't double-quote-expand $(VPATH) value.
57573         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57574
57575 2008-03-24  Eric Blake  <ebb9@byu.net>
57576
57577         Alter GNUmakefile to install into top directory.
57578         * modules/maintainer-makefile: Split, and add dependency...
57579         * modules/gnumakefile: to this new module.
57580         * build-aux/GNUmakefile: Move...
57581         * top/GNUmakefile: ...here.
57582         * build-aux/maint.mk: Move...
57583         * top/maint.mk: ...here.
57584         * MODULES.html.sh (Support for maintaining...): Document new
57585         module.
57586
57587 2008-03-23  Bruno Haible  <bruno@clisp.org>
57588
57589         * gnulib-tool: New options --vc-files, --no-vc-files.
57590         (func_usage): Document them.
57591         (vc_files): New variable.
57592         (func_import): Consider vc_files.
57593         (func_create_testdir): Set vc_files to empty.
57594         Suggested by Jim Meyering and Karl Berry.
57595
57596 2008-03-23  Bruno Haible  <bruno@clisp.org>
57597
57598         Fix regex compilation error on HP-UX 11.
57599         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57600         * modules/regex (Files): Add m4/mbstate_t.m4.
57601         Reported by Ton Voon <ton.voon@altinity.com>.
57602
57603 2008-03-23  Bruno Haible  <bruno@clisp.org>
57604
57605         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57606
57607 2008-03-23  Eric Blake  <ebb9@byu.net>
57608             Bruno Haible  <bruno@clisp.org>
57609
57610         Install files from top/ in the destination directory.
57611         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57612         augmentation also for the files from top/.
57613         (func_import, func_create_testdir): Rewrite file names:
57614         top/filename -> filename.
57615
57616 2008-03-23  Bruno Haible  <bruno@clisp.org>
57617
57618         Tweak "gnulib --version" output.
57619         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57620
57621 2008-03-23  Bruno Haible  <bruno@clisp.org>
57622
57623         Tweak "gnulib --version" output.
57624         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57625         rather than contents of ChangeLog, when possible.
57626
57627 2008-03-21  Eric Blake  <ebb9@byu.net>
57628
57629         More --version tweaks.
57630         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57631         date of last ChangeLog entry.
57632
57633 2008-03-21  Jim Meyering  <meyering@redhat.com>
57634
57635         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57636
57637 2008-03-20  Eric Blake  <ebb9@byu.net>
57638
57639         VPATH fix.
57640         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57641
57642 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57643
57644         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57645         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57646
57647 2008-03-20  Eric Blake  <ebb9@byu.net>
57648
57649         Sync GNUmakefile with coreutils.
57650         * build-aux/GNUmakefile (have-Makefile): Rename...
57651         (_have-Makefile): ...to this, for namespace consideration.
57652         (GNUmakefile.cfg): Include, if present.
57653         (_autoreconf): Define a default.
57654         (_is-dist-target): New rule for rebuilds to pick up intra-release
57655         version.
57656         (maint-cfg.mk): Rename...
57657         (cfg.mk): ...to this.
57658
57659 2008-03-18  Jim Meyering  <meyering@redhat.com>
57660
57661         New script and module: mktempd
57662         * MODULES.html.sh (maint+release support): Add mktempd.
57663         * build-aux/mktempd: New file.
57664         * modules/mktempd: New file.
57665
57666 2008-03-15  Jim Meyering  <meyering@redhat.com>
57667
57668         Undo last change.
57669         * lib/sha1.c, lib/md5.c: 63 != ~63.
57670         Reported by Andreas Schwab.
57671
57672         sha1.c, md5.c: Hoist a redundant expression.
57673         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57674         "ctx->buflen" only once, before calling *_process_block.
57675         * lib/md5.c (md5_process_bytes): Likewise.
57676
57677 2008-03-14  Eric Blake  <ebb9@byu.net>
57678
57679         Bump copyright year in files generated by gnulib-tool.
57680         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57681         gnulib-tool, rather than hard-coding it.
57682
57683         Fix 'gnulib-tool --version' output to work with git.
57684         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57685         (startup): ...here.
57686         (func_version): Use it to invoke git-version-gen, rather than
57687         relying on CVS keyword expansion.  Modernize wording.
57688         (cvsdatestamp, last_checkin_date, version): Kill unused
57689         variables.
57690
57691 2008-03-12  Jim Meyering  <meyering@redhat.com>
57692
57693         Recognize optional cast of the argument to free.
57694         * build-aux/useless-if-before-free: Update regexps.
57695
57696         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57697
57698 2008-03-11  Bruno Haible  <bruno@clisp.org>
57699
57700         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57701         by a single package.
57702         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57703         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57704         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57705         Reported by Sam Steingold <sds@gnu.org>.
57706
57707 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57708
57709         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57710         repositories.
57711
57712 2008-03-11  Bruno Haible  <bruno@clisp.org>
57713
57714         Avoid conflicts between local macro definitions.
57715         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57716         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57717
57718 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57719             Bruno Haible  <bruno@clisp.org>
57720
57721         Make va_copy work with some version of xlc on AIX 5.1.
57722         * lib/stdarg.in.h: New file.
57723         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57724         On AIX, use a <stdarg.h> file substitute.
57725         * modules/stdarg (Files): Add lib/stdarg.in.h.
57726         (Depends-on): Add include_next.
57727         (Makefile.am): Build a stdarg.h substitute if requested.
57728         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57729
57730 2008-03-10  Bruno Haible  <bruno@clisp.org>
57731
57732         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57733         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57734         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57735
57736 2008-03-10  Bruno Haible  <bruno@clisp.org>
57737
57738         * modules/stdlib (Depends-on): Add include_next, remove
57739         absolute-header.
57740
57741 2008-03-09  Bruno Haible  <bruno@clisp.org>
57742
57743         * lib/freadahead.h (freadahead): Document more precisely.
57744         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57745         the sum of both buffer sizes.
57746         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57747         * NEWS: Document the change.
57748
57749 2008-03-09  Bruno Haible  <bruno@clisp.org>
57750
57751         Extend freadptr to return also the buffer size.
57752         * lib/freadptr.h (freadptr): Add sizep argument.
57753         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57754         (freadptr): Add sizep argument. Determine buffer size like freadahead
57755         does.
57756         * tests/test-freadptr.c: Don't include freadahead.h.
57757         (main): Adapt for new calling convention of freadptr.
57758         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57759         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57760         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57761         tests/test-freadptr2.sh.
57762         (Depends): Remove freadahead.
57763         (TESTS): Add test-freadptr2.sh.
57764         (check_PROGRAMS): Add test-freadptr2.
57765
57766 2008-03-09  Bruno Haible  <bruno@clisp.org>
57767
57768         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57769         Report and solution by Simon Josefsson.
57770
57771 2008-03-06  Bruno Haible  <bruno@clisp.org>
57772
57773         Make fflush after ungetc work on BSD platforms.
57774         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57775         * tests/test-fflush2.c: New file.
57776         * tests/test-fflush2.sh: New file.
57777         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57778         tests/test-fflush2.c.
57779         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57780         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57781
57782 2008-03-06  Eric Blake  <ebb9@byu.net>
57783
57784         Likewise for ftello.
57785         * modules/ftello (Dependencies): Add extensions.
57786         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57787
57788 2008-03-06  Bruno Haible  <bruno@clisp.org>
57789
57790         * modules/fseeko (Dependencies): Add extensions.
57791         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57792         Needed on glibc systems.
57793
57794 2008-03-06  Bruno Haible  <bruno@clisp.org>
57795
57796         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57797         email address.
57798         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57799
57800 2008-03-06  Bruno Haible  <bruno@clisp.org>
57801
57802         * users.txt: Add libgnupdf.
57803
57804 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57805
57806         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57807         (Header File Substitutes, Function Substitutes,
57808         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57809         (Build robot for gnulib): Fix typo.
57810
57811 2008-03-06  Bruno Haible  <bruno@clisp.org>
57812
57813         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57814         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57815
57816 2008-03-06  Bruno Haible  <bruno@clisp.org>
57817
57818         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57819         * doc/gnulib.texi: Include it.
57820
57821 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57822
57823         * modules/func (License): Change license to unlimited; there was
57824         no LGPL parts in the module anyway.
57825
57826 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57827
57828         * modules/__func__: Renamed to modules/func.
57829         * modules/__func__-tests: Renamed to modules/func-tests.
57830         * tests/test-__func__.c: Renamed to tests/test-func.c.
57831         * m4/__func__.m4: Renamed to m4/func.m4.
57832         * doc/gnulib.texi (__func__): Section renamed to func.
57833         Suggested by Eric Blake <ebb9@byu.net>.
57834
57835 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57836
57837         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57838         about __func__.  Make example self-contained.  Suggested by Eric
57839         Blake <ebb9@byu.net>.
57840
57841         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57842         Suggested by Eric Blake <ebb9@byu.net>.
57843
57844 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57845
57846         * modules/__func__: New file.
57847         * modules/__func__-tests: New file.
57848         * tests/test-__func__.c: New file.
57849         * m4/__func__.m4: New file.
57850         * doc/gnulib.texi (__func__): Document __func__ module.
57851
57852 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57853
57854         * modules/byteswap (License): Re-license as LGPLv2+.
57855
57856 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57857
57858         * doc/Makefile: Add pdf target.
57859
57860 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57861
57862         * modules/inline (License): Use 'unlimited', since there are only
57863         *.m4 files in this module.
57864
57865 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57866             Bruno Haible  <bruno@clisp.org>
57867
57868         Add support for HP C 7.1 on OpenVMS 8.3.
57869         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57870
57871 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57872
57873         Update VMS specifics.
57874         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57875
57876 2008-03-02  Jim Meyering  <meyering@redhat.com>
57877
57878         Remove the last dependency on the "free" module.
57879         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57880         Reported by Bob Proulx.
57881
57882         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57883
57884         Remove useless "if" tests before free.  Deprecate "free" module.
57885         * doc/posix-functions/free.texi: Mention that this
57886         module is no longer useful.
57887         * modules/free (Notice): Say this module is obsolete.
57888         * modules/readutmp (Depends-on): Remove free.
57889         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57890         * lib/putenv.c (putenv): Likewise.
57891         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57892         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57893         * tests/test-c-strcasestr.c (main): Likewise.
57894         * tests/test-c-strstr.c (main): Likewise.
57895         * tests/test-mbscasestr1.c (main): Likewise.
57896         * tests/test-mbscasestr2.c (main): Likewise.
57897         * tests/test-mbsstr1.c (main): Likewise.
57898         * tests/test-mbsstr2.c (main): Likewise.
57899         * tests/test-memmem.c (main): Likewise.
57900         * tests/test-strcasestr.c (main): Likewise.
57901         * tests/test-striconv.c (main): Likewise.
57902         * tests/test-striconveh.c (main): Likewise.
57903         * tests/test-striconveha.c (main): Likewise.
57904         * tests/test-strstr.c (main): Likewise.
57905
57906         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57907
57908         bootstrap: sync from coreutils again
57909         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57910
57911 2008-03-01  Jim Meyering  <meyering@redhat.com>
57912
57913         bootstrap: sync from coreutils
57914         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57915         also when the target doesn't exist.
57916
57917 2008-03-01  Eric Blake  <ebb9@byu.net>
57918
57919         Fix bugs in last patch.
57920         * lib/memchr2.c (memchr2): Fix typo.
57921         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57922         extension.
57923         Reported by Bruce Korb.
57924
57925         New module 'memchr2'.
57926         * modules/memchr2: New file.
57927         * modules/memchr2-tests: Likewise.
57928         * lib/memchr2.h: Likewise.
57929         * lib/memchr2.c: Likewise, based on memchr.c.
57930         * tests/test-memchr2.c: New test.
57931         * MODULES.html.sh (String handling): Add memchr2.
57932
57933 2008-02-29  Bruno Haible  <bruno@clisp.org>
57934
57935         * modules/freadseek-tests: New file.
57936         * tests/test-freadseek.sh: New file.
57937         * tests/test-freadseek.c: New file.
57938
57939         New module 'freadseek'.
57940         * modules/freadseek: New file.
57941         * lib/freadseek.h: New file.
57942         * lib/freadseek.c: New file.
57943         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57944
57945 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57946
57947         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57948         wydawca.
57949
57950         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57951         program_invocation_name and program_invocation_short_name are
57952         present.
57953
57954 2008-02-28  Bruno Haible  <bruno@clisp.org>
57955
57956         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57957         * tests/test-freadptr.sh: Also test non-seekable stdin.
57958
57959 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57960
57961         * build-aux/bootstrap (source_base, m4_base)
57962         (doc_base, tests_base): New variables.
57963         (gnulib_tool_options): Do not hardcode base directories, use
57964         the above variables instead.
57965
57966 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57967
57968         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57969
57970 2008-02-28  Bruno Haible  <bruno@clisp.org>
57971
57972         * modules/freadptr-tests: New file.
57973         * tests/test-freadptr.sh: New file.
57974         * tests/test-freadptr.c: New file.
57975
57976         New module 'freadptr'.
57977         * modules/freadptr: New file.
57978         * lib/freadptr.h: New file.
57979         * lib/freadptr.c: New file.
57980         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57981
57982 2008-02-26  Karl Berry  <karl@freefriends.org>
57983
57984         Sync from Libtool:
57985         * libltdl/argz.c (argz_add, argz_count): New functions.
57986         * libltdl/argz.in.h: Declare them.
57987         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57988
57989 2008-02-22  Bruno Haible  <bruno@clisp.org>
57990
57991         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57992         is a pointer type.  Needed for HP-UX 10.
57993         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57994         * doc/posix-functions/gmtime_r.texi: Likewise.
57995         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57996
57997 2008-02-24  Bruno Haible  <bruno@clisp.org>
57998
57999         * modules/environ-tests: New file.
58000         * tests/test-environ.c: New file.
58001
58002         New module 'environ'.
58003         * modules/environ: New file.
58004         * lib/unistd.in.h (environ): New declaration.
58005         * m4/environ.m4: New file.
58006         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
58007         after use.
58008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
58009         HAVE_DECL_ENVIRON.
58010         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
58011         HAVE_DECL_ENVIRON.
58012         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
58013         wrong claim that 'environ' is missing on some systems.
58014         * modules/execute (Depends-on): Add environ.
58015         * lib/execute.c (environ): Remove fallback declaration.
58016         * modules/pipe (Depends-on): Add environ.
58017         * lib/pipe.c (environ): Remove fallback declaration.
58018         * modules/setenv (Depends-on): Add environ.
58019         * lib/setenv.c (environ): Remove fallback declaration.
58020         * modules/unsetenv (Depends-on): Add environ.
58021         * lib/unsetenv.c (environ): Remove fallback declaration.
58022         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
58023         m4/environ.m4.
58024         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
58025         (gl_PREREQ_UNSETENV): Likewise.
58026
58027 2008-02-24  Bruno Haible  <bruno@clisp.org>
58028
58029         * doc/posix-functions/environ.texi: Document the MacOS X problem.
58030
58031 2008-02-20  Bob Proulx  <bob@proulx.com>
58032
58033         Enable use of older two part flavor 'git describe'.
58034         * build-aux/git-version-gen: If using the older two part flavor of
58035         git version then recreate the third part now present in the
58036         newer three part flavor of git describe.
58037
58038 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
58039
58040         * lib/fts.c (fts_build): Typo correction to comment.
58041
58042 2008-02-17  Bruno Haible  <bruno@clisp.org>
58043
58044         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
58045         generating no-op conflicts.
58046
58047 2008-02-17  Bruno Haible  <bruno@clisp.org>
58048
58049         Speed up by 10%.
58050         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
58051         result_entries, rather than an index-based loop.
58052
58053 2008-02-17  Bruno Haible  <bruno@clisp.org>
58054
58055         Speed up by 25%.
58056         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
58057         'hashcode_cached'.
58058         (entry_create): New function.
58059         (entry_hashcode): Use the cached hashcode if possible.
58060         (read_changelog_file, try_split_merged_entry): Use entry_create.
58061
58062 2008-02-17  Bruno Haible  <bruno@clisp.org>
58063
58064         Speed up from O(n^2) to O(n) for long ChangeLog files.
58065         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
58066         (read_changelog_file): Change implementation of entries_reversed list
58067         to rbtreehash.
58068         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
58069
58070 2008-02-17  Bruno Haible  <bruno@clisp.org>
58071
58072         New option --split-merged-entry.
58073         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
58074         (find_paragraph_end, try_split_merged_entry): New functions.
58075         (long_options): Add option --split-merged-entry.
58076         (usage): Document option --split-merged-entry.
58077         (main): Implement option --split-merged-entry.
58078         Reported by Eric Blake.
58079
58080 2008-02-17  Bruno Haible  <bruno@clisp.org>
58081
58082         * lib/git-merge-changelog.c: Include c-strstr.h.
58083         (main): Support the "git pull --rebase" situation.
58084         * modules/git-merge-changelog (Depends-on): Add c-strstr.
58085         Reported by Eric Blake.
58086
58087 2008-02-16  Eric Blake  <ebb9@byu.net>
58088
58089         Avoid doubling \ in common case of "c-maybe" quoting style.
58090         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
58091         eliding outer quotes.
58092         * lib/quotearg.h: Document this.
58093         * tests/test-quotearg.c (result_strings, inputs, results_g)
58094         (flag_results, locale_results): Test it by adding a new string to
58095         each test group.
58096         (compare_strings): Test new string.
58097
58098 2008-02-13  Eric Blake  <ebb9@byu.net>
58099
58100         Avoid trigraph quoting in default output.
58101         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
58102         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
58103         unless explicitly requested.
58104         * tests/test-quotearg.c (flag_results, main): Add additional tests.
58105
58106 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
58107
58108         Don't rely on signed integer overflowing to negative value.
58109         * lib/getugroups.c (getugroups): Include <limits.h>.
58110         Instead, compare against INT_MAX, and increment only if the test passes.
58111
58112 2008-02-13  Jim Meyering  <meyering@redhat.com>
58113         and Eric Blake  <ebb9@byu.net>
58114
58115         Avoid shadowing warning and compile errors on Linux.
58116         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
58117         forwarding macros on Linux.
58118         (dcgettext): Define a stub, for Linux.
58119         (results_g, main): Avoid warnings.
58120
58121 2008-02-12  Eric Blake  <ebb9@byu.net>
58122
58123         Silence warning in last patch.
58124         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
58125
58126         Quotearg part 4: add tests, fix c-maybe colon quoting.
58127         * lib/quotearg.h: Improve documentation.
58128         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
58129         escapes when adding outer quotes.  When quoting trigraphs, use
58130         valid C notation.  When quoting NUL, omit extra characters if next
58131         character is not digit.  Alter prototype.
58132         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
58133         callers.
58134         * modules/quotearg-tests: New module.
58135         * tests/test-quotearg.c: New test.
58136
58137 2008-02-07  Eric Blake  <ebb9@byu.net>
58138
58139         Quotearg part 3: add flag to control outer quote elision.
58140         * lib/quotearg.h (c_maybe_quoting_style): New style.
58141         (enum quoting_flags): Better documentation of flags.
58142         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
58143         c-maybe style.
58144         (quotearg_buffer_restyled): Handle new flag to elide outer
58145         quotes.
58146
58147         Quotearg part 2: add flag that can control NUL elision.
58148         * lib/quotearg.h (set_quoting_flags): New prototype.
58149         * lib/quotearg.c (struct quoting_options): Add flag field.
58150         (set_quoting_flags): New function.
58151         (quotearg_buffer_restyled): Add flags parameter.
58152         (quotearg_alloc_mem): Set the flag if length cannot be returned.
58153         (quotearg_n_options): Set the flag, since length cannot be
58154         returned.
58155         (quoting_options_from_style): Default flags correctly.
58156
58157         Quotearg part 1: more wrappers, restore quotearg_char state.
58158         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
58159         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
58160         (quotearg_colon_mem): New wrappers.
58161         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
58162         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
58163         functions.
58164         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
58165         (quotearg_colon_mem): New functions.
58166
58167 2008-02-11  Bruno Haible  <bruno@clisp.org>
58168
58169         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
58170         library in the current directory: it does not work with parallel make.
58171         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58172
58173 2008-02-11  Bruno Haible  <bruno@clisp.org>
58174
58175         * .gitattributes: New file.
58176
58177 2008-02-11  Jim Meyering  <meyering@redhat.com>
58178
58179         useless-if-before-free: Fix reversed exit values.
58180         * build-aux/useless-if-before-free: Use correct values
58181         for EXIT_MATCH and EXIT_NO_MATCH.
58182
58183         * build-aux/useless-if-before-free: Close stdout carefully.
58184
58185 2008-02-10  Bruno Haible  <bruno@clisp.org>
58186
58187         New module 'git-merge-changelog'.
58188         * modules/git-merge-changelog: New file.
58189         * lib/git-merge-changelog.c: New file.
58190
58191 2008-02-10  Jim Meyering  <meyering@redhat.com>
58192
58193         useless-if-before-free: New option: --list (-l).
58194
58195         useless-if-before-free: Don't exit immediately upon open failure.
58196         * build-aux/useless-if-before-free: Exit 2 for errors.
58197         Upon failure to open a file, don't exit immediately.
58198         Rather, just warn and continue with any remaining files.
58199
58200 2008-02-10  Bruno Haible  <bruno@clisp.org>
58201
58202         New abstract list operation 'node_set_value'.
58203         * lib/gl_list.h (gl_list_node_set_value): New function.
58204         (struct gl_list_implementation): New field node_set_value.
58205         * lib/gl_list.c (gl_list_node_set_value): New function.
58206         * lib/gl_array_list.c (gl_array_node_set_value): New function.
58207         (gl_array_list_implementation): Update.
58208         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
58209         (gl_carray_list_implementation): Update.
58210         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
58211         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58212         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58213         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
58214         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58215         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58216         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58217         Update.
58218         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58219         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
58220         (gl_sublist_list_implementation): Update.
58221
58222 2008-02-10  Bruno Haible  <bruno@clisp.org>
58223
58224         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
58225         Needed when ELEMENT is #defined to 'some_type *'.
58226
58227 2008-02-10  Jim Meyering  <meyering@redhat.com>
58228
58229         New script and module: useless-if-before-free
58230         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
58231         * build-aux/useless-if-before-free: New file.
58232         * modules/useless-if-before-free: New file.
58233
58234         * build-aux/gitlog-to-changelog: Use committer date, not author date.
58235
58236         xstrtol_error: Fix typo.
58237         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
58238         s/exit_failure/exit_status/.
58239
58240 2008-02-09  Jim Meyering  <meyering@redhat.com>
58241
58242         New script and module: gitlog-to-changelog
58243         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
58244         * modules/gitlog-to-changelog: New file.
58245         * build-aux/gitlog-to-changelog: New file.
58246
58247 2008-02-08  Jim Meyering  <meyering@redhat.com>
58248
58249         Avoid two "parameter unused" warnings.
58250         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
58251         Mark "st" as used.
58252
58253         Use "git COMMAND", not "git-COMMAND".
58254         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
58255         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
58256         * build-aux/git-version-gen: Use "git status", not "git-status".
58257
58258 2008-02-07  Bruno Haible  <bruno@clisp.org>
58259
58260         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
58261         Avoids a crash on Windows Vista.
58262         Reported by Adam Strzelecki <ono@java.pl> via
58263         Simon Josefsson <simon@josefsson.org>.
58264
58265 2008-02-06  Bruno Haible  <bruno@clisp.org>
58266
58267         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
58268         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
58269         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
58270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
58271         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58272         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58273         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
58274         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
58275         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58276         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58277         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58278         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58279         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58280         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58281         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58282         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
58283         left-adjust flag.
58284         * tests/test-snprintf-posix.h (test_function): Likewise.
58285         * tests/test-sprintf-posix.h (test_function): Likewise.
58286         * tests/test-vasprintf-posix.c (test_function): Likewise.
58287         * doc/posix-functions/fprintf.texi: Update.
58288         * doc/posix-functions/printf.texi: Update.
58289         * doc/posix-functions/snprintf.texi: Update.
58290         * doc/posix-functions/sprintf.texi: Update.
58291         * doc/posix-functions/vfprintf.texi: Update.
58292         * doc/posix-functions/vprintf.texi: Update.
58293         * doc/posix-functions/vsnprintf.texi: Update.
58294         * doc/posix-functions/vsprintf.texi: Update.
58295         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58296
58297 2008-02-06  Bruno Haible  <bruno@clisp.org>
58298
58299         Fix bug introduced on 2008-01-26.
58300         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
58301
58302 2008-02-06  Bruno Haible  <bruno@clisp.org>
58303
58304         Fix bug introduced on 2007-06-10.
58305         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
58306         !NEED_PRINTF_FLAG_ZERO.
58307
58308 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
58309
58310         getloadavg: use libperfstat on AIX5
58311         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58312
58313 2008-02-03  Bruno Haible  <bruno@clisp.org>
58314
58315         * lib/diffseq.h: Add comments about required #includes.
58316         Reported by Michael Biggs <gnulib@doubleplum.net>.
58317
58318 2008-02-01  Bruno Haible  <bruno@clisp.org>
58319
58320         * users.txt: Add gnuit.
58321
58322 2008-01-31  Bruno Haible  <bruno@clisp.org>
58323
58324         * lib/md4.c (set_uint32): Mark as inline.
58325         * lib/md5.c (set_uint32): Likewise.
58326         * lib/sha1.c (set_uint32): Likewise.
58327         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58328         * m4/md5.m4 (gl_MD5): Likewise.
58329         * m4/sha1.m4 (gl_SHA1): Likewise.
58330
58331 2008-01-31  Jim Meyering  <meyering@redhat.com>
58332
58333         Use "sizeof VAR", rather than a literal "4".
58334         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58335         * lib/md4.c (md4_read_ctx): Likewise.
58336         * lib/sha1.c (sha1_read_ctx): Likewise.
58337
58338 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58339
58340         * tests/test-sha1.c: New file, based on test-md5.c.
58341
58342         * modules/crypto/sha1-tests: New file.
58343
58344 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58345
58346         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58347
58348 2008-01-31  Jim Meyering  <meyering@redhat.com>
58349
58350         Prefer "sizeof v" over the equivalent "4".
58351         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58352         * lib/md5.c (set_uint32): Likewise.
58353         * lib/sha1.c (set_uint32): Likewise.
58354
58355 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58356
58357         * lib/sha1.c (set_uint32): Mark function as static.
58358
58359 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58360
58361         md2: clarify comments to say that alignment is not required.
58362         * lib/md2.h: Remove warning about alignment in comment.
58363         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58364         never been required.
58365
58366 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58367
58368         md4: adapt alignment constraint fix from sha1.
58369         * lib/md4.c (set_uint32): New function, from sha1.c
58370         (md4_read_ctx): Use it.
58371         (md4_finish_ctx): Doc fix.
58372         * lib/md4.h: Doc fix.
58373
58374 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58375
58376         md5: adapt alignment constraint fix from sha1.
58377         * lib/md5.c (set_uint32): New function, from sha1.c
58378         (md5_read_ctx): Use it.
58379         (md5_finish_ctx): Doc fix.
58380         * lib/md5.h: Doc fix.
58381
58382 2008-01-30  Peter Palfrader  <weasel@debian.org>
58383
58384         sha1: remove the result buffer alignment constraint
58385         * lib/sha1.c (set_uint32): New function.
58386         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58387         constraint.
58388         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58389         * lib/sha1.h: Likewise.
58390
58391 2008-01-30  Andreas Schwab  <schwab@suse.de>
58392             Bruno Haible  <bruno@clisp.org>
58393
58394         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58395         correct definition of LDBL_MIN_EXP.
58396
58397 2008-01-30  Karl Berry  <karl@gnu.org>
58398
58399         * config/srclist-update: try to preserve x bit on updates.
58400         * config/srclistvars.sh: update for karl.
58401
58402 2008-01-29  Jim Meyering  <meyering@redhat.com>
58403
58404         vasnprintf.c: Avoid warning about unused label
58405         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58406         "overflow" label definition and associated code with the
58407         same cpp condition that guards the sole use of that label.
58408
58409 2008-01-26  Bruno Haible  <bruno@clisp.org>
58410
58411         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58412         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58413         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58414         * lib/isnanl-nolibm.h (isnanl): Likewise.
58415         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58416
58417 2008-01-26  Bruno Haible  <bruno@clisp.org>
58418
58419         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58420         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58421
58422 2008-01-26  Bruno Haible  <bruno@clisp.org>
58423
58424         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58425         GCC >= 4.0 built-in.
58426         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58427
58428 2008-01-26  Bruno Haible  <bruno@clisp.org>
58429
58430         Rename isnan, applicable to 'double' only, to isnand.
58431         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58432         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58433         (configure.ac): Update.
58434         (Include): Replace "isnan.h" with "isnand.h".
58435         * m4/isnand.m4: Renamed from m4/isnan.m4.
58436         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58437         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58438         instead of isnan.c.
58439         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58440         instead of HAVE_ISNAN_IN_LIBC.
58441         (isnand): Renamed from isnan.
58442         * lib/isnand.c: New file.
58443         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58444         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58445         (Makefile.am): Update.
58446         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58447         Include isnand.h instead of isnan.h.
58448         (main): Test isnand instead of isnan.
58449         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58450         isnan-nolibm.
58451         * modules/frexp (Depends-on): Likewise.
58452         * modules/frexp-tests (Depends-on): Likewise.
58453         * modules/frexp-nolibm (Depends-on): Likewise.
58454         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58455         * modules/isfinite (Depends-on): Likewise.
58456         * modules/round-tests (Depends-on): Likewise.
58457         * modules/signbit (Depends-on): Likewise.
58458         * modules/signbit-tests (Depends-on): Likewise.
58459         * modules/snprintf-posix (Depends-on): Likewise.
58460         * modules/sprintf-posix (Depends-on): Likewise.
58461         * modules/trunc-tests (Depends-on): Likewise.
58462         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58463         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58464         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58465         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58466         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58467         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58468         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58469         * modules/vasnprintf-posix (Depends-on): Likewise.
58470         * modules/vasprintf-posix (Depends-on): Likewise.
58471         * modules/vfprintf-posix (Depends-on): Likewise.
58472         * modules/vsnprintf-posix (Depends-on): Likewise.
58473         * modules/vsprintf-posix (Depends-on): Likewise.
58474         * lib/frexp.c: Include isnand.h instead of isnan.h.
58475         (ISNAN): Set to isnand instead of isnan.
58476         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58477         (gl_isfinited): Use isnand instead of isnan.
58478         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58479         (gl_signbitd): Use isnand instead of isnan.
58480         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58481         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58482         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58483         (main): Use isnand instead of isnan.
58484         * tests/test-round1.c: Include isnand.h.
58485         (main): Use isnand instead of isnan.
58486         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58487         (ISNAN): Set to isnand instead of isnan.
58488         * tests/test-trunc1.c: Include isnand.h.
58489         (main): Use isnand instead of isnan.
58490         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58491         (equal): Use isnand instead of isnan.
58492         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58493         isnand-nolibm.
58494         * NEWS: Mention the change.
58495
58496 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58497             Bruno Haible  <bruno@clisp.org>
58498
58499         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58500         the GCC builtins for signbits are present and set
58501         REPLACE_SIGNBIT_USING_GCC if so.
58502         * lib/math.in.h (signbit): Define using GCC builtins if
58503         REPLACE_SIGNBIT_USING_GCC is set.
58504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58505         REPLACE_SIGNBIT_USING_GCC.
58506         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58507
58508 2008-01-25  Jim Meyering  <meyering@redhat.com>
58509
58510         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58511         * lib/poll.c: Include <config.h>, not "config.h".
58512         * tests/test-getaddrinfo.c: Likewise.
58513
58514 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58515
58516         * modules/sockets-tests: New file.
58517
58518 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58519
58520         * modules/sockets: New module, can be used to call WSA_Startup and
58521         WSA_Cleanup when needed.
58522
58523         * lib/sockets.h, lib/sockets.c: New files.
58524
58525         * m4/sockets.m4: New file.
58526
58527         * tests/test-sockets.c: New file.
58528
58529 2008-01-19  Bruno Haible  <bruno@clisp.org>
58530
58531         * doc/posix-headers: Renamed from doc/headers.
58532         * doc/posix-functions: Renamed from doc/functions.
58533         * doc/gnulib.texi: Update.
58534
58535 2008-01-19  Bruno Haible  <bruno@clisp.org>
58536
58537         * doc/glibc-functions/strcasestr.texi: Include contents of
58538         doc/functions/strcasestr.texi, fixing the list of platforms.
58539         * doc/functions/strcasestr.texi: Remove file.
58540
58541 2008-01-19  Bruno Haible  <bruno@clisp.org>
58542
58543         * doc/glibc-functions/memmem.texi: Include contents of
58544         doc/functions/memmem.texi.
58545         * doc/functions/memmem.texi: Remove file.
58546
58547 2008-01-18  Bruno Haible  <bruno@clisp.org>
58548
58549         * doc/glibc-functions/*.texi: New files.
58550         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58551         to use the new files.
58552
58553 2008-01-17  Bruno Haible  <bruno@clisp.org>
58554
58555         * tests/test-gethostname.c (main): Fix printf statement.
58556
58557 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58558
58559         * modules/gethostname-tests: New file.
58560
58561         * tests/test-gethostname.c: New file.
58562
58563 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58564
58565         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58566         used by the UNAME case.  Reported by Bruno Haible
58567         <bruno@clisp.org>.
58568
58569 2008-01-17  Eric Blake  <ebb9@byu.net>
58570
58571         Convert c-strcasestr to be more efficient.
58572         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58573         (Depends-on): Add c-strcase, remove malloca, strnlen.
58574         * tests/test-c-strcasestr.c (main): Enhance test.
58575         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58576
58577 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58578
58579         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58580         Use it in creating po/Makevars.
58581
58582 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58583
58584         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58585         Applications that requires it should initialize libgcrypt
58586         manually.
58587
58588 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58589
58590         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58591
58592 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58593
58594         Fix problem with getdate on mingw32 reported by Simon Josefsson
58595         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58596         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58597         tzname", when deciding whether to declare tzname.
58598         * lib/strftime.c (tzname): Likewise.
58599
58600 2008-01-15  Bruno Haible  <bruno@clisp.org>
58601
58602         Work around a MacOS X 10.5 bug in frexpl().
58603         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58604         * doc/functions/frexpl.texi: Document the bug.
58605         Reported by Elias Pipping <pipping@gentoo.org>.
58606
58607 2008-01-14  Eric Blake  <ebb9@byu.net>
58608
58609         Touch up previous patch.
58610         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58611         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58612
58613         Convert strcasestr module to use Two-Way algorithm.
58614         * modules/strcasestr-simple: New module, based on the old
58615         strcasestr, but with Two-Way rather than KMP.
58616         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58617         * lib/string.in.h (rpl_strcasestr): Declare.
58618         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58619         performance.
58620         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58621         * modules/string (Makefile.am): Support strcasestr.
58622         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58623         * modules/strcasestr-tests (Depends-on): Check for alarm.
58624         * tests/test-strcasestr.c: Augment test.
58625         * lib/str-two-way.h: Clean up stray macro.
58626         * NEWS: Document new module.
58627         * MODULES.html.sh (string handling): Likewise.
58628         * doc/functions/strcasestr.texi: New file.
58629         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58630         here, since it is not a POSIX function.
58631
58632 2008-01-14  Colin Watson  <cjwatson@debian.org>
58633             Bruno Haible  <bruno@clisp.org>
58634
58635         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58636         works fine; if not, set REPLACE_STRSIGNAL.
58637         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58638         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58639         REPLACE_STRSIGNAL.
58640         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58641         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58642         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58643
58644 2008-01-14  Bruno Haible  <bruno@clisp.org>
58645
58646         * modules/strsignal (Include): Change to <string.h>.
58647
58648 2008-01-14  Colin Watson  <cjwatson@debian.org>
58649
58650         * modules/argp (Notice): Add a notice recommending to change
58651         XGETTEXT_OPTIONS.
58652         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58653
58654 2008-01-13  Colin Watson  <cjwatson@debian.org>
58655
58656         * modules/strsignal-tests: New file.
58657         * tests/test-strsignal.c: New file.
58658
58659         * lib/strsignal.c: New file, from glibc with modifications.
58660         * lib/siglist.h: New file, from glibc with modifications.
58661         * lib/string.in.h (strsignal): New declaration.
58662         * m4/strsignal.m4: New file.
58663         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58664         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58665         * modules/strsignal: New file.
58666         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58667         HAVE_DECL_STRSIGNAL.
58668
58669 2008-01-13  Bruno Haible  <bruno@clisp.org>
58670
58671         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58672         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58673         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58674         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58675
58676 2008-01-13  Bruno Haible  <bruno@clisp.org>
58677
58678         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58679         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58680         * lib/argp.h (__attribute__): Likewise.
58681         * lib/c-stack.c (__attribute__): Likewise.
58682         * lib/error.h (__attribute__): Likewise.
58683         * lib/fts.c (__attribute__): Likewise.
58684         * lib/openat.h (__attribute__): Likewise.
58685         * lib/stdio.in.h (__attribute__): Likewise.
58686         * lib/string.in.h (__attribute__): Likewise.
58687         * lib/utimens.c (__attribute__): Likewise.
58688         * lib/vasnprintf.h (__attribute__): Likewise.
58689         * lib/xalloc.h (__attribute__): Likewise.
58690         * lib/xprintf.h (__attribute__): Likewise.
58691         * lib/xstrtol.h (__attribute__): Likewise.
58692         * lib/xvasprintf.h (__attribute__): Likewise.
58693
58694 2008-01-12  Bruno Haible  <bruno@clisp.org>
58695
58696         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58697         * doc/glibc-headers/a.out.texi: New file.
58698         * doc/glibc-headers/aliases.texi: New file.
58699         * doc/glibc-headers/alloca.texi: New file.
58700         * doc/glibc-headers/ar.texi: New file.
58701         * doc/glibc-headers/argp.texi: New file.
58702         * doc/glibc-headers/argz.texi: New file.
58703         * doc/glibc-headers/byteswap.texi: New file.
58704         * doc/glibc-headers/crypt.texi: New file.
58705         * doc/glibc-headers/endian.texi: New file.
58706         * doc/glibc-headers/envz.texi: New file.
58707         * doc/glibc-headers/err.texi: New file.
58708         * doc/glibc-headers/error.texi: New file.
58709         * doc/glibc-headers/execinfo.texi: New file.
58710         * doc/glibc-headers/fpu_control.texi: New file.
58711         * doc/glibc-headers/fstab.texi: New file.
58712         * doc/glibc-headers/fts.texi: New file.
58713         * doc/glibc-headers/getopt.texi: New file.
58714         * doc/glibc-headers/ieee754.texi: New file.
58715         * doc/glibc-headers/ifaddrs.texi: New file.
58716         * doc/glibc-headers/libintl.texi: New file.
58717         * doc/glibc-headers/mcheck.texi: New file.
58718         * doc/glibc-headers/mntent.texi: New file.
58719         * doc/glibc-headers/obstack.texi: New file.
58720         * doc/glibc-headers/paths.texi: New file.
58721         * doc/glibc-headers/printf.texi: New file.
58722         * doc/glibc-headers/pty.texi: New file.
58723         * doc/glibc-headers/resolv.texi: New file.
58724         * doc/glibc-headers/shadow.texi: New file.
58725         * doc/glibc-headers/sysexits.texi: New file.
58726         * doc/glibc-headers/ttyent.texi: New file.
58727
58728 2008-01-12  Jim Meyering  <meyering@redhat.com>
58729
58730         announce-gen: emit Gnulib's git-based version string.
58731         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58732         New option --gnulib-version=V, where V is expected to be
58733         the output of running git describe in the gnulib directory.
58734         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58735         not useful, and plan to stop publishing an xdelta file with each
58736         coreutils release.
58737
58738         * build-aux/announce-gen: Also check for lzma-compressed files.
58739
58740 2008-01-11  Bruno Haible  <bruno@clisp.org>
58741
58742         * tests/test-memmem.c (main): Increase maximum allowed time.
58743         * tests/test-strstr.c (main): Likewise.
58744
58745 2008-01-11  Bruno Haible  <bruno@clisp.org>
58746
58747         * doc/functions/memmem.texi: Add more precisions about platforms.
58748         * doc/functions/strstr.texi: Likewise.
58749
58750 2008-01-10  Eric Blake  <ebb9@byu.net>
58751
58752         * m4/strstr.m4: Delete cruft from copy-n-paste.
58753         Reported by Bruno Haible.
58754
58755 2008-01-10  Bruno Haible  <bruno@clisp.org>
58756
58757         Make c-strstr rely on strstr.
58758         * lib/c-strstr.c: Don't include str-kmp.h.
58759         (c_strstr): Define in terms of strstr.
58760         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58761         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58762
58763 2008-01-10  Bruno Haible  <bruno@clisp.org>
58764
58765         * doc/gnulib.texi (String Functions in C Locale): New section.
58766         * doc/c-ctype.texi: New file.
58767         * doc/c-strcase.texi: New file.
58768         * doc/c-strcaseeq.texi: New file.
58769         * doc/c-strcasestr.texi: New file.
58770         * doc/c-strstr.texi: New file.
58771         * doc/c-strtod.texi: New file.
58772         * doc/c-strtold.texi: New file.
58773
58774 2008-01-10  Eric Blake  <ebb9@byu.net>
58775
58776         * lib/relocatable.h: Fix a comment.
58777
58778 2008-01-10  Eric Blake  <ebb9@byu.net>
58779
58780         Share two-way algorithm.
58781         * lib/str-two-way.h: New file, merged from...
58782         * lib/memmem.c: ...here...
58783         * lib/strstr.c: ...and here.
58784         * modules/memmem (Files): Use it.
58785         * modules/strstr (Files): Likewise.
58786
58787         Avoid quadratic strstr implementations.
58788         * lib/strstr.c: New file.
58789         * m4/strstr.m4: Likewise.
58790         * modules/strstr: Likewise.
58791         * modules/strstr-tests: Likewise.
58792         * tests/test-strstr.c: Likewise.
58793         * lib/string.in.h (rpl_strstr): Declare.
58794         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58796         * modules/string (Makefile.am): Likewise.
58797         * MODULES.html.sh (string handling): Mention new module.
58798         * doc/functions/strstr.texi (strstr): Document the bug.
58799
58800 2008-01-10  Bruno Haible  <bruno@clisp.org>
58801
58802         * lib/relocatable.h (relocate): State whether result is freshly
58803         allocated or not.
58804         * lib/relocatable.c (relocate): Return a freshly allocated string
58805         instead of a pointer to a privately held string.
58806         Reported by Sylvain Beucler <beuc@gnu.org>.
58807
58808 2008-01-10  Colin Watson  <cjwatson@debian.org>
58809
58810         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58811         s/S_ISNLK/S_ISLNK/.
58812
58813 2008-01-09  Bruno Haible  <bruno@clisp.org>
58814
58815         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58816         and other files.
58817         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58818         if it's only a guess.
58819         * modules/memmem: Simplify by depending on memmem-simple.
58820
58821 2008-01-09  Bruno Haible  <bruno@clisp.org>
58822
58823         Work around OpenBSD 4.0 tdelete() bug.
58824         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58825         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58826         macros and don't redefine the enum values.
58827         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58828         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58829         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58830
58831 2008-01-09  Bruno Haible  <bruno@clisp.org>
58832
58833         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58834         (main): Don't perform the tests if setlocale did not install a UTF-8
58835         locale. Needed on OpenBSD 4.0.
58836         * modules/wcwidth-tests (Depends-on): Add localcharset.
58837
58838 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58839
58840         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58841         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58842         * NEWS: announce this.
58843         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58844
58845 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58846         and Eric Blake  <ebb9@byu.net>
58847
58848         Add memmem-simple module.
58849         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58850         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58851         * modules/memmem-simple: New file.
58852         * modules/memmem (Description): Tweak.
58853         * MODULES.html.sh (string handling): Mention new module.
58854         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58855         addressed by memmem-simple.
58856         * NEWS: Document the difference.
58857
58858 2008-01-09  Eric Blake  <ebb9@byu.net>
58859
58860         Give gcc some memmem optimization hints.
58861         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58862         (strcasestr): Declare as pure.
58863         * modules/memmem (Maintainer): Claim my implementation.
58864
58865 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58866
58867         Support AIX 6.1 and higher.
58868         * build-aux/config.libpath: Likewise.
58869         * build-aux/config.rpath: Likewise.
58870
58871 2008-01-08  Jim Meyering  <meyering@redhat.com>
58872             Bruno Haible  <bruno@clisp.org>
58873
58874         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58875         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58876         Reported by Peter Fales in
58877         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58878
58879 2008-01-08  Bruno Haible  <bruno@clisp.org>
58880
58881         * modules/unictype/category-of (Depends-on): Add
58882         unictype/category-none.
58883         * modules/unictype/category-and-tests (Depends-on): Add
58884         unictype/category-{L,N,Lu,Nd}.
58885         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58886         * modules/unictype/category-or-tests (Depends-on): Add
58887         unictype/category-{L,N}.
58888         * modules/unictype/category-name-tests (Depends-on): Add
58889         unictype/category-{Z,Nl}.
58890         Reported by Simon Josefsson.
58891
58892 2008-01-08  Bruno Haible  <bruno@clisp.org>
58893
58894         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58895         convention better.
58896         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58897         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58898         Reported by Peter Miller <millerp@canb.auug.org.au>.
58899
58900 2008-01-08  Eric Blake  <ebb9@byu.net>
58901
58902         Rewrite memmem to guarantee linear complexity without malloc.
58903         * lib/memmem.c (memmem): Use Two-Way rather than
58904         Knuth-Morris-Pratt, to allow O(1) space usage.
58905         (critical_factorization, two_way_short_needle)
58906         (two_way_long_needle): New functions.
58907         (knuth_morris_pratt): Delete.
58908         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58909         Add stdint.
58910         * tests/test-memmem.c (main): Add tests for periodic needle and
58911         sublinear performance.
58912         * doc/functions/memmem.texi (memmem): Document other deficiencies
58913         in cygwin and older glibc.
58914
58915 2008-01-08  Bruno Haible  <bruno@clisp.org>
58916
58917         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58918         augmentation.
58919
58920 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58921
58922         Add a configure time option: --disable-acl.
58923         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58924         AC_ARG_ENABLE(acl).
58925
58926 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58927
58928         * tests/test-localename.c: Don't include obsolete "setenv.h".
58929
58930         * modules/localename-tests (Depends-on): Need unsetenv.
58931
58932 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58933
58934         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58935
58936 2008-01-06  Colin Watson  <cjwatson@debian.org>
58937
58938         * users.txt: Add man-db.
58939
58940 2008-01-07  Bruno Haible  <bruno@clisp.org>
58941
58942         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58943         previous section name.
58944
58945 2008-01-07  Bruno Haible  <bruno@clisp.org>
58946
58947         * lib/progname.c (set_program_name): Don't strip off a leading
58948         "lt-" prefix outside a .libs directory.
58949         Suggested by Paul Eggert.
58950
58951 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58952             Bruno Haible  <bruno@clisp.org>
58953
58954         Improve memory cleanup in 'relocatable' module.
58955         * lib/relocatable.h (compute_curr_prefix): Change return type to
58956         'char *'.
58957         * lib/relocatable.c (compute_curr_prefix): Change return type to
58958         'char *'. Free curr_installdir after use.
58959         (relocate): Free curr_prefix_better after use.
58960         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58961
58962 2008-01-01  Bruno Haible  <bruno@clisp.org>
58963
58964         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58965         failure on older glibc systems.
58966         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58967
58968 2008-01-05  Eric Blake  <ebb9@byu.net>
58969
58970         Avoid quadratic system memmem.
58971         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58972         Reported by Ralf Wildenhues.
58973
58974         Fix memmem test for mingw.
58975         * modules/memmem-tests (configure.ac): Check for alarm.
58976         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58977         it.
58978         * doc/functions/memmem.texi: New file.
58979         * doc/gnulib.texi (Function Substitutes): Add memmem.
58980         Reported by Bruno Haible.
58981
58982 2008-01-04  Bruno Haible  <bruno@clisp.org>
58983
58984         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58985         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58986         gl_HEADER_STRING_H_DEFAULTS.
58987
58988 2008-01-04  Eric Blake  <ebb9@byu.net>
58989
58990         Shorten duration of memmem test.
58991         * tests/test-memmem.c (main): Use alarm to declare failure if test
58992         is taking too long.
58993         Reported by Ralf Wildenhues.
58994
58995 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58996
58997         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58998         string, needed by strerror.
58999
59000 2008-01-03  Colin Watson  <cjwatson@debian.org>
59001             Bruno Haible  <bruno@clisp.org>
59002
59003         * doc/gnulib-tool.texi (Localization): New section.
59004
59005 2008-01-02  Bruno Haible  <bruno@clisp.org>
59006
59007         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
59008         variables to 'unsigned char *' type.
59009         Reported by Paul Eggert.
59010
59011 2008-01-02  Jim Meyering  <jim@meyering.net>
59012
59013         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
59014
59015 2007-12-31  Jim Meyering  <jim@meyering.net>
59016
59017         Avoid use of private FTS type name.
59018         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
59019
59020 2007-12-30  Karl Berry  <karl@gnu.org>
59021
59022         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
59023         work around defect in Texinfo and/or the standalone Info browser.
59024
59025 2007-12-30  Bruno Haible  <bruno@clisp.org>
59026
59027         Unify 5 copies of the KMP code.
59028         * lib/str-kmp.h: New file.
59029         * lib/c-strcasestr.c: Include str-kmp.h.
59030         (knuth_morris_pratt): Remove function.
59031         (c_strcasestr): Update.
59032         * lib/c-strstr.c: Include str-kmp.h.
59033         (knuth_morris_pratt): Remove function.
59034         (c_strcasestr): Update.
59035         * lib/mbscasestr.c: Include str-kmp.h.
59036         (knuth_morris_pratt_unibyte): Remove function.
59037         * lib/mbsstr.c: Include str-kmp.h.
59038         (knuth_morris_pratt_unibyte): Remove function.
59039         * lib/strcasestr.c: Include str-kmp.h.
59040         (knuth_morris_pratt): Remove function.
59041         (strcasestr): Update.
59042         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
59043         * modules/c-strstr (Files): Likewise.
59044         * modules/mbscasestr (Files): Likewise.
59045         * modules/mbsstr (Files): Likewise.
59046         * modules/strcasestr (Files): Likewise.
59047         Suggested by Paul Eggert.
59048
59049 2007-12-30  Bruno Haible  <bruno@clisp.org>
59050
59051         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
59052         defined.
59053
59054 2007-12-30  Bruno Haible  <bruno@clisp.org>
59055
59056         * lib/xmalloca.h: Include xalloc.h.
59057         (xnmalloca): New macro.
59058
59059 2007-12-30  Bruno Haible  <bruno@clisp.org>
59060
59061         * lib/malloca.h (nmalloca): New macro.
59062         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
59063         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
59064         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
59065         knuth_morris_pratt_multibyte): Likewise.
59066         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
59067         knuth_morris_pratt_multibyte): Likewise.
59068         * lib/memmem.c (knuth_morris_pratt): Likewise.
59069         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
59070
59071 2007-12-25  Bruno Haible  <bruno@clisp.org>
59072
59073         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
59074         * lib/glob.c: Don't include openat.h.
59075         (link_exists2_p): Add back the code that deals with the
59076         !GLOB_ALTDIRFUNC case.
59077         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
59078         let it do the filename concatenation.
59079         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
59080         * modules/glob (Depends-on): Remove openat.
59081
59082 2007-12-31  Bruno Haible  <bruno@clisp.org>
59083
59084         * modules/dirfd (License): Change to LGPLv2+.
59085         Approved by Jim Meyering.
59086
59087 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
59088
59089         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
59090         when multiplying M by sizeof (size_t).
59091
59092 2007-12-10  Martin Lambers  <marlam@marlam.de>
59093
59094         Override getpagesize on mingw.
59095         * lib/getpagesize.c: New file.
59096         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
59097         * modules/getpagesize (Files): Add lib/getpagesize.c.
59098         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
59099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59100         REPLACE_GETPAGESIZE.
59101         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
59102
59103 2007-12-25  Bruno Haible  <bruno@clisp.org>
59104
59105         * modules/localcharset (Notice): New field.
59106         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
59107         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
59108
59109 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
59110             Bruno Haible  <bruno@clisp.org>
59111
59112         Avoid using the syntax symbol() in formatted documentation.
59113         * MODULES.html.sh (func_module): When replacing symbol() with a
59114         hyperlink, remove the parentheses. Show an error if some remain.
59115         Recognize and render the '...' syntax.
59116         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
59117         Rework. Add paragraph about GCC's inlining.
59118         * doc/alloca.texi: Likewise.
59119         * doc/error.texi: Remove parentheses from symbol reference.
59120         * doc/gnulib-intro.texi: Likewise.
59121         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
59122         * modules/fnmatch (Description): Reword to say "the ... function".
59123         * modules/full-read (Description): Likewise.
59124         * modules/full-write (Description): Likewise.
59125         * modules/safe-read (Description): Likewise.
59126         * modules/safe-write (Description): Likewise.
59127         * modules/strchrnul (Description): Likewise.
59128         * modules/trim (Description): Likewise.
59129         * modules/error (Description): Remove parentheses from symbol
59130         references.
59131         * modules/verror (Description): Likewise.
59132         Reported by Karl Berry.
59133
59134 2007-12-25  Bruno Haible  <bruno@clisp.org>
59135
59136         Fixup after 2007-10-16 commit.
59137         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
59138
59139 2007-12-24  Bruno Haible  <bruno@clisp.org>
59140
59141         Make --enable-relocatable work with DESTDIR.
59142         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
59143         to compute installdir from destprog.
59144         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
59145         also set the RELOC_DESTDIR variable.
59146         Reported by Левашев Иван <octagram@bluebottle.com>.
59147
59148 2007-12-24  Bruno Haible  <bruno@clisp.org>
59149
59150         Fix link error due to xalloc_die().
59151         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
59152         of xreadlink.
59153         * lib/relocwrapper.c: Update comments.
59154         * build-aux/install-reloc: Remove xreadlink.c from file list.
59155         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
59156         xreadlink.c.
59157         Reported by Левашев Иван <octagram@bluebottle.com>.
59158
59159 2007-12-24  Bruno Haible  <bruno@clisp.org>
59160
59161         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
59162         * lib/setenv.h: Remove file.
59163         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
59164         lib/setenv.h.
59165         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
59166         (Depends-on): Add stdlib.
59167         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
59168         gl_FUNC_UNSETENV.
59169         (Include): Replace setenv.h with <stdlib.h>.
59170         * modules/unsetenv: New file.
59171         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
59172         * lib/unsetenv.c: Include <stdlib.h> first.
59173         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
59174         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
59175         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
59176         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
59177         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
59178         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
59180         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
59181         * doc/functions/unsetenv.texi: Update.
59182         * modules/xsetenv (Depends-on): Add unsetenv.
59183         * modules/getdate (Depends-on): Likewise.
59184         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
59185         * lib/xsetenv.c: Don't include setenv.h.
59186         * lib/getdate.y: Likewise.
59187         * lib/relocwrapper.c: Likewise.
59188         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
59189         (Depends-on): Add stdlib.
59190         * NEWS: Mention the changes.
59191         Reported by Левашев Иван <octagram@bluebottle.com>.
59192
59193 2007-12-23  Bruno Haible  <bruno@clisp.org>
59194
59195         * lib/memmem.c (memmem): Use lowercase variable names. Tab
59196         indentation.
59197
59198 2007-12-23  Bruno Haible  <bruno@clisp.org>
59199
59200         * lib/c-strcasestr.c: Add more comments.
59201         * lib/c-strstr.c: Likewise.
59202         * lib/mbscasestr.c: Likewise.
59203         * lib/mbsstr.c: Likewise.
59204         * lib/strcasestr.c: Likewise.
59205         * lib/memmem.c: Likewise.
59206
59207 2007-12-23  Bruno Haible  <bruno@clisp.org>
59208
59209         * tests/test-memmem.c: Include <string.h> first.
59210
59211 2007-12-22  Bruno Haible  <bruno@clisp.org>
59212
59213         * gnulib-tool (func_create_testdir): Change $auxdir while generating
59214         the contents of $testsbase.
59215         Reported by Ralf Wildenhues.
59216
59217 2007-12-22  Bruno Haible  <bruno@clisp.org>
59218
59219         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
59220         two variables local_ldadd_before, local_ldadd_last.
59221
59222 2007-12-20  Eric Blake  <ebb9@byu.net>
59223
59224         Work around circular library issue when cross-compiling.
59225         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
59226         that progname.o does not need to pull in rpl_memcmp.
59227
59228 2007-12-19  Eric Blake  <ebb9@byu.net>
59229
59230         Fix memmem to avoid O(n^2) worst-case complexity.
59231         * lib/memmem.c (knuth_morris_pratt): New function.
59232         (memmem): Use it if first few naive iterations fail.
59233         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
59234         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
59235         * modules/memchr (License): Likewise.
59236         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
59237         malloca.
59238         * tests/test-memmem.c: Rewrite, borrowing ideas from
59239         test-mbsstr1.c; the old version wouldn't even compile!
59240         * modules/memmem-tests: New file.
59241         * lib/string.in.h (rpl_memmem): Add declaration.
59242         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
59243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
59244         REPLACE_MEMMEM.
59245
59246 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
59247
59248         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
59249         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
59250         before any system include files, and undef after them all.  This
59251         should fix a problem on VMS reported by John E. Malmberg in
59252         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
59253
59254 2007-12-17  Eric Blake  <ebb9@byu.net>
59255
59256         Revert addition of verify, for BSD/OS.
59257         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
59258         can't handle large files, for the sake of obsolete platforms.
59259         * modules/fseeko (Depends-on): Remove verify.
59260         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
59261         * doc/functions/ftello.texi (ftello): Likewise.
59262         * doc/functions/fgetpos.texi (fgetpos): Likewise.
59263         Reported by Larry Jones.
59264
59265 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
59266
59267         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
59268         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
59269
59270 2007-12-17  Jim Meyering  <meyering@redhat.com>
59271
59272         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
59273         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
59274         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
59275         * modules/getcwd (Depends-on): Add openat.
59276         Reported by Petr Salinger.
59277
59278 2007-12-17  Bruno Haible  <bruno@clisp.org>
59279
59280         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
59281         avoid a segmentation fault of the configure test on x86_64 systems.
59282
59283 2007-12-15  Jim Meyering  <meyering@redhat.com>
59284
59285         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
59286
59287 2007-12-13  Eric Blake  <ebb9@byu.net>
59288
59289         Another fseek test.
59290         * tests/test-fseek.c (main): Also test ungetc handling.
59291         * tests/test-fseeko.c (main): Likewise.
59292         * modules/fseeko (Depends-on): Add verify.
59293         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
59294         large.
59295         Reported by Larry Jones.
59296
59297         Fix fseeko on mingw.
59298         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
59299         seek.
59300
59301         Beef up fseek tests.
59302         * tests/test-fseek.c (main): Also test eof handling.
59303         * tests/test-fseeko.c (main): Likewise.
59304         Reported by Larry Jones.
59305
59306 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
59307
59308         Fix fseeko on BSD-based platforms.
59309         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
59310         successful seek.
59311
59312 2007-12-12  Eric Blake  <ebb9@byu.net>
59313
59314         Allow circular dependency of separate libtests.a
59315         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59316         when use_libtests.
59317
59318 2007-12-11  Eric Blake  <ebb9@byu.net>
59319
59320         Fix bug with -0.0L in previous patch.
59321         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59322         * tests/test-isnan.c (main): Also test on zeroes.
59323         * tests/test-isnanf.c (main): Likewise.
59324         * tests/test-isnanl.h (main): Likewise.
59325
59326         Detect pseudo-denormals on x86 even when cross-compiling.
59327         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59328         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59329         invalid bit patterns that happen to satisfy ==.
59330
59331         Avoid link failures with separate libtests.a.
59332         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59333         last, to satisfy circular dependencies.
59334
59335 2007-12-11  Eric Blake  <ebb9@byu.net>
59336         and Bruno Haible  <bruno@clisp.org>
59337
59338         Fix OpenBSD 4.0 <float.h> handling of long double.
59339         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59340         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59341         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59342
59343 2007-12-11  Jim Meyering  <meyering@redhat.com>
59344
59345         * users.txt: Add libvirt.
59346
59347         Support versions of autoconf prior to 2.59c.
59348         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59349         if it is not already defined.
59350
59351 2007-12-09  Bruno Haible  <bruno@clisp.org>
59352
59353         Let 'gnulib-tool --import' collect sources needed for the tests in
59354         tests/ rather than in lib/.
59355         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59356         argument. If true, add rules to generate libtests.a, and put libtests.a
59357         into $(LDADD). Consider source files in subdirectories and set
59358         uses_subdirs.
59359         (func_emit_initmacro_start, func_emit_initmacro_end,
59360         func_emit_initmacro_done): Pass all arguments explicitly.
59361         (func_import): Determine two module lists main_modules,
59362         testsrelated_modules. Determine use_libtests. Determine two variables
59363         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59364         instead of just sed_transform_lib_file. Determine two variables
59365         main_files and testsrelated_files. Compute 'files' as the union of
59366         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59367         func_add_or_update. In the generated gnulib-comp.m4, collect the
59368         object files for tests/ in different variables than those for lib/.
59369         Substitute LIBTESTS_LIBDEPS.
59370         (func_create_testdir): Combine the uses_subdirs results from
59371         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59372
59373 2007-12-09  Bruno Haible  <bruno@clisp.org>
59374
59375         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59376         the build-aux directory.
59377
59378 2007-12-09  Bruno Haible  <bruno@clisp.org>
59379
59380         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59381         introduced on 2006-09-09.
59382
59383 2007-12-07  Jim Meyering  <meyering@redhat.com>
59384
59385         Let these macros work also with autoconf-2.59.
59386         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59387         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59388         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59389
59390 2007-12-06  Jim Meyering  <meyering@redhat.com>
59391
59392         Avoid a configure-time syntax error in gl_FUNC_ACL.
59393         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59394         function in each branch, before testing the cache variable.
59395
59396 2007-12-04  Eric Blake  <ebb9@byu.net>
59397
59398         Make scripts executable.
59399         * build-aux/config.guess: Add execute permissions.
59400         * build-aux/config.sub: Likewise.
59401         * build-aux/gendocs.sh: Likewise.
59402
59403         Fix frexp on mingw.
59404         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59405         cross-compiling.
59406         * doc/functions/frexp.texi (frexp): Document the bug.
59407
59408         Make cygwin fseeko check more reliable.
59409         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59410         version numbers, rather than unrelated feature check.
59411         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59412         * doc/functions/ftello.texi (ftello): Likewise.
59413         Reported by Bruno Haible.
59414
59415         * m4/strerror.m4: Bump version number.
59416
59417 2007-12-03  Bruno Haible  <bruno@clisp.org>
59418
59419         * doc/functions/mprotect.texi: Mention the mingw problem.
59420
59421 2007-12-03  Eric Blake  <ebb9@byu.net>
59422
59423         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59424         REPLACE_STRERROR is initialized before this macro.
59425
59426 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59427
59428         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59429         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59430         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59431         put -lsec in even for programs other than 'ls'.  This fixes a problem
59432         for gettext reported by Bruno Haible in
59433         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59434         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59435         Add support for Solaris 10.  This isn't efficient, but should get the
59436         job done for now.
59437
59438 2007-12-03  James Youngman  <jay@gnu.org>
59439
59440         * doc/regexprops-generic.texi: change "an close-group" to "a
59441         close-group" and "illegal" to "not allowed".
59442
59443 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59444
59445         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59446         pr_byname.h. Needed for the rare case when the maintainer has done
59447         "make maintainer-clean" in the source directory and then attempts a
59448         build outside the source directory.
59449         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59450         scripts_byname.h.
59451
59452 2007-12-02  Martin Lambers <marlam@marlam.de>
59453             Bruno Haible  <bruno@clisp.org>
59454
59455         * lib/getpagesize.h: Remove file.
59456         * lib/unistd.in.h: Include declaration of getpagesize here.
59457         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59458         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59459         HAVE_SYS_PARAM_H.
59460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59461         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59462         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59463         (Depends-on): Add unistd.
59464         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59465         (Include): Use <unistd.h> instead of getpagesize.h.
59466         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59467         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59468         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59469         gl_GETPAGESIZE invocation, already handled by module dependency.
59470         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59471
59472 2007-12-02  Bruno Haible  <bruno@clisp.org>
59473
59474         * modules/strings-tests: New file.
59475         * tests/test-strings.c: New file.
59476
59477         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59478         * lib/strings.in.h: New file.
59479         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59480         * m4/strings_h.m4: New file.
59481         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59482         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59483         * modules/strings: New file.
59484         * modules/string (Makefile.am): Update.
59485         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59486         Reported by Karl Berry.
59487
59488 2007-12-01  Eric Blake  <ebb9@byu.net>
59489
59490         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59491         accommodate fix in cygwin 1.5.25.
59492
59493 2007-12-01  Jim Meyering  <meyering@redhat.com>
59494
59495         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59496         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59497         that would inhibit utf8-optimization of a regexp containing line-
59498         or buffer-anchors, e.g., `^', `$'.
59499
59500 2007-11-30  Bruno Haible  <bruno@clisp.org>
59501
59502         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59503         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59504         glthread_recursive_lock_init.
59505         * lib/lock.c (glthread_recursive_lock_init)
59506         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59507         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59508
59509 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59510
59511         New function qset_acl, like set_acl but with syscall semantics.
59512         * lib/acl.h (qset_acl): New decl.
59513         * lib/acl.c (qset_acl): New function.
59514         (set_acl): Use new function.  Use more-consistent diagnostics.
59515
59516 2007-11-28  Jim Meyering  <meyering@redhat.com>
59517
59518         * modules/physmem (License): Change from GPL to LGPLv2+.
59519
59520 2007-11-26  Bruno Haible  <bruno@clisp.org>
59521
59522         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59523         'long double' type has excess precision.
59524         Reported by Jim Meyering in
59525         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59526
59527 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59528
59529         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59530         Sync from <http://gnu.org/licenses>.
59531         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59532         with license text from same location.
59533         * doc/maintain.texi, doc/standards.texi:  Sync from
59534         <http://savannah.gnu.org/projects/gnustandards>.
59535
59536 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
59537         and Jim Meyering  <meyering@redhat.com>
59538
59539         Adjust getdate' grammar to accept a slightly more regular language.
59540         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59541         Before, the former was rejected.
59542         * lib/getdate.y (digits_to_date_time): New function, factored
59543         out of ...
59544         (number): ...here.  Just call digits_to_date_time.
59545         (hybrid): New non-terminal to handle an <unsigned number,
59546         signed relative offset> sequence consistently.
59547
59548 2007-11-18  Jim Meyering  <meyering@redhat.com>
59549
59550         Pull my changes from coreutils:
59551         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59552         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59553         use of $gnulib_tool_option_extras, so that it's separated from the
59554         preceding argument.
59555
59556         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59557         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59558         parent destination directories before copying a file into place.
59559
59560 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59561
59562         bootstrap: work also with 4-argument variant of AC_INIT
59563         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59564
59565 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59566
59567         Port test-getaddrinfo to Solaris.
59568         Problem reported by Bruno Haible in
59569         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59570         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59571         explanation of setting 'hints'.
59572         Don't reject an implementation merely because it returns EAI_SERVICE.
59573         (EAI_SERVICE): Define to 0 if not defined.
59574
59575 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59576
59577         The license of gnu-make and posix-shell is now "GPLed build tool".
59578         * modules/gnu-make (License): Likewise.
59579         * modules/posix-shell (License): Likewise.
59580
59581         New module posix-shell, for determining a POSIX shell
59582         or perhaps something that is close enough to a POSIX shell.
59583         * m4/posix-shell.m4: New file.
59584         * modules/posix-shell: New file.
59585
59586         * MODULES.html.sh: Mention new module.
59587
59588         New module gnu-make, for determining whether we're using GNU Make.
59589         * m4/gnu-make.m4: New file.
59590         * modules/gnu-make: New file.
59591         * MODULES.html.sh: Mention new module.
59592
59593 2007-11-14  Jim Meyering  <meyering@redhat.com>
59594
59595         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59596         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59597         use this macro to create a function _definition_.
59598         Remove useless "#undef ARGMATCH_DIE".
59599
59600 2007-11-14  Bruno Haible  <bruno@clisp.org>
59601
59602         * lib/config.charset: Update for OpenBSD 4.1.
59603         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59604
59605 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59606
59607         Document 64-bit #if problems in stdint.texi.
59608         * doc/headers/stdint.texi (stdint.h): Mention problems with
59609         64-bit-#if, and how to work around them.
59610
59611         Don't insist on 'long long int' support in the preprocessor.  It
59612         breaks too many things.  For example, PRIdMAX still uses a 'long
59613         long int' format with the latest Sun compiler, even though
59614         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59615         preprocessor problem.  This causes the latest coreutils to dump
59616         core on Solaris 10 sparc with the Sun C compiler.
59617         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59618         the troublesome expressions at configure-time, not at #if-time.
59619         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59620         preprocessor.
59621         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59622         compile-time C checks, done at 'configure'-time.
59623         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59624         * modules/inttypes (Makefile): Substitute the new symbols that
59625         gl_INTTYPES_H now generates.
59626         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59627
59628 2007-11-12  Bruno Haible  <bruno@clisp.org>
59629
59630         Tests for Unicode character classification functions.
59631
59632         * modules/unictype/bidicategory-byname-tests: New file.
59633         * modules/unictype/bidicategory-name-tests: New file.
59634         * modules/unictype/bidicategory-of-tests: New file.
59635         * modules/unictype/bidicategory-test-tests: New file.
59636         * modules/unictype/block-list-tests: New file.
59637         * modules/unictype/block-of-tests: New file.
59638         * modules/unictype/block-test-tests: New file.
59639         * modules/unictype/category-C-tests: New file.
59640         * modules/unictype/category-Cc-tests: New file.
59641         * modules/unictype/category-Cf-tests: New file.
59642         * modules/unictype/category-Cn-tests: New file.
59643         * modules/unictype/category-Co-tests: New file.
59644         * modules/unictype/category-Cs-tests: New file.
59645         * modules/unictype/category-L-tests: New file.
59646         * modules/unictype/category-Ll-tests: New file.
59647         * modules/unictype/category-Lm-tests: New file.
59648         * modules/unictype/category-Lo-tests: New file.
59649         * modules/unictype/category-Lt-tests: New file.
59650         * modules/unictype/category-Lu-tests: New file.
59651         * modules/unictype/category-M-tests: New file.
59652         * modules/unictype/category-Mc-tests: New file.
59653         * modules/unictype/category-Me-tests: New file.
59654         * modules/unictype/category-Mn-tests: New file.
59655         * modules/unictype/category-N-tests: New file.
59656         * modules/unictype/category-Nd-tests: New file.
59657         * modules/unictype/category-Nl-tests: New file.
59658         * modules/unictype/category-No-tests: New file.
59659         * modules/unictype/category-P-tests: New file.
59660         * modules/unictype/category-Pc-tests: New file.
59661         * modules/unictype/category-Pd-tests: New file.
59662         * modules/unictype/category-Pe-tests: New file.
59663         * modules/unictype/category-Pf-tests: New file.
59664         * modules/unictype/category-Pi-tests: New file.
59665         * modules/unictype/category-Po-tests: New file.
59666         * modules/unictype/category-Ps-tests: New file.
59667         * modules/unictype/category-S-tests: New file.
59668         * modules/unictype/category-Sc-tests: New file.
59669         * modules/unictype/category-Sk-tests: New file.
59670         * modules/unictype/category-Sm-tests: New file.
59671         * modules/unictype/category-So-tests: New file.
59672         * modules/unictype/category-Z-tests: New file.
59673         * modules/unictype/category-Zl-tests: New file.
59674         * modules/unictype/category-Zp-tests: New file.
59675         * modules/unictype/category-Zs-tests: New file.
59676         * modules/unictype/category-and-not-tests: New file.
59677         * modules/unictype/category-and-tests: New file.
59678         * modules/unictype/category-byname-tests: New file.
59679         * modules/unictype/category-name-tests: New file.
59680         * modules/unictype/category-none-tests: New file.
59681         * modules/unictype/category-of-tests: New file.
59682         * modules/unictype/category-or-tests: New file.
59683         * modules/unictype/category-test-withtable-tests: New file.
59684         * modules/unictype/combining-class-tests: New file.
59685         * modules/unictype/ctype-alnum-tests: New file.
59686         * modules/unictype/ctype-alpha-tests: New file.
59687         * modules/unictype/ctype-blank-tests: New file.
59688         * modules/unictype/ctype-cntrl-tests: New file.
59689         * modules/unictype/ctype-digit-tests: New file.
59690         * modules/unictype/ctype-graph-tests: New file.
59691         * modules/unictype/ctype-lower-tests: New file.
59692         * modules/unictype/ctype-print-tests: New file.
59693         * modules/unictype/ctype-punct-tests: New file.
59694         * modules/unictype/ctype-space-tests: New file.
59695         * modules/unictype/ctype-upper-tests: New file.
59696         * modules/unictype/ctype-xdigit-tests: New file.
59697         * modules/unictype/decimal-digit-tests: New file.
59698         * modules/unictype/digit-tests: New file.
59699         * modules/unictype/mirror-tests: New file.
59700         * modules/unictype/numeric-tests: New file.
59701         * modules/unictype/property-alphabetic-tests: New file.
59702         * modules/unictype/property-ascii-hex-digit-tests: New file.
59703         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59704         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59705         * modules/unictype/property-bidi-block-separator-tests: New file.
59706         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59707         * modules/unictype/property-bidi-common-separator-tests: New file.
59708         * modules/unictype/property-bidi-control-tests: New file.
59709         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59710         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59711         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59712         * modules/unictype/property-bidi-european-digit-tests: New file.
59713         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59714         * modules/unictype/property-bidi-left-to-right-tests: New file.
59715         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59716         * modules/unictype/property-bidi-other-neutral-tests: New file.
59717         * modules/unictype/property-bidi-pdf-tests: New file.
59718         * modules/unictype/property-bidi-segment-separator-tests: New file.
59719         * modules/unictype/property-bidi-whitespace-tests: New file.
59720         * modules/unictype/property-byname-tests: New file.
59721         * modules/unictype/property-combining-tests: New file.
59722         * modules/unictype/property-composite-tests: New file.
59723         * modules/unictype/property-currency-symbol-tests: New file.
59724         * modules/unictype/property-dash-tests: New file.
59725         * modules/unictype/property-decimal-digit-tests: New file.
59726         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59727         * modules/unictype/property-deprecated-tests: New file.
59728         * modules/unictype/property-diacritic-tests: New file.
59729         * modules/unictype/property-extender-tests: New file.
59730         * modules/unictype/property-format-control-tests: New file.
59731         * modules/unictype/property-grapheme-base-tests: New file.
59732         * modules/unictype/property-grapheme-extend-tests: New file.
59733         * modules/unictype/property-grapheme-link-tests: New file.
59734         * modules/unictype/property-hex-digit-tests: New file.
59735         * modules/unictype/property-hyphen-tests: New file.
59736         * modules/unictype/property-id-continue-tests: New file.
59737         * modules/unictype/property-id-start-tests: New file.
59738         * modules/unictype/property-ideographic-tests: New file.
59739         * modules/unictype/property-ids-binary-operator-tests: New file.
59740         * modules/unictype/property-ids-trinary-operator-tests: New file.
59741         * modules/unictype/property-ignorable-control-tests: New file.
59742         * modules/unictype/property-iso-control-tests: New file.
59743         * modules/unictype/property-join-control-tests: New file.
59744         * modules/unictype/property-left-of-pair-tests: New file.
59745         * modules/unictype/property-line-separator-tests: New file.
59746         * modules/unictype/property-logical-order-exception-tests: New file.
59747         * modules/unictype/property-lowercase-tests: New file.
59748         * modules/unictype/property-math-tests: New file.
59749         * modules/unictype/property-non-break-tests: New file.
59750         * modules/unictype/property-not-a-character-tests: New file.
59751         * modules/unictype/property-numeric-tests: New file.
59752         * modules/unictype/property-other-alphabetic-tests: New file.
59753         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59754         * modules/unictype/property-other-grapheme-extend-tests: New file.
59755         * modules/unictype/property-other-id-continue-tests: New file.
59756         * modules/unictype/property-other-id-start-tests: New file.
59757         * modules/unictype/property-other-lowercase-tests: New file.
59758         * modules/unictype/property-other-math-tests: New file.
59759         * modules/unictype/property-other-uppercase-tests: New file.
59760         * modules/unictype/property-paired-punctuation-tests: New file.
59761         * modules/unictype/property-paragraph-separator-tests: New file.
59762         * modules/unictype/property-pattern-syntax-tests: New file.
59763         * modules/unictype/property-pattern-white-space-tests: New file.
59764         * modules/unictype/property-private-use-tests: New file.
59765         * modules/unictype/property-punctuation-tests: New file.
59766         * modules/unictype/property-quotation-mark-tests: New file.
59767         * modules/unictype/property-radical-tests: New file.
59768         * modules/unictype/property-sentence-terminal-tests: New file.
59769         * modules/unictype/property-soft-dotted-tests: New file.
59770         * modules/unictype/property-space-tests: New file.
59771         * modules/unictype/property-terminal-punctuation-tests: New file.
59772         * modules/unictype/property-test-tests: New file.
59773         * modules/unictype/property-titlecase-tests: New file.
59774         * modules/unictype/property-unassigned-code-value-tests: New file.
59775         * modules/unictype/property-unified-ideograph-tests: New file.
59776         * modules/unictype/property-uppercase-tests: New file.
59777         * modules/unictype/property-variation-selector-tests: New file.
59778         * modules/unictype/property-white-space-tests: New file.
59779         * modules/unictype/property-xid-continue-tests: New file.
59780         * modules/unictype/property-xid-start-tests: New file.
59781         * modules/unictype/property-zero-width-tests: New file.
59782         * modules/unictype/scripts-tests: New file.
59783         * modules/unictype/syntax-c-ident-tests: New file.
59784         * modules/unictype/syntax-c-whitespace-tests: New file.
59785         * modules/unictype/syntax-java-ident-tests: New file.
59786         * modules/unictype/syntax-java-whitespace-tests: New file.
59787         * tests/unictype/test-bidi_byname.c: New file.
59788         * tests/unictype/test-bidi_name.c: New file.
59789         * tests/unictype/test-bidi_of.c: New file.
59790         * tests/unictype/test-bidi_test.c: New file.
59791         * tests/unictype/test-block_list.c: New file.
59792         * tests/unictype/test-block_of.c: New file.
59793         * tests/unictype/test-block_test.c: New file.
59794         * tests/unictype/test-categ_and.c: New file.
59795         * tests/unictype/test-categ_and_not.c: New file.
59796         * tests/unictype/test-categ_byname.c: New file.
59797         * tests/unictype/test-categ_name.c: New file.
59798         * tests/unictype/test-categ_none.c: New file.
59799         * tests/unictype/test-categ_of.c: New file.
59800         * tests/unictype/test-categ_or.c: New file.
59801         * tests/unictype/test-categ_test_withtable.c: New file.
59802         * tests/unictype/test-combining.c: New file.
59803         * tests/unictype/test-decdigit.c: New file.
59804         * tests/unictype/test-digit.c: New file.
59805         * tests/unictype/test-mirror.c: New file.
59806         * tests/unictype/test-numeric.c: New file.
59807         * tests/unictype/test-pr_byname.c: New file.
59808         * tests/unictype/test-pr_test.c: New file.
59809         * tests/unictype/test-predicate-part1.h: New file.
59810         * tests/unictype/test-predicate-part2.h: New file.
59811         * tests/unictype/test-scripts.c: New file.
59812         * tests/unictype/test-sy_c_ident.c: New file.
59813         * tests/unictype/test-sy_java_ident.c: New file.
59814
59815         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59816         for Unicode 5.0.0.
59817         * tests/unictype/test-categ_Cc.c: Likewise.
59818         * tests/unictype/test-categ_Cf.c: Likewise.
59819         * tests/unictype/test-categ_Cn.c: Likewise.
59820         * tests/unictype/test-categ_Co.c: Likewise.
59821         * tests/unictype/test-categ_Cs.c: Likewise.
59822         * tests/unictype/test-categ_L.c: Likewise.
59823         * tests/unictype/test-categ_Ll.c: Likewise.
59824         * tests/unictype/test-categ_Lm.c: Likewise.
59825         * tests/unictype/test-categ_Lo.c: Likewise.
59826         * tests/unictype/test-categ_Lt.c: Likewise.
59827         * tests/unictype/test-categ_Lu.c: Likewise.
59828         * tests/unictype/test-categ_M.c: Likewise.
59829         * tests/unictype/test-categ_Mc.c: Likewise.
59830         * tests/unictype/test-categ_Me.c: Likewise.
59831         * tests/unictype/test-categ_Mn.c: Likewise.
59832         * tests/unictype/test-categ_N.c: Likewise.
59833         * tests/unictype/test-categ_Nd.c: Likewise.
59834         * tests/unictype/test-categ_Nl.c: Likewise.
59835         * tests/unictype/test-categ_No.c: Likewise.
59836         * tests/unictype/test-categ_P.c: Likewise.
59837         * tests/unictype/test-categ_Pc.c: Likewise.
59838         * tests/unictype/test-categ_Pd.c: Likewise.
59839         * tests/unictype/test-categ_Pe.c: Likewise.
59840         * tests/unictype/test-categ_Pf.c: Likewise.
59841         * tests/unictype/test-categ_Pi.c: Likewise.
59842         * tests/unictype/test-categ_Po.c: Likewise.
59843         * tests/unictype/test-categ_Ps.c: Likewise.
59844         * tests/unictype/test-categ_S.c: Likewise.
59845         * tests/unictype/test-categ_Sc.c: Likewise.
59846         * tests/unictype/test-categ_Sk.c: Likewise.
59847         * tests/unictype/test-categ_Sm.c: Likewise.
59848         * tests/unictype/test-categ_So.c: Likewise.
59849         * tests/unictype/test-categ_Z.c: Likewise.
59850         * tests/unictype/test-categ_Zl.c: Likewise.
59851         * tests/unictype/test-categ_Zp.c: Likewise.
59852         * tests/unictype/test-categ_Zs.c: Likewise.
59853         * tests/unictype/test-ctype_alnum.c: Likewise.
59854         * tests/unictype/test-ctype_alpha.c: Likewise.
59855         * tests/unictype/test-ctype_blank.c: Likewise.
59856         * tests/unictype/test-ctype_cntrl.c: Likewise.
59857         * tests/unictype/test-ctype_digit.c: Likewise.
59858         * tests/unictype/test-ctype_graph.c: Likewise.
59859         * tests/unictype/test-ctype_lower.c: Likewise.
59860         * tests/unictype/test-ctype_print.c: Likewise.
59861         * tests/unictype/test-ctype_punct.c: Likewise.
59862         * tests/unictype/test-ctype_space.c: Likewise.
59863         * tests/unictype/test-ctype_upper.c: Likewise.
59864         * tests/unictype/test-ctype_xdigit.c: Likewise.
59865         * tests/unictype/test-decdigit.h: Likewise.
59866         * tests/unictype/test-digit.h: Likewise.
59867         * tests/unictype/test-numeric.h: Likewise.
59868         * tests/unictype/test-pr_alphabetic.c: Likewise.
59869         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59870         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59871         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59872         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59873         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59874         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59875         * tests/unictype/test-pr_bidi_control.c: Likewise.
59876         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59877         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59878         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59879         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59880         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59881         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59882         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59883         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59884         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59885         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59886         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59887         * tests/unictype/test-pr_combining.c: Likewise.
59888         * tests/unictype/test-pr_composite.c: Likewise.
59889         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59890         * tests/unictype/test-pr_dash.c: Likewise.
59891         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59892         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59893         * tests/unictype/test-pr_deprecated.c: Likewise.
59894         * tests/unictype/test-pr_diacritic.c: Likewise.
59895         * tests/unictype/test-pr_extender.c: Likewise.
59896         * tests/unictype/test-pr_format_control.c: Likewise.
59897         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59898         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59899         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59900         * tests/unictype/test-pr_hex_digit.c: Likewise.
59901         * tests/unictype/test-pr_hyphen.c: Likewise.
59902         * tests/unictype/test-pr_id_continue.c: Likewise.
59903         * tests/unictype/test-pr_id_start.c: Likewise.
59904         * tests/unictype/test-pr_ideographic.c: Likewise.
59905         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59906         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59907         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59908         * tests/unictype/test-pr_iso_control.c: Likewise.
59909         * tests/unictype/test-pr_join_control.c: Likewise.
59910         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59911         * tests/unictype/test-pr_line_separator.c: Likewise.
59912         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59913         * tests/unictype/test-pr_lowercase.c: Likewise.
59914         * tests/unictype/test-pr_math.c: Likewise.
59915         * tests/unictype/test-pr_non_break.c: Likewise.
59916         * tests/unictype/test-pr_not_a_character.c: Likewise.
59917         * tests/unictype/test-pr_numeric.c: Likewise.
59918         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59919         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59920         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59921         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59922         * tests/unictype/test-pr_other_id_start.c: Likewise.
59923         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59924         * tests/unictype/test-pr_other_math.c: Likewise.
59925         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59926         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59927         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59928         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59929         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59930         * tests/unictype/test-pr_private_use.c: Likewise.
59931         * tests/unictype/test-pr_punctuation.c: Likewise.
59932         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59933         * tests/unictype/test-pr_radical.c: Likewise.
59934         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59935         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59936         * tests/unictype/test-pr_space.c: Likewise.
59937         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59938         * tests/unictype/test-pr_titlecase.c: Likewise.
59939         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59940         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59941         * tests/unictype/test-pr_uppercase.c: Likewise.
59942         * tests/unictype/test-pr_variation_selector.c: Likewise.
59943         * tests/unictype/test-pr_white_space.c: Likewise.
59944         * tests/unictype/test-pr_xid_continue.c: Likewise.
59945         * tests/unictype/test-pr_xid_start.c: Likewise.
59946         * tests/unictype/test-pr_zero_width.c: Likewise.
59947         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59948         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59949
59950 2007-11-12  Bruno Haible  <bruno@clisp.org>
59951
59952         Unicode character classification functions.
59953         * lib/unictype.h: New file.
59954         * modules/unictype/base: New file.
59955         * modules/unictype/category-L: New file.
59956         * modules/unictype/category-Lu: New file.
59957         * modules/unictype/category-Ll: New file.
59958         * modules/unictype/category-Lt: New file.
59959         * modules/unictype/category-Lm: New file.
59960         * modules/unictype/category-Lo: New file.
59961         * modules/unictype/category-M: New file.
59962         * modules/unictype/category-Mn: New file.
59963         * modules/unictype/category-Mc: New file.
59964         * modules/unictype/category-Me: New file.
59965         * modules/unictype/category-N: New file.
59966         * modules/unictype/category-Nd: New file.
59967         * modules/unictype/category-Nl: New file.
59968         * modules/unictype/category-No: New file.
59969         * modules/unictype/category-P: New file.
59970         * modules/unictype/category-Pc: New file.
59971         * modules/unictype/category-Pd: New file.
59972         * modules/unictype/category-Ps: New file.
59973         * modules/unictype/category-Pe: New file.
59974         * modules/unictype/category-Pi: New file.
59975         * modules/unictype/category-Pf: New file.
59976         * modules/unictype/category-Po: New file.
59977         * modules/unictype/category-S: New file.
59978         * modules/unictype/category-Sm: New file.
59979         * modules/unictype/category-Sc: New file.
59980         * modules/unictype/category-Sk: New file.
59981         * modules/unictype/category-So: New file.
59982         * modules/unictype/category-Z: New file.
59983         * modules/unictype/category-Zs: New file.
59984         * modules/unictype/category-Zl: New file.
59985         * modules/unictype/category-Zp: New file.
59986         * modules/unictype/category-C: New file.
59987         * modules/unictype/category-Cc: New file.
59988         * modules/unictype/category-Cf: New file.
59989         * modules/unictype/category-Cs: New file.
59990         * modules/unictype/category-Co: New file.
59991         * modules/unictype/category-Cn: New file.
59992         * modules/unictype/category-or: New file.
59993         * modules/unictype/category-of: New file.
59994         * modules/unictype/category-test: New file.
59995         * modules/unictype/category-test-withtable: New file.
59996         * modules/unictype/category-byname: New file.
59997         * modules/unictype/category-none: New file.
59998         * modules/unictype/category-and: New file.
59999         * modules/unictype/category-and-not: New file.
60000         * modules/unictype/category-name: New file.
60001         * modules/unictype/combining-class: New file.
60002         * modules/unictype/category-all: New file.
60003         * modules/unictype/bidicategory-all: New file.
60004         * modules/unictype/bidicategory-byname: New file.
60005         * modules/unictype/bidicategory-name: New file.
60006         * modules/unictype/bidicategory-of: New file.
60007         * modules/unictype/bidicategory-test: New file.
60008         * modules/unictype/decimal-digit: New file.
60009         * modules/unictype/digit: New file.
60010         * modules/unictype/numeric: New file.
60011         * modules/unictype/mirror: New file.
60012         * modules/unictype/property-white-space: New file.
60013         * modules/unictype/property-alphabetic: New file.
60014         * modules/unictype/property-other-alphabetic: New file.
60015         * modules/unictype/property-not-a-character: New file.
60016         * modules/unictype/property-default-ignorable-code-point: New file.
60017         * modules/unictype/property-other-default-ignorable-code-point: New
60018         file.
60019         * modules/unictype/property-deprecated: New file.
60020         * modules/unictype/property-logical-order-exception: New file.
60021         * modules/unictype/property-variation-selector: New file.
60022         * modules/unictype/property-private-use: New file.
60023         * modules/unictype/property-unassigned-code-value: New file.
60024         * modules/unictype/property-uppercase: New file.
60025         * modules/unictype/property-other-uppercase: New file.
60026         * modules/unictype/property-lowercase: New file.
60027         * modules/unictype/property-other-lowercase: New file.
60028         * modules/unictype/property-titlecase: New file.
60029         * modules/unictype/property-soft-dotted: New file.
60030         * modules/unictype/property-id-start: New file.
60031         * modules/unictype/property-other-id-start: New file.
60032         * modules/unictype/property-id-continue: New file.
60033         * modules/unictype/property-other-id-continue: New file.
60034         * modules/unictype/property-xid-start: New file.
60035         * modules/unictype/property-xid-continue: New file.
60036         * modules/unictype/property-pattern-white-space: New file.
60037         * modules/unictype/property-pattern-syntax: New file.
60038         * modules/unictype/property-join-control: New file.
60039         * modules/unictype/property-grapheme-base: New file.
60040         * modules/unictype/property-grapheme-extend: New file.
60041         * modules/unictype/property-other-grapheme-extend: New file.
60042         * modules/unictype/property-grapheme-link: New file.
60043         * modules/unictype/property-bidi-control: New file.
60044         * modules/unictype/property-bidi-left-to-right: New file.
60045         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
60046         * modules/unictype/property-bidi-arabic-right-to-left: New file.
60047         * modules/unictype/property-bidi-european-digit: New file.
60048         * modules/unictype/property-bidi-eur-num-separator: New file.
60049         * modules/unictype/property-bidi-eur-num-terminator: New file.
60050         * modules/unictype/property-bidi-arabic-digit: New file.
60051         * modules/unictype/property-bidi-common-separator: New file.
60052         * modules/unictype/property-bidi-block-separator: New file.
60053         * modules/unictype/property-bidi-segment-separator: New file.
60054         * modules/unictype/property-bidi-whitespace: New file.
60055         * modules/unictype/property-bidi-non-spacing-mark: New file.
60056         * modules/unictype/property-bidi-boundary-neutral: New file.
60057         * modules/unictype/property-bidi-pdf: New file.
60058         * modules/unictype/property-bidi-embedding-or-override: New file.
60059         * modules/unictype/property-bidi-other-neutral: New file.
60060         * modules/unictype/property-hex-digit: New file.
60061         * modules/unictype/property-ascii-hex-digit: New file.
60062         * modules/unictype/property-ideographic: New file.
60063         * modules/unictype/property-unified-ideograph: New file.
60064         * modules/unictype/property-radical: New file.
60065         * modules/unictype/property-ids-binary-operator: New file.
60066         * modules/unictype/property-ids-trinary-operator: New file.
60067         * modules/unictype/property-zero-width: New file.
60068         * modules/unictype/property-space: New file.
60069         * modules/unictype/property-non-break: New file.
60070         * modules/unictype/property-iso-control: New file.
60071         * modules/unictype/property-format-control: New file.
60072         * modules/unictype/property-dash: New file.
60073         * modules/unictype/property-hyphen: New file.
60074         * modules/unictype/property-punctuation: New file.
60075         * modules/unictype/property-line-separator: New file.
60076         * modules/unictype/property-paragraph-separator: New file.
60077         * modules/unictype/property-quotation-mark: New file.
60078         * modules/unictype/property-sentence-terminal: New file.
60079         * modules/unictype/property-terminal-punctuation: New file.
60080         * modules/unictype/property-currency-symbol: New file.
60081         * modules/unictype/property-math: New file.
60082         * modules/unictype/property-other-math: New file.
60083         * modules/unictype/property-paired-punctuation: New file.
60084         * modules/unictype/property-left-of-pair: New file.
60085         * modules/unictype/property-combining: New file.
60086         * modules/unictype/property-composite: New file.
60087         * modules/unictype/property-decimal-digit: New file.
60088         * modules/unictype/property-numeric: New file.
60089         * modules/unictype/property-diacritic: New file.
60090         * modules/unictype/property-extender: New file.
60091         * modules/unictype/property-ignorable-control: New file.
60092         * modules/unictype/property-test: New file.
60093         * modules/unictype/property-byname: New file.
60094         * modules/unictype/property-all: New file.
60095         * modules/unictype/scripts: New file.
60096         * modules/unictype/scripts-all: New file.
60097         * modules/unictype/block-of: New file.
60098         * modules/unictype/block-test: New file.
60099         * modules/unictype/block-list: New file.
60100         * modules/unictype/block-all: New file.
60101         * modules/unictype/syntax-c-whitespace: New file.
60102         * modules/unictype/syntax-java-whitespace: New file.
60103         * modules/unictype/syntax-c-ident: New file.
60104         * modules/unictype/syntax-java-ident: New file.
60105         * modules/unictype/ctype-alnum: New file.
60106         * modules/unictype/ctype-alpha: New file.
60107         * modules/unictype/ctype-cntrl: New file.
60108         * modules/unictype/ctype-digit: New file.
60109         * modules/unictype/ctype-graph: New file.
60110         * modules/unictype/ctype-lower: New file.
60111         * modules/unictype/ctype-print: New file.
60112         * modules/unictype/ctype-punct: New file.
60113         * modules/unictype/ctype-space: New file.
60114         * modules/unictype/ctype-upper: New file.
60115         * modules/unictype/ctype-xdigit: New file.
60116         * modules/unictype/ctype-blank: New file.
60117         * lib/unictype/bidi_byname.c: New file.
60118         * lib/unictype/bidi_name.c: New file.
60119         * lib/unictype/bidi_of.c: New file.
60120         * lib/unictype/bidi_test.c: New file.
60121         * lib/unictype/bitmap.h: New file.
60122         * lib/unictype/block_test.c: New file.
60123         * lib/unictype/blocks.c: New file.
60124         * lib/unictype/categ_C.c: New file.
60125         * lib/unictype/categ_Cc.c: New file.
60126         * lib/unictype/categ_Cf.c: New file.
60127         * lib/unictype/categ_Cn.c: New file.
60128         * lib/unictype/categ_Co.c: New file.
60129         * lib/unictype/categ_Cs.c: New file.
60130         * lib/unictype/categ_L.c: New file.
60131         * lib/unictype/categ_Ll.c: New file.
60132         * lib/unictype/categ_Lm.c: New file.
60133         * lib/unictype/categ_Lo.c: New file.
60134         * lib/unictype/categ_Lt.c: New file.
60135         * lib/unictype/categ_Lu.c: New file.
60136         * lib/unictype/categ_M.c: New file.
60137         * lib/unictype/categ_Mc.c: New file.
60138         * lib/unictype/categ_Me.c: New file.
60139         * lib/unictype/categ_Mn.c: New file.
60140         * lib/unictype/categ_N.c: New file.
60141         * lib/unictype/categ_Nd.c: New file.
60142         * lib/unictype/categ_Nl.c: New file.
60143         * lib/unictype/categ_No.c: New file.
60144         * lib/unictype/categ_P.c: New file.
60145         * lib/unictype/categ_Pc.c: New file.
60146         * lib/unictype/categ_Pd.c: New file.
60147         * lib/unictype/categ_Pe.c: New file.
60148         * lib/unictype/categ_Pf.c: New file.
60149         * lib/unictype/categ_Pi.c: New file.
60150         * lib/unictype/categ_Po.c: New file.
60151         * lib/unictype/categ_Ps.c: New file.
60152         * lib/unictype/categ_S.c: New file.
60153         * lib/unictype/categ_Sc.c: New file.
60154         * lib/unictype/categ_Sk.c: New file.
60155         * lib/unictype/categ_Sm.c: New file.
60156         * lib/unictype/categ_So.c: New file.
60157         * lib/unictype/categ_Z.c: New file.
60158         * lib/unictype/categ_Zl.c: New file.
60159         * lib/unictype/categ_Zp.c: New file.
60160         * lib/unictype/categ_Zs.c: New file.
60161         * lib/unictype/categ_and.c: New file.
60162         * lib/unictype/categ_and_not.c: New file.
60163         * lib/unictype/categ_byname.c: New file.
60164         * lib/unictype/categ_name.c: New file.
60165         * lib/unictype/categ_none.c: New file.
60166         * lib/unictype/categ_of.c: New file.
60167         * lib/unictype/categ_or.c: New file.
60168         * lib/unictype/categ_test.c: New file.
60169         * lib/unictype/combining.c: New file.
60170         * lib/unictype/ctype_alnum.c: New file.
60171         * lib/unictype/ctype_alpha.c: New file.
60172         * lib/unictype/ctype_blank.c: New file.
60173         * lib/unictype/ctype_cntrl.c: New file.
60174         * lib/unictype/ctype_digit.c: New file.
60175         * lib/unictype/ctype_graph.c: New file.
60176         * lib/unictype/ctype_lower.c: New file.
60177         * lib/unictype/ctype_print.c: New file.
60178         * lib/unictype/ctype_punct.c: New file.
60179         * lib/unictype/ctype_space.c: New file.
60180         * lib/unictype/ctype_upper.c: New file.
60181         * lib/unictype/ctype_xdigit.c: New file.
60182         * lib/unictype/decdigit.c: New file.
60183         * lib/unictype/digit.c: New file.
60184         * lib/unictype/identsyntaxmap.h: New file.
60185         * lib/unictype/mirror.c: New file.
60186         * lib/unictype/numeric.c: New file.
60187         * lib/unictype/pr_alphabetic.c: New file.
60188         * lib/unictype/pr_ascii_hex_digit.c: New file.
60189         * lib/unictype/pr_bidi_arabic_digit.c: New file.
60190         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
60191         * lib/unictype/pr_bidi_block_separator.c: New file.
60192         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
60193         * lib/unictype/pr_bidi_common_separator.c: New file.
60194         * lib/unictype/pr_bidi_control.c: New file.
60195         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
60196         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
60197         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
60198         * lib/unictype/pr_bidi_european_digit.c: New file.
60199         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
60200         * lib/unictype/pr_bidi_left_to_right.c: New file.
60201         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
60202         * lib/unictype/pr_bidi_other_neutral.c: New file.
60203         * lib/unictype/pr_bidi_pdf.c: New file.
60204         * lib/unictype/pr_bidi_segment_separator.c: New file.
60205         * lib/unictype/pr_bidi_whitespace.c: New file.
60206         * lib/unictype/pr_byname.c: New file.
60207         * lib/unictype/pr_byname.gperf: New file.
60208         * lib/unictype/pr_combining.c: New file.
60209         * lib/unictype/pr_composite.c: New file.
60210         * lib/unictype/pr_currency_symbol.c: New file.
60211         * lib/unictype/pr_dash.c: New file.
60212         * lib/unictype/pr_decimal_digit.c: New file.
60213         * lib/unictype/pr_default_ignorable_code_point.c: New file.
60214         * lib/unictype/pr_deprecated.c: New file.
60215         * lib/unictype/pr_diacritic.c: New file.
60216         * lib/unictype/pr_extender.c: New file.
60217         * lib/unictype/pr_format_control.c: New file.
60218         * lib/unictype/pr_grapheme_base.c: New file.
60219         * lib/unictype/pr_grapheme_extend.c: New file.
60220         * lib/unictype/pr_grapheme_link.c: New file.
60221         * lib/unictype/pr_hex_digit.c: New file.
60222         * lib/unictype/pr_hyphen.c: New file.
60223         * lib/unictype/pr_id_continue.c: New file.
60224         * lib/unictype/pr_id_start.c: New file.
60225         * lib/unictype/pr_ideographic.c: New file.
60226         * lib/unictype/pr_ids_binary_operator.c: New file.
60227         * lib/unictype/pr_ids_trinary_operator.c: New file.
60228         * lib/unictype/pr_ignorable_control.c: New file.
60229         * lib/unictype/pr_iso_control.c: New file.
60230         * lib/unictype/pr_join_control.c: New file.
60231         * lib/unictype/pr_left_of_pair.c: New file.
60232         * lib/unictype/pr_line_separator.c: New file.
60233         * lib/unictype/pr_logical_order_exception.c: New file.
60234         * lib/unictype/pr_lowercase.c: New file.
60235         * lib/unictype/pr_math.c: New file.
60236         * lib/unictype/pr_non_break.c: New file.
60237         * lib/unictype/pr_not_a_character.c: New file.
60238         * lib/unictype/pr_numeric.c: New file.
60239         * lib/unictype/pr_other_alphabetic.c: New file.
60240         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
60241         * lib/unictype/pr_other_grapheme_extend.c: New file.
60242         * lib/unictype/pr_other_id_continue.c: New file.
60243         * lib/unictype/pr_other_id_start.c: New file.
60244         * lib/unictype/pr_other_lowercase.c: New file.
60245         * lib/unictype/pr_other_math.c: New file.
60246         * lib/unictype/pr_other_uppercase.c: New file.
60247         * lib/unictype/pr_paired_punctuation.c: New file.
60248         * lib/unictype/pr_paragraph_separator.c: New file.
60249         * lib/unictype/pr_pattern_syntax.c: New file.
60250         * lib/unictype/pr_pattern_white_space.c: New file.
60251         * lib/unictype/pr_private_use.c: New file.
60252         * lib/unictype/pr_punctuation.c: New file.
60253         * lib/unictype/pr_quotation_mark.c: New file.
60254         * lib/unictype/pr_radical.c: New file.
60255         * lib/unictype/pr_sentence_terminal.c: New file.
60256         * lib/unictype/pr_soft_dotted.c: New file.
60257         * lib/unictype/pr_space.c: New file.
60258         * lib/unictype/pr_terminal_punctuation.c: New file.
60259         * lib/unictype/pr_test.c: New file.
60260         * lib/unictype/pr_titlecase.c: New file.
60261         * lib/unictype/pr_unassigned_code_value.c: New file.
60262         * lib/unictype/pr_unified_ideograph.c: New file.
60263         * lib/unictype/pr_uppercase.c: New file.
60264         * lib/unictype/pr_variation_selector.c: New file.
60265         * lib/unictype/pr_white_space.c: New file.
60266         * lib/unictype/pr_xid_continue.c: New file.
60267         * lib/unictype/pr_xid_start.c: New file.
60268         * lib/unictype/pr_zero_width.c: New file.
60269         * lib/unictype/scripts.c: New file.
60270         * lib/unictype/sy_c_ident.c: New file.
60271         * lib/unictype/sy_c_whitespace.c: New file.
60272         * lib/unictype/sy_java_ident.c: New file.
60273         * lib/unictype/sy_java_whitespace.c: New file.
60274
60275         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
60276         Unicode 5.0.0.
60277         * lib/unictype/blocks.h: Likewise.
60278         * lib/unictype/categ_C.h: Likewise.
60279         * lib/unictype/categ_Cc.h: Likewise.
60280         * lib/unictype/categ_Cf.h: Likewise.
60281         * lib/unictype/categ_Cn.h: Likewise.
60282         * lib/unictype/categ_Co.h: Likewise.
60283         * lib/unictype/categ_Cs.h: Likewise.
60284         * lib/unictype/categ_L.h: Likewise.
60285         * lib/unictype/categ_Ll.h: Likewise.
60286         * lib/unictype/categ_Lm.h: Likewise.
60287         * lib/unictype/categ_Lo.h: Likewise.
60288         * lib/unictype/categ_Lt.h: Likewise.
60289         * lib/unictype/categ_Lu.h: Likewise.
60290         * lib/unictype/categ_M.h: Likewise.
60291         * lib/unictype/categ_Mc.h: Likewise.
60292         * lib/unictype/categ_Me.h: Likewise.
60293         * lib/unictype/categ_Mn.h: Likewise.
60294         * lib/unictype/categ_N.h: Likewise.
60295         * lib/unictype/categ_Nd.h: Likewise.
60296         * lib/unictype/categ_Nl.h: Likewise.
60297         * lib/unictype/categ_No.h: Likewise.
60298         * lib/unictype/categ_P.h: Likewise.
60299         * lib/unictype/categ_Pc.h: Likewise.
60300         * lib/unictype/categ_Pd.h: Likewise.
60301         * lib/unictype/categ_Pe.h: Likewise.
60302         * lib/unictype/categ_Pf.h: Likewise.
60303         * lib/unictype/categ_Pi.h: Likewise.
60304         * lib/unictype/categ_Po.h: Likewise.
60305         * lib/unictype/categ_Ps.h: Likewise.
60306         * lib/unictype/categ_S.h: Likewise.
60307         * lib/unictype/categ_Sc.h: Likewise.
60308         * lib/unictype/categ_Sk.h: Likewise.
60309         * lib/unictype/categ_Sm.h: Likewise.
60310         * lib/unictype/categ_So.h: Likewise.
60311         * lib/unictype/categ_Z.h: Likewise.
60312         * lib/unictype/categ_Zl.h: Likewise.
60313         * lib/unictype/categ_Zp.h: Likewise.
60314         * lib/unictype/categ_Zs.h: Likewise.
60315         * lib/unictype/categ_of.h: Likewise.
60316         * lib/unictype/combining.h: Likewise.
60317         * lib/unictype/ctype_alnum.h: Likewise.
60318         * lib/unictype/ctype_alpha.h: Likewise.
60319         * lib/unictype/ctype_blank.h: Likewise.
60320         * lib/unictype/ctype_cntrl.h: Likewise.
60321         * lib/unictype/ctype_digit.h: Likewise.
60322         * lib/unictype/ctype_graph.h: Likewise.
60323         * lib/unictype/ctype_lower.h: Likewise.
60324         * lib/unictype/ctype_print.h: Likewise.
60325         * lib/unictype/ctype_punct.h: Likewise.
60326         * lib/unictype/ctype_space.h: Likewise.
60327         * lib/unictype/ctype_upper.h: Likewise.
60328         * lib/unictype/ctype_xdigit.h: Likewise.
60329         * lib/unictype/decdigit.h: Likewise.
60330         * lib/unictype/digit.h: Likewise.
60331         * lib/unictype/mirror.h: Likewise.
60332         * lib/unictype/numeric.h: Likewise.
60333         * lib/unictype/pr_alphabetic.h: Likewise.
60334         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60335         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60336         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60337         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60338         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60339         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60340         * lib/unictype/pr_bidi_control.h: Likewise.
60341         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60342         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60343         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60344         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60345         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60346         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60347         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60348         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60349         * lib/unictype/pr_bidi_pdf.h: Likewise.
60350         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60351         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60352         * lib/unictype/pr_combining.h: Likewise.
60353         * lib/unictype/pr_composite.h: Likewise.
60354         * lib/unictype/pr_currency_symbol.h: Likewise.
60355         * lib/unictype/pr_dash.h: Likewise.
60356         * lib/unictype/pr_decimal_digit.h: Likewise.
60357         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60358         * lib/unictype/pr_deprecated.h: Likewise.
60359         * lib/unictype/pr_diacritic.h: Likewise.
60360         * lib/unictype/pr_extender.h: Likewise.
60361         * lib/unictype/pr_format_control.h: Likewise.
60362         * lib/unictype/pr_grapheme_base.h: Likewise.
60363         * lib/unictype/pr_grapheme_extend.h: Likewise.
60364         * lib/unictype/pr_grapheme_link.h: Likewise.
60365         * lib/unictype/pr_hex_digit.h: Likewise.
60366         * lib/unictype/pr_hyphen.h: Likewise.
60367         * lib/unictype/pr_id_continue.h: Likewise.
60368         * lib/unictype/pr_id_start.h: Likewise.
60369         * lib/unictype/pr_ideographic.h: Likewise.
60370         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60371         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60372         * lib/unictype/pr_ignorable_control.h: Likewise.
60373         * lib/unictype/pr_iso_control.h: Likewise.
60374         * lib/unictype/pr_join_control.h: Likewise.
60375         * lib/unictype/pr_left_of_pair.h: Likewise.
60376         * lib/unictype/pr_line_separator.h: Likewise.
60377         * lib/unictype/pr_logical_order_exception.h: Likewise.
60378         * lib/unictype/pr_lowercase.h: Likewise.
60379         * lib/unictype/pr_math.h: Likewise.
60380         * lib/unictype/pr_non_break.h: Likewise.
60381         * lib/unictype/pr_not_a_character.h: Likewise.
60382         * lib/unictype/pr_numeric.h: Likewise.
60383         * lib/unictype/pr_other_alphabetic.h: Likewise.
60384         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60385         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60386         * lib/unictype/pr_other_id_continue.h: Likewise.
60387         * lib/unictype/pr_other_id_start.h: Likewise.
60388         * lib/unictype/pr_other_lowercase.h: Likewise.
60389         * lib/unictype/pr_other_math.h: Likewise.
60390         * lib/unictype/pr_other_uppercase.h: Likewise.
60391         * lib/unictype/pr_paired_punctuation.h: Likewise.
60392         * lib/unictype/pr_paragraph_separator.h: Likewise.
60393         * lib/unictype/pr_pattern_syntax.h: Likewise.
60394         * lib/unictype/pr_pattern_white_space.h: Likewise.
60395         * lib/unictype/pr_private_use.h: Likewise.
60396         * lib/unictype/pr_punctuation.h: Likewise.
60397         * lib/unictype/pr_quotation_mark.h: Likewise.
60398         * lib/unictype/pr_radical.h: Likewise.
60399         * lib/unictype/pr_sentence_terminal.h: Likewise.
60400         * lib/unictype/pr_soft_dotted.h: Likewise.
60401         * lib/unictype/pr_space.h: Likewise.
60402         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60403         * lib/unictype/pr_titlecase.h: Likewise.
60404         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60405         * lib/unictype/pr_unified_ideograph.h: Likewise.
60406         * lib/unictype/pr_uppercase.h: Likewise.
60407         * lib/unictype/pr_variation_selector.h: Likewise.
60408         * lib/unictype/pr_white_space.h: Likewise.
60409         * lib/unictype/pr_xid_continue.h: Likewise.
60410         * lib/unictype/pr_xid_start.h: Likewise.
60411         * lib/unictype/pr_zero_width.h: Likewise.
60412         * lib/unictype/scripts.h: Likewise.
60413         * lib/unictype/scripts_byname.gperf: Likewise.
60414         * lib/unictype/sy_c_ident.h: Likewise.
60415         * lib/unictype/sy_c_whitespace.h: Likewise.
60416         * lib/unictype/sy_java_ident.h: Likewise.
60417         * lib/unictype/sy_java_whitespace.h: Likewise.
60418
60419         * lib/unictype/Makefile: New file.
60420         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60421         glibc.
60422         * lib/unictype/3level.h: New file, copied from glibc.
60423         * lib/unictype/3levelbit.h: New file.
60424
60425 2007-11-11  Bruno Haible  <bruno@clisp.org>
60426
60427         * modules/gperf: New file.
60428         * modules/iconv_open (Depends-on): Add it.
60429         (Makefile.am): Remove the GPERF definition.
60430
60431 2007-11-11  Bruno Haible  <bruno@clisp.org>
60432
60433         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60434         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60435
60436 2007-11-11  Bruno Haible  <bruno@clisp.org>
60437
60438         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60439         (usage): Remove function.
60440
60441 2007-11-11  Bruno Haible  <bruno@clisp.org>
60442
60443         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60444         gl_FUNC_CEILF_LIBS.
60445         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60446         gl_FUNC_CEIL_LIBS.
60447         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60448         gl_FUNC_CEILL_LIBS.
60449         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60450         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60451         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60452
60453 2007-11-11  Bruno Haible  <bruno@clisp.org>
60454
60455         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60456         roundf were declared but do not exist on functions.
60457         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60458         roundl were declared but do not exist on functions.
60459         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60460         HAVE_FLOORL_AND_CEILL, respectively.
60461         Needed for Sun C on Solaris 10.
60462
60463 2007-11-11  Bruno Haible  <bruno@clisp.org>
60464
60465         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60466         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60467         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60468         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60469         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60470         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60471         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60472         HAVE_DECL_ROUNDF.
60473         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60474         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60476         of HAVE_DECL_ROUND*.
60477         * modules/math (Makefile.am): Update.
60478
60479 2007-11-10  Bruno Haible  <bruno@clisp.org>
60480
60481         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60482         ptrdiff_t as m4/intl.m4.
60483
60484 2007-11-10  Jim Meyering  <meyering@redhat.com>
60485
60486         Avoid link failure for the argmatch test.
60487         * tests/test-argmatch.c (usage): Define function to avoid a link
60488         failure: argmatch_die requires a usage function.
60489
60490 2007-11-09  Bruno Haible  <bruno@clisp.org>
60491
60492         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60493         * doc/functions/vsnprintf.texi: Likewise.
60494         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60495         with a size argument < 2.
60496
60497 2007-11-09  Bruno Haible  <bruno@clisp.org>
60498
60499         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60500         buffer. Fixes an inefficiency introduced on 2007-11-03.
60501
60502 2007-11-09  Bruno Haible  <bruno@clisp.org>
60503
60504         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60505         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60506
60507 2007-11-08  Jim Meyering  <meyering@redhat.com>
60508
60509         Change cache variable name prefix "jm_" to "gl_" everywhere.
60510         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60511         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60512         * m4/uptime.m4: s/gl_/jm_/
60513
60514 2007-11-07  Bruno Haible  <bruno@clisp.org>
60515
60516         Update to GNU gettext 0.17.
60517         * m4/intl.m4: Update to GNU gettext 0.17.
60518         * m4/po.m4: Likewise.
60519         * modules/gettext (Files): Remove m4/ulonglong.m4.
60520         (configure.ac): Require gettext infrastructure from version 0.17.
60521
60522 2007-11-06  Bruno Haible  <bruno@clisp.org>
60523
60524         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60525         symbolic values are not defined in a public header.
60526         * lib/freadable.c (freadable) [QNX]: Likewise.
60527         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60528         * lib/freading.c (freading) [QNX]: Likewise.
60529         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60530         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60531         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60532         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60533         Reported by Alain Magloire.
60534
60535         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60536
60537 2007-11-05  Bruno Haible  <bruno@clisp.org>
60538
60539         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60540         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60541         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60542         Reported by Eric Blake.
60543
60544 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60545             Bruno Haible  <bruno@clisp.org>
60546
60547         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60548         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60549         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60550         (malloc): Undefine also before including <stdlib.h>.
60551         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60552         Needed on OSF/1 4.0.
60553
60554 2007-11-05  Jim Meyering  <meyering@redhat.com>
60555
60556         git-version-gen: sync from coreutils.
60557         * build-aux/git-version-gen: Add comments.
60558         Change the first '-' to '.' in the snapshot version string,
60559         e.g., 6.9-377-08144 -> 6.9.377-08144
60560         Remove first parameter.
60561         Don't declare a version "-dirty" merely because a time
60562         stamp has changed.
60563
60564 2007-11-04  Bruno Haible  <bruno@clisp.org>
60565
60566         * lib/lock.h: Protect all macro definitions containing an 'if'
60567         statement through a "do { ... } while (0)".
60568         * lib/tls.h: Likewise.
60569
60570 2007-11-04  Bruno Haible  <bruno@clisp.org>
60571
60572         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60573
60574 2007-11-04  Bruno Haible  <bruno@clisp.org>
60575
60576         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60577         * modules/fprintf-posix (Depends-on): Add nocrash.
60578         * modules/snprintf-posix (Depends-on): Likewise.
60579         * modules/sprintf-posix (Depends-on): Likewise.
60580         * modules/vasnprintf-posix (Depends-on): Likewise.
60581         * modules/vasprintf-posix (Depends-on): Likewise.
60582         * modules/vfprintf-posix (Depends-on): Likewise.
60583         * modules/vsnprintf-posix (Depends-on): Likewise.
60584         * modules/vsprintf-posix (Depends-on): Likewise.
60585         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60586         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60587         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60588         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60589         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60590         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60591         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60592
60593 2007-11-04  Bruno Haible  <bruno@clisp.org>
60594
60595         * modules/nocrash: New file.
60596         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60597         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60598
60599 2007-11-04  Bruno Haible  <bruno@clisp.org>
60600
60601         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60602         precision handling.
60603         * tests/test-vasprintf-posix.c (test_function): Likewise.
60604         * tests/test-snprintf-posix.h (test_function): Likewise.
60605         * tests/test-sprintf-posix.h (test_function): Likewise.
60606
60607         Fix *printf behaviour for large precisions on mingw and BeOS.
60608         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60609         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60610         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60611         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60612         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60613         gl_PRINTF_PRECISION and test its result. Invoke
60614         gl_PREREQ_VASNPRINTF_PRECISION.
60615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60616         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60617         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60618         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60619         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60620         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60621         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60622         * doc/functions/fprintf.texi: Update.
60623         * doc/functions/printf.texi: Update.
60624         * doc/functions/snprintf.texi: Update.
60625         * doc/functions/sprintf.texi: Update.
60626         * doc/functions/vfprintf.texi: Update.
60627         * doc/functions/vprintf.texi: Update.
60628         * doc/functions/vsnprintf.texi: Update.
60629         * doc/functions/vsprintf.texi: Update.
60630
60631 2007-11-04  Bruno Haible  <bruno@clisp.org>
60632
60633         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60634
60635 2007-11-04  Bruno Haible  <bruno@clisp.org>
60636
60637         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60638         Reported by Sylvain Beucler <beuc@gnu.org>.
60639
60640 2007-11-03  Bruno Haible  <bruno@clisp.org>
60641
60642         * tests/test-fprintf-posix2.sh: New file.
60643         * tests/test-fprintf-posix2.c: New file.
60644         * modules/fprintf-posix-tests (Files): Add them.
60645         (TESTS): Add test-fprintf-posix2.sh.
60646         (configure.ac): Check for getrlimit and setrlimit.
60647         (check_PROGRAMS): Add test-fprintf-posix2.
60648
60649         * tests/test-printf-posix2.sh: New file.
60650         * tests/test-printf-posix2.c: New file.
60651         * modules/printf-posix-tests (Files): Add them.
60652         (TESTS): Add test-printf-posix2.sh.
60653         (configure.ac): Check for getrlimit and setrlimit.
60654         (check_PROGRAMS): Add test-printf-posix2.
60655
60656         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60657         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60658         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60659         (decode_double): New function, copied from decode_long_double.
60660         (scale10_round_decimal_decoded): New function, extracted from
60661         scale10_round_decimal_long_double.
60662         (scale10_round_decimal_long_double): Use it.
60663         (scale10_round_decimal_double): New function.
60664         (floorlog10): New function.
60665         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60666         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60667         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60668         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60669         gl_PRINTF_ENOMEM and test its result. Invoke
60670         gl_PREREQ_VASNPRINTF_ENOMEM.
60671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60672         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60673         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60674         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60675         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60676         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60677         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60678         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60679         * modules/snprintf-posix (Depends-on): Likewise.
60680         * modules/sprintf-posix (Depends-on): Likewise.
60681         * modules/vasnprintf-posix (Depends-on): Likewise.
60682         * modules/vasprintf-posix (Depends-on): Likewise.
60683         * modules/vfprintf-posix (Depends-on): Likewise.
60684         * modules/vsnprintf-posix (Depends-on): Likewise.
60685         * modules/vsprintf-posix (Depends-on): Likewise.
60686         * doc/functions/fprintf.texi: Update.
60687         * doc/functions/printf.texi: Update.
60688         * doc/functions/snprintf.texi: Update.
60689         * doc/functions/sprintf.texi: Update.
60690         * doc/functions/vfprintf.texi: Update.
60691         * doc/functions/vprintf.texi: Update.
60692         * doc/functions/vsnprintf.texi: Update.
60693         * doc/functions/vsprintf.texi: Update.
60694
60695 2007-11-03  Bruno Haible  <bruno@clisp.org>
60696
60697         * modules/frexp-nolibm-tests: New file.
60698
60699         * modules/frexp-nolibm: New file.
60700         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60701
60702 2007-11-03  Bruno Haible  <bruno@clisp.org>
60703
60704         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60705         value is C99 compliant.
60706         Needed for OSF/1 5.1.
60707
60708 2007-11-03  Bruno Haible  <bruno@clisp.org>
60709
60710         Fix out-of-memory handling of vasnprintf.
60711         * lib/printf-parse.c: Include <errno.h>.
60712         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60713         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60714         is already set.
60715
60716 2007-11-02  Eric Blake  <ebb9@byu.net>
60717
60718         Fix tests on cygwin.
60719         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60720
60721 2007-11-01  Bruno Haible  <bruno@clisp.org>
60722
60723         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60724         warning.
60725         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60726         needed for POSIX compatibility.
60727
60728 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60729
60730         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60731         for compatibility with GNU.
60732
60733 2007-11-01  Bruno Haible  <bruno@clisp.org>
60734
60735         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60736         (putenv): Renamed from rpl_putenv. Change argument type from
60737         'const char *' to 'char *'.
60738         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60739         of defining putenv in config.h, just set REPLACE_PUTENV.
60740         * modules/putenv (Depends-on): Add stdlib.
60741         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60742         (Include): Use <stdlib.h>.
60743         * lib/stdlib.in.h (putenv): New declaration.
60744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60745         REPLACE_PUTENV.
60746         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60747         REPLACE_PUTENV.
60748         Needed for MacOS X 10.5.0.
60749         Reported by Peter O'Gorman <peter@pogma.com>.
60750
60751 2007-11-01  Jim Meyering  <meyering@redhat.com>
60752
60753         Treat an empty date string exactly like "0".
60754         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60755         if the remaining date string (to be parsed) is empty, use "0".
60756         Reported by Mischa Molhoek and discussed in this thread:
60757         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60758
60759 2007-10-31  Bruno Haible  <bruno@clisp.org>
60760
60761         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60762         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60763         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60764         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60765         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60766         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60767
60768 2007-10-31  Bruno Haible  <bruno@clisp.org>
60769
60770         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60771         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60772         (AC_TYPE_LONG_LONG_INT): Use it.
60773         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60774         it as well.
60775         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60776         to m4/longlong.m4.
60777         * modules/stdint (Files): Remove m4/ulonglong.m4.
60778         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60779         m4/ulonglong.m4.
60780         * modules/strtoumax (Files): Likewise.
60781
60782 2007-10-30  Bruno Haible  <bruno@clisp.org>
60783
60784         * modules/xvasprintf-posix: New file.
60785         Suggested by Eric Blake.
60786
60787 2007-10-30  Bruno Haible  <bruno@clisp.org>
60788
60789         * modules/xprintf-posix-tests: New file.
60790         * tests/test-xprintf-posix.sh: New file.
60791         * tests/test-xprintf-posix.c: New file.
60792         * tests/test-xfprintf-posix.c: New file.
60793
60794         * modules/xprintf-posix: New file.
60795
60796 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60797
60798         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60799         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60800         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60801
60802 2007-10-29  Bruno Haible  <bruno@clisp.org>
60803
60804         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60805         contain the special marker '_cv_'.
60806         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60807         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60808         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60809         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60810         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60811         Reported by Ralf Wildenhues.
60812
60813 2007-10-29  Bruno Haible  <bruno@clisp.org>
60814
60815         * gnulib-tool (func_import): When --lgpl is not specified, set
60816         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60817         GPLv3.
60818         Reported by Simon Josefsson.
60819
60820 2007-10-28  Bruno Haible  <bruno@clisp.org>
60821
60822         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60823         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60824         HAVE_DECL_ISFINITE.
60825         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60826         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60827         HAVE_DECL_ISFINITE.
60828
60829 2007-10-28  Bruno Haible  <bruno@clisp.org>
60830
60831         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60832         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60833
60834 2007-10-28  Bruno Haible  <bruno@clisp.org>
60835
60836         Fix link errors with Sun C 5.0 on Solaris 10.
60837         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60838         function is declared but not present in the compiler's libm.
60839         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60840         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60841         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60842         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60843         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60844         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60845         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60847         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60848         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60849         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60850         HAVE_DECL_FLOORL.
60851
60852 2007-10-28  Bruno Haible  <bruno@clisp.org>
60853
60854         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60855         gl_FUNC_FLOORL. Cache the result.
60856         (gl_FUNC_FLOORL): Use it.
60857         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60858         gl_FUNC_CEILL. Cache the result.
60859         (gl_FUNC_CEILL): Use it.
60860
60861         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60862         gl_FUNC_FLOOR. Cache the result.
60863         (gl_FUNC_FLOOR): Use it.
60864         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60865         gl_FUNC_CEIL. Cache the result.
60866         (gl_FUNC_CEIL): Use it.
60867
60868         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60869         gl_FUNC_FLOORF. Cache the result.
60870         (gl_FUNC_FLOORF): Use it.
60871         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60872         gl_FUNC_CEILF. Cache the result.
60873         (gl_FUNC_CEILF): Use it.
60874
60875 2007-10-28  Bruno Haible  <bruno@clisp.org>
60876
60877         * gnulib-tool: Allow specifying the LGPL version number through
60878         --lgpl=2 or --lgpl=3.
60879         (func_usage): Document --lgpl with argument.
60880         Handle --lgpl=... arguments.
60881         (func_import): Recognize also gl_LGPL calls with an argument. When
60882         --lgpl=2 is used and the module's license is just LGPL, report an
60883         error. Set sed_transform_lib_file according to the lgpl variable. In
60884         the generated files, use --lgpl or gl_LGPL invocations with argument,
60885         if necessary.
60886         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60887         an LGPv2+ license.
60888         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60889         gl_LGPL macro.
60890
60891 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60892             Bruno Haible  <bruno@clisp.org>
60893
60894         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60895         (u16_uctomb_aux): Likewise.
60896         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60897         !HAVE_INLINE.
60898         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60899
60900 2007-10-28  Bruno Haible  <bruno@clisp.org>
60901
60902         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60903         Invoke AM_GETTEXT_OPTION if it exists.
60904         * modules/vasprintf: Likewise.
60905         * modules/verror: Likewise.
60906         * modules/xprintf: Likewise.
60907         * modules/xvasprintf: Likewise.
60908
60909 2007-10-27  Ben Pfaff  <blp@gnu.org>
60910
60911         * lib/math.in.h: Define isfinite macro and prototypes for
60912         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60913         implementations.
60914         * m4/math_h.m4: New substitutions for isfinite module.
60915         * lib/isfinite.c: New file.
60916         * m4/isfinite.m4: New file.
60917         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60918         * modules/isfinite: New file.
60919         * modules/isfinite-tests: New file.
60920         * tests/tests-isfinite.c: New file.
60921         * doc/functions/isfinite.texi: Mention isfinite module.
60922         * MODULES.html.sh: Mention new module.
60923
60924 2007-10-27  Ben Pfaff  <blp@gnu.org>
60925
60926         Ralf Wildenhues reported that Tru64 4.0D declares the round
60927         functions but does not have definitions.
60928         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60929         cannot be found in any library, set the output variable to
60930         "missing" instead of "".
60931         * m4/round.m4: Also use our substitute if we cannot find round in
60932         any library, even if it is declared.
60933         * m4/roundf.m4: Likewise for roundf.
60934         * m4/roundl.m4: Likewise for roundl.
60935         * lib/math.in.h: Undefine roundf, round, roundl before defining
60936         their replacements, to allow for hypothetical systems where these
60937         may be defined as macros but not available in libraries.
60938
60939 2007-10-27  Bruno Haible  <bruno@clisp.org>
60940
60941         * doc/gnulib.texi: Invoke @firstparagraphindent.
60942         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60943         changes in gnulib.
60944         (Source changes): New section.
60945
60946 2007-10-26  Bruno Haible  <bruno@clisp.org>
60947
60948         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60949         borrowed from autoconf.
60950
60951 2007-10-26  Bruno Haible  <bruno@clisp.org>
60952
60953         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60954         strerror returned the empty string. Needed on HP-UX 11.00.
60955
60956 2007-10-24  Micah Cowan  <micah@cowan.name>
60957
60958         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60959         * build-aux/bootstrap: Remove support for now-unnecessary option,
60960         --cvs-user, and envvars CVS_USER, CVS_RSH.
60961
60962 2007-10-24  Jim Meyering  <meyering@redhat.com>
60963
60964         Avoid diagnostics from sha1sum when there is no cached checksum.
60965         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60966         if the po.s1 file hasn't been created yet.
60967
60968         * build-aux/bootstrap: Sync from coreutils:
60969         2007-10-24  Jim Meyering  <meyering@redhat.com>
60970         Get gnulib from the git repository, not from an obsolete cvs one.
60971         * build-aux/bootstrap: Suggestion from Micah Cowan.
60972         2007-10-04  Jim Meyering  <jim@meyering.net>
60973         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60974         (update_po_files): Work also when there are no .po files in po/.
60975
60976 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60977
60978         * README: Append ".git" to git and cg examples.
60979         Problem reported by Benoit Sigoure.
60980
60981 2007-10-23  Micah Cowan  <micah@cowan.name>
60982
60983         * users.txt: Add wget.
60984
60985 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60986
60987         Fix linking of some unistdio tests on FreeBSD.
60988         * modules/unistdio/u16-vsnprintf-tests
60989         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60990         * modules/unistdio/u16-vsprintf-tests
60991         (test_u16_vsnprintf1_LDADD): Likewise.
60992         * modules/unistdio/u32-vsnprintf-tests
60993         (test_u32_vsnprintf1_LDADD): Likewise.
60994         * modules/unistdio/u32-vsprintf-tests
60995         (test_u32_vsprintf1_LDADD): Likewise.
60996         * modules/unistdio/u8-vsnprintf-tests
60997         (test_u8_vsnprintf1_LDADD): Likewise.
60998         * modules/unistdio/u8-vsprintf-tests
60999         (test_u8_vsprintf1_LDADD): Likewise.
61000         * modules/unistdio/ulc-vsnprintf-tests
61001         (test_ulc_vsnprintf1_LDADD): Likewise.
61002         * modules/unistdio/ulc-vsprintf-tests
61003         (test_ulc_vsprintf1_LDADD): Likewise.
61004
61005         Fix linking of some uniconv tests on FreeBSD.
61006         * modules/uniconv/u16-conv-from-enc-tests
61007         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
61008         * modules/uniconv/u16-conv-to-enc-tests
61009         (test_u16_conv_to_enc_LDADD): Likewise.
61010         * modules/uniconv/u16-strconv-from-enc-tests
61011         (test_u16_strconv_from_enc_LDADD): Likewise.
61012         * modules/uniconv/u16-strconv-to-enc-tests
61013         (test_u16_strconv_to_enc_LDADD): Likewise.
61014         * modules/uniconv/u32-conv-from-enc-tests
61015         (test_u32_conv_from_enc_LDADD): Likewise.
61016         * modules/uniconv/u32-conv-to-enc-tests
61017         (test_u32_conv_to_enc_LDADD): Likewise.
61018         * modules/uniconv/u32-strconv-from-enc-tests
61019         (test_u32_strconv_from_enc_LDADD): Likewise.
61020         * modules/uniconv/u32-strconv-to-enc-tests
61021         (test_u32_strconv_to_enc_LDADD): Likewise.
61022         * modules/uniconv/u8-conv-from-enc-tests
61023         (test_u8_conv_from_enc_LDADD): Likewise.
61024         * modules/uniconv/u8-conv-to-enc-tests
61025         (test_u8_conv_to_enc_LDADD): Likewise.
61026         * modules/uniconv/u8-strconv-from-enc-tests
61027         (test_u8_strconv_from_enc_LDADD): Likewise.
61028         * modules/uniconv/u8-strconv-to-enc-tests
61029         (test_u8_strconv_to_enc_LDADD): Likewise.
61030
61031 2007-10-22  Bruno Haible  <bruno@clisp.org>
61032
61033         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
61034         size.
61035
61036 2007-10-22  Eric Blake  <ebb9@byu.net>
61037
61038         Tweak x*printf documentation.
61039         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
61040         variable name and comments.
61041         Suggested by Bruno Haible.
61042
61043 2007-10-22  Bruno Haible  <bruno@clisp.org>
61044
61045         * lib/acl.c (copy_acl): Fix file name in comment.
61046
61047 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61048
61049         Fix Tru64 problem with stdbool.h.
61050         * lib/stdbool.in.h (false, true):
61051         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
61052         Don't declare as an enum in this situation; it runs afoul of Tru64.
61053         Problem reported by Steven M. Schweda in
61054         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
61055
61056 2007-10-22  Eric Blake  <ebb9@byu.net>
61057
61058         Also wrap vf?printf.
61059         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
61060         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
61061         (xvprintf, xvfprintf): New functions.
61062
61063 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61064
61065         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
61066         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
61067
61068         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
61069         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
61070
61071 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
61072
61073         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
61074         by Bruno Haible.
61075
61076 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61077
61078         * lib/getloadavg.c
61079         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
61080         Undef `sys' after including sys/table.h, for Tru64 4.0D.
61081
61082         * tests/test-i-ring.c: Work for C89.
61083
61084 2007-10-22  Bruno Haible  <bruno@clisp.org>
61085
61086         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
61087         -1u, in preprocessor expression, so that we don't test for the bug
61088         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
61089         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
61090
61091 2007-10-22  Eric Blake  <ebb9@byu.net>
61092
61093         * tests/test-yesno.sh: Silence stderr during test.
61094
61095 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61096
61097         * modules/crypto/gc-camellia: New file.
61098
61099         * m4/gc-camellia.m4: New file.
61100
61101         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
61102
61103         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
61104
61105 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61106
61107         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
61108         --help to stdout.  Reported by sms@antinode.org (Steven
61109         M. Schweda).
61110
61111 2007-10-22  Simon Josefsson  <simon@josefsson.org>
61112
61113         * users.txt: Fix link to libksba.
61114
61115 2007-10-21  Ben Pfaff  <blp@gnu.org>
61116
61117         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
61118         round.c roundf implementation that depends on floorf and ceilf to
61119         be tested unconditionally.
61120
61121 2007-10-21  Ben Pfaff  <blp@gnu.org>
61122
61123         * m4/check-libm-func.m4: Removed.
61124         * m4/check-math-lib.m4: New file.
61125         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
61126         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
61127         definition and lack of AC_LIBOBJ([roundf]).
61128         * m4/roundl.m4: Ditto, and similarly for roundl.
61129         * modules/round: Reference new m4 file.
61130         * modules/roundf: Ditto.
61131         * modules/roundl: Ditto.
61132         * tests/test-round2.c (main): Use ROUND instead of round.
61133         Bug report from Bruno Haible.
61134
61135 2007-10-21  Bruno Haible  <bruno@clisp.org>
61136
61137         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
61138         context.
61139
61140 2007-10-21  Bruno Haible  <bruno@clisp.org>
61141
61142         * tests/test-wcwidth.c (main): Allow negative result for some control
61143         characters.
61144
61145         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
61146         Needed on OSF/1 5.1.
61147
61148 2007-10-21  Bruno Haible  <bruno@clisp.org>
61149
61150         * tests/test-floorf1.c: Include isnanf.h.
61151         (main): Use isnanf() instead of isnan().
61152         * tests/test-ceilf1.c: Include isnanf.h.
61153         (main): Use isnanf() instead of isnan().
61154         * tests/test-truncf1.c: Include isnanf.h.
61155         (main): Use isnanf() instead of isnan().
61156         * tests/test-roundf1.c: Include isnanf.h.
61157         (main): Use isnanf() instead of isnan().
61158
61159 2007-10-21  Eric Blake  <ebb9@byu.net>
61160
61161         * users.txt: Update URL for m4.
61162
61163 2007-10-21  Bruno Haible  <bruno@clisp.org>
61164
61165         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
61166
61167 2007-10-21  Bruno Haible  <bruno@clisp.org>
61168
61169         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
61170         Git's management files if the CVS files are not present.
61171
61172 2007-10-20  Bruno Haible  <bruno@clisp.org>
61173
61174         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
61175         gcc-3.4.x.
61176
61177 2007-10-20  Ben Pfaff  <blp@gnu.org>
61178
61179         * lib/math.in.h: Declare round, roundf, roundl if we are providing
61180         implementations.
61181         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
61182         * lib/round.c: New file.
61183         * lib/roundf.c: New file.
61184         * lib/roundl.c: New file.
61185         * m4/round.m4: New file.
61186         * m4/roundf.m4: New file.
61187         * m4/roundl.m4: New file.
61188         * m4/check-libm-func-m4: New file.
61189         * modules/math: Replace round, roundf, roundl related @VARS@ in
61190         math.in.h.
61191         * modules/round: New file.
61192         * modules/round-tests: New file.
61193         * modules/roundf: New file.
61194         * modules/roundf-tests: New file.
61195         * modules/roundl: New file.
61196         * modules/roundl-tests: New file.
61197         * tests/test-round1.c: New file.
61198         * tests/test-round2.c: New file.
61199         * tests/test-roundf1.c: New file.
61200         * tests/test-roundf2.c: New file.
61201         * tests/test-roundl.c: New file.
61202         * doc/functions/round.texi: Mention round module.
61203         * doc/functions/roundf.texi: Mention roundf module.
61204         * doc/functions/roundl.texi: Mention roundl module.
61205         * MODULES.html.sh: Mention new modules.
61206         Thanks to Bruno Haible for suggestions.
61207
61208 2007-10-20  Jim Meyering  <meyering@redhat.com>
61209
61210         * lib/xprintf.c: Include <config.h> unconditionally.
61211
61212         Change xprintf's license to GPL.
61213         * modules/xprintf (License): s/LGPL/GPL/, since this module
61214         depends on modules (exit and exitfail) which are GPL.
61215         Suggestion from Bruno Haible.
61216
61217         xprintf fixes.
61218         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
61219         Use a clearer diagnostic.
61220         Patch from Bruno Haible.
61221
61222 2007-10-20  Bruno Haible  <bruno@clisp.org>
61223
61224         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
61225         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
61226         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61227
61228 2007-10-20  Bruno Haible  <bruno@clisp.org>
61229
61230         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
61231         precision in the comparison result > x - 1 or similar.
61232         * tests/test-ceilf2.c (correct_result_p): Likewise.
61233         * tests/test-truncf2.c (correct_result_p): Likewise.
61234         * tests/test-trunc2.c (correct_result_p): Likewise.
61235         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61236
61237 2007-10-20  Bruno Haible  <bruno@clisp.org>
61238
61239         * modules/ceil: New file.
61240         * m4/ceil.m4: New file.
61241         * doc/functions/ceil.texi: Mention the 'ceil' module.
61242
61243 2007-10-20  Bruno Haible  <bruno@clisp.org>
61244
61245         * modules/floor: New file.
61246         * m4/floor.m4: New file.
61247         * doc/functions/floor.texi: Mention the 'floor' module.
61248
61249 2007-10-20  Bruno Haible  <bruno@clisp.org>
61250
61251         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
61252         of %a.
61253         * modules/floorf-tests (Depends-on): Likewise.
61254         * modules/truncf-tests (Depends-on): Likewise.
61255         * modules/trunc-tests (Depends-on): Likewise.
61256         Reported by Ben Pfaff.
61257
61258 2007-10-19  Jim Meyering  <meyering@redhat.com>
61259
61260         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
61261         Don't bother testing specific errno values.  Just test ferror.
61262
61263         New module: xprintf
61264         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
61265
61266 2007-10-19  Bruno Haible  <bruno@clisp.org>
61267
61268         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
61269         syntax.
61270         * modules/javaexec (Makefile.am): Likewise.
61271         * modules/relocatable-prog (Makefile.am): Likewise.
61272         Suggested by Jim Meyering.
61273
61274 2007-10-18  Bruno Haible  <bruno@clisp.org>
61275
61276         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
61277         Reported by Jim Meyering.
61278
61279 2007-10-18  Eric Blake  <ebb9@byu.net>
61280
61281         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
61282
61283 2007-10-18  Bruno Haible  <bruno@clisp.org>
61284
61285         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
61286         the format string into writable memory. Needed in Fortify conditions.
61287
61288 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
61289             Bruno Haible  <bruno@clisp.org>
61290
61291         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
61292         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
61293         * modules/trim (Depends-on): Add mbchar.
61294         (configure.ac): Add gl_FUNC_MBRTOWC.
61295         (Makefile.am): Augment lib_SOURCES.
61296
61297 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
61298
61299         Modify glob.c to use fstatat and dirfd, to simplify it.
61300         Suggested by Eric Blake.
61301         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
61302         Don't include <stdbool.h>; not used.
61303         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
61304         (link_exists_p): Simplify implementation, since we can now assume
61305         dirfd and fstatat.
61306         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
61307
61308 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61309
61310         * gnulib-tool (func_get_dependencies): Fix sed script to
61311         match only tests.
61312
61313 2007-10-17  Bruno Haible  <bruno@clisp.org>
61314
61315         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61316         allow locale names without encoding suffix.
61317         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61318         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61319
61320 2007-10-16  Bruno Haible  <bruno@clisp.org>
61321
61322         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61323         * lib/getgroups.c (getgroups): Likewise.
61324         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61325
61326 2007-10-16  Bruno Haible  <bruno@clisp.org>
61327
61328         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61329         * modules/malloc-posix (License): Likewise.
61330         * modules/realloc-posix (License): Likewise.
61331         * modules/calloc-posix (License): Likewise.
61332         * modules/intprops (License): Change from GPL to LGPL, with
61333         Paul Eggert's approval.
61334
61335 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61336
61337         Merge glibc changes into lib/glob.c.
61338
61339         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61340         2007-10-15 04:59:03 UTC.  Here are the changes:
61341
61342         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61343
61344         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61345
61346         * lib/glob.c: Add some branch prediction throughout.
61347
61348         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61349
61350         [BZ #5103]
61351         * lib/glob.c (glob): Recognize patterns starting \/.
61352
61353         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61354
61355         [BZ #3996]
61356         * lib/glob.c (attribute_hidden): Define if not defined.
61357         (glob): Unescape dirname, filename or username when needed and not
61358         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61359         is NULL.  Handle unescaped [ in pattern without closing ].
61360         Don't pass GLOB_CHECK down to recursive glob for directories.
61361         (__glob_pattern_type): New function.
61362         (__glob_pattern_p): Implement using __glob_pattern_type.
61363         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61364         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61365         Remove unreachable code.
61366
61367         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61368
61369         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61370         explain why there are no leaks.
61371
61372         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61373
61374         [BZ #3253]
61375         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61376         time, rather allocate increasingly bigger arrays of pointers, if
61377         possible with alloca, if too large with malloc.
61378
61379 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61380
61381         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61382         Problem reported by H.Merijn Brand in
61383         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61384         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61385         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61386
61387 2007-10-15  Bruno Haible  <bruno@clisp.org>
61388
61389         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61390         with explicit rpl_ prefix.
61391         * lib/fopen.c (fopen): Likewise.
61392         * lib/freopen.c (freopen): Likewise.
61393         * lib/iconv.c (iconv): Likewise.
61394         * lib/iconv_close.c (iconv_close): Likewise.
61395
61396 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61397
61398         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61399
61400 2007-10-15  Bruno Haible  <bruno@clisp.org>
61401
61402         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61403         <stddef.h> instead of <stdlib.h> since we only need NULL.
61404         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61405
61406 2007-10-15  Bruno Haible  <bruno@clisp.org>
61407
61408         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61409         Replace paragraph talking about LIBOBJS.
61410         Reported by Colin Watson <cjwatson@debian.org>.
61411
61412 2007-10-15  Bruno Haible  <bruno@clisp.org>
61413
61414         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61415         <stdlib.h> before using NULL.
61416
61417 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61418
61419         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61420         Reported by Albert Chin <china@thewrittenword.com>.
61421
61422 2007-10-14  Bruno Haible  <bruno@clisp.org>
61423
61424         * modules/iconv_open-utf-tests: New file.
61425         * tests/test-iconv-utf.c: New file.
61426
61427         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61428         * modules/iconv_open-utf: New file.
61429         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61430         (iconv, iconv_close): New declarations.
61431         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61432         be defined.
61433         (iconv_open): Add special handling of conversion between UTF-8 and
61434         UTF-{16,32}{BE,LE}.
61435         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61436         * lib/iconv_close.c: New file.
61437         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61438         gl_FUNC_ICONV_OPEN.
61439         (gl_FUNC_ICONV_OPEN): Use it.
61440         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61441         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61442         and REPLACE_ICONV_UTF.
61443         * modules/iconv_open (Depends-on): Add c-strcase.
61444         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61445         ICONV_CONST.
61446         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61447
61448 2007-10-13  Albert Chin  <china@thewrittenword.com>
61449             Bruno Haible  <bruno@clisp.org>
61450
61451         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61452         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61453
61454 2007-10-13  Bruno Haible  <bruno@clisp.org>
61455
61456         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61457         defined, use the ISO C99 inline semantics.
61458         * lib/argp.h (ARGP_EI): Likewise.
61459
61460 2007-10-13  Bruno Haible  <bruno@clisp.org>
61461
61462         Handle 'inline' change in gcc 4.3.0.
61463         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61464         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61465         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61466         argp_fmtstream_point): Disable 'extern' declaration if the function
61467         definition is going to be provided inline.
61468         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61469         semantics, not the ISO C99 inline semantics.
61470         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61471         'extern' declaration if the function definition is going to be provided
61472         inline.
61473         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61474         the GNU C inline semantics, not the ISO C99 inline semantics. With
61475         GCC 4.2, avoid a warning.
61476
61477 2007-10-13  Bruno Haible  <bruno@clisp.org>
61478
61479         * lib/freading.h (freading): Enable the use of __freading for
61480         glibc >= 2.7.
61481         * lib/freading.c (freading): Likewise.
61482
61483 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61484
61485         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61486         "warning: C99 inline functions are not supported; using GNU89".
61487
61488 2007-10-12  Bruno Haible  <bruno@clisp.org>
61489
61490         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61491         of 2.
61492         * tests/test-ceilf2.c: New file.
61493         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61494
61495         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61496         * modules/ceilf-tests: Update.
61497
61498 2007-10-12  Bruno Haible  <bruno@clisp.org>
61499
61500         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61501         of 2.
61502         * tests/test-floorf2.c: New file.
61503         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61504
61505         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61506         * modules/floorf-tests: Update.
61507
61508 2007-10-12  Bruno Haible  <bruno@clisp.org>
61509
61510         * tests/test-trunc2.c: New file.
61511         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61512
61513         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61514         * modules/trunc-tests: Update.
61515
61516 2007-10-12  Bruno Haible  <bruno@clisp.org>
61517
61518         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61519         of 2.
61520         * tests/test-truncf2.c: New file.
61521         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61522
61523         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61524         * modules/truncf-tests: Update.
61525
61526 2007-10-11  Eric Blake  <ebb9@byu.net>
61527
61528         Don't claim strerror is broken on Interix.
61529         * doc/functions/strerror.texi (strerror): Known broken systems are
61530         now Solaris 8, and not Interix.
61531         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61532         Interix on cross-compile.
61533         Reported by Martin Koeppe in
61534         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61535
61536 2007-10-11  Bruno Haible  <bruno@clisp.org>
61537
61538         * modules/i-ring-tests: New file.
61539         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61540         instead of assert.
61541
61542 2007-10-11  Bruno Haible  <bruno@clisp.org>
61543
61544         * modules/filenamecat-tests: New file.
61545         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61546         * lib/filenamecat.c: Remove test code.
61547
61548 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61549
61550         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61551
61552         * lib/strerror.c: Include <string.h> always, to test interface,
61553         and to remove the need for the dummy.
61554         Include intprops.h to compute width instead of doing it ourselves
61555         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61556         (strerror): Define it to return NULL if there's no system strerror.
61557         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61558         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61559         ancient pre-strerror Unix systems well any more.  Saying "unknown
61560         system error" is enough.
61561         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61562         simpler strerror.c implementation.
61563         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61564         Simplify the tests to reflect the simpler strerror implementation.
61565         * modules/strerror (Depends-on): Add intprops.
61566
61567 2007-10-09  Eric Blake  <ebb9@byu.net>
61568
61569         Silence test-fpending.
61570         * modules/fpending-tests (Files): Add wrapper script.
61571         * tests/test-fpending.sh: New file.
61572
61573 2007-10-09  Bruno Haible  <bruno@clisp.org>
61574
61575         * MODULES.html.sh (func_module): Don't create a hyperlink for
61576         function names like 'printf_frexp'.
61577         (Misc): Add crc, memxor.
61578         (Characteristics of floating types): New section.
61579         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61580         isnanf-nolibm, signbit, trunc, truncf, truncl.
61581         (Enhancements for ISO C 99 functions): New subsection Input/output.
61582         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61583         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61584         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61585         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61586         (Enhancements for POSIX:2001 functions): Add chdir-long.
61587         (File system functions): Add areadlink, chdir-safer, read-file.
61588         Remove cycle-check.
61589         (File system as inode set): New section.
61590         (Date and time): Add gethrxtime.
61591         (Multithreading): Add openmp.
61592         (Internationalization functions): Add localename.
61593         (Unicode string functions): Add unistr/u*-mbsnlen.
61594         (Support for maintaining and releasing projects): Add git-version-gen.
61595         (Lone files): Remove directories.
61596
61597 2007-10-08  Ben Pfaff  <blp@gnu.org>
61598
61599         * lib/xmalloca.h: Fix typo in comment.
61600
61601 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61602
61603         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61604         when avoiding problems with integer overflow.  Use a portable test
61605         instead.
61606
61607 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61608
61609         * modules/dummy (License): Change to LGPLv2+.
61610         * modules/float (License): Likewise
61611         * modules/realloc (License): Likewise
61612         * modules/stdlib (License): Likewise
61613
61614 2007-10-07  Bruno Haible  <bruno@clisp.org>
61615
61616         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61617         * floor.c (TWO_MANT_DIG): Likewise.
61618         * ceil.c (TWO_MANT_DIG): Likewise.
61619         Reported by Ben Pfaff.
61620
61621 2007-10-07  Bruno Haible  <bruno@clisp.org>
61622
61623         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61624         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61625         * lib/frexp.c (FUNC): Likewise.
61626         * lib/printf-frexp.h (printf_frexp): Likewise.
61627         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61628         * lib/printf-frexp.c (FUNC): Likewise.
61629         Suggested by Jim Meyering.
61630
61631 2007-10-07  Jim Meyering  <meyering@redhat.com>
61632
61633         Make xnanosleep's integer overflow test more robust.
61634         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61635         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61636
61637 2007-10-07  Bruno Haible  <bruno@clisp.org>
61638
61639         * NEWS: Mention the license change.
61640
61641         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61642         abbreviations in the modules files.
61643
61644         Change copyright notice from GPLv2+ to GPLv3+.
61645         * README: Change copyright notice.
61646         * MODULES.html.sh: Likewise.
61647         * build-aux/bootstrap.conf: Likewise.
61648         * build-aux/config.libpath: Likewise.
61649         * build-aux/csharpcomp.sh.in: Likewise.
61650         * build-aux/csharpexec.sh.in: Likewise.
61651         * build-aux/install-reloc: Likewise.
61652         * build-aux/javacomp.sh.in: Likewise.
61653         * build-aux/javaexec.sh.in: Likewise.
61654         * build-aux/ldd.sh.in: Likewise.
61655         * build-aux/reloc-ldflags: Likewise.
61656         * build-aux/relocatable.sh.in: Likewise.
61657         * build-aux/x-to-1.in: Likewise.
61658         * check-module: Likewise.
61659         * config/srclistvars.sh: Likewise.
61660         * gnulib-tool: Likewise.
61661         * lib/acl-internal.h: Likewise.
61662         * lib/acl.c: Likewise.
61663         * lib/acl.h: Likewise.
61664         * lib/acl_entries.c: Likewise.
61665         * lib/areadlink-with-size.c: Likewise.
61666         * lib/areadlink.c: Likewise.
61667         * lib/areadlink.h: Likewise.
61668         * lib/argmatch.c: Likewise.
61669         * lib/argmatch.h: Likewise.
61670         * lib/argp-ba.c: Likewise.
61671         * lib/argp-eexst.c: Likewise.
61672         * lib/argp-fmtstream.c: Likewise.
61673         * lib/argp-fmtstream.h: Likewise.
61674         * lib/argp-fs-xinl.c: Likewise.
61675         * lib/argp-help.c: Likewise.
61676         * lib/argp-namefrob.h: Likewise.
61677         * lib/argp-parse.c: Likewise.
61678         * lib/argp-pin.c: Likewise.
61679         * lib/argp-pv.c: Likewise.
61680         * lib/argp-pvh.c: Likewise.
61681         * lib/argp-xinl.c: Likewise.
61682         * lib/argp.h: Likewise.
61683         * lib/at-func.c: Likewise.
61684         * lib/atanl.c: Likewise.
61685         * lib/backupfile.c: Likewise.
61686         * lib/backupfile.h: Likewise.
61687         * lib/basename.c: Likewise.
61688         * lib/binary-io.h: Likewise.
61689         * lib/byteswap.in.h: Likewise.
61690         * lib/c-stack.c: Likewise.
61691         * lib/c-stack.h: Likewise.
61692         * lib/c-strcasestr.c: Likewise.
61693         * lib/c-strcasestr.h: Likewise.
61694         * lib/c-strstr.c: Likewise.
61695         * lib/c-strstr.h: Likewise.
61696         * lib/c-strtod.c: Likewise.
61697         * lib/calloc.c: Likewise.
61698         * lib/canon-host.c: Likewise.
61699         * lib/canon-host.h: Likewise.
61700         * lib/canonicalize-lgpl.c: Likewise.
61701         * lib/canonicalize.c: Likewise.
61702         * lib/canonicalize.h: Likewise.
61703         * lib/ceil.c: Likewise.
61704         * lib/ceilf.c: Likewise.
61705         * lib/ceill.c: Likewise.
61706         * lib/chdir-long.c: Likewise.
61707         * lib/chdir-long.h: Likewise.
61708         * lib/chdir-safer.c: Likewise.
61709         * lib/chdir-safer.h: Likewise.
61710         * lib/chown.c: Likewise.
61711         * lib/classpath.c: Likewise.
61712         * lib/classpath.h: Likewise.
61713         * lib/clean-temp.c: Likewise.
61714         * lib/clean-temp.h: Likewise.
61715         * lib/cloexec.c: Likewise.
61716         * lib/close-stream.c: Likewise.
61717         * lib/closein.c: Likewise.
61718         * lib/closein.h: Likewise.
61719         * lib/closeout.c: Likewise.
61720         * lib/closeout.h: Likewise.
61721         * lib/concat-filename.c: Likewise.
61722         * lib/copy-file.c: Likewise.
61723         * lib/copy-file.h: Likewise.
61724         * lib/count-one-bits.h: Likewise.
61725         * lib/crc.c: Likewise.
61726         * lib/crc.h: Likewise.
61727         * lib/creat-safer.c: Likewise.
61728         * lib/csharpcomp.c: Likewise.
61729         * lib/csharpcomp.h: Likewise.
61730         * lib/csharpexec.c: Likewise.
61731         * lib/csharpexec.h: Likewise.
61732         * lib/cycle-check.c: Likewise.
61733         * lib/cycle-check.h: Likewise.
61734         * lib/diacrit.c: Likewise.
61735         * lib/diacrit.h: Likewise.
61736         * lib/diffseq.h: Likewise.
61737         * lib/dirchownmod.c: Likewise.
61738         * lib/dirent.in.h: Likewise.
61739         * lib/dirfd.c: Likewise.
61740         * lib/dirfd.h: Likewise.
61741         * lib/dirname.c: Likewise.
61742         * lib/dirname.h: Likewise.
61743         * lib/dummy.c: Likewise.
61744         * lib/dup-safer.c: Likewise.
61745         * lib/dup2.c: Likewise.
61746         * lib/eealloc.h: Likewise.
61747         * lib/error.c: Likewise.
61748         * lib/error.h: Likewise.
61749         * lib/euidaccess.c: Likewise.
61750         * lib/exclude.c: Likewise.
61751         * lib/exclude.h: Likewise.
61752         * lib/execute.c: Likewise.
61753         * lib/execute.h: Likewise.
61754         * lib/exitfail.c: Likewise.
61755         * lib/exitfail.h: Likewise.
61756         * lib/expl.c: Likewise.
61757         * lib/fatal-signal.c: Likewise.
61758         * lib/fatal-signal.h: Likewise.
61759         * lib/fbufmode.c: Likewise.
61760         * lib/fbufmode.h: Likewise.
61761         * lib/fchdir.c: Likewise.
61762         * lib/fchmodat.c: Likewise.
61763         * lib/fchownat.c: Likewise.
61764         * lib/fcntl--.h: Likewise.
61765         * lib/fcntl-safer.h: Likewise.
61766         * lib/fcntl.in.h: Likewise.
61767         * lib/fd-safer.c: Likewise.
61768         * lib/fflush.c: Likewise.
61769         * lib/file-has-acl.c: Likewise.
61770         * lib/file-set.c: Likewise.
61771         * lib/file-type.c: Likewise.
61772         * lib/file-type.h: Likewise.
61773         * lib/fileblocks.c: Likewise.
61774         * lib/filemode.c: Likewise.
61775         * lib/filemode.h: Likewise.
61776         * lib/filename.h: Likewise.
61777         * lib/filenamecat.c: Likewise.
61778         * lib/filenamecat.h: Likewise.
61779         * lib/findprog.c: Likewise.
61780         * lib/findprog.h: Likewise.
61781         * lib/float.in.h: Likewise.
61782         * lib/floor.c: Likewise.
61783         * lib/floorf.c: Likewise.
61784         * lib/floorl.c: Likewise.
61785         * lib/fopen-safer.c: Likewise.
61786         * lib/fopen.c: Likewise.
61787         * lib/fpending.c: Likewise.
61788         * lib/fpending.h: Likewise.
61789         * lib/fprintf.c: Likewise.
61790         * lib/fprintftime.h: Likewise.
61791         * lib/fpucw.h: Likewise.
61792         * lib/fpurge.c: Likewise.
61793         * lib/fpurge.h: Likewise.
61794         * lib/freadable.c: Likewise.
61795         * lib/freadable.h: Likewise.
61796         * lib/freadahead.c: Likewise.
61797         * lib/freadahead.h: Likewise.
61798         * lib/freading.c: Likewise.
61799         * lib/freading.h: Likewise.
61800         * lib/free.c: Likewise.
61801         * lib/freopen.c: Likewise.
61802         * lib/frexp.c: Likewise.
61803         * lib/frexpl.c: Likewise.
61804         * lib/fseek.c: Likewise.
61805         * lib/fseterr.c: Likewise.
61806         * lib/fseterr.h: Likewise.
61807         * lib/fstatat.c: Likewise.
61808         * lib/fstrcmp.c: Likewise.
61809         * lib/fstrcmp.h: Likewise.
61810         * lib/fsusage.c: Likewise.
61811         * lib/fsusage.h: Likewise.
61812         * lib/ftell.c: Likewise.
61813         * lib/ftello.c: Likewise.
61814         * lib/fts-cycle.c: Likewise.
61815         * lib/fts.c: Likewise.
61816         * lib/fts_.h: Likewise.
61817         * lib/full-read.c: Likewise.
61818         * lib/full-read.h: Likewise.
61819         * lib/full-write.c: Likewise.
61820         * lib/full-write.h: Likewise.
61821         * lib/fwritable.c: Likewise.
61822         * lib/fwritable.h: Likewise.
61823         * lib/fwriteerror.c: Likewise.
61824         * lib/fwriteerror.h: Likewise.
61825         * lib/fwriting.c: Likewise.
61826         * lib/fwriting.h: Likewise.
61827         * lib/gcd.c: Likewise.
61828         * lib/gcd.h: Likewise.
61829         * lib/getcwd.c: Likewise.
61830         * lib/getdate.h: Likewise.
61831         * lib/getdate.y: Likewise.
61832         * lib/getdomainname.c: Likewise.
61833         * lib/getdomainname.h: Likewise.
61834         * lib/getgroups.c: Likewise.
61835         * lib/gethostname.c: Likewise.
61836         * lib/gethrxtime.c: Likewise.
61837         * lib/gethrxtime.h: Likewise.
61838         * lib/getloadavg.c: Likewise.
61839         * lib/getndelim2.c: Likewise.
61840         * lib/getndelim2.h: Likewise.
61841         * lib/getnline.c: Likewise.
61842         * lib/getnline.h: Likewise.
61843         * lib/getopt.c: Likewise.
61844         * lib/getopt.in.h: Likewise.
61845         * lib/getopt1.c: Likewise.
61846         * lib/getopt_int.h: Likewise.
61847         * lib/getpagesize.h: Likewise.
61848         * lib/getsubopt.c: Likewise.
61849         * lib/gettime.c: Likewise.
61850         * lib/getugroups.c: Likewise.
61851         * lib/getugroups.h: Likewise.
61852         * lib/getusershell.c: Likewise.
61853         * lib/gl_anyavltree_list1.h: Likewise.
61854         * lib/gl_anyavltree_list2.h: Likewise.
61855         * lib/gl_anyhash_list1.h: Likewise.
61856         * lib/gl_anyhash_list2.h: Likewise.
61857         * lib/gl_anylinked_list1.h: Likewise.
61858         * lib/gl_anylinked_list2.h: Likewise.
61859         * lib/gl_anyrbtree_list1.h: Likewise.
61860         * lib/gl_anyrbtree_list2.h: Likewise.
61861         * lib/gl_anytree_list1.h: Likewise.
61862         * lib/gl_anytree_list2.h: Likewise.
61863         * lib/gl_anytree_oset.h: Likewise.
61864         * lib/gl_anytreehash_list1.h: Likewise.
61865         * lib/gl_anytreehash_list2.h: Likewise.
61866         * lib/gl_array_list.c: Likewise.
61867         * lib/gl_array_list.h: Likewise.
61868         * lib/gl_array_oset.c: Likewise.
61869         * lib/gl_array_oset.h: Likewise.
61870         * lib/gl_avltree_list.c: Likewise.
61871         * lib/gl_avltree_list.h: Likewise.
61872         * lib/gl_avltree_oset.c: Likewise.
61873         * lib/gl_avltree_oset.h: Likewise.
61874         * lib/gl_avltreehash_list.c: Likewise.
61875         * lib/gl_avltreehash_list.h: Likewise.
61876         * lib/gl_carray_list.c: Likewise.
61877         * lib/gl_carray_list.h: Likewise.
61878         * lib/gl_linked_list.c: Likewise.
61879         * lib/gl_linked_list.h: Likewise.
61880         * lib/gl_linkedhash_list.c: Likewise.
61881         * lib/gl_linkedhash_list.h: Likewise.
61882         * lib/gl_list.c: Likewise.
61883         * lib/gl_list.h: Likewise.
61884         * lib/gl_oset.c: Likewise.
61885         * lib/gl_oset.h: Likewise.
61886         * lib/gl_rbtree_list.c: Likewise.
61887         * lib/gl_rbtree_list.h: Likewise.
61888         * lib/gl_rbtree_oset.c: Likewise.
61889         * lib/gl_rbtree_oset.h: Likewise.
61890         * lib/gl_rbtreehash_list.c: Likewise.
61891         * lib/gl_rbtreehash_list.h: Likewise.
61892         * lib/gl_sublist.c: Likewise.
61893         * lib/gl_sublist.h: Likewise.
61894         * lib/group-member.c: Likewise.
61895         * lib/group-member.h: Likewise.
61896         * lib/hard-locale.c: Likewise.
61897         * lib/hard-locale.h: Likewise.
61898         * lib/hash-pjw.c: Likewise.
61899         * lib/hash-pjw.h: Likewise.
61900         * lib/hash-triple.c: Likewise.
61901         * lib/hash.c: Likewise.
61902         * lib/hash.h: Likewise.
61903         * lib/human.c: Likewise.
61904         * lib/human.h: Likewise.
61905         * lib/i-ring.c: Likewise.
61906         * lib/i-ring.h: Likewise.
61907         * lib/idcache.c: Likewise.
61908         * lib/imaxabs.c: Likewise.
61909         * lib/imaxdiv.c: Likewise.
61910         * lib/inet_pton.c: Likewise.
61911         * lib/inet_pton.h: Likewise.
61912         * lib/intprops.h: Likewise.
61913         * lib/inttostr.c: Likewise.
61914         * lib/inttostr.h: Likewise.
61915         * lib/inttypes.in.h: Likewise.
61916         * lib/isapipe.c: Likewise.
61917         * lib/isdir.c: Likewise.
61918         * lib/isnan.c: Likewise.
61919         * lib/isnan.h: Likewise.
61920         * lib/isnanf.c: Likewise.
61921         * lib/isnanf.h: Likewise.
61922         * lib/isnanl-nolibm.h: Likewise.
61923         * lib/isnanl.c: Likewise.
61924         * lib/isnanl.h: Likewise.
61925         * lib/javacomp.c: Likewise.
61926         * lib/javacomp.h: Likewise.
61927         * lib/javaexec.c: Likewise.
61928         * lib/javaexec.h: Likewise.
61929         * lib/javaversion.c: Likewise.
61930         * lib/javaversion.h: Likewise.
61931         * lib/javaversion.java: Likewise.
61932         * lib/lbrkprop.h: Likewise.
61933         * lib/lchmod.h: Likewise.
61934         * lib/lchown.c: Likewise.
61935         * lib/ldexpl.c: Likewise.
61936         * lib/linebreak.c: Likewise.
61937         * lib/linebreak.h: Likewise.
61938         * lib/linebuffer.c: Likewise.
61939         * lib/linebuffer.h: Likewise.
61940         * lib/locale.in.h: Likewise.
61941         * lib/logl.c: Likewise.
61942         * lib/long-options.c: Likewise.
61943         * lib/long-options.h: Likewise.
61944         * lib/lstat.c: Likewise.
61945         * lib/lstat.h: Likewise.
61946         * lib/math.in.h: Likewise.
61947         * lib/mbchar.c: Likewise.
61948         * lib/mbchar.h: Likewise.
61949         * lib/mbfile.h: Likewise.
61950         * lib/mbiter.h: Likewise.
61951         * lib/mbscasecmp.c: Likewise.
61952         * lib/mbscasestr.c: Likewise.
61953         * lib/mbschr.c: Likewise.
61954         * lib/mbscspn.c: Likewise.
61955         * lib/mbslen.c: Likewise.
61956         * lib/mbsncasecmp.c: Likewise.
61957         * lib/mbsnlen.c: Likewise.
61958         * lib/mbspbrk.c: Likewise.
61959         * lib/mbspcasecmp.c: Likewise.
61960         * lib/mbsrchr.c: Likewise.
61961         * lib/mbssep.c: Likewise.
61962         * lib/mbsspn.c: Likewise.
61963         * lib/mbsstr.c: Likewise.
61964         * lib/mbstok_r.c: Likewise.
61965         * lib/mbswidth.c: Likewise.
61966         * lib/mbswidth.h: Likewise.
61967         * lib/mbuiter.h: Likewise.
61968         * lib/memcasecmp.c: Likewise.
61969         * lib/memcasecmp.h: Likewise.
61970         * lib/memchr.c: Likewise.
61971         * lib/memcmp.c: Likewise.
61972         * lib/memcoll.c: Likewise.
61973         * lib/memcoll.h: Likewise.
61974         * lib/memcpy.c: Likewise.
61975         * lib/memrchr.c: Likewise.
61976         * lib/mkancesdirs.c: Likewise.
61977         * lib/mkdir-p.c: Likewise.
61978         * lib/mkdir-p.h: Likewise.
61979         * lib/mkdir.c: Likewise.
61980         * lib/mkdirat.c: Likewise.
61981         * lib/mkdtemp.c: Likewise.
61982         * lib/mkstemp-safer.c: Likewise.
61983         * lib/mkstemp.c: Likewise.
61984         * lib/modechange.c: Likewise.
61985         * lib/modechange.h: Likewise.
61986         * lib/mountlist.c: Likewise.
61987         * lib/mountlist.h: Likewise.
61988         * lib/mpsort.c: Likewise.
61989         * lib/nanosleep.c: Likewise.
61990         * lib/obstack.c: Likewise.
61991         * lib/obstack.h: Likewise.
61992         * lib/open-safer.c: Likewise.
61993         * lib/open.c: Likewise.
61994         * lib/openat-die.c: Likewise.
61995         * lib/openat-priv.h: Likewise.
61996         * lib/openat-proc.c: Likewise.
61997         * lib/openat.c: Likewise.
61998         * lib/openat.h: Likewise.
61999         * lib/pagealign_alloc.c: Likewise.
62000         * lib/pagealign_alloc.h: Likewise.
62001         * lib/physmem.c: Likewise.
62002         * lib/physmem.h: Likewise.
62003         * lib/pipe-safer.c: Likewise.
62004         * lib/pipe.c: Likewise.
62005         * lib/pipe.h: Likewise.
62006         * lib/posixtm.c: Likewise.
62007         * lib/posixtm.h: Likewise.
62008         * lib/posixver.c: Likewise.
62009         * lib/printf-frexp.c: Likewise.
62010         * lib/printf-frexp.h: Likewise.
62011         * lib/printf-frexpl.c: Likewise.
62012         * lib/printf-frexpl.h: Likewise.
62013         * lib/printf.c: Likewise.
62014         * lib/progname.c: Likewise.
62015         * lib/progname.h: Likewise.
62016         * lib/progreloc.c: Likewise.
62017         * lib/putenv.c: Likewise.
62018         * lib/quote.c: Likewise.
62019         * lib/quote.h: Likewise.
62020         * lib/quotearg.c: Likewise.
62021         * lib/quotearg.h: Likewise.
62022         * lib/raise.c: Likewise.
62023         * lib/readline.c: Likewise.
62024         * lib/readline.h: Likewise.
62025         * lib/readlink.c: Likewise.
62026         * lib/readtokens.c: Likewise.
62027         * lib/readtokens.h: Likewise.
62028         * lib/readtokens0.c: Likewise.
62029         * lib/readtokens0.h: Likewise.
62030         * lib/readutmp.c: Likewise.
62031         * lib/readutmp.h: Likewise.
62032         * lib/realloc.c: Likewise.
62033         * lib/relocwrapper.c: Likewise.
62034         * lib/rename-dest-slash.c: Likewise.
62035         * lib/rename.c: Likewise.
62036         * lib/rmdir.c: Likewise.
62037         * lib/rpmatch.c: Likewise.
62038         * lib/safe-read.c: Likewise.
62039         * lib/safe-read.h: Likewise.
62040         * lib/safe-write.c: Likewise.
62041         * lib/safe-write.h: Likewise.
62042         * lib/same-inode.h: Likewise.
62043         * lib/same.c: Likewise.
62044         * lib/same.h: Likewise.
62045         * lib/save-cwd.c: Likewise.
62046         * lib/save-cwd.h: Likewise.
62047         * lib/savedir.c: Likewise.
62048         * lib/savedir.h: Likewise.
62049         * lib/savewd.c: Likewise.
62050         * lib/savewd.h: Likewise.
62051         * lib/search.in.h: Likewise.
62052         * lib/setenv.c: Likewise.
62053         * lib/setenv.h: Likewise.
62054         * lib/settime.c: Likewise.
62055         * lib/sh-quote.c: Likewise.
62056         * lib/sh-quote.h: Likewise.
62057         * lib/sig2str.c: Likewise.
62058         * lib/sig2str.h: Likewise.
62059         * lib/signal.in.h: Likewise.
62060         * lib/signbitd.c: Likewise.
62061         * lib/signbitf.c: Likewise.
62062         * lib/signbitl.c: Likewise.
62063         * lib/sigprocmask.c: Likewise.
62064         * lib/sincosl.c: Likewise.
62065         * lib/sleep.c: Likewise.
62066         * lib/sprintf.c: Likewise.
62067         * lib/sqrtl.c: Likewise.
62068         * lib/stat-time.h: Likewise.
62069         * lib/stdio--.h: Likewise.
62070         * lib/stdio-safer.h: Likewise.
62071         * lib/stdlib--.h: Likewise.
62072         * lib/stdlib-safer.h: Likewise.
62073         * lib/stdlib.in.h: Likewise.
62074         * lib/stpcpy.c: Likewise.
62075         * lib/stpncpy.c: Likewise.
62076         * lib/strchrnul.c: Likewise.
62077         * lib/strcspn.c: Likewise.
62078         * lib/strerror.c: Likewise.
62079         * lib/strftime.c: Likewise.
62080         * lib/strftime.h: Likewise.
62081         * lib/striconveh.c: Likewise.
62082         * lib/striconveh.h: Likewise.
62083         * lib/striconveha.c: Likewise.
62084         * lib/striconveha.h: Likewise.
62085         * lib/stripslash.c: Likewise.
62086         * lib/strnlen1.c: Likewise.
62087         * lib/strnlen1.h: Likewise.
62088         * lib/strtod.c: Likewise.
62089         * lib/strtoimax.c: Likewise.
62090         * lib/strtok_r.c: Likewise.
62091         * lib/strtol.c: Likewise.
62092         * lib/strtoll.c: Likewise.
62093         * lib/strtoul.c: Likewise.
62094         * lib/strtoull.c: Likewise.
62095         * lib/sysexits.in.h: Likewise.
62096         * lib/tempname.c: Likewise.
62097         * lib/tempname.h: Likewise.
62098         * lib/timespec.h: Likewise.
62099         * lib/tls.c: Likewise.
62100         * lib/tls.h: Likewise.
62101         * lib/tmpdir.c: Likewise.
62102         * lib/tmpdir.h: Likewise.
62103         * lib/tmpfile-safer.c: Likewise.
62104         * lib/tmpfile.c: Likewise.
62105         * lib/trigl.c: Likewise.
62106         * lib/trigl.h: Likewise.
62107         * lib/trim.c: Likewise.
62108         * lib/trim.h: Likewise.
62109         * lib/trunc.c: Likewise.
62110         * lib/truncf.c: Likewise.
62111         * lib/truncl.c: Likewise.
62112         * lib/tsearch.c: Likewise.
62113         * lib/unicodeio.c: Likewise.
62114         * lib/unicodeio.h: Likewise.
62115         * lib/unistd--.h: Likewise.
62116         * lib/unistd-safer.h: Likewise.
62117         * lib/unistdio/ulc-fprintf.c: Likewise.
62118         * lib/unistdio/ulc-vfprintf.c: Likewise.
62119         * lib/unlinkdir.c: Likewise.
62120         * lib/unlinkdir.h: Likewise.
62121         * lib/unlocked-io.h: Likewise.
62122         * lib/unsetenv.c: Likewise.
62123         * lib/userspec.c: Likewise.
62124         * lib/utime.c: Likewise.
62125         * lib/utimecmp.c: Likewise.
62126         * lib/utimecmp.h: Likewise.
62127         * lib/utimens.c: Likewise.
62128         * lib/verify.h: Likewise.
62129         * lib/verror.c: Likewise.
62130         * lib/verror.h: Likewise.
62131         * lib/version-etc-fsf.c: Likewise.
62132         * lib/version-etc.c: Likewise.
62133         * lib/version-etc.h: Likewise.
62134         * lib/vfprintf.c: Likewise.
62135         * lib/vprintf.c: Likewise.
62136         * lib/vsprintf.c: Likewise.
62137         * lib/w32spawn.h: Likewise.
62138         * lib/wait-process.c: Likewise.
62139         * lib/wait-process.h: Likewise.
62140         * lib/wcwidth.c: Likewise.
62141         * lib/write-any-file.c: Likewise.
62142         * lib/xalloc-die.c: Likewise.
62143         * lib/xalloc.h: Likewise.
62144         * lib/xasprintf.c: Likewise.
62145         * lib/xgetcwd.c: Likewise.
62146         * lib/xgetcwd.h: Likewise.
62147         * lib/xgetdomainname.c: Likewise.
62148         * lib/xgetdomainname.h: Likewise.
62149         * lib/xgethostname.c: Likewise.
62150         * lib/xmalloc.c: Likewise.
62151         * lib/xmalloca.c: Likewise.
62152         * lib/xmalloca.h: Likewise.
62153         * lib/xmemcoll.c: Likewise.
62154         * lib/xnanosleep.c: Likewise.
62155         * lib/xreadlink.c: Likewise.
62156         * lib/xreadlink.h: Likewise.
62157         * lib/xsetenv.c: Likewise.
62158         * lib/xsetenv.h: Likewise.
62159         * lib/xstriconv.c: Likewise.
62160         * lib/xstriconv.h: Likewise.
62161         * lib/xstrndup.c: Likewise.
62162         * lib/xstrndup.h: Likewise.
62163         * lib/xstrtod.c: Likewise.
62164         * lib/xstrtod.h: Likewise.
62165         * lib/xstrtol-error.c: Likewise.
62166         * lib/xstrtol.c: Likewise.
62167         * lib/xstrtol.h: Likewise.
62168         * lib/xtime.h: Likewise.
62169         * lib/xvasprintf.c: Likewise.
62170         * lib/xvasprintf.h: Likewise.
62171         * lib/yesno.c: Likewise.
62172         * lib/yesno.h: Likewise.
62173         * posix-modules: Likewise.
62174         * tests/test-alloca-opt.c: Likewise.
62175         * tests/test-arcfour.c: Likewise.
62176         * tests/test-arctwo.c: Likewise.
62177         * tests/test-argmatch.c: Likewise.
62178         * tests/test-argp-2.sh: Likewise.
62179         * tests/test-argp.c: Likewise.
62180         * tests/test-arpa_inet.c: Likewise.
62181         * tests/test-array_list.c: Likewise.
62182         * tests/test-array_oset.c: Likewise.
62183         * tests/test-atexit.c: Likewise.
62184         * tests/test-avltree_list.c: Likewise.
62185         * tests/test-avltree_oset.c: Likewise.
62186         * tests/test-avltreehash_list.c: Likewise.
62187         * tests/test-base64.c: Likewise.
62188         * tests/test-binary-io.c: Likewise.
62189         * tests/test-byteswap.c: Likewise.
62190         * tests/test-c-ctype.c: Likewise.
62191         * tests/test-c-strcasecmp.c: Likewise.
62192         * tests/test-c-strcasestr.c: Likewise.
62193         * tests/test-c-strncasecmp.c: Likewise.
62194         * tests/test-c-strstr.c: Likewise.
62195         * tests/test-canonicalize-lgpl.c: Likewise.
62196         * tests/test-canonicalize.c: Likewise.
62197         * tests/test-carray_list.c: Likewise.
62198         * tests/test-ceilf.c: Likewise.
62199         * tests/test-ceill.c: Likewise.
62200         * tests/test-count-one-bits.c: Likewise.
62201         * tests/test-crc.c: Likewise.
62202         * tests/test-dirname.c: Likewise.
62203         * tests/test-fbufmode.c: Likewise.
62204         * tests/test-fcntl.c: Likewise.
62205         * tests/test-fflush.c: Likewise.
62206         * tests/test-floorf.c: Likewise.
62207         * tests/test-floorl.c: Likewise.
62208         * tests/test-fopen.c: Likewise.
62209         * tests/test-fprintf-posix.c: Likewise.
62210         * tests/test-fprintf-posix.h: Likewise.
62211         * tests/test-fpurge.c: Likewise.
62212         * tests/test-freadable.c: Likewise.
62213         * tests/test-freadahead.c: Likewise.
62214         * tests/test-freading.c: Likewise.
62215         * tests/test-freopen.c: Likewise.
62216         * tests/test-frexp.c: Likewise.
62217         * tests/test-frexpl.c: Likewise.
62218         * tests/test-fseek.c: Likewise.
62219         * tests/test-fseeko.c: Likewise.
62220         * tests/test-fseterr.c: Likewise.
62221         * tests/test-fstrcmp.c: Likewise.
62222         * tests/test-ftell.c: Likewise.
62223         * tests/test-ftello.c: Likewise.
62224         * tests/test-fwritable.c: Likewise.
62225         * tests/test-fwriting.c: Likewise.
62226         * tests/test-getaddrinfo.c: Likewise.
62227         * tests/test-getpass.c: Likewise.
62228         * tests/test-gettimeofday.c: Likewise.
62229         * tests/test-hmac-md5.c: Likewise.
62230         * tests/test-hmac-sha1.c: Likewise.
62231         * tests/test-iconv.c: Likewise.
62232         * tests/test-iconvme.c: Likewise.
62233         * tests/test-inttypes.c: Likewise.
62234         * tests/test-isnan.c: Likewise.
62235         * tests/test-isnanf.c: Likewise.
62236         * tests/test-isnanl-nolibm.c: Likewise.
62237         * tests/test-isnanl.c: Likewise.
62238         * tests/test-isnanl.h: Likewise.
62239         * tests/test-ldexpl.c: Likewise.
62240         * tests/test-linked_list.c: Likewise.
62241         * tests/test-linkedhash_list.c: Likewise.
62242         * tests/test-locale.c: Likewise.
62243         * tests/test-localename.c: Likewise.
62244         * tests/test-lock.c: Likewise.
62245         * tests/test-lseek.c: Likewise.
62246         * tests/test-malloca.c: Likewise.
62247         * tests/test-math.c: Likewise.
62248         * tests/test-mbscasecmp.c: Likewise.
62249         * tests/test-mbscasestr1.c: Likewise.
62250         * tests/test-mbscasestr2.c: Likewise.
62251         * tests/test-mbscasestr3.c: Likewise.
62252         * tests/test-mbscasestr4.c: Likewise.
62253         * tests/test-mbschr.c: Likewise.
62254         * tests/test-mbscspn.c: Likewise.
62255         * tests/test-mbsncasecmp.c: Likewise.
62256         * tests/test-mbspbrk.c: Likewise.
62257         * tests/test-mbspcasecmp.c: Likewise.
62258         * tests/test-mbsrchr.c: Likewise.
62259         * tests/test-mbsspn.c: Likewise.
62260         * tests/test-mbsstr1.c: Likewise.
62261         * tests/test-mbsstr2.c: Likewise.
62262         * tests/test-mbsstr3.c: Likewise.
62263         * tests/test-md5.c: Likewise.
62264         * tests/test-memmem.c: Likewise.
62265         * tests/test-netinet_in.c: Likewise.
62266         * tests/test-open.c: Likewise.
62267         * tests/test-printf-frexp.c: Likewise.
62268         * tests/test-printf-frexpl.c: Likewise.
62269         * tests/test-printf-posix.c: Likewise.
62270         * tests/test-printf-posix.h: Likewise.
62271         * tests/test-rbtree_list.c: Likewise.
62272         * tests/test-rbtree_oset.c: Likewise.
62273         * tests/test-rbtreehash_list.c: Likewise.
62274         * tests/test-read-file.c: Likewise.
62275         * tests/test-rijndael.c: Likewise.
62276         * tests/test-search.c: Likewise.
62277         * tests/test-signbit.c: Likewise.
62278         * tests/test-sleep.c: Likewise.
62279         * tests/test-snprintf-posix.c: Likewise.
62280         * tests/test-snprintf-posix.h: Likewise.
62281         * tests/test-snprintf.c: Likewise.
62282         * tests/test-sprintf-posix.c: Likewise.
62283         * tests/test-sprintf-posix.h: Likewise.
62284         * tests/test-stat-time.c: Likewise.
62285         * tests/test-stdbool.c: Likewise.
62286         * tests/test-stdint.c: Likewise.
62287         * tests/test-stdio.c: Likewise.
62288         * tests/test-stdlib.c: Likewise.
62289         * tests/test-stpncpy.c: Likewise.
62290         * tests/test-strcasestr.c: Likewise.
62291         * tests/test-striconv.c: Likewise.
62292         * tests/test-striconveh.c: Likewise.
62293         * tests/test-striconveha.c: Likewise.
62294         * tests/test-string.c: Likewise.
62295         * tests/test-sys_select.c: Likewise.
62296         * tests/test-sys_socket.c: Likewise.
62297         * tests/test-sys_stat.c: Likewise.
62298         * tests/test-sys_time.c: Likewise.
62299         * tests/test-sysexits.c: Likewise.
62300         * tests/test-time.c: Likewise.
62301         * tests/test-tls.c: Likewise.
62302         * tests/test-trunc.c: Likewise.
62303         * tests/test-truncf.c: Likewise.
62304         * tests/test-truncl.c: Likewise.
62305         * tests/test-unistd.c: Likewise.
62306         * tests/test-vasnprintf-posix.c: Likewise.
62307         * tests/test-vasnprintf-posix2.c: Likewise.
62308         * tests/test-vasnprintf.c: Likewise.
62309         * tests/test-vasprintf-posix.c: Likewise.
62310         * tests/test-vasprintf.c: Likewise.
62311         * tests/test-verify.c: Likewise.
62312         * tests/test-vfprintf-posix.c: Likewise.
62313         * tests/test-vprintf-posix.c: Likewise.
62314         * tests/test-vsnprintf-posix.c: Likewise.
62315         * tests/test-vsnprintf.c: Likewise.
62316         * tests/test-vsprintf-posix.c: Likewise.
62317         * tests/test-wchar.c: Likewise.
62318         * tests/test-wctype.c: Likewise.
62319         * tests/test-wcwidth.c: Likewise.
62320         * tests/test-xstrtol.c: Likewise.
62321         * tests/test-xvasprintf.c: Likewise.
62322         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62323         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62324         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62325         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62326         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62327         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62328         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62329         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62330         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62331         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62332         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62333         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62334         * tests/uniname/test-uninames.c: Likewise.
62335         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62336         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62337         * tests/unistdio/test-u16-printf1.h: Likewise.
62338         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62339         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62340         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62341         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62342         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62343         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62344         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62345         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62346         * tests/unistdio/test-u32-printf1.h: Likewise.
62347         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62348         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62349         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62350         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62351         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62352         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62353         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62354         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62355         * tests/unistdio/test-u8-printf1.h: Likewise.
62356         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62357         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62358         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62359         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62360         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62361         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62362         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62363         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62364         * tests/unistdio/test-ulc-printf1.h: Likewise.
62365         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62366         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62367         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62368         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62369         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62370         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62371         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62372         * tests/uniwidth/test-u16-width.c: Likewise.
62373         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62374         * tests/uniwidth/test-u32-width.c: Likewise.
62375         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62376         * tests/uniwidth/test-u8-width.c: Likewise.
62377         * tests/uniwidth/test-uc_width.c: Likewise.
62378         * config/srclist-update: Likewise.
62379         (fixlicense): Update to GPLv3+.
62380
62381         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62382         * tests/test-tsearch.c: Change copyright notice.
62383
62384         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62385         * lib/c-strcaseeq.h: Change copyright notice.
62386         * lib/streq.h: Likewise.
62387         * lib/uniconv.h: Likewise.
62388         * lib/uniconv/u-conv-from-enc.h: Likewise.
62389         * lib/uniconv/u-conv-to-enc.h: Likewise.
62390         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62391         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62392         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62393         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62394         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62395         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62396         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62397         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62398         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62399         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62400         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62401         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62402         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62403         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62404         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62405         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62406         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62407         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62408         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62409         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62410         * lib/uniname.h: Likewise.
62411         * lib/uniname/uniname.c: Likewise.
62412         * lib/unistdio.h: Likewise.
62413         * lib/unistdio/u-asnprintf.h: Likewise.
62414         * lib/unistdio/u-asprintf.h: Likewise.
62415         * lib/unistdio/u-printf-args.c: Likewise.
62416         * lib/unistdio/u-printf-args.h: Likewise.
62417         * lib/unistdio/u-printf-parse.h: Likewise.
62418         * lib/unistdio/u-snprintf.h: Likewise.
62419         * lib/unistdio/u-sprintf.h: Likewise.
62420         * lib/unistdio/u-vasprintf.h: Likewise.
62421         * lib/unistdio/u-vsnprintf.h: Likewise.
62422         * lib/unistdio/u-vsprintf.h: Likewise.
62423         * lib/unistdio/u16-asnprintf.c: Likewise.
62424         * lib/unistdio/u16-asprintf.c: Likewise.
62425         * lib/unistdio/u16-printf-parse.c: Likewise.
62426         * lib/unistdio/u16-snprintf.c: Likewise.
62427         * lib/unistdio/u16-sprintf.c: Likewise.
62428         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62429         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62430         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62431         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62432         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62433         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62434         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62435         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62436         * lib/unistdio/u16-vasnprintf.c: Likewise.
62437         * lib/unistdio/u16-vasprintf.c: Likewise.
62438         * lib/unistdio/u16-vsnprintf.c: Likewise.
62439         * lib/unistdio/u16-vsprintf.c: Likewise.
62440         * lib/unistdio/u32-asnprintf.c: Likewise.
62441         * lib/unistdio/u32-asprintf.c: Likewise.
62442         * lib/unistdio/u32-printf-parse.c: Likewise.
62443         * lib/unistdio/u32-snprintf.c: Likewise.
62444         * lib/unistdio/u32-sprintf.c: Likewise.
62445         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62446         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62447         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62448         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62449         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62450         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62451         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62452         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62453         * lib/unistdio/u32-vasnprintf.c: Likewise.
62454         * lib/unistdio/u32-vasprintf.c: Likewise.
62455         * lib/unistdio/u32-vsnprintf.c: Likewise.
62456         * lib/unistdio/u32-vsprintf.c: Likewise.
62457         * lib/unistdio/u8-asnprintf.c: Likewise.
62458         * lib/unistdio/u8-asprintf.c: Likewise.
62459         * lib/unistdio/u8-printf-parse.c: Likewise.
62460         * lib/unistdio/u8-snprintf.c: Likewise.
62461         * lib/unistdio/u8-sprintf.c: Likewise.
62462         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62463         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62464         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62465         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62466         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62467         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62468         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62469         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62470         * lib/unistdio/u8-vasnprintf.c: Likewise.
62471         * lib/unistdio/u8-vasprintf.c: Likewise.
62472         * lib/unistdio/u8-vsnprintf.c: Likewise.
62473         * lib/unistdio/u8-vsprintf.c: Likewise.
62474         * lib/unistdio/ulc-asnprintf.c: Likewise.
62475         * lib/unistdio/ulc-asprintf.c: Likewise.
62476         * lib/unistdio/ulc-printf-parse.c: Likewise.
62477         * lib/unistdio/ulc-snprintf.c: Likewise.
62478         * lib/unistdio/ulc-sprintf.c: Likewise.
62479         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62480         * lib/unistdio/ulc-vasprintf.c: Likewise.
62481         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62482         * lib/unistdio/ulc-vsprintf.c: Likewise.
62483         * lib/unistr.h: Likewise.
62484         * lib/unistr/u-cpy-alloc.h: Likewise.
62485         * lib/unistr/u-cpy.h: Likewise.
62486         * lib/unistr/u-endswith.h: Likewise.
62487         * lib/unistr/u-move.h: Likewise.
62488         * lib/unistr/u-set.h: Likewise.
62489         * lib/unistr/u-startswith.h: Likewise.
62490         * lib/unistr/u-stpcpy.h: Likewise.
62491         * lib/unistr/u-stpncpy.h: Likewise.
62492         * lib/unistr/u-strcat.h: Likewise.
62493         * lib/unistr/u-strcpy.h: Likewise.
62494         * lib/unistr/u-strcspn.h: Likewise.
62495         * lib/unistr/u-strdup.h: Likewise.
62496         * lib/unistr/u-strlen.h: Likewise.
62497         * lib/unistr/u-strncat.h: Likewise.
62498         * lib/unistr/u-strncpy.h: Likewise.
62499         * lib/unistr/u-strnlen.h: Likewise.
62500         * lib/unistr/u-strpbrk.h: Likewise.
62501         * lib/unistr/u-strspn.h: Likewise.
62502         * lib/unistr/u-strstr.h: Likewise.
62503         * lib/unistr/u-strtok.h: Likewise.
62504         * lib/unistr/u16-check.c: Likewise.
62505         * lib/unistr/u16-chr.c: Likewise.
62506         * lib/unistr/u16-cmp.c: Likewise.
62507         * lib/unistr/u16-cpy-alloc.c: Likewise.
62508         * lib/unistr/u16-cpy.c: Likewise.
62509         * lib/unistr/u16-endswith.c: Likewise.
62510         * lib/unistr/u16-mblen.c: Likewise.
62511         * lib/unistr/u16-mbsnlen.c: Likewise.
62512         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62513         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62514         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62515         * lib/unistr/u16-mbtouc.c: Likewise.
62516         * lib/unistr/u16-mbtoucr.c: Likewise.
62517         * lib/unistr/u16-move.c: Likewise.
62518         * lib/unistr/u16-next.c: Likewise.
62519         * lib/unistr/u16-prev.c: Likewise.
62520         * lib/unistr/u16-set.c: Likewise.
62521         * lib/unistr/u16-startswith.c: Likewise.
62522         * lib/unistr/u16-stpcpy.c: Likewise.
62523         * lib/unistr/u16-stpncpy.c: Likewise.
62524         * lib/unistr/u16-strcat.c: Likewise.
62525         * lib/unistr/u16-strchr.c: Likewise.
62526         * lib/unistr/u16-strcmp.c: Likewise.
62527         * lib/unistr/u16-strcpy.c: Likewise.
62528         * lib/unistr/u16-strcspn.c: Likewise.
62529         * lib/unistr/u16-strdup.c: Likewise.
62530         * lib/unistr/u16-strlen.c: Likewise.
62531         * lib/unistr/u16-strmblen.c: Likewise.
62532         * lib/unistr/u16-strmbtouc.c: Likewise.
62533         * lib/unistr/u16-strncat.c: Likewise.
62534         * lib/unistr/u16-strncmp.c: Likewise.
62535         * lib/unistr/u16-strncpy.c: Likewise.
62536         * lib/unistr/u16-strnlen.c: Likewise.
62537         * lib/unistr/u16-strpbrk.c: Likewise.
62538         * lib/unistr/u16-strrchr.c: Likewise.
62539         * lib/unistr/u16-strspn.c: Likewise.
62540         * lib/unistr/u16-strstr.c: Likewise.
62541         * lib/unistr/u16-strtok.c: Likewise.
62542         * lib/unistr/u16-to-u32.c: Likewise.
62543         * lib/unistr/u16-to-u8.c: Likewise.
62544         * lib/unistr/u16-uctomb-aux.c: Likewise.
62545         * lib/unistr/u16-uctomb.c: Likewise.
62546         * lib/unistr/u32-check.c: Likewise.
62547         * lib/unistr/u32-chr.c: Likewise.
62548         * lib/unistr/u32-cmp.c: Likewise.
62549         * lib/unistr/u32-cpy-alloc.c: Likewise.
62550         * lib/unistr/u32-cpy.c: Likewise.
62551         * lib/unistr/u32-endswith.c: Likewise.
62552         * lib/unistr/u32-mblen.c: Likewise.
62553         * lib/unistr/u32-mbsnlen.c: Likewise.
62554         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62555         * lib/unistr/u32-mbtouc.c: Likewise.
62556         * lib/unistr/u32-mbtoucr.c: Likewise.
62557         * lib/unistr/u32-move.c: Likewise.
62558         * lib/unistr/u32-next.c: Likewise.
62559         * lib/unistr/u32-prev.c: Likewise.
62560         * lib/unistr/u32-set.c: Likewise.
62561         * lib/unistr/u32-startswith.c: Likewise.
62562         * lib/unistr/u32-stpcpy.c: Likewise.
62563         * lib/unistr/u32-stpncpy.c: Likewise.
62564         * lib/unistr/u32-strcat.c: Likewise.
62565         * lib/unistr/u32-strchr.c: Likewise.
62566         * lib/unistr/u32-strcmp.c: Likewise.
62567         * lib/unistr/u32-strcpy.c: Likewise.
62568         * lib/unistr/u32-strcspn.c: Likewise.
62569         * lib/unistr/u32-strdup.c: Likewise.
62570         * lib/unistr/u32-strlen.c: Likewise.
62571         * lib/unistr/u32-strmblen.c: Likewise.
62572         * lib/unistr/u32-strmbtouc.c: Likewise.
62573         * lib/unistr/u32-strncat.c: Likewise.
62574         * lib/unistr/u32-strncmp.c: Likewise.
62575         * lib/unistr/u32-strncpy.c: Likewise.
62576         * lib/unistr/u32-strnlen.c: Likewise.
62577         * lib/unistr/u32-strpbrk.c: Likewise.
62578         * lib/unistr/u32-strrchr.c: Likewise.
62579         * lib/unistr/u32-strspn.c: Likewise.
62580         * lib/unistr/u32-strstr.c: Likewise.
62581         * lib/unistr/u32-strtok.c: Likewise.
62582         * lib/unistr/u32-to-u16.c: Likewise.
62583         * lib/unistr/u32-to-u8.c: Likewise.
62584         * lib/unistr/u32-uctomb.c: Likewise.
62585         * lib/unistr/u8-check.c: Likewise.
62586         * lib/unistr/u8-chr.c: Likewise.
62587         * lib/unistr/u8-cmp.c: Likewise.
62588         * lib/unistr/u8-cpy-alloc.c: Likewise.
62589         * lib/unistr/u8-cpy.c: Likewise.
62590         * lib/unistr/u8-endswith.c: Likewise.
62591         * lib/unistr/u8-mblen.c: Likewise.
62592         * lib/unistr/u8-mbsnlen.c: Likewise.
62593         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62594         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62595         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62596         * lib/unistr/u8-mbtouc.c: Likewise.
62597         * lib/unistr/u8-mbtoucr.c: Likewise.
62598         * lib/unistr/u8-move.c: Likewise.
62599         * lib/unistr/u8-next.c: Likewise.
62600         * lib/unistr/u8-prev.c: Likewise.
62601         * lib/unistr/u8-set.c: Likewise.
62602         * lib/unistr/u8-startswith.c: Likewise.
62603         * lib/unistr/u8-stpcpy.c: Likewise.
62604         * lib/unistr/u8-stpncpy.c: Likewise.
62605         * lib/unistr/u8-strcat.c: Likewise.
62606         * lib/unistr/u8-strchr.c: Likewise.
62607         * lib/unistr/u8-strcmp.c: Likewise.
62608         * lib/unistr/u8-strcpy.c: Likewise.
62609         * lib/unistr/u8-strcspn.c: Likewise.
62610         * lib/unistr/u8-strdup.c: Likewise.
62611         * lib/unistr/u8-strlen.c: Likewise.
62612         * lib/unistr/u8-strmblen.c: Likewise.
62613         * lib/unistr/u8-strmbtouc.c: Likewise.
62614         * lib/unistr/u8-strncat.c: Likewise.
62615         * lib/unistr/u8-strncmp.c: Likewise.
62616         * lib/unistr/u8-strncpy.c: Likewise.
62617         * lib/unistr/u8-strnlen.c: Likewise.
62618         * lib/unistr/u8-strpbrk.c: Likewise.
62619         * lib/unistr/u8-strrchr.c: Likewise.
62620         * lib/unistr/u8-strspn.c: Likewise.
62621         * lib/unistr/u8-strstr.c: Likewise.
62622         * lib/unistr/u8-strtok.c: Likewise.
62623         * lib/unistr/u8-to-u16.c: Likewise.
62624         * lib/unistr/u8-to-u32.c: Likewise.
62625         * lib/unistr/u8-uctomb-aux.c: Likewise.
62626         * lib/unistr/u8-uctomb.c: Likewise.
62627         * lib/unitypes.h: Likewise.
62628         * lib/uniwidth.h: Likewise.
62629         * lib/uniwidth/cjk.h: Likewise.
62630         * lib/uniwidth/u16-strwidth.c: Likewise.
62631         * lib/uniwidth/u16-width.c: Likewise.
62632         * lib/uniwidth/u32-strwidth.c: Likewise.
62633         * lib/uniwidth/u32-width.c: Likewise.
62634         * lib/uniwidth/u8-strwidth.c: Likewise.
62635         * lib/uniwidth/u8-width.c: Likewise.
62636         * lib/uniwidth/width.c: Likewise.
62637
62638 2007-10-07  Bruno Haible  <bruno@clisp.org>
62639
62640         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62641         The file is still under LGPL (see modules/inttypes).
62642
62643 2007-10-06  Bruno Haible  <bruno@clisp.org>
62644
62645         * modules/trunc (Dependencies): Add 'extensions'.
62646         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62647         Reported by Ben Pfaff <blp@gnu.org>.
62648
62649 2007-10-06  Bruno Haible  <bruno@clisp.org>
62650
62651         * modules/freopen-tests: New file.
62652         * tests/test-freopen.c: New file.
62653
62654         * modules/fopen-tests: New file.
62655         * tests/test-fopen.c: New file.
62656
62657         * modules/fopen: New file.
62658         * lib/fopen.c: New file.
62659         * m4/fopen.m4: New file.
62660         * modules/freopen: New file.
62661         * lib/freopen.c: New file.
62662         * m4/freopen.m4: New file.
62663         * lib/stdio.in.h (fopen, freopen): New declarations.
62664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62665         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62666         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62667         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62668         * doc/functions/fopen.texi: Mention the 'fopen' module.
62669         * doc/functions/freopen.texi: Mention the 'freopen' module.
62670
62671 2007-10-06  Bruno Haible  <bruno@clisp.org>
62672
62673         * modules/open-tests: New file.
62674         * tests/test-open.c: New file.
62675
62676         * modules/open: New file.
62677         * lib/open.c: New file.
62678         * m4/open.m4: New file.
62679         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62680         lib/open.c does.
62681         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62682         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62683         macros.
62684         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62685         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62686         REPLACE_OPEN.
62687         * doc/functions/open.texi: Mention the 'open' module.
62688
62689 2007-10-04  Bruno Haible  <bruno@clisp.org>
62690
62691         * modules/ceill-tests: New file.
62692         * tests/test-ceill.c: New file.
62693
62694         * modules/ceill: New file.
62695         * lib/ceill.c: Replace entire file.
62696         * m4/ceill.m4: New file.
62697         * lib/math.in.h (ceill): Replace declaration.
62698         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62699         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62700         * doc/functions/ceill.texi: Mention the 'ceill' module.
62701         * modules/mathl (Files): Remove lib/ceill.c.
62702         (Depends-on): Add ceill.
62703
62704 2007-10-04  Bruno Haible  <bruno@clisp.org>
62705
62706         * modules/ceilf-tests: New file.
62707         * tests/test-ceilf.c: New file.
62708
62709         * modules/ceilf: New file.
62710         * lib/ceil.c: New file.
62711         * lib/ceilf.c: New file.
62712         * m4/ceilf.m4: New file.
62713         * lib/math.in.h (ceilf): New declaration.
62714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62715         HAVE_DECL_CEILF.
62716         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62717         HAVE_DECL_CEILF.
62718         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62719
62720 2007-10-04  Bruno Haible  <bruno@clisp.org>
62721
62722         * modules/floorl-tests: New file.
62723         * tests/test-floorl.c: New file.
62724
62725         * modules/floorl: New file.
62726         * lib/floorl.c: Replace entire file.
62727         * m4/floorl.m4: New file.
62728         * lib/math.in.h (floorl): Replace declaration.
62729         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62730         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62731         * doc/functions/floorl.texi: Mention the 'floorl' module.
62732         * modules/mathl (Files): Remove lib/floorl.c.
62733         (Depends-on): Add floorl.
62734
62735 2007-10-04  Bruno Haible  <bruno@clisp.org>
62736
62737         * modules/floorf-tests: New file.
62738         * tests/test-floorf.c: New file.
62739
62740         * modules/floorf: New file.
62741         * lib/floor.c: New file.
62742         * lib/floorf.c: New file.
62743         * m4/floorf.m4: New file.
62744         * lib/math.in.h (floorf): New declaration.
62745         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62746         HAVE_DECL_FLOORF.
62747         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62748         HAVE_DECL_FLOORF.
62749         * doc/functions/floorf.texi: Mention the 'floorf' module.
62750
62751 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62752             Bruno Haible  <bruno@clisp.org>
62753
62754         Advertise for the Git server instead of the CVS server.
62755         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62756         repository instead of the CVS one.
62757         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62758         about all VCS systems generically.
62759         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62760
62761 2007-10-04  Bruno Haible  <bruno@clisp.org>
62762
62763         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62764         means.
62765         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62766
62767 2007-10-04  Bruno Haible  <bruno@clisp.org>
62768
62769         * modules/truncl-tests: New file.
62770         * tests/test-truncl.c: New file.
62771
62772         * modules/truncl: New file.
62773         * lib/truncl.c: New file.
62774         * m4/truncl.m4: New file.
62775         * lib/math.in.h (truncl): New declaration.
62776         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62777         HAVE_DECL_TRUNCL.
62778         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62779         HAVE_DECL_TRUNCL.
62780         * doc/functions/truncl.texi: Mention the 'truncl' module.
62781
62782 2007-10-04  Bruno Haible  <bruno@clisp.org>
62783
62784         * modules/truncf-tests: New file.
62785         * tests/test-truncf.c: New file.
62786
62787         * modules/truncf: New file.
62788         * lib/trunc.c: Make paramerizable through USE_* macros.
62789         * lib/truncf.c: New file.
62790         * m4/truncf.m4: New file.
62791         * lib/math.in.h (truncf): New declaration.
62792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62793         HAVE_DECL_TRUNCF.
62794         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62795         HAVE_DECL_TRUNCF.
62796         * doc/functions/truncf.texi: Mention the 'truncf' module.
62797
62798 2007-10-03  Bruno Haible  <bruno@clisp.org>
62799
62800         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62801         augmentation also for tests modules.
62802         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62803         * modules/atexit-tests (Makefile.am): Likewise.
62804         * modules/binary-io-tests (Makefile.am): Likewise.
62805         * modules/c-strcase-tests (Makefile.am): Likewise.
62806         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62807         * modules/canonicalize-tests (Makefile.am): Likewise.
62808         * modules/closein-tests (Makefile.am): Likewise.
62809         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62810         * modules/freadahead-tests (Makefile.am): Likewise.
62811         * modules/fseek-tests (Makefile.am): Likewise.
62812         * modules/fseeko-tests (Makefile.am): Likewise.
62813         * modules/ftell-tests (Makefile.am): Likewise.
62814         * modules/ftello-tests (Makefile.am): Likewise.
62815         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62816         * modules/isnanl-tests (Makefile.am): Likewise.
62817         * modules/lseek-tests (Makefile.am): Likewise.
62818         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62819         * modules/mbscasestr-tests (Makefile.am): Likewise.
62820         * modules/mbschr-tests (Makefile.am): Likewise.
62821         * modules/mbscspn-tests (Makefile.am): Likewise.
62822         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62823         * modules/mbspbrk-tests (Makefile.am): Likewise.
62824         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62825         * modules/mbsrchr-tests (Makefile.am): Likewise.
62826         * modules/mbsspn-tests (Makefile.am): Likewise.
62827         * modules/mbsstr-tests (Makefile.am): Likewise.
62828         * modules/printf-posix-tests (Makefile.am): Likewise.
62829         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62830         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62831         * modules/tsearch-tests (Makefile.am): Likewise.
62832         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62833         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62834         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62835         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62836         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62837         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62838         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62839         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62840         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62841         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62842         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62843         * modules/xstrtol-tests (Makefile.am): Likewise.
62844         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62845         * modules/yesno-tests (Makefile.am): Likewise.
62846
62847 2007-10-03  Bruno Haible  <bruno@clisp.org>
62848
62849         * modules/trunc-tests: New file.
62850         * tests/test-trunc.c: New file.
62851
62852         * modules/trunc: New file.
62853         * lib/trunc.c: New file.
62854         * m4/trunc.m4: New file.
62855         * lib/math.in.h (trunc): New declaration.
62856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62857         HAVE_DECL_TRUNC.
62858         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62859         HAVE_DECL_TRUNC.
62860         * doc/functions/trunc.texi: Mention the 'trunc' module.
62861
62862 2007-10-03  Bruno Haible  <bruno@clisp.org>
62863
62864         * tests/test-fpending.c: New file, mostly copied
62865         from coreutils/lib/t-fpending.c.
62866         * modules/fpending-tests: New file.
62867
62868 2007-10-03  Bruno Haible  <bruno@clisp.org>
62869
62870         Port the stdio extensions to QNX (untested).
62871         * lib/fseterr.c (fseterr): Add support for QNX.
62872         * lib/fbufmode.c (fbufmode): Likewise.
62873         * lib/freadable.c (freadable): Likewise.
62874         * lib/fwritable.c (fwritable): Likewise.
62875         * lib/freading.c (freading): Likewise.
62876         * lib/fwriting.c (fwriting): Likewise.
62877         * lib/freadahead.c (freadahed): Likewise.
62878         * lib/fpurge.c (fpurge): Likewise.
62879         * lib/fseeko.c (rpl_fseeko): Likewise.
62880
62881 2007-10-03  Bruno Haible  <bruno@clisp.org>
62882             Jim Meyering  <jim@meyering.net>
62883             Eric Blake  <ebb9@byu.net>
62884
62885         * doc/relocatable.texi: Use @command instead of @program.
62886
62887 2007-10-02  Jim Meyering  <jim@meyering.net>
62888
62889         Perform one more "_.h" -> ".in.h" substitution.
62890         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62891         instead of unistd_.h here, too.
62892
62893 2007-10-01  Bruno Haible  <bruno@clisp.org>
62894
62895         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62896         Needed for the alloca-opt module.
62897
62898 2007-09-30  Bruno Haible  <bruno@clisp.org>
62899
62900         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62901         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62902         alloca_.h.
62903         * lib/argz.in.h: Renamed from lib/argz_.h.
62904         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62905         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62906         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62907         byteswap_.h.
62908         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62909         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62910         dirent_.h.
62911         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62912         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62913         fcntl_.h.
62914         * lib/float.in.h: Renamed from lib/float_.h.
62915         * modules/float (Files, Makefile.am): Use float.in.h instead of
62916         float_.h.
62917         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62918         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62919         fnmatch_.h.
62920         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62921         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62922         getopt_.h.
62923         * lib/glob.in.h: Renamed from lib/glob_.h.
62924         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62925         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62926         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62927         iconv_.h.
62928         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62929         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62930         inttypes_.h.
62931         * lib/locale.in.h: Renamed from lib/locale_.h.
62932         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62933         locale_.h.
62934         * lib/math.in.h: Renamed from lib/math_.h.
62935         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62936         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62937         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62938         of netinet_in_.h. Add dependency.
62939         * lib/poll.in.h: Renamed from lib/poll_.h.
62940         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62941         * lib/search.in.h: Renamed from lib/search_.h.
62942         * modules/search (Files, Makefile.am): Use search.in.h instead of
62943         search_.h.
62944         * lib/signal.in.h: Renamed from lib/signal_.h.
62945         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62946         _signal.h.
62947         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62948         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62949         stdbool_.h.
62950         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62951         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62952         stdint_.h.
62953         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62954         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62955         stdio_.h.
62956         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62957         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62958         stdlib_.h.
62959         * lib/string.in.h: Renamed from lib/string_.h.
62960         * modules/string (Files, Makefile.am): Use string.in.h instead of
62961         string_.h.
62962         * doc/gnulib-tool.texi (Initial import): Update.
62963         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62964         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62965         of sys_select_.h. Add dependency.
62966         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62967         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62968         of sys_socket_.h.
62969         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62970         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62971         sys_stat_.h.
62972         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62973         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62974         sys_time_.h.
62975         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62976         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62977         sysexits_.h.
62978         * lib/time.in.h: Renamed from lib/time_.h.
62979         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62980         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62981         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62982         unistd_.h.
62983         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62984         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62985         wchar_.h.
62986         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62987         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62988         wctype_.h.
62989         * build-aux/bootstrap (slurp): Update.
62990         * lib/.cppi-disable: Update.
62991
62992 2007-09-30  Bruno Haible  <bruno@clisp.org>
62993
62994         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62995         Needed on BeOS.
62996
62997 2007-09-30  Bruno Haible  <bruno@clisp.org>
62998
62999         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
63000
63001 2007-09-29  Bruno Haible  <bruno@clisp.org>
63002
63003         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
63004
63005 2007-09-29  Bruno Haible  <bruno@clisp.org>
63006
63007         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
63008         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
63009         * build-aux/install-reloc: Compile also areadlink.c.
63010         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
63011
63012 2007-09-29  Bruno Haible  <bruno@clisp.org>
63013
63014         * gnulib-tool (func_emit_initmacro_done): Indentation.
63015
63016 2007-09-29  Bruno Haible  <bruno@clisp.org>
63017
63018         * README: Add CVS checkout update instructions.
63019         Info from Bob Proulx <bob@proulx.com>.
63020
63021 2007-09-28  Eric Blake  <ebb9@byu.net>
63022
63023         Provide move-if-change.
63024         * build-aux/move-if-change: New file, based on best practice
63025         rather than any canonical upstream location.
63026
63027 2007-09-28  Jim Meyering  <jim@meyering.net>
63028
63029         Fix canonicalize loop-detection corner case.
63030         Do not attempt to stat the symlink values stored via seen_triple.
63031         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
63032         on linux-2.6.18, (but not 2.6.22).
63033         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
63034         triple_compare.  The former compares dev,ino,filename, while the latter
63035         would actually stat dirname(filename) when dev and ino were equal.
63036         * lib/hash-triple.c: Install <string.h>.
63037         (STREQ): Define.
63038         (triple_compare_ino_str): New function.
63039         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
63040
63041 2007-09-28  Eric Blake  <ebb9@byu.net>
63042
63043         Enforce that AC_REPLACE_FUNCS files exist.
63044         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
63045         override check for typos.
63046
63047         Fix test-closein on Solaris 10.
63048         * tests/test-closein.c (main): Don't assume stdin can be inherited
63049         closed on all systems.
63050         * tests/test-closein.sh: Likewise.
63051         Reported by Piotr Tarnowski.
63052
63053 2007-09-28  Jim Meyering  <jim@meyering.net>
63054
63055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
63056
63057 2007-09-27  Jim Meyering  <jim@meyering.net>
63058
63059         canonicalize: Avoid a false-positive cycle failure.
63060         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
63061         Sort.  Remove cycle-check.
63062         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
63063         not cycle-check.h.
63064         (seen_triple): New function.
63065         (canonicalize_filename_mode): Use it instead of cycle-check.
63066         * tests/test-canonicalize.c: Add a test for this bug.
63067         * tests/test-canonicalize.sh: Set up and run the test.
63068
63069         New module, file-set, from coreutils.
63070         * modules/file-set: Define it.
63071         * lib/file-set.c, lib/file-set.h: Implement.
63072
63073         New module, hash-triple, from coreutils.
63074         * modules/hash-triple: Define it.
63075         * lib/hash-triple.c, lib/hash-triple.h: Implement.
63076
63077 2007-09-25  Eric Blake  <ebb9@byu.net>
63078
63079         Fix strerror on Interix.
63080         * lib/string_.h (strerror): Declare replacement.
63081         * doc/functions/strerror.texi (strerror): Document the Interix
63082         shortcoming.
63083         * modules/string (Makefile.am): Support new hooks.
63084         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
63085         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
63086         gl_FUNC_STRERROR_SEPARATE.
63087         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
63088         * lib/strerror.c (rpl_strerror): Provide replacement.
63089         * modules/strerror (Depends-on): Add string.
63090         (configure.ac): Detect use of module.
63091         * tests/test-strerror.c: New file.
63092         * modules/strerror-tests: New test module.
63093         * modules/argp (Depends-on): Add strerror.
63094         * modules/error (Depends-on): Likewise.
63095         Reported by Martin Koeppe.
63096
63097 2007-09-24  Bruno Haible  <bruno@clisp.org>
63098
63099         * README: Update git instructions.
63100
63101 2007-09-24  Eric Blake  <ebb9@byu.net>
63102
63103         Revert fpending breakage from 2007-09-08.
63104         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
63105         __fpending.c.
63106
63107 2007-09-24  Jim Meyering  <jim@meyering.net>
63108
63109         filenamecat.c: Add a test.
63110         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
63111         showing how the function works when DIR is the empty string.
63112
63113 2007-09-21  Simon Josefsson  <simon@josefsson.org>
63114
63115         * tests/test-canonicalize.sh: Turn on executable bit.
63116
63117 2007-09-19  Eric Blake  <ebb9@byu.net>
63118
63119         * README: Update CVS instructions.
63120
63121 2007-09-18  Bruno Haible  <bruno@clisp.org>
63122
63123         * modules/areadlink: New file.
63124         * lib/areadlink.h (areadlink): New declaration.
63125         * lib/areadlink.c: New file, based on lib/xreadlink.c.
63126
63127 2007-09-17  Jim Meyering  <jim@meyering.net>
63128
63129         * lib/savewd.c (ESTALE) [!defined]: Define.
63130         Reported to be required on Interix by Martin Koeppe.
63131
63132 2007-09-17  Bruno Haible  <bruno@clisp.org>
63133
63134         * gnulib-tool (func_version): Use $version.
63135
63136 2007-09-16  Bruno Haible  <bruno@clisp.org>
63137
63138         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
63139         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
63140         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
63141         Reported by Greg Schafer <gschafer@zip.com.au>.
63142
63143 2007-09-15  Bruno Haible  <bruno@clisp.org>
63144
63145         * gnulib-tool (sed): Try a little harder to make bash understand the
63146         alias.
63147         Reported by Bruce Korb <bruce.korb@gmail.com>.
63148
63149 2007-09-13  Eric Blake  <ebb9@byu.net>
63150
63151         * ChangeLog: Remove conflict markers.
63152
63153 2007-09-13  Simon Josefsson  <simon@josefsson.org>
63154
63155         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
63156         Reported by Bruno Haible <bruno@clisp.org>.
63157
63158 2007-09-12  Bruno Haible  <bruno@clisp.org>
63159
63160         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
63161         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
63162         is not defined.
63163
63164 2007-09-12  Eric Blake  <ebb9@byu.net>
63165
63166         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
63167         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
63168         Autoconf definition.
63169         * modules/euidaccess (Depends-on): Add extensions, for
63170         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
63171         * modules/fnmatch (Depends-on): Likewise.
63172         * modules/getaddrinfo (Depends-on): Likewise.
63173         * modules/getdelim (Depends-on): Likewise.
63174         * modules/getline (Depends-on): Likewise.
63175         * modules/getsubopt (Depends-on): Likewise.
63176         * modules/gettext (Depends-on): Likewise.
63177         * modules/group-member (Depends-on): Likewise.
63178         * modules/mbchar (Depends-on): Likewise.
63179         * modules/memmem (Depends-on): Likewise.
63180         * modules/mempcpy (Depends-on): Likewise.
63181         * modules/memrchr (Depends-on): Likewise.
63182         * modules/pagealign_alloc (Depends-on): Likewise.
63183         * modules/readutmp (Depends-on): Likewise.
63184         * modules/stpcpy (Depends-on): Likewise.
63185         * modules/stpncpy (Depends-on): Likewise.
63186         * modules/strchrnul (Depends-on): Likewise.
63187         * modules/strndup (Depends-on): Likewise.
63188         * modules/strsep (Depends-on): Likewise.
63189         * modules/strverscmp (Depends-on): Likewise.
63190         * modules/vasprintf (Depends-on): Likewise.
63191         * modules/wcwidth (Depends-on): Likewise.
63192         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
63193         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
63194         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
63195         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
63196         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63197         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63198         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
63199         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
63200         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
63201         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
63202         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63203         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
63204         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
63205         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63206         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
63207         * m4/readutmp.m4 (gl_READUTMP): Likewise.
63208         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63209         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
63210         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63211         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
63212         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
63213         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
63214         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
63215         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
63216         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
63217         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63218         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
63219         so that lock.m4 can be used in gettext without extensions module.
63220
63221 2007-09-11  Bruno Haible  <bruno@clisp.org>
63222
63223         * m4/isc-posix.m4: Remove file.
63224         Suggested by Eric Blake.
63225
63226 2007-09-11  Eric Blake  <ebb9@byu.net>
63227
63228         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
63229
63230 2007-09-10  Bruno Haible  <bruno@clisp.org>
63231
63232         * posix-modules: Fix typo in error message.
63233         Reported by Matt <mkraai@beckman.com>.
63234
63235 2007-09-09  Bruno Haible  <bruno@clisp.org>
63236
63237         * doc/functions/getdelim.texi: Update list of platforms lacking the
63238         function.
63239         * doc/functions/getline.texi: Likewise.
63240
63241 2007-09-09  Jim Meyering  <jim@meyering.net>
63242
63243         * lib/hash.c (hash_initialize): Detect calloc failure.
63244         Reported by Bruno Haible.
63245
63246 2007-09-09  Bruno Haible  <bruno@clisp.org>
63247
63248         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
63249         malloc or realloc fails.
63250
63251 2007-09-09  Bruno Haible  <bruno@clisp.org>
63252
63253         * modules/getcwd (Depends-on): Add malloc-posix.
63254         * modules/glob (Depends-on): Likewise.
63255         * modules/putenv (Depends-on): Likewise.
63256         * modules/strdup (Depends-on): Likewise.
63257         * modules/getdelim (Depends-on): Add realloc-posix.
63258         * modules/read-file (Depends-on): Likewise.
63259
63260 2007-09-09  Bruno Haible  <bruno@clisp.org>
63261
63262         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
63263         (gl_FUNC_MALLOC_POSIX): Require it.
63264         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
63265         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
63266         * modules/realloc (Files): Add m4/malloc.m4.
63267         * modules/calloc (Files): Likewise.
63268
63269 2007-09-09  Bruno Haible  <bruno@clisp.org>
63270
63271         * modules/malloc-posix: New file.
63272         * modules/malloc (Depends-on): Add malloc-posix.
63273         * lib/malloc.c: Include errno.h.
63274         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
63275         and a POSIX-compatible malloc into a single function. Set ENOMEM
63276         when returning NULL.
63277         * m4/malloc.m4: New file.
63278         * doc/functions/malloc.texi: Mention the malloc-posix module.
63279         * lib/stdlib_.h (malloc): New declaration.
63280         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63281         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
63282         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
63283         and HAVE_MALLOC_POSIX.
63284
63285 2007-09-09  Bruno Haible  <bruno@clisp.org>
63286
63287         * modules/realloc-posix: New file.
63288         * modules/realloc (Depends-on): Add realloc-posix.
63289         * lib/realloc.c: Include errno.h.
63290         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
63291         and a POSIX-compatible realloc into a single function. Set ENOMEM
63292         when returning NULL.
63293         * m4/realloc.m4: New file.
63294         * doc/functions/realloc.texi: Mention the realloc-posix module.
63295         * lib/stdlib_.h (realloc): New declaration.
63296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63297         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
63298         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
63299         and HAVE_REALLOC_POSIX.
63300
63301 2007-09-09  Bruno Haible  <bruno@clisp.org>
63302
63303         * modules/calloc-posix: New file.
63304         * modules/calloc (Depends-on): Add calloc-posix.
63305         * lib/calloc.c: Include errno.h.
63306         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
63307         and a POSIX-compatible calloc into a single function. Set ENOMEM
63308         when returning NULL.
63309         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
63310         * doc/functions/calloc.texi: Mention the calloc-posix module.
63311         * lib/stdlib_.h (calloc): New declaration.
63312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63313         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63314         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63315         and HAVE_CALLOC_POSIX.
63316
63317 2007-09-09  Bruno Haible  <bruno@clisp.org>
63318
63319         Allow for modules to show an arbitrary notice.
63320         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63321         * gnulib-tool: New option --extract-notice.
63322         (func_usage): Document it.
63323         (sed_extract_prog): Update.
63324         (func_get_notice): New function.
63325         (func_modules_notice): New function.
63326         (func_import, func_create_testdir): Invoke it.
63327         Suggested by Jim Meyering.
63328
63329 2007-09-09  Bruno Haible  <bruno@clisp.org>
63330
63331         * gnulib-tool: New options --verbose, --quiet.
63332         (func_usage): Document them.
63333         (verbose): New variable.
63334         (func_execute_command): New function.
63335         (func_import): Don't show the module list and the file list if
63336         $verbose < 0.
63337         (func_create_testdir): Likewise. Use func_execute_command.
63338         (func_create_megatestdir): Use func_execute_command.
63339
63340 2007-09-08  Bruno Haible  <bruno@clisp.org>
63341
63342         * gnulib-tool (func_import): Prefer rsync over wget when available,
63343         for fetching the PO files.
63344
63345 2007-09-08  Bruno Haible  <bruno@clisp.org>
63346
63347         * posix-modules: New file. Portions copied from gnulib-tool.
63348         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63349
63350 2007-09-08  Jim Meyering  <jim@meyering.net>
63351
63352         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63353         * lib/fpending.h: Rename from __fpending.h.
63354         * lib/fpending.c: Rename from __fpending.c.
63355         Include "fpending.h", not "__fpending.h".
63356         * lib/__fpending.h, lib/__fpending.c: Remove files.
63357         * modules/fpending (Files): Reflect new file names.
63358         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63359
63360 2007-09-08  Bruno Haible  <bruno@clisp.org>
63361
63362         * m4/inttypes-h.m4: Remove stub file.
63363
63364 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63365
63366         * doc/headers/stdint.texi: Discuss #include_next issue.
63367
63368 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63369
63370         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63371
63372 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63373
63374         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63375         in variable name.
63376
63377 2007-09-03  Jim Meyering  <jim@meyering.net>
63378
63379         New module: git-version-gen.
63380         * modules/git-version-gen: New file.
63381
63382         Import changes from coreutils for bootstrap script.
63383
63384         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63385
63386         bootstrap: uses rsync to download the .po files
63387         * build-aux/bootstrap (po_download_command_format): New global.
63388         (download_po_files): Use rsync.
63389         (update_po_files): Don't remove .po files after download,
63390         so future rsync runs can take advantage of the copies.
63391
63392         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63393
63394         Solve the unnecessary-.po-file-regeneration problem once and for all.
63395         * build-aux/bootstrap (download_po_files): New function, renamed from
63396         get_translations.  Now, downloads, but doesn't update LINGUAS.
63397         (update_po_files): New function.
63398
63399         bootstrap: Ignore more.
63400         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63401         uniwidth to e.g., lib/.gitignore.
63402         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63403
63404         * build-aux/bootstrap: New setting: vc_ignore.
63405         (insert_sorted_if_absent): Create $file if absent.
63406         Adapt to new, possibly empty, list: $vc_ignore.
63407
63408         bootstrap: generate more ignorable names
63409         * build-aux/bootstrap (slurp): When generating ignorable names,
63410         also map .sin to .sed, .gperf to .c, and .y to .c.
63411
63412 2007-09-03  Jim Meyering  <jim@meyering.net>
63413
63414         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63415         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63416
63417 2007-09-02  Bruno Haible  <bruno@clisp.org>
63418
63419         Fix mis-recognition of 'mcs' on QNX 6.
63420         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63421         output contains the string "Mono".
63422         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63423         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63424
63425 2007-09-01  Bruno Haible  <bruno@clisp.org>
63426
63427         Fix collision between uniwidth/* and linebreak modules.
63428         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63429         u32_width): Remove declarations.
63430         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63431         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63432         streq3, streq2, streq1, streq0): Remove functions.
63433         (STREQ): Remove macro.
63434         (is_cjk_encoding): Remove function.
63435         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63436         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63437         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63438         * NEWS: Document the change.
63439
63440 2007-09-01  Bruno Haible  <bruno@clisp.org>
63441
63442         * lib/streq.h: Add double-inclusion guard.
63443
63444 2007-09-01  Karl Berry  <karl@gnu.org>
63445
63446         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63447
63448 2007-08-28  Jim Meyering  <jim@meyering.net>
63449
63450         Rename mreadlink_with_size to areadlink_with_size.
63451         * NEWS: Document the change.
63452         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63453         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63454         * lib/mreadlink.h: Rename this to...
63455         * lib/areadlink.h: ...this.
63456         * modules/mreadlink-with-size: Rename this to...
63457         * modules/areadlink-with-size: ...this.
63458         * lib/canonicalize.c: Reflect the renaming.
63459         * modules/canonicalize: Likewise.
63460
63461 2007-08-26  Bruno Haible  <bruno@clisp.org>
63462
63463         * gnulib-tool (func_import): When deciding which files to remove,
63464         consider also dangling symbolic links.
63465         Reported by Eric Blake.
63466
63467 2007-08-26  Bruno Haible  <bruno@clisp.org>
63468
63469         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63470
63471 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63472
63473         * lib/readline.c: Don't include getline.h, the prototype is now
63474         found in stdio.h.
63475
63476 2007-08-23  Jim Meyering  <jim@meyering.net>
63477
63478         Getdelim touchup.
63479         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63480         around the funlockfile call, since funlockfile never sets errno.
63481         Don't set errno upon failed realloc.
63482
63483 2007-08-22  Eric Blake  <ebb9@byu.net>
63484
63485         Getline touchups.
63486         * lib/getdelim.c (getdelim): Revert regression that required *n to
63487         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63488         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63489         getdelim, rather than whether implementation is missing.
63490         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63491         * lib/stdio_.h (getline): Also declare if replacement is
63492         required.
63493         * doc/functions/getdelim.texi: New file.
63494         * doc/functions/getline.texi: Likewise.
63495         * doc/gnulib.texi (Function Substitutes): Add new files.
63496         Reported by Bruno Haible.
63497
63498 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63499
63500         * users.txt: Add Guile.
63501
63502 2007-08-22  Eric Blake  <ebb9@byu.net>
63503
63504         * tests/test-getdelim.c (main): Use remove, not unlink.
63505         * tests/test-getline.c (main): Likewise.
63506
63507         Move getline and getdelim into stdio.h, per POSIX 200x.
63508         * modules/getline (Files): Remove getline.h.
63509         (Depends-on): Add stdio.
63510         (configure.ac): Add module indicator.
63511         * modules/getdelim (Files): Remove getdelim.h.
63512         (Depends-on): Add stdio.
63513         (configure.ac): Add module indicator.
63514         * modules/stdio (Makefile.am): Work with new indicators.
63515         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63516         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63517         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63518         * lib/getdelim.h: Delete.
63519         * lib/getline.h: Delete.
63520         * lib/stdio_.h (getdelim, getline): Declare.
63521         * modules/getdelim-tests: New module.
63522         * modules/getline-tests: Likewise.
63523         * tests/test-getdelim.c: New file.
63524         * tests/test-getline.c: Likewise.
63525         * NEWS: Document the change.
63526         * lib/getline.c: Update choice of header.
63527         * lib/csharpcomp.c: Likewise.
63528         * lib/getpass.c: Likewise.
63529         * lib/javacomp.c: Likewise.
63530         * lib/javaversion.c: Likewise.
63531         * lib/yesno.c: Likewise.
63532         * lib/getdelim.c: Likewise.
63533         (getdelim): Set errno on failure, and avoid memory leak.
63534
63535 2007-08-19  Bruno Haible  <bruno@clisp.org>
63536
63537         * modules/closein (Depends-on): Add freadahead.
63538         * lib/closein.c: Include freadahead.h.
63539         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63540         is zero.
63541
63542 2007-08-19  Bruno Haible  <bruno@clisp.org>
63543
63544         * modules/freadahead-tests: New file.
63545         * tests/test-freadahead.sh: New file.
63546         * tests/test-freadahead.c: New file.
63547
63548         * modules/freadahead: New file.
63549         * lib/freadahead.h: New file.
63550         * lib/freadahead.c: New file.
63551         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63552         fbufmode, fpurge, freadable, fwritable.
63553
63554 2007-08-19  Eric Blake  <ebb9@byu.net>
63555
63556         Test yesno in combination with closein.
63557         * lib/yesno.c (yesno): Document use of stdin.
63558         * modules/yesno-tests (Files): New module.
63559         * tests/test-yesno.c (main): New file.
63560         * tests/test-yesno.sh: Likewise.
63561
63562 2007-08-19  Bruno Haible  <bruno@clisp.org>
63563
63564         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63565         * lib/fseeko.c (rpl_fseeko): Likewise.
63566         * lib/fseterr.c (fseterr): Likewise.
63567
63568 2007-08-19  Bruno Haible  <bruno@clisp.org>
63569
63570         * tests/test-lseek.c (main): Disable a test for BeOS.
63571         * doc/functions/lseek.texi: Document the BeOS bug.
63572
63573 2007-08-19  Bruno Haible  <bruno@clisp.org>
63574             Eric Blake  <ebb9@byu.net>
63575
63576         * lib/lseek.c: Include <sys/stat.h>.
63577         (rpl_lseek): Add workaround code also for Unix platforms.
63578         Needed for BeOS.
63579         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63580         * doc/functions/lseek.texi: Document BeOS definiency.
63581
63582 2007-08-18  Bruno Haible  <bruno@clisp.org>
63583
63584         * modules/fstrcmp-tests: New file.
63585         * tests/test-fstrcmp.c: New file.
63586
63587 2007-08-18  Bruno Haible  <bruno@clisp.org>
63588
63589         * modules/fstrcmp: New file, from GNU gettext with modifications.
63590         * lib/fstrcmp.h: New file, from GNU gettext.
63591         * lib/fstrcmp.c: New file, from GNU gettext.
63592         * MODULES.html.sh (String handling): Add fstrcmp.
63593
63594 2007-08-18  Bruno Haible  <bruno@clisp.org>
63595
63596         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63597         'bool'.
63598         (diag, compareseq): Remove const from the ctxt argument.
63599         (USE_HEURISTIC): Undefine at the end.
63600
63601 2007-08-18  Jim Meyering  <jim@meyering.net>
63602
63603         New file: lib/idcache.h
63604         * NEWS: Mention the addition.
63605         * modules/idcache (Files): Add lib/idcache.h
63606         * lib/idcache.c: Include "idcache.h".
63607         Don't include <sys/types.h>.
63608         Add a FIXME comment.
63609         Move file-scoped "static" declarations to the top.
63610         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63611
63612 2007-08-17  Bruno Haible  <bruno@clisp.org>
63613         and Paul Eggert  <eggert@cs.ucla.edu>
63614
63615         * MODULES.html.sh: Add diffseq.
63616         * modules/diffseq: New file.
63617         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63618         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63619
63620 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63621
63622         Import changes from coreutils for bootstrap script.
63623
63624         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63625
63626         * build-aux/bootstrap (slurp): Work even in environments where
63627         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63628         current code does not slurp files whose names start with ".", and
63629         this looks like it might be a troublesome area.
63630
63631         2007-07-11  Jim Meyering  <jim@meyering.net>
63632
63633         If there's a GPL vN copyright comment, require that N == 3.
63634
63635         2007-07-08  Jim Meyering  <jim@meyering.net>
63636
63637         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63638         * build-aux/bootstrap (mam_template): Move definition out of loop.
63639
63640         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63641
63642         * build-aux/bootstrap (symlink_to_dir): Rename function from
63643         symlink_to_gnulib.  Add a directory parameter.  Update all
63644         callers.
63645         (cp_mark_as_generated): Also check for -- and link to -- files in
63646         gl/.
63647
63648         2007-07-08  Jim Meyering  <jim@meyering.net>
63649
63650         Adapt to deeper hierarchy in gnulib.
63651         * build-aux/bootstrap (symlink_to_dir): If the destination
63652         directory doesn't exist, create it. This is required at least for
63653         "lib/uniwidth/cjk.h".
63654
63655         2007-05-15  Jim Meyering  <jim@meyering.net>
63656
63657         * build-aux/bootstrap: Now that generated Makefile.am files
63658         are no longer under version control, they must be created at
63659         bootstrap time.
63660
63661 2007-08-14  Ben Pfaff  <blp@gnu.org>
63662
63663         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63664
63665 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63666
63667         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63668         given the changes below.
63669         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63670         even on hosts that have padding bits beyond the supported 64.
63671
63672 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63673
63674         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63675         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63676         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63677         depends on it.
63678         (xstrtol_error): Remove.
63679         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63680         but with a different signature.
63681         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63682         * lib/xstrtol-error.c: Include exitfail.h.
63683         (xstrtol_fatal): New function, with a different signature from the
63684         old xstrtol_error, so that the caller need not worry about passing
63685         in an exit status, or about storage management of the option argument.
63686         (xstrtol_error): Now a static function.  Redo signature to
63687         implement xstrtol_fatal.  Output the correct number of hyphens in
63688         front of the option so that the caller need not worry about
63689         storage management.
63690         (N_): New macro.
63691         (_): Remove; not used now.
63692         * modules/xstrtol: Depend on getopt.
63693         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63694         of old STRTOL_FATAL_ERROR macro.
63695         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63696         of test program.
63697         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63698         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63699
63700 2007-08-08  Eric Blake  <ebb9@byu.net>
63701
63702         * lib/xstrtol-error.c: Add missing include.
63703
63704         Move xstrtol messages into gnulib domain, when --pobase is used.
63705         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63706         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63707         * modules/xstrtol (Files): Distribute new file.
63708         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63709         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63710         * tests/test-xstrtol.c: ...into new file.
63711         * tests/test-xstrtoul.c: Also test xstrtoul.
63712         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63713         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63714         * tests/test-xstrtol.sh: Drive the tests.
63715         * tests/test-xstrtoimax.sh: Likewise.
63716         * tests/test-xstrtoumax.sh: Likewise.
63717         * modules/xstrtol-tests: New module.
63718         * modules/xstrtoimax-tests: Likewise.
63719         * modules/xstrtoumax-tests: Likewise.
63720
63721 2007-08-08  Jim Meyering  <jim@meyering.net>
63722
63723         New function: mfile_name_concat.
63724         * lib/filenamecat.c (mfile_name_concat): New function, just like
63725         file_name_concat, but return NULL upon failure rather than exiting
63726         with a diagnostic.
63727         * lib/filenamecat.h: Declare it.
63728
63729 2007-08-07  Bruno Haible  <bruno@clisp.org>
63730
63731         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63732         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63733         warning from gcc.
63734         Reported by Eric Blake.
63735
63736 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63737
63738         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63739         * modules/crypto/arcfour (License): Likewise.
63740         * modules/crypto/des-tests (License): Likewise.
63741         * modules/crypto/gc-arctwo-tests (License): Likewise.
63742         * modules/crypto/gc-des-tests (License): Likewise.
63743         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63744         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63745         * modules/crypto/gc-md2-tests (License): Likewise.
63746         * modules/crypto/gc-md4-tests (License): Likewise.
63747         * modules/crypto/gc-md5-tests (License): Likewise.
63748         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63749         * modules/crypto/gc-rijndael-tests (License): Likewise.
63750         * modules/crypto/gc-sha1-tests (License): Likewise.
63751         * modules/crypto/gc-tests (License): Likewise.
63752         * modules/crypto/hmac-md5 (License): Likewise.
63753         * modules/crypto/hmac-sha1 (License): Likewise.
63754         * modules/crypto/md2-tests (License): Likewise.
63755         * modules/crypto/md4-tests (License): Likewise.
63756         * modules/crypto/md5 (License): Likewise.
63757         * modules/crypto/rijndael (License): Likewise.
63758         * modules/crypto/sha1 (License): Likewise.
63759         * modules/memxor (License): Likewise.
63760
63761 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63762         and Bruno Haible  <bruno@clisp.org>
63763
63764         * NEWS: Describe interface changes to human, xstrtol.
63765         * lib/human.h: Include <xstrtol.h>.
63766         (human_options): Return enum strtol_error, not int.  Remove
63767         bool arg; take int * instead.
63768         * lib/human.c: Don't include "gettext.h".
63769         (_): Remove; no longer used.
63770         Don't include <xstrtol.h>, since human.h does it.
63771         (human_options): Adjust to abovementioned interface changes.
63772         Do not report error to stderr; that's now the caller's
63773         responsibility.
63774         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63775         interface change.
63776         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63777         Str, Argument_type_string.  All uses changed.  Put " argument"
63778         in diagnostics to make them clearer.  Change wording of suffix
63779         message for clarity.
63780         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63781         Argument_type_string.
63782         (STRTOL_FATAL_WARN): Remove; no longer used.
63783         * modules/human (Depends-on): Remove gettext-h.
63784
63785 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63786
63787         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63788
63789 2007-07-31  Bruno Haible  <bruno@clisp.org>
63790
63791         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63792         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63793         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63794
63795 2007-07-31  Bruno Haible  <bruno@clisp.org>
63796
63797         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63798         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63799
63800 2007-07-30  Bruno Haible  <bruno@clisp.org>
63801
63802         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63803         * modules/c-ctype (License): Likewise.
63804         * modules/c-strcase (License): Likewise.
63805         * modules/check-version (License): Likewise.
63806         * modules/iconv (License): Likewise.
63807         * modules/iconv_open (License): Likewise.
63808         * modules/read-file (License): Likewise.
63809         * modules/striconv (License): Likewise.
63810         * modules/strverscmp (License): Likewise.
63811         * modules/vasprintf (License): Likewise.
63812         * modules/crypto/des (License): Likewise.
63813         * modules/crypto/gc (License): Likewise.
63814         * modules/crypto/gc-arcfour (License): Likewise.
63815         * modules/crypto/gc-arctwo (License): Likewise.
63816         * modules/crypto/gc-des (License): Likewise.
63817         * modules/crypto/gc-hmac-md5 (License): Likewise.
63818         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63819         * modules/crypto/gc-md2 (License): Likewise.
63820         * modules/crypto/gc-md4 (License): Likewise.
63821         * modules/crypto/gc-md5 (License): Likewise.
63822         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63823         * modules/crypto/gc-random (License): Likewise.
63824         * modules/crypto/gc-rijndael (License): Likewise.
63825         * modules/crypto/gc-sha1 (License): Likewise.
63826         * modules/crypto/md2 (License): Likewise.
63827         * modules/crypto/md4 (License): Likewise.
63828
63829 2007-07-30  Jim Meyering  <jim@meyering.net>
63830
63831         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63832         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63833         it has valid stat data.  This bug would cause du not to count the
63834         sizes of inaccessible directories.
63835         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63836         in <http://bugzilla.redhat.com/250077>.
63837
63838 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63839             Bruno Haible  <bruno@clisp.org>
63840
63841         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63842         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63843         #include_next, gives a diagnostic about it, but reports no error in
63844         the exit code.
63845         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63846
63847 2007-07-24  Ben Pfaff  <blp@gnu.org>
63848
63849         Improve name: "count-one-bits" is better than "popcount".
63850         * MODULES.html.sh: Update name.
63851         * lib/popcount.h: Renamed lib/count-one-bits.h.
63852         (popcount): Renamed count_one_bits.
63853         (popcountl): Renamed count_one_bits_l.
63854         (popcountll): Renamed count_one_bits_ll.
63855         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63856         * modules/popcount: Renamed module/count-one-bits.
63857         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63858         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63859
63860 2007-07-23  Ben Pfaff  <blp@gnu.org>
63861
63862         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63863         better code generation, and add U to large constants to avoid
63864         warnings, in non-GCC case.
63865         Suggested by Bruno Haible.
63866
63867 2007-07-23  Ben Pfaff  <blp@gnu.org>
63868
63869         * lib/popcount.h: Use verify_true instead of if...abort.
63870         * modules/popcount: Depend on verify module.
63871         Suggested by Jim Meyering.
63872
63873 2007-07-23  Bruno Haible  <bruno@clisp.org>
63874
63875         * gnulib-tool (func_import): Create a .cvsignore file also when the
63876         directory is not yet in CVS but the toplevel directory is. When
63877         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63878         Reported by Karl Berry.
63879
63880 2007-07-22  Ben Pfaff  <blp@gnu.org>
63881
63882         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63883         case.
63884         Suggested by Eric Blake.
63885
63886 2007-07-22  Ben Pfaff  <blp@gnu.org>
63887
63888         New module: popcount.
63889         * MODULES.html.sh: Add popcount.
63890         * modules/popcount: New file.
63891         * modules/popcount-tests: New file.
63892         * tests/test-popcount.c: New file.
63893         * lib/popcount.h: New file.
63894         * m4/popcount.m4: New file.
63895
63896 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63897
63898         * build-aux/announce-gen: Update to GPLv3.
63899
63900         * build-aux/config.guess: Update from config.
63901
63902 2007-07-21  Bruno Haible  <bruno@clisp.org>
63903
63904         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63905         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63906
63907 2007-07-20  Jim Meyering  <jim@meyering.net>
63908
63909         * check-module: Diagnose a self-dependency.
63910
63911 2007-07-19  Bruno Haible  <bruno@clisp.org>
63912
63913         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63914         empty.
63915         Reported by Eric Blake.
63916
63917 2007-07-18  Bruno Haible  <bruno@clisp.org>
63918
63919         * gnulib-tool: New options --po-base, --po-domain.
63920         (func_usage): Document them.
63921         (pobase, po_domain): New variables.
63922         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63923         DEFAULT_TEXT_DOMAIN.
63924         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63925         (func_import): Consider pobase and po_domain. Create a po/ directory.
63926         (func_create_testdir): Set pobase and po_domain to empty.
63927         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63928         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63929
63930 2007-07-18  Bruno Haible  <bruno@clisp.org>
63931
63932         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63933         EXTRA_DIST augmentation for files in build-aux/.
63934
63935 2007-07-16  Bruno Haible  <bruno@clisp.org>
63936
63937         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63938         * modules/getdelim (License): Likewise.
63939
63940 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63941
63942         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63943         * modules/d-type (License): Likewise.
63944         * modules/extensions (License): Likewise.
63945         * modules/fnmatch (License): Likewise.
63946         * modules/fseeko (License): Likewise.
63947         * modules/getaddrinfo (License): Likewise.
63948         * modules/getline (License): Likewise.
63949         * modules/getlogin_r (License): Likewise.
63950         * modules/getpass (License): Likewise.
63951         * modules/gettimeofday (License): Likewise.
63952         * modules/glob (License): Likewise.
63953         * modules/inet_ntop (License): Likewise.
63954         * modules/malloc (License): Likewise.
63955         * modules/malloca (License): Likewise.
63956         * modules/memmem (License): Likewise.
63957         * modules/mempcpy (License): Likewise.
63958         * modules/memset (License): Likewise.
63959         * modules/minmax (License): Likewise.
63960         * modules/mktime (License): Likewise.
63961         * modules/netinet_in (License): Likewise.
63962         * modules/pathmax (License): Likewise.
63963         * modules/poll (License): Likewise.
63964         * modules/regex (License): Likewise.
63965         * modules/snprintf (License): Likewise.
63966         * modules/stdbool (License): Likewise.
63967         * modules/stdint (License): Likewise.
63968         * modules/stdio (License): Likewise.
63969         * modules/strcase (License): Likewise.
63970         * modules/strcasestr (License): Likewise.
63971         * modules/strdup (License): Likewise.
63972         * modules/string (License): Likewise.
63973         * modules/strndup (License): Likewise.
63974         * modules/strnlen (License): Likewise.
63975         * modules/strpbrk (License): Likewise.
63976         * modules/strptime (License): Likewise.
63977         * modules/strsep (License): Likewise.
63978         * modules/sys_select (License): Likewise.
63979         * modules/sys_socket (License): Likewise.
63980         * modules/sys_stat (License): Likewise.
63981         * modules/sys_time (License): Likewise.
63982         * modules/time (License): Likewise.
63983         * modules/time_r (License): Likewise.
63984         * modules/timegm (License): Likewise.
63985         * modules/unistd (License): Likewise.
63986         * modules/vsnprintf (License): Likewise.
63987         * modules/wctype (License): Likewise.
63988
63989 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63990
63991         * modules/argz (License): LGPLv2+.
63992
63993 2007-07-15  Karl Berry  <karl@gnu.org>
63994
63995         * doc/gnulib.texi: revise node structure per new fdl.texi.
63996
63997 2007-07-14  Bruno Haible  <bruno@clisp.org>
63998
63999         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
64000         the output file.
64001         * lib/uniname/uninames.h: Regenerated.
64002
64003 2007-07-14  Karl Berry  <karl@gnu.org>
64004
64005         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
64006         omitting sectioning and index commands.
64007
64008 2007-07-13  Bruno Haible  <bruno@clisp.org>
64009
64010         New gnulib-tool option --more-symlinks.
64011         * gnulib-tool (func_usage): Document --more-symlinks.
64012         (do_copyrights): New variable.
64013         Recognize option --more-symlinks.
64014         (func_import): Don't add a copyright notice transform to
64015         sed_transform_lib_file if do_copyrights is empty.
64016
64017 2007-07-13  Bruno Haible  <bruno@clisp.org>
64018
64019         * lib/vasnprintf.c (decimal_point_char): Define also if
64020         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
64021         && !NEED_PRINTF_DIRECTIVE_A.
64022         Reported by Clemens Koller <clemens.koller@anagramm.de> via
64023         Gary V. Vaughan <gary@gnu.org>.
64024
64025 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
64026
64027         * lib/inttypes_.h: Undo previous change, since it was fixed
64028         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
64029
64030 2007-07-13  Bruno Haible  <bruno@clisp.org>
64031
64032         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
64033         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
64034
64035 2007-07-13  Jim Meyering  <jim@meyering.net>
64036
64037         df: Don't fail for Tru64's "file-on-file mount".
64038         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
64039         so we fall through and use statfs instead.  Details here:
64040         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
64041         Reported by Albert Chin.
64042
64043 2007-07-13  Bruno Haible  <bruno@clisp.org>
64044
64045         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
64046         * modules/configmake (License): Likewise.
64047         * modules/gettext (License): Likewise.
64048         * modules/gettext-h (License): Likewise.
64049         * modules/include_next (License): Likewise.
64050         * modules/link-warning (License): Likewise.
64051         * modules/localcharset (License): Likewise.
64052         * modules/localename (License): Likewise.
64053         * modules/lock (License): Likewise.
64054         * modules/relocatable-lib-lgpl (License): Likewise.
64055         * modules/size_max (License): Likewise.
64056         * modules/vasnprintf (License): Likewise.
64057         * modules/wchar (License): Likewise.
64058         * modules/xsize (License): Likewise.
64059
64060 2007-07-13  Bruno Haible  <bruno@clisp.org>
64061
64062         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
64063         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
64064
64065 2007-07-12  Bruno Haible  <bruno@clisp.org>
64066
64067         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
64068         in the modules files.
64069
64070 2007-07-11  Karl Berry  <karl@gnu.org>
64071
64072         * MODULES.html.sh (func_module): use
64073          sed -e '\|^'"${includefile}"'$|d'
64074          instead of /.../d, to avoid errors on $includefile's containing /.
64075
64076 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64077
64078         * gnulib-tool (func_import): Avoid duplication of --avoid
64079         statements
64080         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
64081         names to `_' in variable names.
64082
64083 2007-07-10  Eric Blake  <ebb9@byu.net>
64084
64085         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
64086         * NEWS: Document this change.
64087
64088 2007-07-08  Bruno Haible  <bruno@clisp.org>
64089
64090         Update to Unicode 5.0.
64091         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
64092         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
64093         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
64094         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
64095         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
64096         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
64097         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
64098         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
64099         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
64100         U+10A3F, U+1D242..U+1D244.
64101         (nonspacing_table_ind): Update.
64102         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
64103         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
64104
64105 2007-07-08  Bruno Haible  <bruno@clisp.org>
64106
64107         Update to Unicode 5.0.
64108         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
64109         code transform. Extend the name index field of unicode_name_to_code and
64110         unicode_code_to_name from 16 to 24 bits.
64111         * lib/uniname/uniname.c (unicode_character_name,
64112         unicode_name_character): Add the range 0x12xxx to the code transform.
64113         * lib/uniname/uninames.h: Regenerated.
64114         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
64115
64116 2007-07-07  Bruno Haible  <bruno@clisp.org>
64117
64118         * modules/wcwidth-tests: New file.
64119         * tests/test-wcwidth.c: New file.
64120
64121         Work around MacOS X wcwidth() bug.
64122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
64123         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
64124         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
64125         original wcwidth in non-UTF-8 locales.
64126         * modules/wcwidth (Depends-on): Add localcharset, streq,
64127         uniwidth/width.
64128         * doc/functions/wcwidth.texi: Update.
64129
64130 2007-07-07  Bruno Haible  <bruno@clisp.org>
64131
64132         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
64133         (wcwidth): New declaration.
64134         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
64135         macros.
64136         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
64137         here. Prepare for creating <wchar.h> unconditionally.
64138         * modules/wchar (Depends-on): Add link-warning.
64139         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
64140         REPLACE_WCWIDTH, and GL_LINK_WARNING.
64141         * lib/wcwidth.h: Remove file.
64142         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
64143         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
64144         * modules/wcwidth (Files): Remove lib/wcwidth.h.
64145         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
64146         (Include): Replace wcwidth.h with <wchar.h>.
64147         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
64148         * lib/mbchar.h: Don't include wcwidth.h.
64149         * lib/mbswidth.c: Likewise.
64150         * NEWS: Mention the change.
64151
64152 2007-07-07  Bruno Haible  <bruno@clisp.org>
64153
64154         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
64155         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
64156         definition with an external declaration.
64157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
64158         defined as a function. Remove AC_C_INLINE requirement.
64159         * modules/wcwidth (Files): Add lib/wcwidth.c.
64160         (Makefile.am): Remove redundant statement.
64161
64162 2007-07-07  Bruno Haible  <bruno@clisp.org>
64163
64164         * MODULES.html.sh (Unicode string functions): Add the new modules.
64165
64166         * tests/uniwidth/test-u32-strwidth.c: New file.
64167         * modules/uniwidth/u32-strwidth-tests: New file.
64168
64169         * lib/uniwidth/u32-strwidth.c: New file.
64170         * modules/uniwidth/u32-strwidth: New file.
64171
64172         * tests/uniwidth/test-u16-strwidth.c: New file.
64173         * modules/uniwidth/u16-strwidth-tests: New file.
64174
64175         * lib/uniwidth/u16-strwidth.c: New file.
64176         * modules/uniwidth/u16-strwidth: New file.
64177
64178         * tests/uniwidth/test-u8-strwidth.c: New file.
64179         * modules/uniwidth/u8-strwidth-tests: New file.
64180
64181         * lib/uniwidth/u8-strwidth.c: New file.
64182         * modules/uniwidth/u8-strwidth: New file.
64183
64184         * tests/uniwidth/test-u32-width.c: New file.
64185         * modules/uniwidth/u32-width-tests: New file.
64186
64187         * lib/uniwidth/u32-width.c: New file.
64188         * modules/uniwidth/u32-width: New file.
64189
64190         * tests/uniwidth/test-u16-width.c: New file.
64191         * modules/uniwidth/u16-width-tests: New file.
64192
64193         * lib/uniwidth/u16-width.c: New file.
64194         * modules/uniwidth/u16-width: New file.
64195
64196         * tests/uniwidth/test-u8-width.c: New file.
64197         * modules/uniwidth/u8-width-tests: New file.
64198
64199         * lib/uniwidth/u8-width.c: New file.
64200         * modules/uniwidth/u8-width: New file.
64201
64202         * tests/uniwidth/test-uc_width.c: New file.
64203         * modules/uniwidth/width-tests: New file.
64204
64205         * lib/uniwidth/width.c: New file, from GNU libiconv.
64206         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
64207         * modules/uniwidth/width: New file.
64208
64209         * lib/uniwidth.h: New file, from GNU libiconv.
64210         * modules/uniwidth/base: New file.
64211
64212 2007-07-07  Bruno Haible  <bruno@clisp.org>
64213
64214         * lib/uniname.h: New file, from GNU gettext.
64215         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
64216         * lib/uniname/uninames.h: New file, from GNU gettext.
64217         * lib/uniname/uniname.c: New file, from GNU gettext.
64218         * tests/uniname/test-uninames.sh: New file.
64219         * tests/uniname/test-uninames.c: New file, from GNU gettext.
64220         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
64221         * modules/uniname/base: New file.
64222         * modules/uniname/uniname: New file.
64223         * modules/uniname/uniname-tests: New file.
64224         * MODULES.html.sh (Unicode string functions): Add the new modules.
64225
64226 2007-07-06  Bruno Haible  <bruno@clisp.org>
64227
64228         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
64229
64230 2007-07-06  Bruno Haible  <bruno@clisp.org>
64231
64232         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
64233         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
64234         includes <cygwin/sys_time.h> which includes <sys/select.h> which
64235         include <sys/time.h>.
64236         Reported by Eric Blake.
64237
64238 2007-07-06  Eric Blake  <ebb9@byu.net>
64239
64240         Fix testing canonicalize on cygwin.
64241         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64242         Revert patch from 2007-06-19.
64243         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
64244         canonicalize module is also in use.
64245         * tests/test-canonicalize.c: New file.
64246         * tests/test-canonicalize.sh: Likewise.
64247         * modules/canonicalize-tests: Likewise.
64248
64249 2007-07-06  Jim Meyering  <jim@meyering.net>
64250
64251         * lib/getugroups.c (getugroups): Detect getgrent failure.
64252         Adjust comment to reflect reality: this function may return -1.
64253
64254 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
64255
64256         * build-aux/bootstrap (TP_URL,get_translations): Update to use
64257         the new TP address.
64258         (usage): Fix typo
64259         (gnulib_mk): New variable.
64260
64261 2007-07-05  Jim Meyering  <jim@meyering.net>
64262
64263         Don't let endgrent clobber errno, no matter how improbable.
64264         * lib/getugroups.c (getugroups): Save and restore errno around
64265         endgrent call.
64266
64267         Close the group DB even when failing with 2^31 or more members.
64268         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
64269
64270 2007-07-04  Jim Meyering  <jim@meyering.net>
64271
64272         * lib/getugroups.h: New file.
64273         * lib/getugroups.c: Include "getugroups.h".
64274         Remove uses of "register" keyword.
64275         Move local variable, "cp", down into scope where used.
64276         Give "username" parameter the "const" attribute.
64277         * modules/getugroups (Files): Add lib/getugroups.h
64278
64279 2007-07-04  Karl Berry  <karl@gnu.org>
64280
64281         * MODULES.html.sh (func_all_modules): Complete rename of
64282         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
64283
64284 2007-07-02  Bruno Haible  <bruno@clisp.org>
64285
64286         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
64287         mode, when inttypes.h comes from gnulib.
64288         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64289
64290 2007-07-02  Simon Josefsson  <simon@josefsson.org>
64291
64292         * NEWS: Mention lgpl module name change.
64293
64294         * modules/lgpl-2.1: Renamed from lgpl.
64295
64296         * NEWS: Mention gpl module name change.
64297
64298         * modules/gpl-3.0: New file, based on gpl-2.0.
64299
64300         * modules/gpl-2.0: Renamed from gpl.
64301
64302         * modules/gpl: Fix filename, doc/gpl.texi is now found at
64303         doc/gpl-2.0.texi.
64304
64305 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
64306
64307         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
64308         #define __STDC_LIMIT_MACROS temporarily while including
64309         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
64310         Problem reported by Joel E. Denny in
64311         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64312
64313 2007-07-01  Bruno Haible  <bruno@clisp.org>
64314
64315         * lib/unistdio.h: New file.
64316         * lib/unistdio/u-asnprintf.h: New file.
64317         * lib/unistdio/u-asprintf.h: New file.
64318         * lib/unistdio/u-printf-args.c: New file.
64319         * lib/unistdio/u-printf-args.h: New file.
64320         * lib/unistdio/u-printf-parse.h: New file.
64321         * lib/unistdio/u-snprintf.h: New file.
64322         * lib/unistdio/u-sprintf.h: New file.
64323         * lib/unistdio/u-vasprintf.h: New file.
64324         * lib/unistdio/u-vsnprintf.h: New file.
64325         * lib/unistdio/u-vsprintf.h: New file.
64326         * lib/unistdio/ulc-asnprintf.c: New file.
64327         * lib/unistdio/ulc-asprintf.c: New file.
64328         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64329         * lib/unistdio/ulc-printf-parse.c: New file.
64330         * lib/unistdio/ulc-snprintf.c: New file.
64331         * lib/unistdio/ulc-sprintf.c: New file.
64332         * lib/unistdio/ulc-vasnprintf.c: New file.
64333         * lib/unistdio/ulc-vasprintf.c: New file.
64334         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64335         * lib/unistdio/ulc-vsnprintf.c: New file.
64336         * lib/unistdio/ulc-vsprintf.c: New file.
64337         * lib/unistdio/u8-asnprintf.c: New file.
64338         * lib/unistdio/u8-asprintf.c: New file.
64339         * lib/unistdio/u8-printf-parse.c: New file.
64340         * lib/unistdio/u8-snprintf.c: New file.
64341         * lib/unistdio/u8-sprintf.c: New file.
64342         * lib/unistdio/u8-vasnprintf.c: New file.
64343         * lib/unistdio/u8-vasprintf.c: New file.
64344         * lib/unistdio/u8-vsnprintf.c: New file.
64345         * lib/unistdio/u8-vsprintf.c: New file.
64346         * lib/unistdio/u8-u8-asnprintf.c: New file.
64347         * lib/unistdio/u8-u8-asprintf.c: New file.
64348         * lib/unistdio/u8-u8-snprintf.c: New file.
64349         * lib/unistdio/u8-u8-sprintf.c: New file.
64350         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64351         * lib/unistdio/u8-u8-vasprintf.c: New file.
64352         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64353         * lib/unistdio/u8-u8-vsprintf.c: New file.
64354         * lib/unistdio/u16-asnprintf.c: New file.
64355         * lib/unistdio/u16-asprintf.c: New file.
64356         * lib/unistdio/u16-printf-parse.c: New file.
64357         * lib/unistdio/u16-snprintf.c: New file.
64358         * lib/unistdio/u16-sprintf.c: New file.
64359         * lib/unistdio/u16-vasnprintf.c: New file.
64360         * lib/unistdio/u16-vasprintf.c: New file.
64361         * lib/unistdio/u16-vsnprintf.c: New file.
64362         * lib/unistdio/u16-vsprintf.c: New file.
64363         * lib/unistdio/u16-u16-asnprintf.c: New file.
64364         * lib/unistdio/u16-u16-asprintf.c: New file.
64365         * lib/unistdio/u16-u16-snprintf.c: New file.
64366         * lib/unistdio/u16-u16-sprintf.c: New file.
64367         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64368         * lib/unistdio/u16-u16-vasprintf.c: New file.
64369         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64370         * lib/unistdio/u16-u16-vsprintf.c: New file.
64371         * lib/unistdio/u32-asnprintf.c: New file.
64372         * lib/unistdio/u32-asprintf.c: New file.
64373         * lib/unistdio/u32-printf-parse.c: New file.
64374         * lib/unistdio/u32-snprintf.c: New file.
64375         * lib/unistdio/u32-sprintf.c: New file.
64376         * lib/unistdio/u32-vasnprintf.c: New file.
64377         * lib/unistdio/u32-vasprintf.c: New file.
64378         * lib/unistdio/u32-vsnprintf.c: New file.
64379         * lib/unistdio/u32-vsprintf.c: New file.
64380         * lib/unistdio/u32-u32-asnprintf.c: New file.
64381         * lib/unistdio/u32-u32-asprintf.c: New file.
64382         * lib/unistdio/u32-u32-snprintf.c: New file.
64383         * lib/unistdio/u32-u32-sprintf.c: New file.
64384         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64385         * lib/unistdio/u32-u32-vasprintf.c: New file.
64386         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64387         * lib/unistdio/u32-u32-vsprintf.c: New file.
64388         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64389         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64390         * tests/unistdio/test-ulc-printf1.h: New file.
64391         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64392         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64393         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64394         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64395         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64396         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64397         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64398         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64399         * tests/unistdio/test-u8-asnprintf1.c: New file.
64400         * tests/unistdio/test-u8-asnprintf1.h: New file.
64401         * tests/unistdio/test-u8-printf1.h: New file.
64402         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64403         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64404         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64405         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64406         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64407         * tests/unistdio/test-u8-vasprintf1.c: New file.
64408         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64409         * tests/unistdio/test-u8-vsprintf1.c: New file.
64410         * tests/unistdio/test-u16-asnprintf1.c: New file.
64411         * tests/unistdio/test-u16-asnprintf1.h: New file.
64412         * tests/unistdio/test-u16-printf1.h: New file.
64413         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64414         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64415         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64416         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64417         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64418         * tests/unistdio/test-u16-vasprintf1.c: New file.
64419         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64420         * tests/unistdio/test-u16-vsprintf1.c: New file.
64421         * tests/unistdio/test-u32-asnprintf1.c: New file.
64422         * tests/unistdio/test-u32-asnprintf1.h: New file.
64423         * tests/unistdio/test-u32-printf1.h: New file.
64424         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64425         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64426         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64427         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64428         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64429         * tests/unistdio/test-u32-vasprintf1.c: New file.
64430         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64431         * tests/unistdio/test-u32-vsprintf1.c: New file.
64432         * modules/unistdio/base: New file.
64433         * modules/unistdio/u-printf-args: New file.
64434         * modules/unistdio/ulc-asnprintf: New file.
64435         * modules/unistdio/ulc-asprintf: New file.
64436         * modules/unistdio/ulc-fprintf: New file.
64437         * modules/unistdio/ulc-printf-parse: New file.
64438         * modules/unistdio/ulc-snprintf: New file.
64439         * modules/unistdio/ulc-sprintf: New file.
64440         * modules/unistdio/ulc-vasnprintf: New file.
64441         * modules/unistdio/ulc-vasprintf: New file.
64442         * modules/unistdio/ulc-vfprintf: New file.
64443         * modules/unistdio/ulc-vsnprintf: New file.
64444         * modules/unistdio/ulc-vsprintf: New file.
64445         * modules/unistdio/u8-asnprintf: New file.
64446         * modules/unistdio/u8-asprintf: New file.
64447         * modules/unistdio/u8-printf-parse: New file.
64448         * modules/unistdio/u8-snprintf: New file.
64449         * modules/unistdio/u8-sprintf: New file.
64450         * modules/unistdio/u8-vasnprintf: New file.
64451         * modules/unistdio/u8-vasprintf: New file.
64452         * modules/unistdio/u8-vsnprintf: New file.
64453         * modules/unistdio/u8-vsprintf: New file.
64454         * modules/unistdio/u8-u8-asnprintf: New file.
64455         * modules/unistdio/u8-u8-asprintf: New file.
64456         * modules/unistdio/u8-u8-snprintf: New file.
64457         * modules/unistdio/u8-u8-sprintf: New file.
64458         * modules/unistdio/u8-u8-vasnprintf: New file.
64459         * modules/unistdio/u8-u8-vasprintf: New file.
64460         * modules/unistdio/u8-u8-vsnprintf: New file.
64461         * modules/unistdio/u8-u8-vsprintf: New file.
64462         * modules/unistdio/u16-asnprintf: New file.
64463         * modules/unistdio/u16-asprintf: New file.
64464         * modules/unistdio/u16-printf-parse: New file.
64465         * modules/unistdio/u16-snprintf: New file.
64466         * modules/unistdio/u16-sprintf: New file.
64467         * modules/unistdio/u16-vasnprintf: New file.
64468         * modules/unistdio/u16-vasprintf: New file.
64469         * modules/unistdio/u16-vsnprintf: New file.
64470         * modules/unistdio/u16-vsprintf: New file.
64471         * modules/unistdio/u16-u16-asnprintf: New file.
64472         * modules/unistdio/u16-u16-asprintf: New file.
64473         * modules/unistdio/u16-u16-snprintf: New file.
64474         * modules/unistdio/u16-u16-sprintf: New file.
64475         * modules/unistdio/u16-u16-vasnprintf: New file.
64476         * modules/unistdio/u16-u16-vasprintf: New file.
64477         * modules/unistdio/u16-u16-vsnprintf: New file.
64478         * modules/unistdio/u16-u16-vsprintf: New file.
64479         * modules/unistdio/u32-asnprintf: New file.
64480         * modules/unistdio/u32-asprintf: New file.
64481         * modules/unistdio/u32-printf-parse: New file.
64482         * modules/unistdio/u32-snprintf: New file.
64483         * modules/unistdio/u32-sprintf: New file.
64484         * modules/unistdio/u32-vasnprintf: New file.
64485         * modules/unistdio/u32-vasprintf: New file.
64486         * modules/unistdio/u32-vsnprintf: New file.
64487         * modules/unistdio/u32-vsprintf: New file.
64488         * modules/unistdio/u32-u32-asnprintf: New file.
64489         * modules/unistdio/u32-u32-asprintf: New file.
64490         * modules/unistdio/u32-u32-snprintf: New file.
64491         * modules/unistdio/u32-u32-sprintf: New file.
64492         * modules/unistdio/u32-u32-vasnprintf: New file.
64493         * modules/unistdio/u32-u32-vasprintf: New file.
64494         * modules/unistdio/u32-u32-vsnprintf: New file.
64495         * modules/unistdio/u32-u32-vsprintf: New file.
64496         * modules/unistdio/ulc-asnprintf-tests: New file.
64497         * modules/unistdio/ulc-vasnprintf-tests: New file.
64498         * modules/unistdio/ulc-vasprintf-tests: New file.
64499         * modules/unistdio/ulc-vsnprintf-tests: New file.
64500         * modules/unistdio/ulc-vsprintf-tests: New file.
64501         * modules/unistdio/u8-asnprintf-tests: New file.
64502         * modules/unistdio/u8-vasnprintf-tests: New file.
64503         * modules/unistdio/u8-vasprintf-tests: New file.
64504         * modules/unistdio/u8-vsnprintf-tests: New file.
64505         * modules/unistdio/u8-vsprintf-tests: New file.
64506         * modules/unistdio/u16-asnprintf-tests: New file.
64507         * modules/unistdio/u16-vasnprintf-tests: New file.
64508         * modules/unistdio/u16-vasprintf-tests: New file.
64509         * modules/unistdio/u16-vsnprintf-tests: New file.
64510         * modules/unistdio/u16-vsprintf-tests: New file.
64511         * modules/unistdio/u32-asnprintf-tests: New file.
64512         * modules/unistdio/u32-vasnprintf-tests: New file.
64513         * modules/unistdio/u32-vasprintf-tests: New file.
64514         * modules/unistdio/u32-vsnprintf-tests: New file.
64515         * modules/unistdio/u32-vsprintf-tests: New file.
64516         * MODULES.html.sh (Unicode string functions): Add the new modules.
64517
64518 2007-07-01  Bruno Haible  <bruno@clisp.org>
64519
64520         * lib/sprintf.c (sprintf): Limit the available length estimation,
64521         to avoid address wraparound.
64522         * lib/vsprintf.c (vsprintf): Likewise.
64523         * modules/sprintf-posix (Dependencies): Add stdint.
64524         * modules/vsprintf-posix (Dependencies): Likewise.
64525
64526 2007-07-01  Bruno Haible  <bruno@clisp.org>
64527
64528         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64529         Windows PATH as well. Conservative double-quoting. Comments.
64530
64531 2007-07-01  Bruno Haible  <bruno@clisp.org>
64532             Eric Blake  <ebb9@byu.net>
64533             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64534
64535         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64536         empty components in $PATH, denoting '.'.
64537
64538 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64539
64540         * gnulib-tool: Fix indentation.
64541         (func_create_megatestdir): Likewise.
64542         Report by Bruno Haible.
64543
64544 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64545
64546         Sync from Automake.
64547         * build-aux/gnupload: Fix shell portability issues with for loops.
64548         Report by Karl Berry.
64549
64550 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64551
64552         * build-aux/maint.mk (POURL): Use translationproject.org.
64553
64554 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64555             Bruno Haible  <bruno@clisp.org>
64556
64557         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64558         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64559         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64560         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64561         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64562
64563 2007-06-27  Bruno Haible  <bruno@clisp.org>
64564
64565         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64566         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64567
64568 2007-06-26  Karl Berry  <karl@gnu.org>
64569
64570         * MODULES.html.sh: remove xreadlink-with-size.
64571
64572 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64573
64574         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64575         method that I hope also handles the double-include problem noted
64576         by Bruno Haible in
64577         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64578
64579 2007-06-23  Bruno Haible  <bruno@clisp.org>
64580
64581         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64582         Don't let the 'mostlyclean' target fail if the last subdirectory could
64583         not be removed.
64584         Reported by Karl Berry.
64585
64586 2007-06-23  Bruno Haible  <bruno@clisp.org>
64587
64588         * gnulib-tool (echo): Add a speedier workaround for ksh.
64589         * tests/test-echo.sh: Likewise.
64590
64591 2007-06-23  Bruno Haible  <bruno@clisp.org>
64592
64593         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64594         * tests/test-echo.sh: Likewise.
64595
64596 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64597
64598         * gnulib-tool (IFS): Initialize early, so we don't set it to
64599         empty later.
64600         (self_abspathname): Rewrite algorithm to set it, reindent.
64601         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64602         (func_create_megatestdir): Merge some sed scripts.
64603
64604 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64605
64606         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64607         exposed by Sun Studio 11 cc on Solaris 8.
64608
64609 2007-06-22  Bruno Haible  <bruno@clisp.org>
64610
64611         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64612         backslashes.
64613         * tests/test-echo.sh: New file.
64614
64615 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64616
64617         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64618         simplify `sed_replace_build_aux' scripts, they are portable but
64619         echoing them with `echo' is not.
64620         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64621
64622 2007-06-21  Karl Berry  <karl@gnu.org>
64623
64624         * config/srclist.txt: guess we can't handle the licenses via
64625         srclist at the moment.
64626
64627 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64628
64629         * MODULES.html.sh: Add include_next.
64630         * modules/include_next: New file.
64631
64632 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64633
64634         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64635         INCLUDE_NEXT.
64636         (gl_CHECK_NEXT_HEADERS): New macro.
64637         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64638         the obsolescent gl_ABSOLUTE_HEADER.
64639         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64640         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64641         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64642         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64643         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64644         * m4/math_h.m4 (gl_MATH_H): Likewise.
64645         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64646         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64647         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64648         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64649         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64650         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64651         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64652         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64653         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64654         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64655         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64656         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64657         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64658         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64659         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64660         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64661         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64662         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64663         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64664         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64665         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64666         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64667         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64668         * lib/float_.h: Likewise.
64669         * lib/inttypes_.h: Likewise.
64670         * lib/math_.h: Likewise.
64671         * lib/search_.h: Likewise.
64672         * lib/signal_.h: Likewise.
64673         * lib/stdint_.h: Likewise.
64674         * lib/stdio_.h: Likewise.
64675         * lib/stdlib_.h: Likewise.
64676         * lib/string_.h: Likewise.
64677         * lib/sys_stat_.h: Likewise.
64678         * lib/sys_time_.h: Likewise.
64679         * lib/time_.h: Likewise.
64680         * lib/unistd_.h: Likewise.
64681         * lib/wchar_.h: Likewise.
64682         * lib/wctype_.h: Likewise.
64683         * lib/dirent_.h: Likewise.
64684         * lib/iconv_.h: Likewise.
64685         * lib/locale_.h: Likewise.
64686         * lib/netinet_in_.h: Likewise.
64687         * lib/sys_select_.h: Likewise.
64688         * lib/sys_socket_.h: Likewise.
64689         * lib/sysexits_.h: Likewise.
64690         * modules/fcntl (Depends-on): Depend on include_next, not
64691         absolute_header.
64692         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64693         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64694         * modules/fchdir: Likewise.
64695         * modules/float: Likewise.
64696         * modules/iconv_open: Likewise.
64697         * modules/inttypes: Likewise.
64698         * modules/locale: Likewise.
64699         * modules/math: Likewise.
64700         * modules/netinet_in: Likewise.
64701         * modules/search: Likewise.
64702         * modules/signal: Likewise.
64703         * modules/stdint: Likewise.
64704         * modules/stdio: Likewise.
64705         * modules/stdlib: Likewise.
64706         * modules/string: Likewise.
64707         * modules/sys_select: Likewise.
64708         * modules/sys_socket: Likewise.
64709         * modules/sys_stat: Likewise.
64710         * modules/sys_time: Likewise.
64711         * modules/sysexits: Likewise.
64712         * modules/time: Likewise.
64713         * modules/unistd: Likewise.
64714         * modules/wchar: Likewise.
64715         * modules/wctype: Likewise.
64716         * modules/sys_stat: Change maintainer to "all".
64717         * modules/unistd: Likewise.
64718
64719 2007-06-20  Karl Berry  <karl@gnu.org>
64720
64721         * config/srclist.txt: track www changes in license files.
64722
64723 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64724
64725         * build-aux/bootstrap: Remove stray dot.
64726         Make sure build_aux settings are honored when linking
64727         gnulib_extra_files.
64728
64729 2007-06-19  Eric Blake  <ebb9@byu.net>
64730
64731         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64732         Allow compilation on cygwin.
64733
64734 2007-06-19  Jim Meyering  <jim@meyering.net>
64735
64736         xreadlink-with-size: Remove module.  No longer used.
64737         Ex-callers now use xreadlink or mreadlink-with-size.
64738         * modules/xreadlink-with-size: Remove module.
64739         * lib/xreadlink-with-size.c: Remove file.
64740         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64741         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64742         just before the function definition *is* accurate.
64743
64744         Eliminate one way canonicalize_filename_mode could exit.
64745         * lib/canonicalize.c (canonicalize_filename_mode):
64746         Use mreadlink_with_size, not xreadlink_with_size.
64747
64748 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64749
64750         Detect porting problems to FreeBSD/arm, which has time_t wider than
64751         long int.  Original problem reported for GNU diff by Xin Li in
64752         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64753         * modules/getdate (Depends-on): Add intprops, verify.
64754         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64755         is an integer type no wider than long int.
64756
64757 2007-06-18  Jim Meyering  <jim@meyering.net>
64758
64759         New module: mreadlink-with-size.
64760         * MODULES.html.sh: Add mreadlink-with-size.
64761         * modules/mreadlink-with-size: New module
64762         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64763         not xreadlink-with-size.
64764         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64765
64766 2007-06-16  Bruno Haible  <bruno@clisp.org>
64767
64768         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64769         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64770         Reported by Gary V. Vaughan <gary@gnu.org>.
64771
64772 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64773
64774         Revamp lchown so that it lives in unistd.h where it belongs.
64775         * lib/lchown.h: Remove.
64776         * lib/dirchownmod.c: Don't include lib/lchown.h.
64777         * lib/fchownat.c: Likewise.
64778         * lib/openat.c: Likewise.
64779         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64780         does not follow symlinks.
64781         (EOPNOTSUPP): Define if not defined.
64782         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64783         is defined to 0.
64784         (lchown): New decl.
64785         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64786         Do not check for lchown decl.
64787         Set REPLACE_LCHOWN.
64788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64789         REPLACE_LCHOWN.
64790         * modules/chown: Make it clear it follows symlinks.
64791         * modules/lchown: Make it clear it doesn't follow symlinks.
64792         (Files): Remove lib/lchown.h
64793         (Depends-on): Add unistd.
64794         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64795         (Include): Include <unistd.h>, not "lchown.h".
64796         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64797         REPLACE_LCHOWN.
64798
64799 2007-06-15  Jim Meyering  <jim@meyering.net>
64800
64801         Change license (GPL to LGPL) of fsusage and dependents.
64802         * modules/fsusage (License): Change to LGPL.
64803         * modules/full-read (License): Likewise.
64804         * modules/full-write (License): Likewise.
64805         * modules/safe-read (License): Likewise.
64806         * modules/safe-write (License): Likewise.
64807
64808 2007-06-14  Ben Pfaff  <blp@gnu.org>
64809
64810         Missing part of allocsa -> malloca transition.
64811         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64812         gl_MALLOCA.
64813
64814 2007-06-12  Bruno Haible  <bruno@clisp.org>
64815
64816         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64817         to ia64, x86_64, i386.
64818         Reported by Eric Blake.
64819
64820 2007-06-12  Bruno Haible  <bruno@clisp.org>
64821
64822         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64823         cross-compiling to x86_64.
64824
64825 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64826
64827         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64828         glitch reported by Ralf Wildenhues in
64829         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64830
64831         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64832         Vin Shelton.
64833
64834 2007-06-11  Bruno Haible  <bruno@clisp.org>
64835
64836         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64837         replacement string.
64838         Reported by Eric Blake.
64839
64840 2007-06-10  Bruno Haible  <bruno@clisp.org>
64841
64842         Prepare vasnprintf code for use with Unicode strings.
64843         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64844         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64845         TYPE_U32_STRING.
64846         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64847         a_u32_string variants.
64848         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64849         * lib/printf-args.c: Don't include config.h and the specification
64850         header if PRINTF_FETCHARGS is already defined.
64851         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64852         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64853         TYPE_U16_STRING, TYPE_U32_STRING.
64854         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64855         u16_directive, u16_directives, u32_directive, u32_directives): New
64856         types.
64857         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64858         New declarations.
64859         * lib/printf-parse.c: Don't include config.h and the specification
64860         header if PRINTF_PARSE is already defined. Eliminate the set of
64861         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64862         them now. Include c-ctype.h.
64863         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64864         directive and CHAR_T_ONLY_ASCII.
64865         * lib/vasnprintf.c: Don't include config.h and the specification header
64866         if VASNPRINTF is already defined.
64867         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64868         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64869         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64870         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64871         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64872         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64873         code accordingly.
64874         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64875         pad_ourselves also in this case, with the 'c' and 's' directives, and
64876         with a different notion of "width".
64877         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64878
64879 2007-06-10  Bruno Haible  <bruno@clisp.org>
64880
64881         * modules/unistr/u32-mbsnlen: New file.
64882         * lib/unistr/u32-mbsnlen.c: New file.
64883
64884         * modules/unistr/u16-mbsnlen: New file.
64885         * lib/unistr/u16-mbsnlen.c: New file.
64886
64887         * modules/unistr/u8-mbsnlen: New file.
64888         * lib/unistr/u8-mbsnlen.c: New file.
64889
64890         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64891         declarations.
64892
64893 2007-06-10  Bruno Haible  <bruno@clisp.org>
64894
64895         * lib/string_.h (mbsnlen): New declaration.
64896         * lib/mbsnlen.c: New file.
64897         * m4/mbsnlen.m4: New file.
64898         * modules/mbsnlen: New file.
64899         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64900         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64901         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64902
64903 2007-06-10  Bruno Haible  <bruno@clisp.org>
64904
64905         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64906
64907 2007-06-10  Bruno Haible  <bruno@clisp.org>
64908
64909         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64910         * lib/mbuiter.h: Likewise.
64911
64912 2007-06-10  Bruno Haible  <bruno@clisp.org>
64913
64914         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64915         declaration.
64916
64917 2007-06-10  Karl Berry  <karl@gnu.org>
64918
64919         * config/srclist.txt: remove gettext entries, Bruno prefers
64920         to update individually.
64921
64922 2007-06-10  Bruno Haible  <bruno@clisp.org>
64923
64924         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64925         'maxlen'. Ensure only length + width bytes are allocated, not
64926         length + 1 + width.
64927
64928 2007-06-09  Bruno Haible  <bruno@clisp.org>
64929
64930         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64931         (CHAR_T): Remove macro.
64932         (VASNPRINTF): Update.
64933
64934 2007-06-09  Bruno Haible  <bruno@clisp.org>
64935
64936         * MODULES.html.sh (Unicode string functions): Add the new modules.
64937
64938         * modules/uniconv/u32-conv-to-enc: New file.
64939         * lib/uniconv/u32-conv-to-enc.c: New file.
64940         * modules/uniconv/u32-conv-to-enc-tests: New file.
64941         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64942
64943         * modules/uniconv/u16-conv-to-enc: New file.
64944         * lib/uniconv/u16-conv-to-enc.c: New file.
64945         * lib/uniconv/u-conv-to-enc.h: New file.
64946         * modules/uniconv/u16-conv-to-enc-tests: New file.
64947         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64948
64949         * modules/uniconv/u8-conv-to-enc: New file.
64950         * lib/uniconv/u8-conv-to-enc.c: New file.
64951         * modules/uniconv/u8-conv-to-enc-tests: New file.
64952         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64953
64954         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64955         u32_conv_to_encoding): New declarations.
64956
64957 2007-06-09  Bruno Haible  <bruno@clisp.org>
64958
64959         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64960
64961 2007-06-09  Bruno Haible  <bruno@clisp.org>
64962
64963         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64964         * modules/malloca: Renamed from modules/allocsa, updated.
64965         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64966         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64967         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64968         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64969         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64970         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64971         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64972         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64973         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64974         * modules/c-strcasestr (Depends-on): Update.
64975         * lib/c-strcasestr.c: Update.
64976         * modules/c-strstr (Depends-on): Update.
64977         * lib/c-strstr.c: Update.
64978         * modules/canonicalize-lgpl (Depends-on): Update.
64979         * lib/canonicalize-lgpl.c: Update.
64980         * modules/clean-temp (Depends-on): Update.
64981         * lib/clean-temp.c: Update.
64982         * modules/csharpcomp (Depends-on): Update.
64983         * lib/csharpcomp.c: Update.
64984         * modules/csharpexec (Depends-on): Update.
64985         * lib/csharpexec.c: Update.
64986         * modules/javacomp (Depends-on): Update.
64987         * lib/javacomp.c: Update.
64988         * modules/javaexec (Depends-on): Update.
64989         * lib/javaexec.c: Update.
64990         * modules/mbscasestr (Depends-on): Update.
64991         * lib/mbscasestr.c: Update.
64992         * modules/mbsstr (Depends-on): Update.
64993         * lib/mbsstr.c: Update.
64994         * modules/setenv (Depends-on): Update.
64995         * lib/setenv.c: Update.
64996         * modules/strcasestr (Depends-on): Update.
64997         * lib/strcasestr.c: Update.
64998         * modules/striconveha (Depends-on): Update.
64999         * lib/striconveha.c: Update.
65000         * modules/relocatable-prog-wrapper (Files): Update.
65001         * lib/relocwrapper.c: Update.
65002         * build-aux/install-reloc: Update.
65003         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
65004
65005 2007-06-08  Bruno Haible  <bruno@clisp.org>
65006
65007         Port to uClibc.
65008         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
65009         * lib/fpurge.c (fpurge): Likewise.
65010         * lib/freading.c (freading): Likewise.
65011         * lib/fseeko.c (rpl_fseeko): Likewise.
65012         * lib/fseterr.c (fseterr): Likewise.
65013         * lib/fwriting.c (fwriting): Likewise.
65014         * tests/test-fflush.c (main): Avoid a failure on uClibc.
65015
65016 2007-06-08  Bruno Haible  <bruno@clisp.org>
65017
65018         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
65019         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
65020         * modules/gettext (Files): Add m4/intlmacosx.m4.
65021
65022 2007-06-07  Bruno Haible  <bruno@clisp.org>
65023
65024         * modules/localename-tests: New file.
65025         * tests/test-localename.c: New file.
65026
65027         New module 'localename'.
65028         * lib/localename.h: New file.
65029         * lib/localename.c: New file, from GNU gettext.
65030         * m4/localename.m4: New file.
65031         * modules/localename: New file.
65032
65033 2007-06-07  Bruno Haible  <bruno@clisp.org>
65034
65035         Work around the lack of <wchar.h> on some builds of uClibc.
65036         * doc/headers/wchar.texi: Update.
65037         * lib/wchar_.h: Include <wchar.h> only if it exists.
65038         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
65039         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
65040         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
65041         doesn't exist.
65042         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
65043         * modules/mbfile (Depends-on): Add wchar.
65044         * modules/mbiter (Depends-on): Likewise.
65045         * modules/mbuiter (Depends-on): Likewise.
65046         Reported by Simon Josefsson.
65047
65048 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
65049
65050         Work around problem reported by Steven M. Schweda in
65051         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
65052         Tru64 5.1B with the Compaq compiler environment installed declares
65053         an 'isblank' function but does not define it in the C library.
65054         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
65055         * lib/regex_internal.h (isblank): Likewise.
65056         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
65057         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65058
65059 2007-06-05  Bruno Haible  <bruno@clisp.org>
65060
65061         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
65062         ia64.
65063         * modules/printf-safe: New file.
65064         * modules/fprintf-posix (Depends-on): Add printf-safe.
65065         * modules/printf-posix (Depends-on): Likewise.
65066         * modules/snprintf-posix (Depends-on): Likewise.
65067         * modules/sprintf-posix (Depends-on): Likewise.
65068         * modules/vasnprintf-posix (Depends-on): Likewise.
65069         * modules/vasprintf-posix (Depends-on): Likewise.
65070         * modules/vfprintf-posix (Depends-on): Likewise.
65071         * modules/vprintf-posix (Depends-on): Likewise.
65072         * modules/vsnprintf-posix (Depends-on): Likewise.
65073         * modules/vsprintf-posix (Depends-on): Likewise.
65074         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
65075         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
65076         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
65077         "no" on i386, x86_64, ia64.
65078         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
65079         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65080         on i386, x86_64, ia64.
65081         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
65082         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65083         on i386, x86_64, ia64.
65084         * tests/test-vasnprintf-posix.c: Include float.h.
65085         (LDBL80_WORDS): New macro.
65086         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65087         on i386, x86_64, ia64.
65088         * tests/test-vasprintf-posix.c: Include float.h.
65089         (LDBL80_WORDS): New macro.
65090         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
65091         on i386, x86_64, ia64.
65092         * tests/test-snprintf-posix.c: Include float.h.
65093         * tests/test-sprintf-posix.c: Likewise.
65094         * tests/test-vsnprintf-posix.c: Likewise.
65095         * tests/test-vsprintf-posix.c: Likewise.
65096
65097 2007-06-05  Bruno Haible  <bruno@clisp.org>
65098
65099         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
65100         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
65101         non-IEEE numbers on i386, x86_64, ia64.
65102         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
65103         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
65104         * tests/test-isnanl.h: Include float.h.
65105         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
65106
65107 2007-06-05  Bruno Haible  <bruno@clisp.org>
65108
65109         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
65110         also the %a / %A. Handle the %a / %A code before this extra handling.
65111
65112 2007-06-05  Bruno Haible  <bruno@clisp.org>
65113
65114         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
65115         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
65116
65117 2007-06-05  Bruno Haible  <bruno@clisp.org>
65118
65119         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
65120         typo in variable name.
65121
65122 2007-06-05  Eric Blake  <ebb9@byu.net>
65123
65124         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
65125         Reported by Simon Josefsson.
65126
65127 2007-06-04  Bruno Haible  <bruno@clisp.org>
65128
65129         Avoid test failures on some PowerPC platforms.
65130         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
65131         Define differently for PowerPC.
65132         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
65133         Reported by Gary V. Vaughan <gary@gnu.org>.
65134
65135 2007-06-02  Bruno Haible  <bruno@clisp.org>
65136
65137         Fix test-stdint failure on FreeBSD/ia64.
65138         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
65139         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
65140         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
65141         * doc/headers/stdint.texi: Update.
65142
65143 2007-06-01  Bruno Haible  <bruno@clisp.org>
65144
65145         * tests/test-binary-io.c (main): Pass a third argument to open().
65146         Reported by Gary V. Vaughan <gary@gnu.org>.
65147
65148 2007-06-01  Bruno Haible  <bruno@clisp.org>
65149
65150         * doc/functions/frexpl.texi: Update for mingw.
65151
65152 2007-06-01  Bruno Haible  <bruno@clisp.org>
65153
65154         * tests/test-lseek.c (main): Disable test of errno for invalid third
65155         argument.
65156         * doc/functions/lseek.texi: Update.
65157         Reported by Gary V. Vaughan <gary@gnu.org>.
65158
65159 2007-05-28  Bruno Haible  <bruno@clisp.org>
65160
65161         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
65162
65163 2007-05-31  Eric Blake  <ebb9@byu.net>
65164
65165         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
65166         cross compiling.
65167
65168 2007-05-30  Eric Blake  <ebb9@byu.net>
65169         and Bruno Haible  <bruno@clisp.org>
65170
65171         Work around mingw test failures exposed by m4-1.4.9b.
65172         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
65173         * tests/test-unistd.c: Disable uid_t and git_t tests for the
65174         moment.
65175
65176 2007-05-30  Bruno Haible  <bruno@clisp.org>
65177
65178         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
65179         assuming that they are closed. Needed on HP-UX 11.
65180
65181 2007-05-29  Bruno Haible  <bruno@clisp.org>
65182
65183         Fix a problem with #include_next.
65184         * lib/dirent_.h: Split the double-inclusion guard.
65185         * lib/fcntl_.h: Likewise.
65186         * lib/float_.h: Likewise.
65187         * lib/iconv_.h: Likewise.
65188         * lib/inttypes_.h: Likewise.
65189         * lib/locale_.h: Likewise.
65190         * lib/math_.h: Likewise.
65191         * lib/netinet_in_.h: Likewise.
65192         * lib/search_.h: Likewise.
65193         * lib/signal_.h: Likewise.
65194         * lib/stdint_.h: Likewise.
65195         * lib/stdio_.h: Likewise.
65196         * lib/stdlib_.h: Likewise.
65197         * lib/string_.h: Likewise.
65198         * lib/sys_select_.h: Likewise.
65199         * lib/sys_socket_.h: Likewise.
65200         * lib/sys_stat_.h: Likewise.
65201         * lib/sys_time_.h: Likewise.
65202         * lib/sysexits_.h: Likewise.
65203         * lib/time_.h: Likewise.
65204         * lib/unistd_.h: Likewise.
65205         * lib/wchar_.h: Likewise.
65206         * lib/wctype_.h: Likewise.
65207
65208 2007-05-29  Bruno Haible  <bruno@clisp.org>
65209
65210         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
65211         for the moment.
65212
65213 2007-05-29  Bruno Haible  <bruno@clisp.org>
65214
65215         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
65216         invocation.
65217         Reported by Eric Blake.
65218
65219 2007-05-29  Bruno Haible  <bruno@clisp.org>
65220
65221         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
65222         compiling case.
65223
65224 2007-05-29  Eric Blake  <ebb9@byu.net>
65225             Bruno Haible  <bruno@clisp.org>
65226
65227         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
65228         cross compiles.
65229
65230 2007-05-28  Eric Blake  <ebb9@byu.net>
65231
65232         * modules/closein-tests (test_closein_LDADD): Support test on
65233         cygwin with libtool.
65234
65235 2007-05-28  Bruno Haible  <bruno@clisp.org>
65236
65237         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
65238         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65239         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65240         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65241         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65242         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65243         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65244         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65245         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65246
65247 2007-05-28  Eric Blake  <ebb9@byu.net>
65248
65249         Unconditionally include <config.h> in unit tests.
65250         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
65251         * tests/test-allocsa.c, tests/test-arcfour.c,
65252         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
65253         tests/test-array_list.c, tests/test-array_oset.c,
65254         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
65255         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
65256         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
65257         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
65258         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
65259         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
65260         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
65261         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
65262         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
65263         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
65264         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
65265         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
65266         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
65267         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
65268         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
65269         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
65270         test-md5.c, test-memmem.c, test-printf-posix.c,
65271         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
65272         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
65273         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
65274         test-strcasestr.c, test-striconv.c, test-striconveh.c,
65275         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
65276         test-vasnprintf-posix2.c, test-vasnprintf.c,
65277         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
65278         test-vfprintf-posix.c, test-vprintf-posix.c,
65279         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
65280         test-xvasprintf.c: Likewise.
65281
65282 2007-05-28  Bruno Haible  <bruno@clisp.org>
65283
65284         * gnulib-tool (func_import): Remember the --with-tests command-line
65285         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
65286         Reported by Eric Blake.
65287
65288 2007-05-28  Bruno Haible  <bruno@clisp.org>
65289
65290         * modules/ftell-tests: New file.
65291         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
65292         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
65293
65294         * lib/ftell.c: New file.
65295         * modules/ftell: New file.
65296         * m4/ftell.m4: New file.
65297         * doc/functions/ftell.texi: Update.
65298         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
65299         REPLACE_FTELL.
65300         * lib/stdio_.h (rpl_ftell): New declaration.
65301         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
65302         REPLACE_FTELL.
65303
65304 2007-05-28  Eric Blake  <ebb9@byu.net>
65305
65306         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
65307
65308 2007-05-28  Bruno Haible  <bruno@clisp.org>
65309
65310         * modules/fseek-tests: New file.
65311         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65312         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65313
65314         * lib/fseek.c: New file.
65315         * modules/fseek: New file.
65316         * m4/fseek.m4: New file.
65317         * doc/functions/fseek.texi: Update.
65318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65319         REPLACE_FSEEK.
65320         * lib/stdio_.h (rpl_fseek): New declaration.
65321         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65322         REPLACE_FSEEK.
65323
65324 2007-05-28  Bruno Haible  <bruno@clisp.org>
65325
65326         * lib/stdio_.h (fflush): More comments.
65327
65328 2007-05-28  Bruno Haible  <bruno@clisp.org>
65329
65330         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65331         runtime test.
65332
65333 2007-05-28  Eric Blake  <ebb9@byu.net>
65334
65335         Improve lseek module.
65336         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65337         * lib/unistd_.h (lseek): Scale back link warning message.
65338         * tests/test-lseek.c: Beef up test.
65339         * tests/test-lseek.sh: Exercise more facets of lseek.
65340         Reported by Bruno Haible.
65341
65342 2007-05-28  Bruno Haible  <bruno@clisp.org>
65343
65344         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65345         to define.
65346
65347 2007-05-27  Bruno Haible  <bruno@clisp.org>
65348
65349         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65350
65351 2007-05-27  Bruno Haible  <bruno@clisp.org>
65352
65353         * modules/openmp: New file.
65354         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65355         Noah Misch.
65356
65357 2007-05-26  Bruno Haible  <bruno@clisp.org>
65358
65359         * modules/chdir-long (Depends-on): Add fchdir.
65360         * modules/chdir-safer (Depends-on): Likewise.
65361         * modules/fts (Depends-on): Likewise.
65362         * modules/fts-lgpl (Depends-on): Likewise.
65363         * modules/openat (Depends-on): Likewise.
65364         * modules/savewd (Depends-on): Likewise.
65365
65366 2007-05-24  Eric Blake  <ebb9@byu.net>
65367
65368         Fix lseek on mingw.
65369         * modules/lseek: New module.
65370         * m4/lseek.m4: New file.
65371         * lib/lseek.c: New file.
65372         * modules/lseek-tests: New file.
65373         * tests/test-lseek.c: New file.
65374         * tests/test-lseek.sh: New file.
65375         * MODULES.html.sh: Document lseek module.
65376         * modules/fflush (Depends-on): Add lseek, fseeko.
65377         * modules/fseeko (Depends-on): Likewise.
65378         * modules/ftello (Depends-on): Likewise.
65379         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65380         broken.
65381         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65382         broken.
65383         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65384         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65385         * lib/ftello.c (rpl_ftello): Likewise.
65386         * tests/test-fseeko.c (main): Test this.
65387         * tests/test-fseeko.sh: Likewise.
65388         * tests/test-ftello.c (main): Likewise.
65389         * tests/test-ftello.sh: Likewise.
65390         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65391         implies replacing fseek.
65392         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65393         HAVE_FTELLO.
65394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65395         * modules/unistd (Makefile.am): Likewise.
65396         * lib/unistd_.h (lseek): Declare a replacement.
65397         * doc/functions/lseek.texi (lseek): Document this fix.
65398         * doc/functions/fseek.texi (fseek): Likewise.
65399         * doc/functions/ftell.texi (ftell): Likewise.
65400
65401 2007-05-24  Bruno Haible  <bruno@clisp.org>
65402
65403         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65404         in the printed representation of a NaN.
65405         * tests/test-vasprintf-posix.c (test_function): Likewise.
65406         * tests/test-snprintf-posix.h (test_function): Likewise.
65407         * tests/test-sprintf-posix.h (test_function): Likewise.
65408         Reported by Eric Blake.
65409
65410 2007-05-23  Eric Blake  <ebb9@byu.net>
65411
65412         Fix fseeko/ftello on cygwin 1.5.24.
65413         * doc/functions/fseeko.texi (fseeko): Document the fix.
65414         * doc/functions/ftello.texi (ftello): Document the fix.
65415         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65416         * doc/functions/stdout.text (stdout): New file.
65417         * doc/functions/stderr.text (stderr): New file.
65418         * doc/gnulib.texi (Function Substitutes): Use new files.
65419         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65420         prior to 1.7.0.
65421         * tests/test-ftello.c (main): Likewise for ftello.
65422         * tests/test-fseeko.sh: New file.
65423         * tests/test-ftello.sh: New file.
65424         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65425         with seekable stdin.
65426         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65427         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65428         (gl_REPLACE_FSEEKO): New macro.
65429         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65430         * modules/fseeko (Files): Distribute fseeko.c.
65431         * modules/ftello (Files): Distribute ftello.c.
65432         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65433         mode.
65434         * lib/ftello.c (rpl_ftello): New file.
65435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65436         fseeko, ftello.
65437         (gl_STDIN_LARGE_OFFSET): New macro.
65438         * modules/stdio (Makefile.am): Perform the replacement.
65439         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65440
65441 2007-05-23  Bruno Haible  <bruno@clisp.org>
65442
65443         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65444         GNULIB_POSIXCHECK is defined.
65445
65446 2007-05-21  Bruno Haible  <bruno@clisp.org>
65447
65448         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65449         Check also the output for NaN arguments. When cross-compiling, guess
65450         no on IRIX.
65451         * lib/vasnprintf.c: Update comments.
65452         * tests/test-vasnprintf-posix.c (strisnan): New function.
65453         (test_function): Use it.
65454         * tests/test-vasprintf-posix.c (strisnan): New function.
65455         (test_function): Use it.
65456         * tests/test-snprintf-posix.h (strisnan): New function.
65457         (test_function): Use it.
65458         * tests/test-sprintf-posix.h (strisnan): New function.
65459         (test_function): Use it.
65460         Reported by Eric Blake.
65461
65462 2007-05-20  Bruno Haible  <bruno@clisp.org>
65463
65464         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65465         numbers that fails on BeOS.
65466         * doc/functions/frexpl.texi: Update.
65467
65468 2007-05-20  Jim Meyering  <jim@meyering.net>
65469
65470         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65471         forced upon us by glibc-2.6.
65472
65473 2007-05-20  Bruno Haible  <bruno@clisp.org>
65474
65475         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65476         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65477         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65478         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65479         NEED_PRINTF_INFINITE.
65480         (is_infinitel): New function.
65481         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65482         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65483         gl_PREREQ_VASNPRINTF_INFINITE.
65484         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65485         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65486         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65487         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65488         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65489         gl_PREREQ_VASNPRINTF_INFINITE.
65490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65491         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65492         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65493         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65494         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65495         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65496         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65497         * doc/functions/fprintf.texi: Update.
65498         * doc/functions/printf.texi: Update.
65499         * doc/functions/snprintf.texi: Update.
65500         * doc/functions/sprintf.texi: Update.
65501         * doc/functions/vfprintf.texi: Update.
65502         * doc/functions/vprintf.texi: Update.
65503         * doc/functions/vsnprintf.texi: Update.
65504         * doc/functions/vsprintf.texi: Update.
65505
65506 2007-05-20  Bruno Haible  <bruno@clisp.org>
65507
65508         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65509         was not found in libc.
65510         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65511
65512 2007-05-20  Bruno Haible  <bruno@clisp.org>
65513
65514         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65515         printed as "-nan" instead of "nan".
65516         * tests/test-vasprintf-posix.c (test_function): Likewise.
65517         * tests/test-snprintf-posix.h (test_function): Likewise.
65518         * tests/test-sprintf-posix.h (test_function): Likewise.
65519         Needed for HP-UX 11.
65520
65521 2007-05-20  Jim Meyering  <jim@meyering.net>
65522
65523         Fix buggy test for the fchownat-deref bug.
65524         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65525         symlink required for the run-test.  Without it, this test would
65526         always declare that fchownat doesn't work, and client code would
65527         unnecessarily use the replacement function with fixed libc.
65528         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65529         Reported by Greg Schafer.
65530
65531 2007-05-19  Bruno Haible  <bruno@clisp.org>
65532
65533         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65534         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65535         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65536         Needed for IRIX 6.5 and Solaris 2.5.1.
65537
65538 2007-05-19  Bruno Haible  <bruno@clisp.org>
65539
65540         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65541         (test_function): Skip tests involving -0.0 on platforms where
65542         -0.0 = 0.0.
65543         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65544         (test_function): Skip tests involving -0.0 on platforms where
65545         -0.0 = 0.0.
65546         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65547         (test_function): Skip tests involving -0.0 on platforms where
65548         -0.0 = 0.0.
65549         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65550         (test_function): Skip tests involving -0.0 on platforms where
65551         -0.0 = 0.0.
65552         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65553         tests.
65554         * tests/test-printf-posix.h (test_function): Likewise.
65555         * tests/test-printf-posix.output: Remove all -0.0 related results.
65556         Needed for IRIX 6.5.
65557
65558 2007-05-19  Bruno Haible  <bruno@clisp.org>
65559
65560         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65561         printed as "nan0x7fffffff" instead of "nan".
65562         * tests/test-vasprintf-posix.c (test_function): Likewise.
65563         * tests/test-snprintf-posix.h (test_function): Likewise.
65564         * tests/test-sprintf-posix.h (test_function): Likewise.
65565         * tests/test-fprintf-posix.h (NaN): Remove macro.
65566         (test_function): Remove all NaN related tests.
65567         * tests/test-printf-posix.h (NaN): Remove macro.
65568         (test_function): Remove all NaN related tests.
65569         * tests/test-printf-posix.output: Remove all NaN related results.
65570         Needed for IRIX 6.5.
65571
65572 2007-05-19  Bruno Haible  <bruno@clisp.org>
65573
65574         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65575         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65576
65577 2007-05-19  Bruno Haible  <bruno@clisp.org>
65578
65579         * lib/float_.h: New file.
65580         * m4/float_h.m4: New file.
65581         * modules/float: New file.
65582         * modules/isnanl (Dependencies): Add float.
65583         * modules/isnanl-nolibm (Dependencies): Likewise.
65584         * modules/mathl (Dependencies): Likewise.
65585         * modules/printf-frexpl (Dependencies): Likewise.
65586         * modules/signbit (Dependencies): Likewise.
65587         * modules/vasnprintf (Dependencies): Likewise.
65588         * doc/headers/float.texi: Update.
65589
65590 2007-05-19  Jim Meyering  <jim@meyering.net>
65591
65592         * lib/utimens.c (gl_futimens): Rename from futimens,
65593         now that glibc-2.6 declares futimens.
65594         * lib/utimens.h: Likewise.
65595
65596 2007-05-19  Bruno Haible  <bruno@clisp.org>
65597
65598         Avoid test failures on mingw.
65599         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65600         * tests/test-printf-posix.sh: Likewise.
65601         * tests/test-vfprintf-posix.sh: Likewise.
65602         * tests/test-vprintf-posix.sh: Likewise.
65603
65604 2007-05-19  Bruno Haible  <bruno@clisp.org>
65605
65606         Fix *printf result for NaN, Inf, -0.0 on mingw.
65607         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65608         * lib/vasnprintf.c: Include math.h and isnan.h.
65609         (is_infinite_or_zero): New function.
65610         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65611         values in the %f, %F, %e, %E, %g, %G directives.
65612         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65613         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65614         gl_PRINTF_INFINITE and test its result. Invoke
65615         gl_PREREQ_VASNPRINTF_INFINITE.
65616         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65617         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65618         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65619         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65620         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65621         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65622         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65623         * doc/functions/fprintf.texi: Update.
65624         * doc/functions/printf.texi: Update.
65625         * doc/functions/snprintf.texi: Update.
65626         * doc/functions/sprintf.texi: Update.
65627         * doc/functions/vfprintf.texi: Update.
65628         * doc/functions/vprintf.texi: Update.
65629         * doc/functions/vsnprintf.texi: Update.
65630         * doc/functions/vsprintf.texi: Update.
65631
65632 2007-05-19  Bruno Haible  <bruno@clisp.org>
65633
65634         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65635         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65636         Instead of multiplying with 10^k, set extra_zeroes to k.
65637         (scale10_round_long_double): Remove function.
65638
65639 2007-05-18  Bruno Haible  <bruno@clisp.org>
65640
65641         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65642         introduced on 2007-05-06.
65643
65644 2007-05-18  Bruno Haible  <bruno@clisp.org>
65645
65646         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65647         %g directives.
65648         * tests/test-vasprintf-posix.c (test_function): Likewise.
65649         * tests/test-snprintf-posix.h (test_function): Likewise.
65650         * tests/test-sprintf-posix.h (test_function): Likewise.
65651
65652 2007-05-18  Bruno Haible  <bruno@clisp.org>
65653
65654         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65655         (strmatch): New function.
65656         (test_function): Test the %f directive on numbers of various exponents.
65657         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65658         (strmatch): New function.
65659         (test_function): Test the %f directive on numbers of various exponents.
65660         * tests/test-snprintf-posix.h (strmatch): New function.
65661         (test_function): Test the %f directive on numbers of various exponents.
65662         * tests/test-sprintf-posix.h (strmatch): New function.
65663         (test_function): Test the %f directive on numbers of various exponents.
65664         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65665         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65666         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65667         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65668
65669 2007-05-18  Bruno Haible  <bruno@clisp.org>
65670
65671         Add support for 'long double' number output.
65672         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65673         * lib/vasnprintf.c: Include math.h and float+.h.
65674         (mp_limb_t): New type.
65675         (GMP_LIMB_BITS): New macro.
65676         (mp_twolimb_t): New type.
65677         (GMP_TWOLIMB_BITS): New macro.
65678         (mpn_t): New type.
65679         (multiply, divide, convert_to_decimal, decode_long_double,
65680         scale10_round_long_double, scale10_round_decimal_long_double,
65681         floorlog10l): New functions.
65682         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65683         for the %f, %F, %e, %E, %g, %G directives.
65684         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65685         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65686         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65687         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65688         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65689         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65690         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65691         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65692         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65693         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65694         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65695         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65696         * modules/snprintf-posix (Depends-on): Likewise.
65697         * modules/sprintf-posix (Depends-on): Likewise.
65698         * modules/vasnprintf-posix (Depends-on): Likewise.
65699         * modules/vasprintf-posix (Depends-on): Likewise.
65700         * modules/vfprintf-posix (Depends-on): Likewise.
65701         * modules/vsnprintf-posix (Depends-on): Likewise.
65702         * modules/vsprintf-posix (Depends-on): Likewise.
65703         * modules/vasnprintf (Files): Add lib/float+.h.
65704         * doc/functions/fprintf.texi: Update.
65705         * doc/functions/printf.texi: Update.
65706         * doc/functions/snprintf.texi: Update.
65707         * doc/functions/sprintf.texi: Update.
65708         * doc/functions/vfprintf.texi: Update.
65709         * doc/functions/vprintf.texi: Update.
65710         * doc/functions/vsnprintf.texi: Update.
65711         * doc/functions/vsprintf.texi: Update.
65712
65713 2007-05-18  Bruno Haible  <bruno@clisp.org>
65714
65715         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65716
65717 2007-05-18  Bruno Haible  <bruno@clisp.org>
65718
65719         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65720         for printing 64-bit integers. Needed for mingw.
65721
65722 2007-05-18  Bruno Haible  <bruno@clisp.org>
65723
65724         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65725         gl_FUNC_FREXPL_WORKS.
65726         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65727
65728 2007-05-18  Bruno Haible  <bruno@clisp.org>
65729
65730         * modules/frexpl-nolibm-tests: New file.
65731
65732         * modules/frexpl-nolibm: New file.
65733         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65734
65735 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65736
65737         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65738         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65739         GCC 4.2, which otherwise issues a lot of warnings.
65740         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65741         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65742         Likewise.
65743         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65744         * modules/iconv_open (iconv.h): Likewise.
65745         * modules/locale (locale.h): Likewise.
65746         * modules/netinet_in (netinet/in.h): Likewise.
65747         * modules/sys_select (sys_select.h): Likewise.
65748         * modules/sys_socket (sys/socket.h): Likewise.
65749         * modules/sys_stat (sys/stat.h): Likewise.
65750         * modules/sysexits (sysexits.h): Likewise.
65751         * modules/unistd (unistd.h): Likewise.
65752
65753 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65754
65755         * modules/closein-tests (Makefile.am): Distribute
65756         `test-closein.sh'.
65757
65758 2007-05-17  Bruno Haible  <bruno@clisp.org>
65759
65760         * tests/test-printf-posix.output: Renamed from
65761         tests/test-fprintf-posix.out.
65762         * modules/fprintf-posix-tests: Update.
65763         * modules/printf-posix-tests: Update.
65764         * modules/vfprintf-posix-tests: Update.
65765         * modules/vprintf-posix-tests: Update.
65766         * tests/test-fprintf-posix.sh: Update.
65767         * tests/test-printf-posix.sh: Update.
65768         * tests/test-vfprintf-posix.sh: Update.
65769         * tests/test-vprintf-posix.sh: Update.
65770         Reported by Ralf Wildenhues.
65771
65772 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65773
65774         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65775         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65776         GCC 4.2, which otherwise issues a lot of warnings.
65777         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65778         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65779         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65780         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65781         it should no longer be needed.
65782         * lib/string_.h: Likewise.
65783         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65784         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65785         * modules/inttypes (inttypes.h): Likewise.
65786         * modules/math (math.h): Likewise.
65787         * modules/search (search.h): Likewise.
65788         * modules/signal (signal.h): Likewise.
65789         * modules/stdint (stdint.h): Likewise.
65790         * modules/stdio (stdio.h): Likewise.
65791         * modules/stdlib (stdlib.h): Likewise.
65792         * modules/string (string.h): Likewise.
65793         * modules/sys_time (sys/time.h): Likewise.
65794         * modules/time (time.h): Likewise.
65795         * modules/wchar (wchar.h): Likewise.
65796         * modules/wctype (wtype.h): Likewise.
65797
65798 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65799
65800         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65801
65802 2007-05-13  Bruno Haible  <bruno@clisp.org>
65803
65804         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65805         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65806         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65807         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65808         (gl_PREREQ_STRTOK_R): Don't require it here.
65809
65810 2007-05-13  Bruno Haible  <bruno@clisp.org>
65811
65812         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65813         when used in C++ mode.
65814
65815 2007-05-12  Bruno Haible  <bruno@clisp.org>
65816
65817         * lib/linebuffer.h: Tweak doc.
65818         * lib/linebuffer.c: Likewise.
65819
65820 2007-05-12  James Youngman  <jay@gnu.org>
65821
65822         * lib/linebuffer.c (readlinebuffer_delim): New function,
65823         like readlinebuffer, but use a caller-specified delimiter.
65824         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65825         as the delimiter.
65826         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65827
65828 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65829
65830         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65831         * modules/openat (Files): Remove openat-die.c.
65832         (Depends-on): Add openat-die.
65833         * modules/openat-die: New module.
65834
65835 2007-05-06  Bruno Haible  <bruno@clisp.org>
65836
65837         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65838         Update with info about Cygwin.
65839         * doc/functions/fprintf.texi: Update.
65840         * doc/functions/printf.texi: Update.
65841         * doc/functions/snprintf.texi: Update.
65842         * doc/functions/sprintf.texi: Update.
65843         * doc/functions/vfprintf.texi: Update.
65844         * doc/functions/vprintf.texi: Update.
65845         * doc/functions/vsnprintf.texi: Update.
65846         * doc/functions/vsprintf.texi: Update.
65847         Reported by Eric Blake.
65848
65849 2007-05-06  Bruno Haible  <bruno@clisp.org>
65850
65851         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65852         padding ourselves for the floating-point directives.
65853         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65854         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65855         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65856         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65857         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65858         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65859         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65860         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65861         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65862         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65863         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65864         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65865         * tests/test-snprintf-posix.h (test_function): Also check the width
65866         and some flags in the %f directive.
65867         * tests/test-sprintf-posix.h (test_function): Likewise.
65868         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65869         * tests/test-vasprintf-posix.c (test_function): Likewise.
65870         * doc/functions/fprintf.texi: Update.
65871         * doc/functions/printf.texi: Update.
65872         * doc/functions/snprintf.texi: Update.
65873         * doc/functions/sprintf.texi: Update.
65874         * doc/functions/vfprintf.texi: Update.
65875         * doc/functions/vprintf.texi: Update.
65876         * doc/functions/vsnprintf.texi: Update.
65877         * doc/functions/vsprintf.texi: Update.
65878
65879 2007-05-06  Bruno Haible  <bruno@clisp.org>
65880
65881         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65882         pass the ' flag character to sprintf or snprintf.
65883         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65885         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65886         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65887         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65888         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65889         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65890         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65891         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65892         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65893         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65894         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65895         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65896         flag.
65897         * tests/test-sprintf-posix.h (test_function): Likewise.
65898         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65899         * tests/test-vasprintf-posix.c (test_function): Likewise.
65900         * doc/functions/fprintf.texi: Update.
65901         * doc/functions/printf.texi: Update.
65902         * doc/functions/snprintf.texi: Update.
65903         * doc/functions/sprintf.texi: Update.
65904         * doc/functions/vfprintf.texi: Update.
65905         * doc/functions/vprintf.texi: Update.
65906         * doc/functions/vsnprintf.texi: Update.
65907         * doc/functions/vsprintf.texi: Update.
65908
65909 2007-05-01  Bruno Haible  <bruno@clisp.org>
65910
65911         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65912
65913 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65914
65915         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65916         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65917
65918 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65919
65920         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65921         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65922         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65923
65924 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65925
65926         * lib/argp-help.c (struct hol_entry): New member `ord'.
65927         (HOL_ENTRY_PTRCMP): Use ord for comparison
65928         (hol_sort): Initialize ord.
65929
65930 2007-05-01  Bruno Haible  <bruno@clisp.org>
65931
65932         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65933         Reported by Eric Blake.
65934         * doc/gnulib.texi (Function Substitutes): Update.
65935
65936 2007-05-01  Bruno Haible  <bruno@clisp.org>
65937
65938         * doc/functions.texi: Remove file, now redundant through
65939         doc/functions/*.texi.
65940
65941 2007-05-01  Bruno Haible  <bruno@clisp.org>
65942
65943         * modules/argp (Depends-on): Add sleep.
65944
65945 2007-05-01  Bruno Haible  <bruno@clisp.org>
65946
65947         * modules/sleep-tests: New file.
65948         * tests/test-sleep.c: New file.
65949
65950         * modules/sleep: New file.
65951         * lib/sleep.c: New file.
65952         * m4/sleep.m4: New file.
65953         * lib/unistd_.h (sleep): New declaration.
65954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65955         HAVE_SLEEP.
65956         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65957         * doc/functions/sleep.texi: Document the sleep module.
65958
65959 2007-05-01  Bruno Haible  <bruno@clisp.org>
65960
65961         * lib/sigprocmask.h: Remove file.
65962         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65963         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65964         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65965         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65966         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65967         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65968         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65969         HAVE_SIGSET_T as a shell variable.
65970         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65971         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65972         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65973         (Depends-on): Add signal. Remove verify.
65974         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65975         (Include): Mention <signal.h> instead of sigprocmask.h.
65976         * NEWS: Mention the change.
65977         * lib/fatal-signal.c: Don't include sigprocmask.h.
65978
65979 2007-05-01  Bruno Haible  <bruno@clisp.org>
65980
65981         * modules/signal: New file.
65982         * lib/signal_.h: New file.
65983         * m4/signal_h.m4: New file.
65984
65985 2007-05-01  Bruno Haible  <bruno@clisp.org>
65986
65987         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65988         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65989         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65990         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65991
65992 2007-05-01  Bruno Haible  <bruno@clisp.org>
65993
65994         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65995         configure time.
65996         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65997         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65998         * modules/sys_stat (Makefile.am): Substitute their values into
65999         sys/stat.h.
66000
66001 2007-05-01  Bruno Haible  <bruno@clisp.org>
66002
66003         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
66004         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
66005         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
66006
66007 2007-05-01  Bruno Haible  <bruno@clisp.org>
66008
66009         * doc/header/assert.texi: Undo last change: don't mention the gnulib
66010         'assert' module here.
66011
66012 2007-05-01  Bruno Haible  <bruno@clisp.org>
66013
66014         * doc/functions/*.texi: New files.
66015         * doc/functions/google-ranking.txt: New file.
66016         * doc/gnulib.texi (Function Substitutes): New chapter.
66017         (ctime, inet_ntoa): Remove sections.
66018         * doc/ctime.texi: Remove file.
66019         * doc/inet_ntoa.texi: Remove file.
66020         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
66021         dependencies.
66022         (%.info): New rule, specifying a --reference-limit.
66023
66024 2007-05-01  Bruno Haible  <bruno@clisp.org>
66025
66026         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
66027
66028 2007-05-01  Bruno Haible  <bruno@clisp.org>
66029
66030         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
66031         the portability of 'mkdir' to mingw systems.
66032
66033 2007-05-01  Bruno Haible  <bruno@clisp.org>
66034
66035         * doc/headers/google-ranking.txt: New file.
66036
66037 2007-04-30  Eric Blake  <ebb9@byu.net>
66038
66039         Prefer fseeko to fseek.
66040         * modules/getpass (Depends-on): Add fseeko.
66041         * lib/getpass.c (getpass): Use fseeko, not fseek.
66042
66043 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
66044
66045         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
66046         assumes the sorting is stable, while most qsort implementations
66047         are not.  Use argument addresses to ensure they never compare as
66048         equal.
66049
66050         * tests/test-argp-2.sh (usage-indent test): Fix output
66051         (func_compare): Restore diff options
66052         * tests/test-argp.c: Restore #include "progname.h"
66053
66054 2007-04-29  Bruno Haible  <bruno@clisp.org>
66055
66056         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
66057         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66058         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
66059         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66060         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
66061         (configure.ac): Define CHECK_SNPRINTF_POSIX.
66062         (TESTS, check_PROGRAMS): Add test-snprintf.
66063         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
66064         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
66065         (TESTS, check_PROGRAMS): Add test-vsnprintf.
66066         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
66067         assertions that fail on HP-UX, OSF/1, or IRIX.
66068         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
66069
66070 2007-04-29  Bruno Haible  <bruno@clisp.org>
66071
66072         * MODULES.html.sh (posix_functions): Remove 'contents'.
66073
66074 2007-04-29  Karl Berry  <karl@gnu.org>
66075
66076         * config/srclist.txt (gendocs_template_min): new entry.
66077
66078 2007-04-29  Bruno Haible  <bruno@clisp.org>
66079
66080         Work around fpurge bug on BSD systems.
66081         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
66082         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
66083         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
66084         fpurge to rpl_fpurge if the system already has this function.
66085         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
66086         the case where the system already has this function. Correct invariants
66087         on BSD systems.
66088         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
66089         BSD systems.
66090
66091 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
66092
66093         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
66094         proposed by Sven Verdoolaege.
66095
66096         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
66097         options.
66098         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
66099         (usage and help tests): Update
66100
66101 2007-04-29  Bruno Haible  <bruno@clisp.org>
66102
66103         * tests/test-fflush.c (main): Use a file of size 17, not 10.
66104         Print more information in case of failure. Disable a test on BeOS.
66105
66106 2007-04-29  Bruno Haible  <bruno@clisp.org>
66107
66108         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
66109         This helps debugging on systems on which no gdb is available.
66110
66111 2007-04-29  Bruno Haible  <bruno@clisp.org>
66112
66113         * lib/freading.h: Improve comments.
66114         * lib/fwriting.h: Likewise.
66115         * tests/test-freading.c (main): Don't check freading immediately after
66116         repositioning. Needed for glibc.
66117
66118 2007-04-29  Bruno Haible  <bruno@clisp.org>
66119
66120         * lib/freading.c (freading): Trivial simplification.
66121
66122 2007-04-28  Bruno Haible  <bruno@clisp.org>
66123
66124         * tests/test-fwriting.c (main): Also test the interaction between
66125         fflush and fwriting.
66126         * modules/fwriting-tests (Depends-on): Add fflush.
66127
66128         * tests/test-freading.c (main): Also test the interaction between
66129         fflush and freading.
66130         * modules/freading-tests (Depends-on): Add fflush.
66131
66132 2007-04-28  Bruno Haible  <bruno@clisp.org>
66133
66134         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
66135         fseeko and ftello.
66136         Suggested by Eric Blake.
66137
66138 2007-04-28  Jim Meyering  <jim@meyering.net>
66139
66140         Avoid false-negative in gl_STDINT_H's C99 conformance test.
66141         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
66142         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
66143
66144 2007-04-27  Eric Blake  <ebb9@byu.net>
66145
66146         * doc/headers/assert.texi (assert.h): Document assert module use.
66147
66148 2007-04-27  Bruno Haible  <bruno@clisp.org>
66149
66150         * doc/headers/*.texi: New files.
66151         * doc/gnulib.texi (Header File Substitutes): New chapter.
66152         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
66153         dependencies.
66154         (standards.info ,standards.html, standards.dvi): Update dependencies.
66155         (mostlyclean, clean): New targets.
66156
66157 2007-04-27  Bruno Haible  <bruno@clisp.org>
66158
66159         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
66160         * modules/sysexits (Files, Makefile.am): Update.
66161
66162         * lib/sys_socket_.h: Renamed from lib/socket_.h.
66163         * modules/sys_socket (Files, Makefile.am): Update.
66164
66165         * lib/sys_stat_.h: Renamed from lib/stat_.h.
66166         * modules/sys_stat (Files, Makefile.am): Update.
66167
66168 2007-04-27  Eric Blake  <ebb9@byu.net>
66169
66170         * lib/freading.h: Improve comments.
66171         * lib/fwriting.h: Likewise.
66172         * lib/fflush.c: Likewise.
66173
66174         Fix closein for mingw.
66175         * modules/closein-tests: Add tests for closein.
66176         * tests/test-closein.c: New file.
66177         * tests/test-closein.sh: Likewise.
66178         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
66179         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
66180
66181 2007-04-27  Bruno Haible  <bruno@clisp.org>
66182
66183         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
66184         version is < 6.
66185         * lib/math_.h [__DECC]: Likewise.
66186         * lib/stdio_.h [__DECC]: Likewise.
66187         * lib/stdlib_.h [__DECC]: Likewise.
66188         * lib/string_.h [__DECC]: Likewise.
66189         * lib/time_.h [__DECC]: Likewise.
66190         * lib/wchar_.h [__DECC]: Likewise.
66191         * lib/wctype_.h [__DECC]: Likewise.
66192
66193 2007-04-27  Bruno Haible  <bruno@clisp.org>
66194
66195         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
66196
66197 2007-04-27  Bruno Haible  <bruno@clisp.org>
66198
66199         * lib/fflush.c: Add comments.
66200         * modules/fpurge-tests (Depends-on): Add fflush.
66201         * modules/freadable-tests (Depends-on): Likewise.
66202         * modules/fwritable-tests (Depends-on): Likewise.
66203
66204 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
66205
66206         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
66207         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
66208         Report by Bruno Haible <bruno@clisp.org>.
66209
66210 2007-04-26  Eric Blake  <ebb9@byu.net>
66211
66212         Fix fflush on mingw.
66213         * modules/fflush (Depends-on): Add freading.
66214         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
66215         but unread data.
66216
66217 2007-04-26  Eric Blake  <ebb9@byu.net>
66218         and Bruno Haible  <bruno@clisp.org>
66219
66220         Implement freading and fwriting.
66221         * lib/freading.c: New file.
66222         * lib/freading.h: Likewise.
66223         * m4/freading.m4: Likewise.
66224         * modules/freading: Likewise.
66225         * modules/freading-tests: Likewise.
66226         * tests/test-freading.c: Likewise.
66227         * lib/fwriting.c: New file.
66228         * lib/fwriting.h: Likewise.
66229         * m4/fwriting.m4: Likewise.
66230         * modules/fwriting: Likewise.
66231         * modules/fwriting-tests: Likewise.
66232         * tests/test-fwriting.c: Likewise.
66233         * MODULES.html.sh (File stream based Input/Output): Mention them.
66234
66235 2007-04-26  Bruno Haible  <bruno@clisp.org>
66236
66237         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
66238         'long' when we assume it.
66239         Suggested by Eric Blake.
66240
66241 2007-04-26  Bruno Haible  <bruno@clisp.org>
66242
66243         Ensure fseeko, ftello are declared on glibc systems.
66244         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
66245         * modules/fseeko (configure.ac-early): Likewise.
66246         * modules/ftello (configure.ac-early): Likewise.
66247         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
66248         AC_FUNC_FSEEKO for this.
66249         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
66250         (gl_CHECK_FSEEKO): Remove macro.
66251
66252 2007-04-26  Bruno Haible  <bruno@clisp.org>
66253
66254         * tests/test-fflush.c (main): Also check the ftell result after
66255         fflush and fseek/fseeko.
66256         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
66257         file descriptor position cache in the stream.
66258         * lib/fseeko.c (rpl_fseeko): Likewise.
66259
66260 2007-04-26  Bruno Haible  <bruno@clisp.org>
66261
66262         * modules/fflush-tests (Depends-on): Add fseeko.
66263
66264 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
66265             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66266
66267         * lib/argz_.h: ensure error_t definition is obtained in same
66268         mechanism system argz.h would have.
66269         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
66270         argz facilities are known bad.  Err on the side of caution if
66271         cross-compiling.
66272
66273 2007-04-25  Eric Blake  <ebb9@byu.net>
66274
66275         * lib/fpurge.c (includes): Use stdlib.h for free.
66276         * tests/test-fflush.c (main): Also test fflush-fseeko.
66277
66278 2007-04-25  Bruno Haible  <bruno@clisp.org>
66279
66280         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
66281         * lib/fseeko.c: New file.
66282         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
66283         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
66284         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
66285         gl_FUNC_FSEEKO.
66286         (gl_FUNC_FSEEKO): Invoke it.
66287         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
66288         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
66289         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
66290
66291 2007-04-25  Bruno Haible  <bruno@clisp.org>
66292
66293         * modules/fflush (Depends-on): Add ftello.
66294
66295 2007-04-25  Bruno Haible  <bruno@clisp.org>
66296
66297         * modules/ftello-tests: New file.
66298         * tests/test-ftello.c: New file.
66299
66300         * modules/ftello: New file.
66301         * m4/ftello.m4: New file.
66302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
66303         HAVE_FTELLO.
66304         * lib/stdio_.h (ftello): New declaration.
66305         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
66306         HAVE_FTELLO.
66307
66308 2007-04-25  Bruno Haible  <bruno@clisp.org>
66309
66310         * modules/fseeko-tests: New file.
66311         * tests/test-fseeko.c: New file.
66312
66313         * modules/fseeko: New file.
66314         * m4/fseeko.m4: New file.
66315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66316         HAVE_FSEEKO.
66317         * lib/stdio_.h (fseeko): New declaration.
66318         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66319         HAVE_FSEEKO.
66320
66321 2007-04-25  Bruno Haible  <bruno@clisp.org>
66322
66323         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66324
66325 2007-04-25  Bruno Haible  <bruno@clisp.org>
66326
66327         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66328         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66329         * tests/test-unistd.c: Likewise.
66330         * tests/test-fcntl.c: Likewise.
66331
66332 2007-04-23  Eric Blake  <ebb9@byu.net>
66333
66334         * lib/fflush.c: Fix missing include.
66335         Reported by Bruno Haible.
66336
66337 2007-04-23  Bruno Haible  <bruno@clisp.org>
66338
66339         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66340         Reported by Eric Blake.
66341
66342 2007-04-23  Bruno Haible  <bruno@clisp.org>
66343
66344         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66345
66346 2007-04-23  Bruno Haible  <bruno@clisp.org>
66347
66348         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66349
66350 2007-04-23  Bruno Haible  <bruno@clisp.org>
66351
66352         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66353         Needed on HP-UX 11.
66354
66355 2007-04-16  Eric Blake  <ebb9@byu.net>
66356
66357         Make fflush rely on fpurge.
66358         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66359         open coding all variants.
66360         * modules/fflush (Depends-on): Add fpurge and unistd.
66361         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66362         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66363
66364         Fix --with-tests compilation on cygwin.
66365         * modules/argmatch-tests (Makefile.am): List gnulib library first
66366         in LDADD.
66367         * modules/argp-tests (Makefile.am): Likewise.
66368         * modules/array-list-tests (Makefile.am): Likewise.
66369         * modules/array-oset-tests (Makefile.am): Likewise.
66370         * modules/avltree-list-tests (Makefile.am): Likewise.
66371         * modules/avltree-oset-tests (Makefile.am): Likewise.
66372         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66373         * modules/carray-list-tests (Makefile.am): Likewise.
66374         * modules/dirname-tests (Makefile.am): Likewise.
66375         * modules/frexp-tests (Makefile.am): Likewise.
66376         * modules/isnanl-tests (Makefile.am): Likewise.
66377         * modules/linked-list-tests (Makefile.am): Likewise.
66378         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66379         * modules/lock-tests (Makefile.am): Likewise.
66380         * modules/rbtree-list-tests (Makefile.am): Likewise.
66381         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66382         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66383         * modules/tls-tests (Makefile.am): Likewise.
66384         * modules/tsearch-tests (Makefile.am): Likewise.
66385         * modules/xvasprintf-tests (Makefile.am): Likewise.
66386
66387         Fix fpurge for cygwin.
66388         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66389         value.
66390         * modules/fpurge-tests (Depends-on): Clean up trash.
66391
66392 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66393
66394         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66395
66396         * m4/autobuild.m4: Re-indent.
66397
66398 2007-04-13  Bruno Haible  <bruno@clisp.org>
66399
66400         * modules/fpurge-tests: New file.
66401         * tests/test-fpurge.c: New file.
66402
66403         * modules/fpurge: New file.
66404         * lib/fpurge.h: New file.
66405         * lib/fpurge.c: New file.
66406         * m4/fpurge.m4: New file.
66407
66408 2007-04-13  Bruno Haible  <bruno@clisp.org>
66409
66410         * modules/fbufmode-tests: New file.
66411         * tests/test-fbufmode.c: New file.
66412
66413         * modules/fbufmode: New file.
66414         * lib/fbufmode.h: New file.
66415         * lib/fbufmode.c: New file.
66416         * m4/fbufmode.m4: New file.
66417
66418 2007-04-13  Bruno Haible  <bruno@clisp.org>
66419
66420         * modules/fwritable-tests: New file.
66421         * tests/test-fwritable.c: New file.
66422
66423         * modules/fwritable: New file.
66424         * lib/fwritable.h: New file.
66425         * lib/fwritable.c: New file.
66426         * m4/fwritable.m4: New file.
66427
66428 2007-04-13  Bruno Haible  <bruno@clisp.org>
66429
66430         * modules/freadable-tests: New file.
66431         * tests/test-freadable.c: New file.
66432
66433         * modules/freadable: New file.
66434         * lib/freadable.h: New file.
66435         * lib/freadable.c: New file.
66436         * m4/freadable.m4: New file.
66437
66438 2007-04-13  Bruno Haible  <bruno@clisp.org>
66439
66440         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66441         MOSTLYCLEANFILES.
66442
66443 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66444
66445         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66446         gzip bootstrap.conf to avoid dragging in i18n machinery.
66447         (gnulib_tool_option): Use it.
66448
66449 2007-04-13  Bruno Haible  <bruno@clisp.org>
66450
66451         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66452         %F directives.
66453         * tests/test-vasprintf-posix.c (test_function): Likewise.
66454         * tests/test-snprintf-posix.h (test_function): Likewise.
66455         * tests/test-sprintf-posix.h (test_function): Likewise.
66456         * tests/test-fprintf-posix.h (test_function): Likewise.
66457         * tests/test-printf-posix.h (test_function): Likewise.
66458         * tests/test-fprintf-posix.out: Likewise.
66459
66460 2007-04-13  Bruno Haible  <bruno@clisp.org>
66461
66462         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66463         * modules/tls-tests (configure.ac): Likewise.
66464         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66465
66466 2007-04-13  Bruno Haible  <bruno@clisp.org>
66467
66468         * lib/tls.c (glthread_tls_get): Fix return type.
66469         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66470
66471 2007-04-12  Eric Blake  <ebb9@byu.net>
66472
66473         * modules/gettime (Depends-on): Remove gettime.
66474         Reported by Dmitry V. Levin.
66475
66476 2007-04-12  Bruno Haible  <bruno@clisp.org>
66477
66478         * modules/fflush (Include): Mention <stdio.h>.
66479         * modules/strtoimax (Include): Mention <inttypes.h>.
66480         * modules/strtoumax (Include): Likewise.
66481
66482 2007-04-12  Eric Blake  <ebb9@byu.net>
66483
66484         * .cvsignore: New file.
66485         * .gitignore: Likewise.
66486
66487 2007-04-12  Bruno Haible  <bruno@clisp.org>
66488
66489         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66490         not before, since $(LDADD) often contains libgnu.a.
66491         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66492         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66493         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66494         Needed on Cygwin.
66495
66496 2007-04-12  Eric Blake  <ebb9@byu.net>
66497
66498         Work around glibc's failure to flush stdin on fclose.
66499         * lib/closein.c (close_stdin): Flush stdin before closing.
66500
66501         Work around glibc's failure to reset seekable stdin on exit.
66502         * modules/closein: New module.
66503         * lib/closein.c: New file.
66504         * lib/closein.h: Likewise.
66505         * m4/closein.m4: Likewise.
66506         * MODULES.html.sh (File stream based Input/Output): Document it.
66507
66508 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66509
66510         * gnulib-tool: Rename generated 'autobuild' script to
66511         'do-autobuild' in --create-megatestdir output.
66512
66513         * doc/gnulib.texi (Build robot for gnulib): Fix.
66514
66515 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66516
66517         * modules/sysexits (Depends-on): Add absolute-header.
66518
66519 2007-04-12  Eric Blake  <ebb9@byu.net>
66520
66521         No need to preserve errno on success.
66522         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66523         Reported by Bruno Haible.
66524
66525 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66526
66527         * MODULES.html.sh (Support for maintaining and releasing
66528         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66529
66530 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66531
66532         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66533
66534 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66535
66536         * modules/autobuild: New module.
66537
66538         * m4/autobuild.m4: New file.
66539
66540 2007-04-11  Bruno Haible  <bruno@clisp.org>
66541
66542         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66543         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66544         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66546         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66547         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66548         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66549         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66550         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66551         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66552         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66553         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66554         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66555         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66556         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66557         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66558         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66559         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66560         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66561         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66562         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66563         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66564         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66565         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66566         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66567         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66568         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66569         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66570         Reported by Eric Blake.
66571
66572 2007-04-11  Bruno Haible  <bruno@clisp.org>
66573
66574         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66575
66576 2007-04-10  Bruno Haible  <bruno@clisp.org>
66577
66578         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66579         for NaN and Infinity. Needed on FreeBSD 6.1.
66580         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66581         regarding results for "%010a" of Infinity and NaN.
66582         * tests/test-vasprintf-posix.c (test_function): Likewise.
66583         * tests/test-snprintf-posix.h (test_function): Likewise.
66584         * tests/test-sprintf-posix.h (test_function): Likewise.
66585         * tests/test-fprintf-posix.h (test_function): Likewise.
66586         * tests/test-printf-posix.h (test_function): Likewise.
66587         * tests/test-fprintf-posix.out: Likewise.
66588
66589 2007-04-10  Bruno Haible  <bruno@clisp.org>
66590
66591         * modules/locale-tests: New file.
66592         * tests/test-locale.c: New file.
66593
66594         * modules/locale: New file.
66595         * lib/locale_.h: New file.
66596         * m4/locale_h.m4: New file.
66597
66598 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66599             Bruno Haible  <bruno@clisp.org>
66600
66601         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66602         be determined, test for availability of the copysignf, copysign,
66603         copysignl functions.
66604         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66605         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66606         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66607
66608 2007-04-09  Eric Blake  <ebb9@byu.net>
66609
66610         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66611         * modules/stdio (Makefile.am): Support fflush.
66612         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66613         * modules/fflush: New file.
66614         * lib/fflush.c: Likewise.
66615         * m4/fflush.m4: Likewise.
66616         * modules/fflush-tests: New test.
66617         * tests/test-fflush.c: Likewise.
66618         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66619
66620 2007-04-06  Bruno Haible  <bruno@clisp.org>
66621
66622         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66623         (VASNPRINTF): Use signbit for faster determination whether to print a
66624         minus sign.
66625         * modules/vasnprintf (Files): Remove lib/float+.h.
66626         * modules/fprintf-posix (Depends-on): Add signbit.
66627         * modules/snprintf-posix (Depends-on): Likewise.
66628         * modules/sprintf-posix (Depends-on): Likewise.
66629         * modules/vasnprintf-posix (Depends-on): Likewise.
66630         * modules/vasprintf-posix (Depends-on): Likewise.
66631         * modules/vfprintf-posix (Depends-on): Likewise.
66632         * modules/vsnprintf-posix (Depends-on): Likewise.
66633         * modules/vsprintf-posix (Depends-on): Likewise.
66634
66635 2007-04-06  Bruno Haible  <bruno@clisp.org>
66636
66637         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66638         * tests/test-frexpl.c (main): Likewise.
66639         * tests/test-ldexpl.c (main): Likewise.
66640         * modules/frexp-tests (Depends-on): Add signbit.
66641         * modules/frexpl-tests (Depdends-on): Likewise.
66642         * modules/ldexpl-tests (Depdends-on): Likewise.
66643
66644 2007-04-06  Bruno Haible  <bruno@clisp.org>
66645
66646         * modules/signbit-tests: New file.
66647         * tests/test-signbit.c: New file.
66648
66649         * modules/signbit: New file.
66650         * lib/signbitf.c: New file.
66651         * lib/signbitd.c: New file.
66652         * lib/signbitl.c: New file.
66653         * m4/signbit.m4: New file.
66654         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66655         (signbit): New macro.
66656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66657         REPLACE_SIGNBIT.
66658         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66659         REPLACE_FREXPL into math.h.
66660
66661 2007-04-06  Bruno Haible  <bruno@clisp.org>
66662
66663         * modules/isnanf-nolibm-tests: New file.
66664         * tests/test-isnanf.c: New file.
66665
66666         * modules/isnanf-nolibm: New file.
66667         * lib/isnanf.h: New file.
66668         * lib/isnanf.c: New file.
66669         * lib/isnan.c: Consider the USE_FLOAT macro.
66670         * m4/isnanf.m4: New file.
66671
66672 2007-04-06  Bruno Haible  <bruno@clisp.org>
66673
66674         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66675         (Link): New section.
66676
66677         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66678
66679 2007-04-06  Bruno Haible  <bruno@clisp.org>
66680
66681         Assume the 'long double' type.
66682         * m4/longdouble.m4: Remove file.
66683         * config/srclist.txt: Don't mention longdouble.m4.
66684         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66685         * lib/float+.h: Likewise.
66686         * lib/frexp.c: Likewise.
66687         * lib/printf-args.h: Likewise.
66688         * lib/printf-args.c: Likewise.
66689         * lib/printf-frexp.c: Likewise.
66690         * lib/printf-parse.c: Likewise.
66691         * lib/vasnprintf.c: Likewise.
66692         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66693         * m4/intl.m4: Likewise.
66694         * m4/isnanl.m4: Likewise.
66695         * m4/printf.m4: Likewise.
66696         * m4/printf-frexpl.m4: Likewise.
66697         * m4/vasnprintf.m4: Likewise.
66698         * modules/allocsa (Files): Remove m4/longdouble.m4.
66699         * modules/gettext (Files): Likewise.
66700         * modules/relocatable-prog-wrapper (Files): Likewise.
66701         * modules/vasnprintf (Files): Likewise.
66702         * modules/isnanl (Files): Likewise.
66703         (Include): Simplify.
66704         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66705         (Include): Simplify.
66706         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66707         (Include): Simplify.
66708         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66709         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66710         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66711         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66712         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66713         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66714         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66715         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66716         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66717         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66718         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66719         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66720         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66721         * tests/test-isnanl.c: Likewise.
66722         * tests/test-snprintf-posix.h: Likewise.
66723         * tests/test-sprintf-posix.h: Likewise.
66724         * tests/test-vasnprintf-posix.c: Likewise.
66725         * tests/test-vasnprintf-posix2.c: Likewise.
66726         * tests/test-vasprintf-posix.c: Likewise.
66727
66728 2007-04-06  Bruno Haible  <bruno@clisp.org>
66729
66730         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66731         * lib/math_.h [__DECC]: Include the overridden include file through
66732         #include_next, outside the double-inclusion guard.
66733         * lib/stdio_.h [__DECC]: Likewise.
66734         * lib/stdlib_.h [__DECC]: Likewise.
66735         * lib/string_.h [__DECC]: Likewise.
66736         * lib/time_.h [__DECC]: Likewise.
66737         * lib/wchar_.h [__DECC]: Likewise.
66738         * lib/wctype_.h [__DECC]: Likewise.
66739         * lib/inttypes_.h [__DECC]: Likewise.
66740         Reported by Albert Chin <china@thewrittenword.com> in
66741         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66742
66743 2007-04-04  Eric Blake  <ebb9@byu.net>
66744
66745         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66746         1.5.x.
66747
66748 2007-04-04  Bruno Haible  <bruno@clisp.org>
66749
66750         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66751         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66752
66753 2007-04-04  Bruno Haible  <bruno@clisp.org>
66754
66755         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66756         results for "%010a" of Infinity and NaN.
66757         * tests/test-vasprintf-posix.c (test_function): Likewise.
66758         * tests/test-snprintf-posix.h (test_function): Likewise.
66759         * tests/test-sprintf-posix.h (test_function): Likewise.
66760         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66761         * tests/test-printf-posix.h (test_function): Likewise.
66762         * tests/test-fprintf-posix.out: Update.
66763         Needed for FreeBSD 6.1.
66764
66765 2007-04-04  Bruno Haible  <bruno@clisp.org>
66766
66767         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66768         directly used by the gnulib modules nor by gnulib-tool.
66769
66770 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66771
66772         * DEPENDENCIES: Give overall description of version dependency
66773         desirability.  Use more-typical names for apps.
66774         Add shell, coreutils, diffutils, grep, tar, gzip.
66775
66776 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66777
66778         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66779
66780 2007-04-04  Karl Berry  <karl@gnu.org>
66781
66782         * MODULES.html.sh (func_module): missing '.
66783
66784 2007-04-03  Bruno Haible  <bruno@clisp.org>
66785
66786         * modules/argmatch-tests (Makefile.am): New variable
66787         test_argmatch_LDADD.
66788         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66789         * modules/array-list-tests (Makefile.am): New variable
66790         test_array_list_LDADD.
66791         * modules/array-oset-tests (Makefile.am): New variable
66792         test_array_oset_LDADD.
66793         * modules/avltree-list-tests (Makefile.am): New variable
66794         test_avltree_list_LDADD.
66795         * modules/avltree-oset-tests (Makefile.am): New variable
66796         test_avltree_oset_LDADD.
66797         * modules/avltreehash-list-tests (Makefile.am): New variable
66798         test_avltreehash_list_LDADD.
66799         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66800         test_canonicalize_lgpl_LDADD.
66801         * modules/carray-list-tests (Makefile.am): New variable
66802         test_carray_list_LDADD.
66803         * modules/dirname-tests (Makefile.am): New variable
66804         test_dirname_LDADD.
66805         * modules/linked-list-tests (Makefile.am): New variable
66806         test_linked_list_LDADD.
66807         * modules/linkedhash-list-tests (Makefile.am): New variable
66808         test_linkedhash_list_LDADD.
66809         * modules/rbtree-list-tests (Makefile.am): New variable
66810         test_rbtree_list_LDADD.
66811         * modules/rbtree-oset-tests (Makefile.am): New variable
66812         test_rbtree_oset_LDADD.
66813         * modules/rbtreehash-list-tests (Makefile.am): New variable
66814         test_rbtreehash_list_LDADD.
66815         * modules/xvasprintf-tests (Makefile.am): New variable
66816         test_xvasprintf_LDADD.
66817         Reported by Eric Blake.
66818
66819 2007-04-03  Eric Blake  <ebb9@byu.net>
66820
66821         * DEPENDENCIES: Weaken m4 requirements.
66822
66823 2007-04-03  Bruno Haible  <bruno@clisp.org>
66824
66825         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66826         * modules/isnanl-tests (configure.ac): Likewise.
66827
66828 2007-04-03  Ben Pfaff  <blp@gnu.org>
66829
66830         * modules/iconv_open: Add $(srcdir)/ to source directory
66831         references in Makefile fragments that call gperf, to fix VPATH
66832         builds.
66833
66834 2007-04-03  Bruno Haible  <bruno@clisp.org>
66835
66836         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66837         * lib/ldexpl.c: Undo last change.
66838
66839 2007-04-03  Bruno Haible  <bruno@clisp.org>
66840
66841         * modules/printf-frexpl (Depends-on): Undo last change.
66842         (Files): Add m4/ldexpl.m4.
66843
66844 2007-04-03  Bruno Haible  <bruno@clisp.org>
66845
66846         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66847         * modules/isnanl (Link): New section.
66848
66849         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66850         * modules/frexp (Link): New section.
66851
66852         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66853         * modules/frexpl (Link): New section.
66854
66855         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66856         * modules/ldexpl (Link): New section.
66857
66858 2007-04-03  Bruno Haible  <bruno@clisp.org>
66859
66860         * modules/TEMPLATE-EXTENDED: New file.
66861         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66862
66863 2007-04-03  Bruno Haible  <bruno@clisp.org>
66864
66865         * DEPENDENCIES: New file.
66866         Suggested by Simon Josefsson.
66867
66868 2007-04-03  Bruno Haible  <bruno@clisp.org>
66869
66870         * doc/gnulib.texi: Escape @.
66871
66872 2007-04-03  James Youngman  <jay@gnu.org>
66873         and Paul Eggert  <eggert@cs.ucla.edu>
66874
66875         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66876         birthtime on all systems that have birthtime, not just those which
66877         use st_birthtimensec rather than st_birthtim.  Putting zero in
66878         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66879         that the birth time is not available for files on an NFS mount.
66880
66881 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66882
66883         * modules/memxor: Move back from crypto/, suggested by Bruno.
66884         * modules/crypto/hmac-sha1: Fix memxor dependency.
66885
66886         * modules/crypto/gc: Moved from ../.
66887
66888 2007-04-02  Eric Blake  <ebb9@byu.net>
66889
66890         * lib/ldexpl.c (includes): Avoid libm.
66891
66892         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66893
66894 2007-04-02  Bruno Haible  <bruno@clisp.org>
66895
66896         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66897         on IRIX.
66898
66899 2007-04-02  Bruno Haible  <bruno@clisp.org>
66900
66901         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66902         x86 or x86_64 platforms running MacOS X.
66903         Reported by Ryan Schmidt <@ryandesign.com>.
66904
66905 2007-04-02  Bruno Haible  <bruno@clisp.org>
66906
66907         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66908         i386.
66909
66910 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66911
66912         * modules/crypto/arcfour: Moved from ../.
66913         * modules/crypto/arcfour-tests: Moved from ../.
66914         * modules/crypto/arctwo: Moved from ../.
66915         * modules/crypto/arctwo-tests: Moved from ../.
66916         * modules/crypto/des: Moved from ../.
66917         * modules/crypto/des-tests: Moved from ../.
66918         * modules/crypto/gc-arcfour: Moved from ../.
66919         * modules/crypto/gc-arcfour-tests: Moved from ../.
66920         * modules/crypto/gc-arctwo: Moved from ../.
66921         * modules/crypto/gc-arctwo-tests: Moved from ../.
66922         * modules/crypto/gc-des: Moved from ../.
66923         * modules/crypto/gc-des-tests: Moved from ../.
66924         * modules/crypto/gc-hmac-md5: Moved from ../.
66925         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66926         * modules/crypto/gc-hmac-sha1: Moved from ../.
66927         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66928         * modules/crypto/gc-md2: Moved from ../.
66929         * modules/crypto/gc-md2-tests: Moved from ../.
66930         * modules/crypto/gc-md4: Moved from ../.
66931         * modules/crypto/gc-md4-tests: Moved from ../.
66932         * modules/crypto/gc-md5: Moved from ../.
66933         * modules/crypto/gc-md5-tests: Moved from ../.
66934         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66935         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66936         * modules/crypto/gc-random: Moved from ../.
66937         * modules/crypto/gc-rijndael: Moved from ../.
66938         * modules/crypto/gc-rijndael-tests: Moved from ../.
66939         * modules/crypto/gc-sha1: Moved from ../.
66940         * modules/crypto/gc-sha1-tests: Moved from ../.
66941         * modules/crypto/gc-tests: Moved from ../.
66942         * modules/crypto/hmac-md5: Moved from ../.
66943         * modules/crypto/hmac-md5-tests: Moved from ../.
66944         * modules/crypto/hmac-sha1: Moved from ../.
66945         * modules/crypto/hmac-sha1-tests: Moved from ../.
66946         * modules/crypto/md2: Moved from ../.
66947         * modules/crypto/md2-tests: Moved from ../.
66948         * modules/crypto/md4: Moved from ../.
66949         * modules/crypto/md4-tests: Moved from ../.
66950         * modules/crypto/md5: Moved from ../.
66951         * modules/crypto/md5-tests: Moved from ../.
66952         * modules/crypto/memxor: Moved from ../.
66953         * modules/crypto/rijndael: Moved from ../.
66954         * modules/crypto/rijndael-tests: Moved from ../.
66955         * modules/crypto/sha1: Moved from ../.
66956
66957 2007-03-30  James Youngman  <jay@gnu.org>
66958
66959         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66960         rename() to change the ctime of a file (because ctime is unaffected
66961         by rename on jfs2 on AIX 5.1).
66962         (main): Start by doing cleanup, in case a previous run failed leaving
66963         test files behind.
66964
66965 2007-03-31  Bruno Haible  <bruno@clisp.org>
66966
66967         Support old proprietary implementations of iconv.
66968         * modules/iconv_open: New file.
66969         * lib/iconv_.h: New file.
66970         * m4/iconv_h.m4: New file.
66971         * lib/iconv_open.c: New file.
66972         * lib/iconv_open-aix.gperf: New file.
66973         * lib/iconv_open-hpux.gperf: New file.
66974         * lib/iconv_open-irix.gperf: New file.
66975         * lib/iconv_open-osf.gperf: New file.
66976         * m4/iconv_open.m4: New file.
66977         * modules/linebreak (Depends-on): Add iconv_open.
66978         * modules/striconv (Depends-on): Likewise.
66979         * modules/striconveh (Depends-on): Likewise.
66980         * modules/unicodeio (Depends-on): Likewise.
66981         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66982         (iconv_t)(-1).
66983         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66984         conversion if cd is (iconv_t)(-1).
66985         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66986         is not possible.
66987
66988 2007-03-31  Bruno Haible  <bruno@clisp.org>
66989
66990         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66991         work on Solaris either. Protect also second use of "autodetect_jp".
66992
66993 2007-03-31  Bruno Haible  <bruno@clisp.org>
66994
66995         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66996         the function is not present.
66997
66998 2007-03-31  Bruno Haible  <bruno@clisp.org>
66999
67000         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
67001         the function is not present.
67002
67003 2007-03-31  Bruno Haible  <bruno@clisp.org>
67004
67005         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
67006         a bug in HP-UX iconv_open().
67007
67008 2007-03-31  Bruno Haible  <bruno@clisp.org>
67009
67010         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
67011         (Mathematics <math.h>): New section, add fpieee.
67012         (Input/output <stdio.h>): Add fseterr.
67013         (Mathematics <math.h>): New section, add printf-frexp.
67014         (Container data structures): Add sublist.
67015         (Core language properties): Add fpucw, inline.
67016         (Functions for greatest-width integer types <inttypes.h>): Add
67017         imaxabs, imaxdiv, inttypes.
67018         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
67019         isnanl-nolibm, ldexp.
67020         (Mathematics <math.h>): New section, add printf-frexpl.
67021         (Support for systems lacking POSIX:2001): Add fprintf-posix,
67022         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
67023         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
67024         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
67025         (Unicode string functions): Add unistr/u*-mbtoucr.
67026         (Java): Add javacomp-script, javaexec-script.
67027         (C#): Add csharpcomp-script, csharpexec-script.
67028         (Support for building libraries and executables): Add havelib,
67029         relocatable-*.
67030         (Support for maintaining and releasing projects): Renamed from
67031         'Support for maintaining and release projects'. Add announce-gen.
67032
67033 2007-03-31  Bruno Haible  <bruno@clisp.org>
67034
67035         * README: Talk primarily about git.
67036         (git and CVS): Renamed from CVS.
67037         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
67038         gnulib is available through git.
67039         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
67040
67041 2007-03-30  Bruno Haible  <bruno@clisp.org>
67042
67043         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
67044         * lib/poll_.h: Likewise.
67045         * lib/stat_.h: Likewise.
67046         * lib/sys_time_.h: Likewise.
67047         * lib/sysexit_.h: Likewise.
67048         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
67049         * lib/stdbool_.h: Likewise.
67050         * lib/byteswap_.h: Add double-inclusion guard.
67051
67052 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
67053
67054         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
67055
67056 2007-03-30  Karl Berry  <karl@gnu.org>
67057
67058         * config/srclist-update: double space after USA in the license
67059         substitution, since that's how it's usually (?) written.
67060
67061 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
67062
67063         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
67064         reported by Bruno Haible.
67065
67066 2007-03-29  Bruno Haible  <bruno@clisp.org>
67067
67068         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
67069         a bug in AIX iconv().
67070
67071 2007-03-29  Bruno Haible  <bruno@clisp.org>
67072
67073         * modules/ldexpl-tests: New file.
67074         * tests/test-ldexpl.c: New file.
67075
67076 2007-03-29  Bruno Haible  <bruno@clisp.org>
67077
67078         * lib/ldexpl.c: Include fpucw.h.
67079         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
67080         multiplication.
67081         * modules/ldexpl (Depends-on): Add fpucw.
67082
67083 2007-03-29  Bruno Haible  <bruno@clisp.org>
67084
67085         * modules/ldexpl: New file.
67086         * m4/ldexpl.m4: New file.
67087         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
67088         set.
67089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
67090         REPLACE_LDEXPL.
67091         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
67092         REPLACE_LDEXPL.
67093         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67094         gl_FUNC_LDEXPL_WORKS.
67095         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
67096         * modules/mathl (Files): Remove lib/ldexpl.c.
67097         (Depends-on): Add ldexpl.
67098
67099 2007-03-29  Bruno Haible  <bruno@clisp.org>
67100
67101         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
67102
67103 2007-03-29  Bruno Haible  <bruno@clisp.org>
67104
67105         * tests/test-striconveh.c (main): Don't assume that a direct conversion
67106         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
67107         and possibly also HP-UX.
67108         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
67109         work on AIX, IRIX, HP-UX, OSF/1.
67110         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
67111         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
67112         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
67113         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
67114         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
67115         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
67116
67117 2007-03-29  Bruno Haible  <bruno@clisp.org>
67118
67119         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
67120
67121 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67122
67123         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
67124         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
67125
67126 2007-03-29  Eric Blake  <ebb9@byu.net>
67127
67128         * lib/acl-internal.h: Remove redundant include.
67129         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
67130         Cygwin when a file is locked.
67131
67132 2007-03-29  Bruno Haible  <bruno@clisp.org>
67133
67134         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
67135         file.
67136         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
67137
67138 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
67139
67140         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
67141         try to remove a parent directory if the child couldn't be removed
67142         (except for the first rmdir, which could fail because the child
67143         doesn't exist).  Problem reported by Jeff Blaine in
67144         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
67145
67146 2007-03-28  Bruno Haible  <bruno@clisp.org>
67147
67148         * lib/striconveh.c (utf8conv_carefully): New function.
67149         (mem_cd_iconveh_internal): Invoke it.
67150
67151 2007-03-28  Bruno Haible  <bruno@clisp.org>
67152
67153         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
67154         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
67155         input.
67156         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
67157         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
67158         unistr/u8-uctomb.
67159
67160 2007-03-28  Bruno Haible  <bruno@clisp.org>
67161
67162         * modules/unistr/u8-mbtoucr: New file.
67163         * lib/unistr/u8-mbtoucr.c: New file.
67164         * modules/unistr/u16-mbtoucr: New file.
67165         * lib/unistr/u16-mbtoucr.c: New file.
67166         * modules/unistr/u16-mbtoucr: New file.
67167         * lib/unistr/u16-mbtoucr.c: New file.
67168         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
67169
67170 2007-03-27  Simon Josefsson  <simon@josefsson.org>
67171             Bruno Haible  <bruno@clisp.org>
67172
67173         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
67174         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
67175         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
67176
67177         * m4/stdio_h.m4: Add stubs for vasprintf too.
67178
67179         * modules/stdio: Support vasprintf in sed command.
67180
67181         * modules/vasprintf: Depend on stdio for prototypes.  Remove
67182         vasprintf.h.  Add stdio module indicator.
67183
67184         * lib/stdio_.h: Declare asprintf and vasprintf, based on
67185         vasprintf.h.
67186
67187         * lib/vasprintf.h: File removed.
67188
67189         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
67190         * lib/vasprintf.c: Ditto.
67191         * lib/xvasprintf.c: Ditto.
67192         * tests/test-vasprintf-posix.c: Ditto.
67193         * tests/test-vasprintf.c: Ditto.
67194
67195 2007-03-27  Bruno Haible  <bruno@clisp.org>
67196
67197         Make vasnprintf multithread-safe.
67198         * lib/vasnprintf.c (decimal_point_char): New function.
67199         (VASNPRINTF): Use it.
67200         Suggested by Simon Josefsson.
67201
67202 2007-03-27  Eric Blake  <ebb9@byu.net>
67203
67204         Support sub-second birthtime on cygwin.
67205         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
67206         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
67207         (get_stat_birthtime): Also work with st_birthtim.
67208
67209 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
67210
67211         * lib/stat-time.h (USE_BIRTHTIME): Remove.
67212         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
67213         (get_stat_birthtime_ns): Do not try to use "spare" fields.
67214         (get_stat_birthtime_ns): Simplify compile-time tests.
67215         (get_stat_birthtime): Change the API to look like
67216         get_stat_mtime etc., except return a negative tv_nsec on error.
67217         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
67218         Don't check for "spare" fields.
67219         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
67220         or for struct stat.st_birthtime, as these tests aren't used.
67221         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
67222
67223 2007-03-27  Bruno Haible  <bruno@clisp.org>
67224
67225         * lib/stat-time.h: Include <sys/stat.h>.
67226
67227 2007-03-27  James Youngman  <jay@gnu.org>
67228
67229         * lib/stat-time.h (get_stat_birthtime): New function for
67230           retrieving st_birthtime as provided by UFS2 (hence *BSD).
67231         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
67232           and its variants.
67233         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
67234         * modules/stat-time-test: New file.
67235         * tests/test-stat-time.c: New test, devised by Bruno Haible.
67236
67237 2007-03-26  Bruno Haible  <bruno@clisp.org>
67238
67239         Better support of signalling NaNs.
67240         * lib/atanl.c: Include isnanl.h.
67241         (atanl): Perform test for NaN at the beginning of the function and
67242         through a call to isnanl.
67243         * lib/cosl.c: Include isnanl.h.
67244         (cosl): Perform test for NaN at the beginning of the function and
67245         through a call to isnanl.
67246         * lib/ldexpl.c: Include isnanl.h.
67247         (ldexpl): Perform test for NaN through a call to isnanl.
67248         * lib/logl.c: Include isnanl.h.
67249         (logl): Perform test for NaN at the beginning of the function and
67250         through a call to isnanl.
67251         * lib/sinl.c: Include isnanl.h.
67252         (sinl): Perform test for NaN at the beginning of the function and
67253         through a call to isnanl.
67254         * lib/sqrtl.c: Include isnanl.h.
67255         (sqrtl): Perform test for NaN at the beginning of the function and
67256         through a call to isnanl.
67257         * lib/tanl.c: Include isnanl.h.
67258         (tanl): Perform test for NaN at the beginning of the function and
67259         through a call to isnanl.
67260         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
67261         * modules/mathl (Depends-on): Add isnanl.
67262
67263 2007-03-26  Eric Blake  <ebb9@byu.net>
67264
67265         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
67266         regression in logic sense of previous patch.
67267
67268 2007-03-26  Bruno Haible  <bruno@clisp.org>
67269
67270         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
67271         unportable shell command "if ! ...".
67272         Reported by Ralf Wildenhues.
67273
67274 2007-03-25  Bruno Haible  <bruno@clisp.org>
67275
67276         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
67277         <sysexits.h> file, and only add EX_CONFIG.
67278         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
67279         absolute file name and whether it is sufficient. Substitute also
67280         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
67281         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
67282         ABSOLUTE_SYSEXITS_H into sysexits.h.
67283
67284 2007-03-25  Bruno Haible  <bruno@clisp.org>
67285
67286         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
67287         hints is NULL.
67288
67289 2007-03-25  Bruno Haible  <bruno@clisp.org>
67290
67291         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
67292         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
67293
67294 2007-03-25  Bruno Haible  <bruno@clisp.org>
67295
67296         * lib/vasnprintf.c: Include langinfo.h.
67297         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
67298         multithread-safe.
67299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
67300         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
67301         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67302         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67303         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67304         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67305         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67306         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
67307         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67308         Reported by Simon Josefsson.
67309
67310 2007-03-25  Bruno Haible  <bruno@clisp.org>
67311
67312         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67313         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67314         * modules/vasnprintf (Depends-on): Add stdint.
67315
67316 2007-03-25  Bruno Haible  <bruno@clisp.org>
67317
67318         * modules/fpieee: New file.
67319         * m4/fpieee.m4: New file.
67320         * modules/isnan-nolibm (Depends-on): Add fpieee.
67321         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67322         * modules/isnanl (Depends-on): Add fpieee.
67323
67324 2007-03-25  Bruno Haible  <bruno@clisp.org>
67325
67326         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67327
67328 2007-03-25  Bruno Haible  <bruno@clisp.org>
67329
67330         Avoid test failures on IRIX 6.5.
67331         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67332         (main): Use it.
67333         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67334         macros.
67335         (main): Use them.
67336
67337 2007-03-25  Bruno Haible  <bruno@clisp.org>
67338
67339         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67340         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67341         exists but doesn't work.
67342         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67343         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67345         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67346         math.h.
67347
67348 2007-03-25  Bruno Haible  <bruno@clisp.org>
67349
67350         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67351         returns inf. Needed on IRIX 6.5.
67352
67353 2007-03-25  Bruno Haible  <bruno@clisp.org>
67354
67355         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67356         (main): Use isnanl instead of x != x idiom.
67357         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67358
67359         * tests/test-frexp.c: Include isnan.h.
67360         (main): Use isnan instead of x != x idiom.
67361         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67362
67363 2007-03-25  Bruno Haible  <bruno@clisp.org>
67364
67365         * tests/test-frexp.c (NaN): New function/macro.
67366         (main): Use it instead of 0.0 / 0.0.
67367         * tests/test-isnan.c (NaN): New function/macro.
67368         (main): Use it instead of 0.0 / 0.0.
67369         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67370         (test_function): Use it instead of 0.0 / 0.0.
67371         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67372         (test_function): Use it instead of 0.0 / 0.0.
67373         * tests/test-snprintf-posix.h (NaN): New function/macro.
67374         (test_function): Use it instead of 0.0 / 0.0.
67375         * tests/test-sprintf-posix.h (NaN): New function/macro.
67376         (test_function): Use it instead of 0.0 / 0.0.
67377         * tests/test-fprintf-posix.h (NaN): New function/macro.
67378         (test_function): Use it instead of 0.0 / 0.0.
67379         * tests/test-printf-posix.h (NaN): New function/macro.
67380         (test_function): Use it instead of 0.0 / 0.0.
67381
67382         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67383
67384 2007-03-25  Bruno Haible  <bruno@clisp.org>
67385
67386         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67387
67388 2007-03-25  Bruno Haible  <bruno@clisp.org>
67389
67390         * lib/regexec.c (merge_state_with_log): Make static.
67391
67392 2007-03-25  Bruno Haible  <bruno@clisp.org>
67393
67394         * lib/trigl.c (kernel_rem_pio2): Make static.
67395
67396 2007-03-25  Bruno Haible  <bruno@clisp.org>
67397
67398         * lib/sincosl.c (sincosl_table): Make static.
67399
67400 2007-03-25  Bruno Haible  <bruno@clisp.org>
67401
67402         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67403         if the compiler does not support C99.
67404
67405 2007-03-25  Bruno Haible  <bruno@clisp.org>
67406
67407         * modules/time (Makefile.am): Ensure all rule action lines start with a
67408         tab.
67409
67410 2007-03-24  Bruno Haible  <bruno@clisp.org>
67411
67412         * modules/tsearch-tests: New file.
67413         * tests/test-tsearch.sh: New file.
67414         * tests/test-tsearch.c: New file, mostly copied from glibc.
67415
67416         * modules/search-tests: New file.
67417         * tests/test-search.c: New file.
67418
67419         * modules/search: New file.
67420         * lib/search_.h: New file, incorporating lib/tsearch.h.
67421         * m4/search_h.m4: New file.
67422         * lib/tsearch.h: Remove file.
67423         * lib/tsearch.c: Include search.h instead of tsearch.h.
67424         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67425         HAVE_TSEARCH.
67426         * modules/tsearch (Files): Remove lib/tsearch.h.
67427         (Depends-on): Add search.
67428         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67429         (Include): Change tsearch.h into search.h.
67430
67431 2007-03-24  Bruno Haible  <bruno@clisp.org>
67432
67433         * modules/fpucw: New file.
67434         * lib/fpucw.h: New file.
67435         * lib/frexp.c: Include fpucw.h.
67436         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67437         (FUNC): Use them.
67438         * lib/printf-frexp.c: Include fpucw.h.
67439         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67440         (FUNC): Use them.
67441         * lib/vasnprintf.c: Include fpucw.h.
67442         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67443         'long double' calculations.
67444         * tests/test-frexpl.c: Include fpucw.h.
67445         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67446         * tests/test-printf-frexpl.c: Include fpucw.h.
67447         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67448         * modules/frexpl (Depends-on): Add fpucw.
67449         * modules/printf-frexpl (Depends-on): Likewise.
67450         * modules/fprintf-posix (Depends-on): Likewise.
67451         * modules/snprintf-posix (Depends-on): Likewise.
67452         * modules/sprintf-posix (Depends-on): Likewise.
67453         * modules/vasnprintf-posix (Depends-on): Likewise.
67454         * modules/vasprintf-posix (Depends-on): Likewise.
67455         * modules/vfprintf-posix (Depends-on): Likewise.
67456         * modules/vsnprintf-posix (Depends-on): Likewise.
67457         * modules/vsprintf-posix (Depends-on): Likewise.
67458         * modules/frexpl-tests (Depends-on): Likewise.
67459         * modules/printf-frexpl-tests (Depends-on): Likewise.
67460
67461 2007-03-24  Bruno Haible  <bruno@clisp.org>
67462
67463         * lib/float+.h: New file.
67464         * lib/isnan.c: Include float+.h.
67465         (SIZE): New macro.
67466         (FUNC): Compare only SIZE bytes of the value.
67467         * lib/vasnprintf.c: Include float+.h.
67468         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
67469         SIZEOF_LDBL or SIZEOF_DBL bytes.
67470         * modules/isnan-nolibm (Files): Add lib/float+.h.
67471         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67472         * modules/isnanl (Files): Add lib/float+.h.
67473         * modules/vasnprintf (Files): Add lib/float+.h.
67474
67475 2007-03-24  Bruno Haible  <bruno@clisp.org>
67476
67477         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67478         include isnanl-nolibm.h.
67479
67480 2007-03-24  Bruno Haible  <bruno@clisp.org>
67481
67482         * tests/test-read-file.c (main): Don't produce spurious output for
67483         expected situations. Make the test fail if it encountered unexpected
67484         results.
67485
67486 2007-03-24  Bruno Haible  <bruno@clisp.org>
67487
67488         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67489         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67490
67491 2007-03-24  Bruno Haible  <bruno@clisp.org>
67492
67493         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67494
67495 2007-03-24  Bruno Haible  <bruno@clisp.org>
67496
67497         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67498         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67499
67500         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67501         * modules/utf8-ucs4: Turn into a symbolic link to module
67502         unistr/u8-mbtouc.
67503
67504         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67505         utf8-ucs4-unsafe.
67506         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67507         unistr/u8-mbtouc-unsafe.
67508
67509         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67510         * modules/utf16-ucs4: Turn into a symbolic link to module
67511         unistr/u16-mbtouc.
67512
67513         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67514         utf16-ucs4-unsafe.
67515         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67516         unistr/u16-mbtouc-unsafe.
67517
67518         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67519         * modules/ucs4-utf8: Turn into a symbolic link to module
67520         unistr/u8-ubtomb.
67521
67522         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67523         * modules/ucs4-utf16: Turn into a symbolic link to module
67524         unistr/u16-ubtomb.
67525
67526 2007-03-24  Bruno Haible  <bruno@clisp.org>
67527
67528         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67529         Enable the function only if HAVE_INLINE.
67530         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67531         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67532         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67533         Enable the function only if HAVE_INLINE.
67534         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67535         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67536         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67537         Enable the function only if HAVE_INLINE.
67538         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67539         Enable the function only if HAVE_INLINE.
67540         * modules/utf8-ucs4: Update.
67541         * modules/utf8-ucs4-unsafe: Update.
67542         * modules/utf16-ucs4: Update.
67543         * modules/utf16-ucs4-unsafe: Update.
67544         * modules/ucs4-utf8: Update.
67545         * modules/ucs4-utf16: Update.
67546
67547 2007-03-24  Bruno Haible  <bruno@clisp.org>
67548
67549         * lib/utf8-ucs4.h: Remove file.
67550         * lib/utf8-ucs4-unsafe.h: Remove file.
67551         * lib/utf16-ucs4.h: Remove file.
67552         * lib/utf16-ucs4-unsafe.h: Remove file.
67553         * lib/ucs4-utf8.h: Remove file.
67554         * lib/ucs4-utf16.h: Remove file.
67555         * lib/unistr.h: Include their previous contents.
67556         * m4/utf-ucs4.m4: Remove file.
67557         * m4/ucs4-utf.m4: Remove file.
67558         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67559         (Depends-on): Add unistr/base.
67560         (configure.ac): Remove gl_UTF_UCS4.
67561         (Makefile.am): Update.
67562         (Include): Change to unistr.h.
67563         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67564         (Depends-on): Add unistr/base.
67565         (configure.ac): Remove gl_UTF_UCS4.
67566         (Makefile.am): Update.
67567         (Include): Change to unistr.h.
67568         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67569         (Depends-on): Add unistr/base.
67570         (configure.ac): Remove gl_UTF_UCS4.
67571         (Makefile.am): Update.
67572         (Include): Change to unistr.h.
67573         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67574         (Depends-on): Add unistr/base.
67575         (configure.ac): Remove gl_UTF_UCS4.
67576         (Makefile.am): Update.
67577         (Include): Change to unistr.h.
67578         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67579         (Depends-on): Add unistr/base.
67580         (configure.ac): Remove gl_UCS4_UTF.
67581         (Makefile.am): Update.
67582         (Include): Change to unistr.h.
67583         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67584         (Depends-on): Add unistr/base.
67585         (configure.ac): Remove gl_UCS4_UTF.
67586         (Makefile.am): Update.
67587         (Include): Change to unistr.h.
67588         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67589         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67590         utf8-ucs4-unsafe.h.
67591         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67592         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67593         utf16-ucs4-unsafe.h.
67594         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67595         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67596         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67597         * lib/unistr/u8-strchr.c: Likewise.
67598         * lib/unistr/u8-strrchr.c: Likewise.
67599         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67600         * lib/unistr/u16-strchr.c: Likewise.
67601         * lib/unistr/u16-strrchr.c: Likewise.
67602         * lib/striconveh.c: Update.
67603         * lib/linebreak.c: Update.
67604
67605 2007-03-24  Bruno Haible  <bruno@clisp.org>
67606
67607         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67608         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67609
67610 2007-03-22  Bruno Haible  <bruno@clisp.org>
67611
67612         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67613
67614 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67615
67616         * MODULES.html.sh (File system functions): New module write-any-file.
67617         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67618         * m4/write-any-file.m4: New files.
67619
67620 2007-03-23  Eric Blake  <ebb9@byu.net>
67621
67622         * gnulib-tool: Rearrange space-tab sequences, since some editors
67623         like to eat them.
67624
67625 2007-03-23  Eric Blake  <ebb9@byu.net>
67626
67627         * lib/version-etc.c (version_etc_va): Update license wording to
67628         be more concise.  Recommended by Richard Stallman.
67629
67630 2007-03-22  Bruno Haible  <bruno@clisp.org>
67631
67632         * lib/poll.c (MSG_PEEK): New fallback definition.
67633
67634 2007-03-22  Bruno Haible  <bruno@clisp.org>
67635
67636         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67637         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67638         (main): Update.
67639         Fixes a compilation error on BeOS.
67640
67641 2007-03-22  Bruno Haible  <bruno@clisp.org>
67642
67643         * modules/frexpl-tests: New file.
67644         * tests/test-frexpl.c: New file.
67645
67646         * modules/frexpl: New file.
67647         * m4/frexpl.m4: New file.
67648         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67649         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67650         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67651         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67652         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67653         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67654
67655 2007-03-22  Bruno Haible  <bruno@clisp.org>
67656
67657         * lib/frexpl.c: Share code with lib/frexp.c.
67658         * modules/mathl (Files): Add lib/frexp.c.
67659         (Depends-on): Add isnanl-nolibm.
67660
67661 2007-03-22  Bruno Haible  <bruno@clisp.org>
67662
67663         * modules/printf-frexp (Files): Add m4/frexp.m4.
67664         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67665         only if the found frexp function actually works.
67666
67667 2007-03-22  Bruno Haible  <bruno@clisp.org>
67668
67669         * lib/frexp.c: Remove older implementation that uses divisions.
67670
67671 2007-03-21  Bruno Haible  <bruno@clisp.org>
67672
67673         * modules/frexp-tests: New file.
67674         * tests/test-frexp.c: New file.
67675
67676         * modules/frexp: New file.
67677         * lib/frexp.c: New file.
67678         * m4/frexp.m4: New file.
67679         * lib/math_.h (frexp): New declaration.
67680         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67681         REPLACE_FREXP.
67682         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67683
67684 2007-03-21  Bruno Haible  <bruno@clisp.org>
67685
67686         * modules/isnanl-tests: New file.
67687         * tests/test-isnanl.c: New file.
67688
67689         * modules/isnanl: New file.
67690         * lib/isnanl.h: New file.
67691         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67692         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67693         gl_FUNC_ISNANL_WORKS.
67694         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67695         New macros.
67696
67697 2007-03-21  Bruno Haible  <bruno@clisp.org>
67698
67699         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67700         lib/isnanl.h.
67701         (Include): Update.
67702         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67703         * lib/vasnprintf.c: Update.
67704         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67705         tests/test-isnanl.h, remove tests/test-isnanl.c.
67706         (Makefile.am): Update.
67707         * tests/test-isnanl-nolibm.c: New file.
67708         * tests/test-isnanl.h: New file.
67709         * tests/test-isnanl.c: Remove file.
67710
67711 2007-03-21  Jim Meyering  <jim@meyering.net>
67712
67713         When trying to open ".", treat ESTALE like EACCES.
67714         * lib/savewd.c (savewd_save): Resort to forking not just upon
67715         failure with EACCES, but also when errno is ESTALE.
67716
67717 2007-03-20  Bruno Haible  <bruno@clisp.org>
67718
67719         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67720         Needed on AIX 5.1. Reported by Matthew Woehlke.
67721
67722 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67723
67724         Suggestions by Bruno Haible:
67725         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67726         our own.
67727         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67728         * modules/acl (Depends-on): Add gettext.
67729
67730 2007-03-19  Bruno Haible  <bruno@clisp.org>
67731
67732         * modules/iconvme: Remove file.
67733         * lib/iconvme.h: Remove file.
67734         * lib/iconvme.c: Remove file.
67735         * m4/iconvme.m4: Remove file.
67736
67737 2007-03-19  Bruno Haible  <bruno@clisp.org>
67738
67739         * doc/relocatable-maint.texi: Break long shell script line.
67740         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67741
67742 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67743
67744         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67745         handle file_has_acl.
67746         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67747         * lib/acl.c: Move header inclusions and related macro defns into
67748         lib/acl-internal.h.
67749         (S_ISLNK): Remove defn, since that's now done for us.
67750         (file_has_acl): Move to lib/file-has-acl.c.
67751         Call acl_trivial if available.  This is the crucial part of the fix.
67752         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67753         shared within the library.  Rewrite a bit, partly to make it compatible
67754         with the GNU coding style.
67755         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67756         Remove unnecessary double-quotes.
67757         Don't test for acl_to_text; the build will catch that.
67758         Replace acl_entries if it doesn't exist and it is needed.
67759         Check for -lsec and acl_trivial (as used on Solaris 10).
67760         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67761         lib/file-has-acl.c.
67762         (Depends-on): Add sys_stat, for S_ISLNK.
67763
67764 2007-03-19  Ben Pfaff  <blp@gnu.org>
67765
67766         * doc/gnulib.texi: Fix typos.
67767         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67768
67769 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67770
67771         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67772         If size is zero here, buf must be zero.
67773
67774 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67775
67776         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67777         <bruno@clisp.org>.
67778
67779 2007-03-18  Bruno Haible  <bruno@clisp.org>
67780
67781         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67782         Suggested by Eric Blake.
67783
67784 2007-03-18  Ben Pfaff  <blp@gnu.org>
67785
67786         * doc/relocatable.texi: Recommend using as prefix a directory
67787         that does not exist and will never be created.  Based on
67788         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67789         and others.
67790
67791 2007-03-17  Bruno Haible  <bruno@clisp.org>
67792
67793         * lib/fchownat.c: Include lchown.h.
67794
67795 2007-03-17  Bruno Haible  <bruno@clisp.org>
67796
67797         Fix endless loop when the given allocated size was > INT_MAX.
67798         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67799         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67800         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67801         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67802         * lib/sprintf.c (sprintf): Likewise.
67803
67804 2007-03-17  Bruno Haible  <bruno@clisp.org>
67805
67806         * tests/test-argp-2.sh (func_compare): Output a context diff.
67807
67808 2007-03-17  Bruno Haible  <bruno@clisp.org>
67809
67810         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67811         locale's decimal-point character.
67812
67813 2007-03-17  Bruno Haible  <bruno@clisp.org>
67814
67815         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67816         before comparing it. Needed because on some platforms (e.g. x86) a
67817         'long double' occupies less bytes than sizeof (long double).
67818
67819 2007-03-17  Bruno Haible  <bruno@clisp.org>
67820
67821         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67822         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67823         * tests/test-getaddrinfo.c (simple): Likewise.
67824         * tests/test-read-file.c (main): Likewise.
67825
67826 2007-03-17  Bruno Haible  <bruno@clisp.org>
67827
67828         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67829
67830 2007-03-17  Bruno Haible  <bruno@clisp.org>
67831
67832         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67833         unused variable.
67834
67835 2007-03-17  Bruno Haible  <bruno@clisp.org>
67836
67837         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67838         * tests/test-c-strncasecmp.c: Likewise.
67839
67840 2007-03-17  Bruno Haible  <bruno@clisp.org>
67841
67842         * modules/stdlib (Depends-on): Add unistd.
67843         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67844         Needed for MacOS X 10.3.
67845
67846 2007-03-17  Bruno Haible  <bruno@clisp.org>
67847
67848         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67849
67850 2007-03-17  Bruno Haible  <bruno@clisp.org>
67851
67852         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67853
67854 2007-03-17  Bruno Haible  <bruno@clisp.org>
67855
67856         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67857         to reflect files copied from gnulib (with or without modifications).
67858         Suggested by Jim Meyering.
67859
67860 2007-03-17  Eric Blake  <ebb9@byu.net>
67861
67862         * NEWS: Document stdlib change from 2007-02-18.
67863
67864 2007-03-17  Jim Meyering  <jim@meyering.net>
67865
67866         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67867         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67868         someone uses a name containing shell meta-characters.
67869         Reported by Alfred M. Szmidt.
67870
67871         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67872
67873 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67874
67875         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67876         and copy gettext configuration files only if configure.ac contains
67877         a use of AM_GNU_GETTEXT_VERSION.
67878
67879 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67880
67881         * build-aux/bootstrap (gnulib_name): New variable.
67882         (gnulib_tool_options): Use it.
67883
67884 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67885
67886         * tests/test-des.c: Use new namespace.
67887
67888 2007-03-15  Bruno Haible  <bruno@clisp.org>
67889
67890         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67891         Reported by James Youngman <jay@gnu.org>.
67892
67893 2007-03-15  Bruno Haible  <bruno@clisp.org>
67894
67895         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67896         declared prototype. Needed with cc on OSF/1 5.1.
67897
67898 2007-03-15  Bruno Haible  <bruno@clisp.org>
67899
67900         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67901         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67902         (struct gl_list_implementation): Add dispose_fn argument to the
67903         'create_empty', 'create' methods.
67904         (struct gl_list_impl_base): Add field 'dispose_fn'.
67905         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67906         argument.
67907         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67908         dispose_fn argument.
67909         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67910         dispose_fn on the dropped values.
67911         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67912         dispose_fn argument.
67913         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67914         dropped values.
67915         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67916         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67917         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67918         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67919         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67920         argument.
67921         (gl_tree_list_free): Call dispose_fn on the dropped values.
67922         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67923         the dropped values.
67924         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67925         Add dispose_fn argument.
67926         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67927         Call dispose_fn on the dropped values.
67928         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67929         Add dispose_fn argument.
67930         (gl_sublist_create): Initialize the 'dispose_fn' field.
67931         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67932         * tests/test-array_list.c (main): Update.
67933         * tests/test-carray_list.c (main): Update.
67934         * tests/test-avltree_list.c (main): Update.
67935         * tests/test-rbtree_list.c (main): Update.
67936         * tests/test-avltreehash_list.c (main): Update.
67937         * tests/test-rbtreehash_list.c (main): Update.
67938         * tests/test-linked_list.c (main): Update.
67939         * tests/test-linkedhash_list.c (main): Update.
67940         * tests/test-array_oset.c (main): Update.
67941
67942 2007-03-15  Bruno Haible  <bruno@clisp.org>
67943
67944         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67945         (gl_oset_create_empty): Add dispose_fn argument.
67946         (struct gl_oset_implementation): Add dispose_fn argument to
67947         'create_empty' method.
67948         (struct gl_oset_impl_base): Add dispose_fn field.
67949         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67950         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67951         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67952         values.
67953         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67954         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67955         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67956         dropped value.
67957         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67958         dropped value.
67959         * tests/test-array_oset.c (main): Update.
67960         * tests/test-avltree_oset.c (main): Update.
67961         * tests/test-rbtree_oset.c (main): Update.
67962         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67963
67964 2007-03-13  Bruno Haible  <bruno@clisp.org>
67965
67966         * tests/test-stdbool.c (i): Update after last patch.
67967
67968 2007-03-12  Bruno Haible  <bruno@clisp.org>
67969
67970         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67971         the iswprint macro. Needed on Solaris 2.5.1.
67972
67973 2007-03-12  Bruno Haible  <bruno@clisp.org>
67974
67975         * tests/test-printf-frexp.c (main): Declare x as volatile.
67976
67977 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67978
67979         * doc/gnulib.texi (Build robot for gnulib): New section.
67980
67981 2007-03-12  Jim Meyering  <jim@meyering.net>
67982
67983         * build-aux/bootstrap: New file.
67984         * build-aux/bootstrap.conf: New file, from coreutils.
67985
67986 2007-03-11  Bruno Haible  <bruno@clisp.org>
67987
67988         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67989
67990 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67991
67992         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67993         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67994         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67995
67996 2007-03-11  Bruno Haible  <bruno@clisp.org>
67997
67998         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67999         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
68000
68001 2007-03-11  Bruno Haible  <bruno@clisp.org>
68002
68003         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
68004         formula. Needed for SunPRO C 5.0.
68005
68006 2007-03-11  Bruno Haible  <bruno@clisp.org>
68007
68008         * modules/long-options (Depends-on): Add getopt.
68009
68010 2007-03-11  Bruno Haible  <bruno@clisp.org>
68011
68012         * modules/modechange (Depends-on): Add stdbool.
68013
68014 2007-03-11  Bruno Haible  <bruno@clisp.org>
68015
68016         * modules/i-ring (Depends-on): Add stdbool.
68017
68018 2007-03-11  Bruno Haible  <bruno@clisp.org>
68019
68020         * modules/gc-des (Depends-on): Add stdbool.
68021
68022 2007-03-11  Bruno Haible  <bruno@clisp.org>
68023
68024         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
68025
68026 2007-03-11  Bruno Haible  <bruno@clisp.org>
68027
68028         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
68029
68030 2007-03-11  Bruno Haible  <bruno@clisp.org>
68031
68032         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
68033
68034 2007-03-11  Bruno Haible  <bruno@clisp.org>
68035
68036         * lib/vasnprintf.c (sprintf): Undefine.
68037
68038 2007-03-11  Bruno Haible  <bruno@clisp.org>
68039
68040         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
68041         initializers in SunPRO C and Compaq C compilers.
68042
68043 2007-03-11  Bruno Haible  <bruno@clisp.org>
68044
68045         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
68046         decrementing code ANSI C compliant.
68047
68048 2007-03-11  Bruno Haible  <bruno@clisp.org>
68049
68050         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
68051         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
68052
68053 2007-03-11  Bruno Haible  <bruno@clisp.org>
68054
68055         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
68056         <stdbool.h> substitute doesn't pass.
68057
68058 2007-03-11  Bruno Haible  <bruno@clisp.org>
68059
68060         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
68061
68062 2007-03-11  Bruno Haible  <bruno@clisp.org>
68063
68064         * gnulib-tool (func_create_megatestdir): Create also an autobuild
68065         script, for submission to autobuild.josefsson.org.
68066
68067 2007-03-10  Bruno Haible  <bruno@clisp.org>
68068
68069         * modules/canonicalize-lgpl-tests: New file.
68070         * tests/test-canonicalize-lgpl.sh: New file.
68071         * tests/test-canonicalize-lgpl.c: New file.
68072
68073         * modules/c-strcase-tests: New file.
68074         * tests/test-c-strcase.sh: New file.
68075         * tests/test-c-strcasecmp.c: New file.
68076         * tests/test-c-strncasecmp.c: New file.
68077
68078         * modules/atexit-tests: New file.
68079         * tests/test-atexit.sh: New file.
68080         * tests/test-atexit.c: New file.
68081
68082 2007-03-10  Bruno Haible  <bruno@clisp.org>
68083
68084         * tests/test-binary-io.sh: Use temporary filenames that are not so
68085         likely to clash with those of other tests (in a parallel make).
68086         * tests/test-binary-io.c: Likewise.
68087
68088 2007-03-10  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
68091         fallback; use #error instead.
68092         Suggested by Simon Josefsson.
68093
68094 2007-03-10  Bruno Haible  <bruno@clisp.org>
68095
68096         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
68097         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
68098         first and the last.
68099
68100 2007-03-10  Bruno Haible  <bruno@clisp.org>
68101
68102         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
68103
68104 2007-03-10  Bruno Haible  <bruno@clisp.org>
68105
68106         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
68107         "make distcheck".
68108         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
68109         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
68110         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
68111
68112 2007-03-10  Bruno Haible  <bruno@clisp.org>
68113
68114         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
68115         variable.
68116         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
68117         variable.
68118
68119 2007-03-09  Eric Blake  <ebb9@byu.net>
68120         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
68121
68122         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
68123         types are not being provided by gnulib.
68124         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
68125         types are supported.
68126
68127 2007-03-10  Bruno Haible  <bruno@clisp.org>
68128
68129         * lib/stdio_.h (__attribute__): New macro.
68130         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
68131         vsprintf): Specify __attribute__ __format__ for GCC.
68132         Suggested by Eric Blake.
68133
68134 2007-03-09  Bruno Haible  <bruno@clisp.org>
68135
68136         * modules/printf-posix-tests: New file.
68137         * tests/test-printf-posix.sh: New file.
68138         * tests/test-printf-posix.c: New file.
68139
68140         * modules/printf-posix: New file.
68141         * lib/printf.c: New file.
68142         * m4/printf-posix-rpl.m4: New file.
68143         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
68144         REPLACE_PRINTF.
68145         * lib/stdio_.h (printf): New declaration.
68146         (format, __format__, ____printf____, ____scanf____, ____strftime____,
68147         ____strfmon____): New macros.
68148         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
68149         REPLACE_PRINTF.
68150
68151 2007-03-09  Bruno Haible  <bruno@clisp.org>
68152
68153         * tests/test-vasnprintf-posix2.sh: New file.
68154         * tests/test-vasnprintf-posix2.c: New file.
68155         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
68156         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
68157         (Makefile.am): Activate test-vasnprintf-posix2.sh.
68158
68159         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
68160         a locale dependent decimal point, rather than always '.'.
68161
68162 2007-03-09  Eric Blake  <ebb9@byu.net>
68163
68164         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
68165         spite of platforms like Tandem/NSK that define it to -1.
68166
68167 2007-03-08  Bruno Haible  <bruno@clisp.org>
68168
68169         * modules/vprintf-posix-tests: New file.
68170         * tests/test-vprintf-posix.sh: New file.
68171         * tests/test-vprintf-posix.c: New file.
68172         * tests/test-printf-posix.h: New file.
68173
68174         * modules/vprintf-posix: New file.
68175         * lib/vprintf.c: New file.
68176         * m4/vprintf-posix.m4: New file.
68177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
68178         REPLACE_VPRINTF.
68179         * lib/stdio_.h (vprintf): New declaration.
68180         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
68181         REPLACE_VPRINTF.
68182
68183 2007-03-08  Bruno Haible  <bruno@clisp.org>
68184
68185         * modules/fprintf-posix-tests: New file.
68186         * tests/test-fprintf-posix.sh: New file.
68187         * tests/test-fprintf-posix.c: New file.
68188
68189         * modules/fprintf-posix: New file.
68190         * lib/fprintf.c: New file.
68191         * m4/fprintf-posix.m4: New file.
68192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
68193         REPLACE_FPRINTF.
68194         * lib/stdio_.h (fprintf): New declaration.
68195         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
68196         REPLACE_FPRINTF.
68197
68198 2007-03-08  Bruno Haible  <bruno@clisp.org>
68199
68200         * modules/vfprintf-posix-tests: New file.
68201         * tests/test-vfprintf-posix.sh: New file.
68202         * tests/test-vfprintf-posix.c: New file.
68203         * tests/test-fprintf-posix.h: New file.
68204         * tests/test-fprintf-posix.out: New file.
68205
68206         * modules/vfprintf-posix: New file.
68207         * lib/vfprintf.c: New file.
68208         * m4/vfprintf-posix.m4: New file.
68209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
68210         REPLACE_VFPRINTF.
68211         * lib/stdio_.h (vfprintf): New declaration.
68212         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
68213         REPLACE_VFPRINTF.
68214
68215 2007-03-08  Bruno Haible  <bruno@clisp.org>
68216
68217         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
68218
68219 2007-03-08  Bruno Haible  <bruno@clisp.org>
68220
68221         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
68222         instead of 'expr' invocations.
68223         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68224         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68225         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68226         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68227         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68228         Suggested by Paul Eggert.
68229
68230 2007-03-08  Bruno Haible  <bruno@clisp.org>
68231
68232         * modules/fseterr-tests: New file.
68233         * tests/test-fseterr.c: New file.
68234
68235         * modules/fseterr: New file.
68236         * lib/fseterr.h: New file.
68237         * lib/fseterr.c: New file.
68238
68239 2007-03-08  Bruno Haible  <bruno@clisp.org>
68240
68241         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
68242         * lib/getopt_.h: Likewise.
68243         * lib/mbswidth.h: Likewise.
68244         * lib/setenv.h: Likewise.
68245         * lib/vasnprintf.h: Likewise.
68246         * lib/vasprintf.h: Likewise.
68247         * lib/verror.h: Likewise.
68248         * lib/xsetenv.h: Likewise.
68249         * lib/xvasprintf.h: Likewise.
68250
68251 2007-03-08  Jim Meyering  <jim@meyering.net>
68252
68253         * users.txt: Add parted.
68254
68255         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
68256
68257 2007-03-07  Bruno Haible  <bruno@clisp.org>
68258
68259         * m4/printf.m4: Make the shell script snippets copy&pastable.
68260
68261 2007-03-02  Bruno Haible  <bruno@clisp.org>
68262
68263         * lib/netinet_in_.h: New file.
68264         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
68265         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
68266         * modules/netinet_in (Files): Add lib/netinet_in_.h.
68267         (Depends-on): Add absolute-header.
68268         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
68269         into netinet/in.h.
68270
68271 2007-03-03  Bruno Haible  <bruno@clisp.org>
68272
68273         * lib/sys_select_.h: New file.
68274         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
68275         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
68276         * modules/sys_select (Files): Add lib/sys_select_.h.
68277         (Depends-on): Add absolute-header.
68278         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
68279         into sys/select.h.
68280
68281 2007-03-02  Bruno Haible  <bruno@clisp.org>
68282
68283         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
68284         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
68285         values.
68286         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
68287         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
68288         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
68289         * modules/sys_socket (Depends-on): Add absolute-header.
68290         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
68291         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
68292         (Include): Remove requirement of inclusion of <sys/types.h>.
68293
68294 2007-03-02  Bruno Haible  <bruno@clisp.org>
68295
68296         * lib/byteswap_.h (bswap_32): Fix formula.
68297
68298 2007-03-06  Bruno Haible  <bruno@clisp.org>
68299
68300         * modules/sprintf-posix-tests: New file.
68301         * tests/test-sprintf-posix.c: New file.
68302
68303         * modules/sprintf-posix: New file.
68304         * lib/sprintf.c: New file.
68305         * m4/sprintf-posix.m4: New file.
68306         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
68307         REPLACE_SPRINTF.
68308         * lib/stdio_.h (sprintf): New declaration.
68309         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
68310         REPLACE_SPRINTF.
68311
68312 2007-03-06  Bruno Haible  <bruno@clisp.org>
68313
68314         * modules/vsprintf-posix-tests: New file.
68315         * tests/test-vsprintf-posix.c: New file.
68316         * tests/test-sprintf-posix.h: New file.
68317
68318         * modules/vsprintf-posix: New file.
68319         * lib/vsprintf.c: New file.
68320         * m4/vsprintf-posix.m4: New file.
68321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68322         REPLACE_VSPRINTF.
68323         * lib/stdio_.h (vsprintf): New declaration.
68324         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68325         REPLACE_VSPRINTF.
68326
68327 2007-03-06  Bruno Haible  <bruno@clisp.org>
68328
68329         * modules/vsnprintf (Depend-on): Remove minmax.
68330
68331 2007-03-06  Bruno Haible  <bruno@clisp.org>
68332
68333         * modules/snprintf-posix-tests: New file.
68334         * tests/test-snprintf-posix.c: New file.
68335
68336         * modules/snprintf-posix: New file.
68337         * m4/snprintf-posix.m4: New file.
68338         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68339         gl_FUNC_SNPRINTF.
68340         (gl_FUNC_SNPRINTF): Invoke it.
68341         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68342         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68343         is set.
68344         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68345
68346 2007-03-06  Bruno Haible  <bruno@clisp.org>
68347
68348         * modules/vsnprintf-posix-tests: New file.
68349         * tests/test-vsnprintf-posix.c: New file.
68350         * tests/test-snprintf-posix.h: New file.
68351
68352         * modules/vsnprintf-posix: New file.
68353         * m4/vsnprintf-posix.m4: New file.
68354         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68355         gl_FUNC_VSNPRINTF.
68356         (gl_FUNC_VSNPRINTF): Invoke it.
68357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68358         * lib/stdio_.h (vsnprintf): Define as a replacement if
68359         REPLACE_VSNPRINTF is set.
68360         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68361
68362 2007-03-06  Bruno Haible  <bruno@clisp.org>
68363
68364         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68365         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68366
68367 2007-03-06  Bruno Haible  <bruno@clisp.org>
68368
68369         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68370         (asinl): Declare also if HAVE_DECL_ASINL is set.
68371         (atanl): Declare also if HAVE_DECL_ATANL is set.
68372         (ceill): Declare also if HAVE_DECL_CEILL is set.
68373         (cosl): Declare also if HAVE_DECL_COSL is set.
68374         (expl): Declare also if HAVE_DECL_EXPL is set.
68375         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68376         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68377         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68378         (logl): Declare also if HAVE_DECL_LOGL is set.
68379         (sinl): Declare also if HAVE_DECL_SINL is set.
68380         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68381         (tanl): Declare also if HAVE_DECL_TANL is set.
68382         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68384         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68385         declaration of frexpl, ldexpl.
68386         * modules/printf-frexpl (Depends-on): Add math.
68387         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68388
68389 2007-03-05  Bruno Haible  <bruno@clisp.org>
68390
68391         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68392         frexpl and ldexpl are declared.
68393         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68394
68395 2007-03-05  Bruno Haible  <bruno@clisp.org>
68396
68397         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68398         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68399
68400 2007-03-05  Bruno Haible  <bruno@clisp.org>
68401
68402         * lib/stdio_.h: Include <stddef.h>.
68403
68404 2007-03-05  Bruno Haible  <bruno@clisp.org>
68405
68406         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68407
68408 2007-03-05  Bruno Haible  <bruno@clisp.org>
68409
68410         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68411         NetBSD 4, from Ralf Wildenhues.
68412
68413 2007-03-04  Bruno Haible  <bruno@clisp.org>
68414
68415         * lib/vasprintf.h: Update #if logic for the case when the functions
68416         exist but are overridden.
68417
68418 2007-03-04  Bruno Haible  <bruno@clisp.org>
68419
68420         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68421         implementations: glibc-2.4 and MacOS X 10.3.
68422         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68423         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68424         * tests/test-vasprintf-posix.c (test_function): Likewise.
68425
68426 2007-03-04  Bruno Haible  <bruno@clisp.org>
68427
68428         * modules/vasprintf-posix-tests: New file.
68429         * tests/test-vasprintf-posix.c: New file.
68430
68431         * modules/vasprintf-posix: New file.
68432         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68433         defined.
68434         * m4/vasprintf-posix.m4: New file.
68435         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68436         gl_FUNC_VASPRINTF.
68437         (gl_FUNC_VASPRINTF): Invoke it.
68438         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68439         here.
68440         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68441
68442 2007-03-04  Bruno Haible  <bruno@clisp.org>
68443
68444         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68445         REPLACE_GETTIMEOFDAY.
68446         * modules/sys_time (Makefile.am): Likewise.
68447         * m4/sys_time_h.m4: Likewise.
68448         * m4/gettimeofday.m4: Likewise.
68449
68450 2007-03-04  Bruno Haible  <bruno@clisp.org>
68451
68452         * modules/vasnprintf-posix-tests: New file.
68453         * tests/test-vasnprintf-posix.c: New file.
68454
68455         * modules/vasnprintf-posix: New file.
68456         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68457         printf-frexpl.h.
68458         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68459         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68460         REPLACE_VASNPRINTF is defined.
68461         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68462         gl_FUNC_VASNPRINTF.
68463         (gl_FUNC_VASNPRINTF): Invoke it.
68464         * m4/vasnprintf-posix.m4: New file.
68465         * m4/printf.m4: New file.
68466
68467 2007-03-04  Bruno Haible  <bruno@clisp.org>
68468
68469         Compile progreloc.c only if --enable-relocatable is specified.
68470         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68471         if --enable-relocatable was specified.
68472         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68473         lib_SOURCES.
68474
68475 2007-03-04  Jim Meyering  <jim@meyering.net>
68476
68477         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68478         Use it consistently, rather than enumerating errno constants.
68479
68480 2007-03-04  Bruno Haible  <bruno@clisp.org>
68481
68482         * modules/xvasprintf-tests: New file.
68483         * tests/test-xvasprintf.c: New file.
68484
68485         * modules/vasprintf-tests: New file.
68486         * tests/test-vasprintf.c: New file.
68487
68488         * modules/vasnprintf-tests: New file.
68489         * tests/test-vasnprintf.c: New file.
68490
68491         * modules/vsnprintf-tests: New file.
68492         * tests/test-vsnprintf.c: New file.
68493
68494         * modules/snprintf-tests: New file.
68495         * tests/test-snprintf.c: New file.
68496
68497 2007-03-04  Bruno Haible  <bruno@clisp.org>
68498
68499         Compile relocatable.c only if --enable-relocatable is specified.
68500         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68501         gl_RELOCATABLE_LIBRARY.
68502         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68503         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68504         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68505         gl_RELOCATABLE_LIBRARY.
68506         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68507         (Makefile.am): Remove lib_SOURCES.
68508         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68509         gl_RELOCATABLE_LIBRARY.
68510         (Makefile.am): Remove lib_SOURCES.
68511         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68512         always.
68513         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68514         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68515
68516 2007-03-04  Bruno Haible  <bruno@clisp.org>
68517
68518         * modules/argmatch-tests: New file.
68519         * tests/test-argmatch.c: New file.
68520
68521         * tests/test-allocsa.c (main): Halve the number of loop runs.
68522
68523         * modules/alloca-opt-tests: New file.
68524         * tests/test-alloca-opt.c: New file.
68525
68526 2007-03-04  Jim Meyering  <jim@meyering.net>
68527
68528         Work around difference between Linux ACLs and Solaris 10 ZFS.
68529         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68530         for EINVAL.
68531
68532 2007-03-03  Bruno Haible  <bruno@clisp.org>
68533
68534         * modules/relocatable-prog (Depends-on): Add back progreloc's
68535         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68536
68537 2007-03-03  Bruno Haible  <bruno@clisp.org>
68538
68539         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68540         * modules/relocatable-lib: New file.
68541
68542 2007-03-03  Bruno Haible  <bruno@clisp.org>
68543
68544         * modules/relocatable-prog: Renamed from modules/relocatable.
68545         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68546
68547 2007-03-03  Bruno Haible  <bruno@clisp.org>
68548
68549         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68550         m4/relocatable-lib.m4.
68551         (Depends-on): Remove 'relocatable'.
68552         (configure.ac): Add gl_RELOCATABLE_NOP.
68553
68554 2007-03-03  Bruno Haible  <bruno@clisp.org>
68555
68556         * modules/relocatable-prog-wrapper: New file.
68557         * modules/relocatable (Depends-on): Add it. Remove all other
68558         dependencies except progname.
68559         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68560
68561         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68562         (gl_FUNC_STRERROR): Nop.
68563         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68564
68565         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68566         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68567
68568         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68569         (gl_FUNC_READLINK): Update.
68570
68571         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68572
68573 2007-03-03  Bruno Haible  <bruno@clisp.org>
68574
68575         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68576         * modules/xreadlink (Depends-on): Add unistd.
68577         * modules/xreadlink-with-size (Depends-on): Likewise.
68578
68579 2007-03-03  Bruno Haible  <bruno@clisp.org>
68580
68581         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68582         extracted from gt_FUNC_SETENV.
68583         (gt_FUNC_SETENV): Remove macro.
68584         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68585         remove gt_FUNC_SETENV.
68586
68587 2007-03-03  Bruno Haible  <bruno@clisp.org>
68588
68589         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68590         ENABLE_RELOCATABLE here.
68591         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68592
68593 2007-03-03  Bruno Haible  <bruno@clisp.org>
68594
68595         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68596         * tests/test-rbtreehash_list.c: Include progname.h.
68597         (main): Call set_program_name.
68598
68599         * modules/rbtree-oset-tests (Depends-on): Add progname.
68600         * tests/test-rbtree_oset.c: Include progname.h.
68601         (main): Call set_program_name.
68602
68603         * modules/rbtree-list-tests (Depends-on): Add progname.
68604         * tests/test-rbtree_list.c: Include progname.h.
68605         (main): Call set_program_name.
68606
68607         * modules/linked-list-tests (Depends-on): Add progname.
68608         * tests/test-linked_list.c: Include progname.h.
68609         (main): Call set_program_name.
68610
68611 2007-03-03  Bruno Haible  <bruno@clisp.org>
68612
68613         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68614         All uses of __restrict changed to _Restrict_.
68615         * lib/glob_.h (__restrict): Remove macro.
68616
68617 2007-03-02  Bruno Haible  <bruno@clisp.org>
68618
68619         * modules/gettext (configure.ac): Require gettext infrastructure
68620         from version 0.16.1.
68621
68622 2007-03-02  Bruno Haible  <bruno@clisp.org>
68623
68624         * modules/linkedhash-list-tests (Depends-on): Add progname.
68625         * tests/test-linkedhash_list.c: Include progname.h.
68626         (main): Call set_program_name.
68627
68628         * modules/carray-list-tests (Depends-on): Add progname.
68629         * tests/test-carray_list.c: Include progname.h.
68630         (main): Call set_program_name.
68631
68632         * modules/avltreehash-list-tests (Depends-on): Add progname.
68633         * tests/test-avltreehash_list.c: Include progname.h.
68634         (main): Call set_program_name.
68635
68636         * modules/avltree-oset-tests (Depends-on): Add progname.
68637         * tests/test-avltree_oset.c: Include progname.h.
68638         (main): Call set_program_name.
68639
68640         * modules/avltree-list-tests (Depends-on): Add progname.
68641         * tests/test-avltree_list.c: Include progname.h.
68642         (main): Call set_program_name.
68643
68644         * modules/array-oset-tests (Depends-on): Add progname.
68645         * tests/test-array_oset.c: Include progname.h.
68646         (main): Call set_program_name.
68647
68648         * modules/array-list-tests (Depends-on): Add progname.
68649         * tests/test-array_list.c: Include progname.h.
68650         (main): Call set_program_name.
68651
68652         * modules/argp-tests (Depends-on): Add progname.
68653         * tests/test-argp.c: Include argp.h first. Include progname.h.
68654         (main): Call set_program_name.
68655
68656 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68657
68658         * doc/gnulib-tool.texi (Initial import): Reword description of
68659         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68660         limited effect even if defined after the first system include.
68661
68662 2007-03-01  Bruno Haible  <bruno@clisp.org>
68663
68664         * build-aux/config.libpath: Update to libtool-1.5.22.
68665         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68666
68667 2007-03-01  Bruno Haible  <bruno@clisp.org>
68668
68669         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68670         foo_CFLAGS.
68671         Reported by Ralf Wildenhues.
68672
68673 2007-03-01  Bruno Haible  <bruno@clisp.org>
68674
68675         * build-aux/install-reloc: Remove object files left over by some
68676         compilers.
68677         Reported by Ralf Wildenhues.
68678
68679 2007-03-01  Bruno Haible  <bruno@clisp.org>
68680
68681         * build-aux/install-reloc: Break long lines.
68682
68683 2007-03-01  Bruno Haible  <bruno@clisp.org>
68684
68685         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68686         Reported by Ralf Wildenhues.
68687
68688 2007-03-01  Bruno Haible  <bruno@clisp.org>
68689
68690         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68691         include ordering constraints.
68692
68693 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68694
68695         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68696         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68697         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68698         as another example.
68699         * lib/time_.h: Fix misspelling.
68700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68701         Require gl_HEADER_TIME_H_DEFAULTS.
68702         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68703         * m4/time_r.m4 (gl_TIME_R): Likewise.
68704         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68705
68706 2007-03-01  Bruno Haible  <bruno@clisp.org>
68707
68708         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68709         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68710
68711 2007-03-01  Jim Meyering  <jim@meyering.net>
68712
68713         * modules/xreadlink (Maintainer): Add my name.
68714         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68715
68716 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68717             Bruno Haible  <bruno@clisp.org>
68718
68719         * build-aux/install-reloc: Compile also c-ctype.c.
68720         * build-aux/relocatable.sh.in: New file.
68721         * doc/relocatable.texi: New file.
68722         * doc/relocatable-maint.texi: New file.
68723         * doc/gnulib.texi: Include relocatable-maint.texi.
68724         * lib/progreloc.c: Include unistd.h unconditionally.
68725         * lib/relocwrapper.c: Include unistd.h unconditionally.
68726         Include c-ctype.h.
68727         (add_dotbin): Use c_tolower.
68728         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68729         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68730         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68731         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68732         to m4/relocatable-lib.m4.
68733         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68734         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68735         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68736         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68737         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68738         * modules/relocatable: New file.
68739         * modules/relocatable-lib: New file.
68740         * modules/relocatable-script: New file.
68741
68742 2007-02-28  Bruno Haible  <bruno@clisp.org>
68743
68744         Import --enable-relocatable infrastructure.
68745         * build-aux/config.libpath: New file, from GNU gettext.
68746         * build-aux/install-reloc: New file, from GNU gettext.
68747         * build-aux/reloc-ldflags: New file, from GNU gettext.
68748         * lib/relocatable.h: New file, from GNU gettext.
68749         * lib/relocatable.c: New file, from GNU gettext.
68750         * lib/relocwrapper.c: New file, from GNU gettext.
68751         * m4/relocatable.m4: New file, from GNU gettext.
68752
68753 2007-02-28  Bruno Haible  <bruno@clisp.org>
68754
68755         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68756
68757         * modules/xreadlink: New file, from GNU gettext with modifications.
68758         * lib/xreadlink.c: New file, from GNU gettext.
68759         * lib/xreadlink.h: Add comments.
68760         (xreadlink): New declaration.
68761
68762         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68763         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68764         lib/xreadlink-with-size.c.
68765         (configure.ac): Remove gl_XREADLINK invocation.
68766         (Makefile.am): Augment lib_SOURCES.
68767         * m4/xreadlink.m4: Remove file.
68768         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68769         (xreadlink_with_size): Renamed from xreadink.
68770         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68771         * modules/canonicalize (Depends-on): Replace xreadlink with
68772         xreadlink-with-size.
68773         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68774
68775 2007-02-25  Jim Meyering  <jim@meyering.net>
68776
68777         * build-aux/announce-gen: When complaining about excess arguments,
68778         list them.
68779
68780 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68781
68782         * README: Document signed integer overflow situation more
68783         accurately.
68784
68785 2007-02-25  Bruno Haible  <bruno@clisp.org>
68786
68787         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68788         'a' or 'A' conversion.
68789
68790 2007-02-25  Bruno Haible  <bruno@clisp.org>
68791
68792         * modules/filename: Renamed from modules/pathname.
68793         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68794         lib/concatpath.c with lib/concat-filename.c.
68795         (Makefile.am): Update.
68796         (Include): Replace pathname.h with filename.h.
68797         * lib/filename.h: Renamed from lib/pathname.h.
68798         (concatenated_filename): Renamed from concatenated_pathname.
68799         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68800         (concatenated_filename): Renamed from concatenated_pathname.
68801         * lib/findprog.c: Include filename.h instead of pathname.h.
68802         (find_in_path): Update.
68803         * lib/javacomp.c: Include filename.h instead of pathname.h.
68804         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68805         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68806         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68807         is_oldgcj_14_13_usable, is_javac_usable): Update.
68808         * lib/javaexec.c: Include filename.h instead of pathname.h.
68809         (execute_java_class): Update.
68810         * modules/findprog: Update.
68811         * modules/javacomp: Update.
68812         * modules/javaexec: Update.
68813         * MODULES.html.sh (File system functions): Add 'filename', remove
68814         'pathname'.
68815
68816 2007-02-25  Bruno Haible  <bruno@clisp.org>
68817
68818         * modules/printf-frexpl-tests: New file.
68819         * tests/test-printf-frexpl.c: New file.
68820
68821         * modules/printf-frexpl: New file.
68822         * lib/printf-frexpl.h: New file.
68823         * lib/printf-frexpl.c: New file.
68824         * m4/printf-frexpl.m4: New file.
68825
68826 2007-02-25  Bruno Haible  <bruno@clisp.org>
68827
68828         * modules/printf-frexp-tests: New file.
68829         * tests/test-printf-frexp.c: New file.
68830
68831         * modules/printf-frexp: New file.
68832         * lib/printf-frexp.h: New file.
68833         * lib/printf-frexp.c: New file.
68834         * m4/printf-frexp.m4: New file.
68835
68836 2007-02-25  Bruno Haible  <bruno@clisp.org>
68837
68838         Assume automake >= 1.10 for the tests.
68839         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68840         * modules/arctwo-tests: Likewise.
68841         * modules/argp-tests: Likewise.
68842         * modules/avltree-list-tests: Likewise.
68843         * modules/avltree-oset-tests: Likewise.
68844         * modules/avltreehash-list-tests: Likewise.
68845         * modules/carray-list-tests: Likewise.
68846         * modules/crc-tests: Likewise.
68847         * modules/des-tests: Likewise.
68848         * modules/gc-arcfour-tests: Likewise.
68849         * modules/gc-arctwo-tests: Likewise.
68850         * modules/gc-des-tests: Likewise.
68851         * modules/gc-hmac-md5-tests: Likewise.
68852         * modules/gc-hmac-sha1-tests: Likewise.
68853         * modules/gc-md2-tests: Likewise.
68854         * modules/gc-md4-tests: Likewise.
68855         * modules/gc-md5-tests: Likewise.
68856         * modules/gc-pbkdf2-sha1-tests: Likewise.
68857         * modules/gc-rijndael-tests: Likewise.
68858         * modules/gc-sha1-tests: Likewise.
68859         * modules/gc-tests: Likewise.
68860         * modules/getaddrinfo-tests: Likewise.
68861         * modules/hmac-md5-tests: Likewise.
68862         * modules/hmac-sha1-tests: Likewise.
68863         * modules/linked-list-tests: Likewise.
68864         * modules/linkedhash-list-tests: Likewise.
68865         * modules/lock-tests: Likewise.
68866         * modules/md2-tests: Likewise.
68867         * modules/md4-tests: Likewise.
68868         * modules/md5-tests: Likewise.
68869         * modules/rbtree-list-tests: Likewise.
68870         * modules/rbtree-oset-tests: Likewise.
68871         * modules/rbtreehash-list-tests: Likewise.
68872         * modules/read-file-tests: Likewise.
68873         * modules/rijndael-tests: Likewise.
68874         * modules/stdint-tests: Likewise.
68875         * modules/tls-tests: Likewise.
68876
68877 2007-02-24  Bruno Haible  <bruno@clisp.org>
68878
68879         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68880         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68881         function; instead check whether isnan with a double argument links.
68882         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68883         function; instead check whether isnan with a 'long double' argument
68884         links.
68885         Reported by Eric Blake <ebb9@byu.net>.
68886
68887 2007-02-24  Bruno Haible  <bruno@clisp.org>
68888
68889         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68890         defined.
68891         * lib/isnanl.c: Remove all code. Just include isnan.c.
68892         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68893
68894 2007-02-25  Jim Meyering  <jim@meyering.net>
68895
68896         Avoid conflicting types for 'unsetenv' on FreeBSD.
68897         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68898         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68899         in stdlib.h.
68900
68901 2007-02-24  Bruno Haible  <bruno@clisp.org>
68902
68903         * modules/isnanl-nolibm-tests: New file.
68904         * tests/test-isnanl.c: New file.
68905
68906         * modules/isnanl-nolibm: New file.
68907         * lib/isnanl.h: New file.
68908         * lib/isnanl.c: New file.
68909         * m4/isnanl.m4: New file.
68910
68911 2007-02-24  Bruno Haible  <bruno@clisp.org>
68912
68913         * modules/isnan-nolibm-tests: New file.
68914         * tests/test-isnan.c: New file.
68915
68916         * modules/isnan-nolibm: New file.
68917         * lib/isnan.h: New file.
68918         * lib/isnan.c: New file.
68919         * m4/isnan.m4: New file.
68920
68921 2007-02-24  Bruno Haible  <bruno@clisp.org>
68922
68923         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68924         assume that an exponent fits in 20 bits.
68925
68926 2007-02-24  Jim Meyering  <jim@meyering.net>
68927
68928         * m4/regex.m4: Update the description of the configure-time option,
68929         --without-included-regex, to state accurately what the defaults are,
68930         and perhaps to give people an idea why using this option is risky.
68931
68932 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68933
68934         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68935         loops on small arguments.  This attempts to avoid the problem
68936         Bruno Haible reported for AIX 4.3.2 in
68937         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68938
68939 2007-02-23  Bruno Haible  <bruno@clisp.org>
68940
68941         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68942         Needed for help2man.
68943
68944 2007-02-23  Karl Berry  <karl@gnu.org>
68945
68946         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68947         exists, foo.h should be cvs-ignored, not committed.
68948
68949 2007-02-23  Eric Blake  <ebb9@byu.net>
68950
68951         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68952         * lib/stat-time.h (includes): Likewise.
68953         * lib/utimecmp.c (includes): Likewise.
68954         * lib/utimens.h (includes): Likewise.
68955         * lib/getdate.y (includes): Also include "timespec.h" for use
68956         internal to the module.
68957         * modules/utimens (Depends-on): Revert yesterday's patch.
68958         * modules/nanosleep (Depends-on): Add missing dependency.
68959
68960 2007-02-22  Bruno Haible  <bruno@clisp.org>
68961
68962         * lib/glob.c: Don't include getlogin_r.h.
68963
68964 2007-02-22  Jim Meyering  <jim@meyering.net>
68965
68966         * modules/utimens (Depends-on): Add timespec, required for
68967         utimens.h's inclusion of timespec.h.
68968
68969 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68970
68971         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68972         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68973         Schwab in
68974         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68975         I'll try to think of a better way to fix the Solaris problem.
68976
68977         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68978         like glibc; on Solaris 10, it fails with errno == EINVAL.
68979         POSIX says the behavior is unspecified if the first argument is NULL,
68980         so play it safe and never pass NULL to the system getcwd.
68981
68982 2007-02-21  Jim Meyering  <jim@meyering.net>
68983
68984         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68985         of gettimeofday.  It would conflict with the one now always
68986         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68987         an IRIX 6.5 build failure.
68988
68989 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68990
68991         Minor fixups to port to Solaris 10 with Sun C 5.8.
68992         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68993         * modules/getcwd (Depends-on): Add dirfd.
68994         * lib/putenv.c (putenv): #undef it.
68995         (rpl_putenv): New decl.
68996         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68997
68998 2007-02-20  Bruno Haible  <bruno@clisp.org>
68999
69000         * modules/stdio-tests: New file.
69001         * tests/test-stdio.c: New file.
69002
69003         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
69004         (Depends-on): Add stdio.
69005         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69006         (Include): Use <stdio.h> instead of vsnprintf.h.
69007         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69008         HAVE_DECL_VSNPRINTF.
69009         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
69010
69011         * modules/snprintf (Files): Remove lib/snprintf.h.
69012         (Depends-on): Add stdio.
69013         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69014         (Include): Use <stdio.h> instead of snprintf.h.
69015         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
69016         HAVE_DECL_SNPRINTF.
69017         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
69018         * lib/getaddrinfo.c: Likewise.
69019
69020         * modules/stdio: New file.
69021         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
69022         * lib/snprintf.h: Remove file.
69023         * lib/vsnprintf.h: Remove file.
69024         * lib/.cppi-disable: Remove snprintf.h.
69025         * m4/stdio_h.m4: New file.
69026         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
69027
69028 2007-02-20  Jim Meyering  <jim@meyering.net>
69029
69030         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
69031         used by e.g., mingw.  From Bruno Haible.
69032
69033 2007-02-19  Bruno Haible  <bruno@clisp.org>
69034
69035         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
69036         warnings.
69037         Reported by Ben Pfaff <blp@cs.stanford.edu>.
69038
69039 2007-02-19  Bruno Haible  <bruno@clisp.org>
69040
69041         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
69042         from mingw users.
69043
69044 2007-02-19  Bruno Haible  <bruno@clisp.org>
69045
69046         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
69047         warnings.
69048         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
69049
69050 2007-02-19  Jim Meyering  <jim@meyering.net>
69051
69052         Don't use FD after a successful "fdopendir (fd)".
69053         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
69054         Reset it by calling dirfd on the just-obtained DIR*.
69055
69056         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
69057         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
69058
69059 2007-02-18  Bruno Haible  <bruno@clisp.org>
69060
69061         * lib/readlink.c: Include <unistd.h>.
69062         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
69063         HAVE_READLINK.
69064         * modules/readlink (Depends-on): Add unistd.
69065         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69066         (Include): Add <unistd.h>.
69067
69068         * lib/getlogin_r.h: Remove file.
69069         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
69070         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
69071         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
69072         HAVE_DECL_GETLOGIN_R.
69073         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
69074         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69075         (Include): Use <unistd.h> instead of getlogin_r.h.
69076
69077         * lib/getcwd.h: Remove file.
69078         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
69079         * lib/xgetcwd.c: Likewise.
69080         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
69081         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
69082         * modules/getcwd (Files): Remove lib/getcwd.h.
69083         (Depends-on): Add unistd.
69084         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69085         (Include): Use <unistd.h> instad of getcwd.h.
69086
69087         * lib/ftruncate.c: Include <unistd.h> first.
69088         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
69089         Set HAVE_FTRUNCATE.
69090         * modules/ftruncate (Depends-on): Add unistd.
69091         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69092
69093         * lib/fchdir.c: Include <unistd.h> first.
69094         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
69095         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
69096         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
69097         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69098         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
69099
69100         * lib/dup2.c: Include <unistd.h> first.
69101         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
69102         HAVE_DUP2.
69103         * modules/dup2 (Depends-on): Add unistd.
69104         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69105
69106         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
69107         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
69108         REPLACE_CHOWN. Don't define chown as a macro here.
69109         * modules/chown (Depends-on): Add unistd.
69110         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
69111
69112         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
69113         Add definition for GL_LINK_WARNING.
69114         (chown, dup2): New declarations.
69115         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
69116         link warning.
69117         (ftruncate): New declaration.
69118         (getcwd): New declaration, taken from old getcwd.h.
69119         (getlogin_r): New declaration, taken from old getlogin_r.h.
69120         (readlink): New declaration.
69121         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
69122         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
69123         (gl_PREREQ_UNISTD): Remove macro.
69124         (gl_UNISTD_MODULE_INDICATOR): New macro.
69125         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
69126         many new variables. Don't set UNISTD_H.
69127         * modules/unistd (Description): Change.
69128         (Depends-on): Add link-warning.
69129         (configure.ac): Update.
69130         (Makefile.am): Create unistd.h always. Substitute many new variables
69131         into it.
69132
69133 2007-02-18  Bruno Haible  <bruno@clisp.org>
69134
69135         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
69136         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
69137         HAVE_GETSUBOPT.
69138         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
69139         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
69140         * lib/getsubopt.h: Remove file.
69141         * modules/getsubopt (Files): Remove lib/getsubopt.h.
69142         (Depends-on): Add stdlib.
69143         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69144         (Includes): Use <stdlib.h> instead of getsubopt.h.
69145         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
69146         Set HAVE_GETSUBOPT.
69147         * lib/getsubopt.c: Don't include getsubopt.h.
69148
69149 2007-02-18  Bruno Haible  <bruno@clisp.org>
69150
69151         * modules/fchdir (Depends-on): Add dup2.
69152
69153 2007-02-18  Bruno Haible  <bruno@clisp.org>
69154
69155         * lib/stdlib_.h: Handle glibc's special invocation convention
69156         specially.
69157
69158 2007-02-18  Bruno Haible  <bruno@clisp.org>
69159
69160         * modules/stdlib-tests: New file.
69161         * tests/test-stdlib.c: New file.
69162
69163         * modules/mkstemp (Files): Remove lib/mkstemp.h.
69164         (Depends-on): Add stdlib.
69165         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69166         (Includes): Use <stdlib.h> instead of mkstemp.h.
69167         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69168         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
69169         * lib/mkstemp.c: Don't include mkstemp.h.
69170         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
69171         * lib/stdlib--.h: Don't include mkstemp.h.
69172
69173         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
69174         (Depends-on): Add stdlib.
69175         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
69176         (Includes): Use <stdlib.h> instead of mkdtemp.h.
69177         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
69178         HAVE_MKDTEMP.
69179         * lib/mkdtemp.c: Don't include mkdtemp.h.
69180         * lib/clean-temp.c: Don't include mkdtemp.h.
69181
69182         * modules/exit (Files): Remove lib/exit.h.
69183         (Depends-on): Add stdlib.
69184         (Makefile.am): Remove lib_SOURCES.
69185         (Include): Use <stdlib.h> instead of exit.h.
69186         * lib/argmatch.c: Don't include exit.h.
69187         * lib/execute.c: Likewise.
69188         * lib/pagealign_alloc.c: Likewise.
69189         * lib/pipe.c: Likewise.
69190         * lib/wait-process.c: Likewise.
69191         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
69192         * lib/exitfail.c: Likewise.
69193         * lib/savewd.c: Likewise.
69194         * lib/xsetenv.c: Likewise.
69195
69196         * modules/stdlib: New file.
69197         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
69198         and extra comments about mkstemp().
69199         * lib/exit.h: Remove file.
69200         * lib/mkdtemp.h: Remove file.
69201         * lib/mkstemp.h: Remove file.
69202         * m4/stdlib_h.m4: New file.
69203         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
69204
69205 2007-02-18  Bruno Haible  <bruno@clisp.org>
69206
69207         * modules/math-tests: New file.
69208         * tests/test-math.c: New file.
69209
69210         * modules/math: New file.
69211         * modules/mathl (Files): Remove lib/mathl.h.
69212         (Depends-on): Add math.
69213         (Makefile.am): Don't mention mathl.h.
69214         (Include): Use <math.h> instead of mathl.h.
69215         * lib/math_.h: New file.
69216         * lib/mathl.h: Remove file.
69217         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
69218         mathl.h.
69219         * lib/asinl.c: Likewise.
69220         * lib/atanl.c: Likewise.
69221         * lib/ceill.c: Likewise.
69222         * lib/cosl.c: Likewise.
69223         * lib/expl.c: Likewise.
69224         * lib/floorl.c: Likewise.
69225         * lib/frexpl.c: Likewise.
69226         * lib/ldexpl.c: Likewise.
69227         * lib/logl.c: Likewise.
69228         * lib/sincosl.c: Likewise.
69229         * lib/sinl.c: Likewise.
69230         * lib/sqrtl.c: Likewise.
69231         * lib/tanl.c: Likewise.
69232         * lib/trigl.c: Likewise.
69233         * m4/math_h.m4: New file.
69234         * MODULES.html.sh (Mathematics): Add math.
69235
69236 2007-02-17  Bruno Haible  <bruno@clisp.org>
69237
69238         * modules/wctype-tests: New file.
69239         * tests/test-wctype.c: New file.
69240
69241         * modules/wchar-tests: New file.
69242         * tests/test-wchar.c: New file.
69243
69244         * modules/unistd-tests: New file.
69245         * tests/test-unistd.c: New file.
69246
69247         * modules/time-tests: New file.
69248         * tests/test-time.c: New file.
69249
69250         * modules/sysexits-tests: New file.
69251         * tests/test-sysexits.c: New file.
69252
69253         * modules/sys_time-tests: New file.
69254         * tests/test-sys_time.c: New file.
69255
69256         * modules/sys_stat-tests: New file.
69257         * tests/test-sys_stat.c: New file.
69258
69259         * modules/sys_socket-tests: New file.
69260         * tests/test-sys_socket.c: New file.
69261
69262         * modules/sys_select-tests: New file.
69263         * tests/test-sys_select.c: New file.
69264
69265         * modules/string-tests: New file.
69266         * tests/test-string.c: New file.
69267
69268         * modules/stdbool-tests: New file.
69269         * tests/test-stdbool.c: New file.
69270
69271         * modules/netinet_in-tests: New file.
69272         * tests/test-netinet_in.c: New file.
69273
69274         * modules/inttypes-tests: New file.
69275         * tests/test-inttypes.c: New file.
69276
69277         * modules/fcntl-tests: New file.
69278         * tests/test-fcntl.c: New file.
69279
69280         * modules/byteswap-tests: New file.
69281         * tests/test-byteswap.c: New file.
69282
69283         * modules/arpa_inet-tests: New file.
69284         * tests/test-arpa_inet.c: New file.
69285
69286 2007-02-17  Bruno Haible  <bruno@clisp.org>
69287
69288         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
69289         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
69290         if the corresponding module is not enabled. Emit link warnings if
69291         the function is used nevertheless.
69292         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
69293         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
69294         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
69295         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
69296         * modules/inttypes (Depends-on): Add link-warning.
69297         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69298         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
69299         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
69300         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
69301         * modules/imaxdiv (configure.ac): Likewise.
69302         * modules/strtoimax (configure.ac): Likewise.
69303         * modules/strtoumax (configure.ac): Likewise.
69304
69305 2007-02-17  Bruno Haible  <bruno@clisp.org>
69306
69307         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
69308         gl_STRING_MODULE_INDICATOR_DEFAULTS.
69309         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
69310         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
69311
69312 2007-02-17  Bruno Haible  <bruno@clisp.org>
69313
69314         * modules/link-warning: New file.
69315         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69316         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69317         * modules/string (Depends-on): Add link-warning.
69318         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69319         string.h.
69320         * MODULES.html.sh (Support for building libraries and executables): Add
69321         link-warning.
69322
69323 2007-02-17  Bruno Haible  <bruno@clisp.org>
69324
69325         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69326         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69327         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69328         long lines.
69329
69330 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69331             Bruno Haible  <bruno@clisp.org>
69332
69333         * modules/tmpfile: New file.
69334         * lib/tmpfile.c: New file.
69335         * m4/tmpfile.m4: New file.
69336         * MODULES.html.sh (func_all_modules): New section "Input/output".
69337
69338 2007-02-15  Bruno Haible  <bruno@clisp.org>
69339
69340         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69341         (supports_delete_on_close): New function.
69342         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69343
69344 2007-02-14  Bruno Haible  <bruno@clisp.org>
69345
69346         * modules/mbspcasecmp-tests: New file.
69347         * tests/test-mbspcasecmp.sh: New file.
69348         * tests/test-mbspcasecmp.c: New file.
69349
69350         New module mbspcasecmp.
69351         * modules/mbspcasecmp: New file.
69352         * lib/mbspcasecmp.c: New file.
69353         * lib/string_.h (strncasecmp): Change warning message.
69354         (mbspcasecmp): New declaration.
69355         * m4/mbspcasecmp.m4: New file.
69356         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69357         GNULIB_MBSPCASECMP.
69358         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69359         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69360
69361 2007-02-14  Bruno Haible  <bruno@clisp.org>
69362
69363         * modules/mbsncasecmp-tests: New file.
69364         * tests/test-mbsncasecmp.sh: New file.
69365         * tests/test-mbsncasecmp.c: New file.
69366
69367         New module mbsncasecmp.
69368         * modules/mbsncasecmp: New file.
69369         * lib/mbsncasecmp.c: New file.
69370         * lib/string_.h (mbsncasecmp): New declaration.
69371         * m4/mbsncasecmp.m4: New file.
69372         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69373         GNULIB_MBSNCASECMP.
69374         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69375         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69376
69377 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69378
69379         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69380         Verify that it doesn't overlap with our flags.
69381         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69382         do not have the desired effect in multibyte locales; instead, use
69383         mbscasecmp.
69384         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69385         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69386         we don't require GNU fnmatch ourselves (if our users require it, they
69387         should do so explicitly).
69388
69389         Fix regex code so it doesn't rely on strcasecmp.
69390         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69391         Otherwise, include gnulib's langinfo.h.
69392         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69393         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69394         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69395         * modules/regex (FILES): Remove m4/codeset.m4.
69396         (Depends-on): Add localcharset.  Remove strcase.
69397
69398 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69399
69400         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69401         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69402
69403 2007-02-13  Bruno Haible  <bruno@clisp.org>
69404
69405         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69406         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69407
69408 2007-02-12  Bruno Haible  <bruno@clisp.org>
69409
69410         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69411         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69412         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69413         time warning rather than a link error.
69414
69415 2007-02-12  Bruno Haible  <bruno@clisp.org>
69416
69417         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69418         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69419         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69420
69421 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69422
69423         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69424         args, not 2.
69425
69426 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69427
69428         New module 'time', so that apps can include <time.h> as per
69429         POSIX and GNU instead of separate include files like time_r.h
69430         and timegm.h.  This implementation tries out a simpler approach
69431         for replacing decls in standard include files (as compared to
69432         the string module), somewhat as an experiment.
69433
69434         * config/srclist.txt: Comment out mktime.c for now.
69435         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69436         since it doesn't apply any more.  Use generic wording instead.
69437         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69438         'time'.
69439         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69440         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69441         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69442         Don't include <sys/types.h>; no longer needed since we assume C89.
69443         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69444         * lib/strftime.c: Likewise.
69445         * lib/time_r.c: Likewise.
69446         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69447         * lib/nanosleep.c: Include <time.h> first, to check interface.
69448         * lib/strptime.c: Likewise.
69449         * lib/time_r.c: Likewise.
69450         * lib/timegm.c: Likewise.
69451         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69452         needed.
69453         * lib/timegm.c: Don't include timegm.h; no longer needed.
69454         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69455         time.h now handles any problems in that area.
69456         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69457         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69458         that time.h defines struct timespec.
69459         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69460         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69461         handles that.
69462         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69463         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69464         needed.  Set REPLACE_LOCALTIME.
69465         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69466         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69467         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69468         nanosleep; time_h.m4 now does that.  Don't require
69469         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69470         module handles this now.
69471         * modules/getdate (Depends-on): Remove timespec.  Add time.
69472         * modules/nanosleep (Depends-on): Likewise.
69473         * modules/stat-time (Depends-on): Likewise.
69474         * modules/nanosleep (Include): Include time.h, not timespec.h.
69475         * modules/strptime (Files): Remove lib/strptime.h.
69476         (Depends-on): Add extensions, time.
69477         (Include): Include time.h, not strptime.h.
69478         * modules/time_r (Files): Remove lib/time_r.h.
69479         (Depends-on): Add time.
69480         (Include): Include time.h, not time_r.h.
69481         * modules/timegm: Likewise.
69482         * modules/timespec (Description): Now does timespec-related decls
69483         of our own, instead of struct timespec itself.
69484         (Depends-on): Add time; remove extensions.
69485         (Maintainer): Add self.
69486         * modules/utimecmp (Depends-on): Add time; remove timespec.
69487         * modules/utimens (Depends-on): Likewise.
69488         * modules/xnanosleep (Depends-on): Likewise.
69489
69490 2007-02-11  Bruno Haible  <bruno@clisp.org>
69491
69492         * lib/c-strstr.c: Include allocsa.h.
69493         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69494         * lib/c-strcasestr.c: Include allocsa.h.
69495         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69496         * lib/strcasestr.c: Include allocsa.h.
69497         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69498         * lib/mbsstr.c: Include allocsa.h.
69499         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69500         allocsa/freesa instead of malloc/free.
69501         * lib/mbscasestr.c: Include allocsa.h.
69502         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69503         allocsa/freesa instead of malloc/free.
69504         * modules/c-strstr (Depends-on): Add allocsa.
69505         * modules/c-strcasestr (Depends-on): Likewise.
69506         * modules/strcasestr (Depends-on): Likewise.
69507         * modules/mbsstr (Depends-on): Likewise.
69508         * modules/mbscasestr (Depends-on): Likewise.
69509
69510 2007-02-11  Bruno Haible  <bruno@clisp.org>
69511
69512         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69513
69514         * modules/mbsspn-tests: New file.
69515         * tests/test-mbsspn.sh: New file.
69516         * tests/test-mbsspn.c: New file.
69517
69518 2007-02-11  Bruno Haible  <bruno@clisp.org>
69519
69520         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69521
69522         * modules/mbspbrk-tests: New file.
69523         * tests/test-mbspbrk.sh: New file.
69524         * tests/test-mbspbrk.c: New file.
69525
69526 2007-02-11  Bruno Haible  <bruno@clisp.org>
69527
69528         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69529         unneeded cast.
69530
69531         * modules/mbscspn-tests: New file.
69532         * tests/test-mbscspn.sh: New file.
69533         * tests/test-mbscspn.c: New file.
69534
69535 2007-02-11  Bruno Haible  <bruno@clisp.org>
69536
69537         * modules/mbscasecmp-tests: New file.
69538         * tests/test-mbscasecmp.sh: New file.
69539         * tests/test-mbscasecmp.c: New file.
69540
69541 2007-02-11  Bruno Haible  <bruno@clisp.org>
69542
69543         Ensure O(n) worst-case complexity of mbscasestr.
69544         * lib/mbscasestr.c: Include stdbool.h.
69545         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69546         functions.
69547         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69548         the bookkeeping indicates that it's worth it.
69549         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69550
69551         * modules/mbscasestr-tests: New file.
69552         * tests/test-mbscasestr1.c: New file.
69553         * tests/test-mbscasestr2.sh: New file.
69554         * tests/test-mbscasestr2.c: New file.
69555         * tests/test-mbscasestr3.sh: New file.
69556         * tests/test-mbscasestr3.c: New file.
69557         * tests/test-mbscasestr4.sh: New file.
69558         * tests/test-mbscasestr4.c: New file.
69559         * m4/locale-tr.m4: New file.
69560
69561 2007-02-11  Bruno Haible  <bruno@clisp.org>
69562
69563         Ensure O(n) worst-case complexity of mbsstr.
69564         * lib/mbsstr.c: Include stdbool.h.
69565         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69566         functions.
69567         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69568         bookkeeping indicates that it's worth it.
69569         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69570
69571         * modules/mbsstr-tests: New file.
69572         * tests/test-mbsstr1.c: New file.
69573         * tests/test-mbsstr2.sh: New file.
69574         * tests/test-mbsstr2.c: New file.
69575         * tests/test-mbsstr3.sh: New file.
69576         * tests/test-mbsstr3.c: New file.
69577         * m4/locale-fr.m4: New file.
69578
69579 2007-02-11  Bruno Haible  <bruno@clisp.org>
69580
69581         * lib/mbsrchr.c (mbsrchr): Fix bug.
69582
69583         * modules/mbsrchr-tests: New file.
69584         * tests/test-mbsrchr.sh: New file.
69585         * tests/test-mbsrchr.c: New file.
69586
69587 2007-02-11  Bruno Haible  <bruno@clisp.org>
69588
69589         * lib/mbschr.c (mbschr): Fix bug.
69590
69591         * modules/mbschr-tests: New file.
69592         * tests/test-mbschr.sh: New file.
69593         * tests/test-mbschr.c: New file.
69594         * m4/locale-zh.m4: New file.
69595
69596 2007-02-11  Bruno Haible  <bruno@clisp.org>
69597
69598         Support for copying multibyte string iterators.
69599         * lib/mbiter.h: Include <string.h>.
69600         (mbiter_multi_copy): New function.
69601         (mbi_copy): New macro.
69602         * lib/mbuiter.h: Include <string.h>.
69603         (mbuiter_multi_copy): New function.
69604         (mbui_copy): New macro.
69605
69606 2007-02-11  Bruno Haible  <bruno@clisp.org>
69607
69608         New module mbslen.
69609         * modules/mbslen: New file.
69610         * lib/mbslen.c: New file.
69611         * lib/string_.h (mbslen): New declaration.
69612         * m4/mbslen.m4: New file.
69613         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69614         GNULIB_MBSLEN.
69615         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69616         * MODULES.html.sh (Internationalization functions): Add mbslen.
69617
69618 2007-02-11  Bruno Haible  <bruno@clisp.org>
69619
69620         Ensure O(n) worst-case complexity of strcasestr substitute.
69621         * lib/strcasestr.c: Include stdbool.h.
69622         (knuth_morris_pratt): New function.
69623         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69624         bookkeeping indicates that it's worth it.
69625         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69626
69627         * modules/strcasestr-tests: New file.
69628         * tests/test-strcasestr.c: New file.
69629
69630 2007-02-11  Bruno Haible  <bruno@clisp.org>
69631
69632         Ensure O(n) worst-case complexity of c_strcasestr.
69633         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69634         (knuth_morris_pratt): New function.
69635         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69636         the bookkeeping indicates that it's worth it.
69637         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69638
69639         * modules/c-strcasestr-tests: New file.
69640         * tests/test-c-strcasestr.c: New file.
69641
69642 2007-02-11  Bruno Haible  <bruno@clisp.org>
69643
69644         Ensure O(n) worst-case complexity of c_strstr.
69645         * lib/c-strstr.c: Include stdbool.h, string.h.
69646         (knuth_morris_pratt): New function.
69647         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69648         bookkeeping indicates that it's worth it.
69649         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69650
69651         * lib/c-strstr.c: Complete rewrite for maintainability.
69652
69653         * modules/c-strstr-tests: New file.
69654         * tests/test-c-strstr.c: New file.
69655
69656 2007-02-11  Bruno Haible  <bruno@clisp.org>
69657
69658         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69659         5.2.1 and earlier, whereby \055 was treated just like the range
69660         delimiter '-'.
69661         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69662
69663 2007-02-08  Bruno Haible  <bruno@clisp.org>
69664
69665         * modules/regex (Depends-on): Add stdbool.
69666         Reported by Dalibor Topic <robilad@kaffe.org>.
69667
69668 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69669
69670         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69671         Prefer returning from main to exiting from it.
69672         Remove unnecessary parens after sizeof.
69673
69674 2007-02-05  Bruno Haible  <bruno@clisp.org>
69675
69676         New module mbssep.
69677         * modules/mbssep: New file.
69678         * lib/mbssep.c: New file.
69679         * lib/string_.h (strsep): Add a conditional link warning.
69680         (mbssep): New declaration.
69681         * m4/mbssep.m4: New file.
69682         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69683         GNULIB_MBSSEP.
69684         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69685         * MODULES.html.sh (Internationalization functions): Add mbssep.
69686
69687 2007-02-05  Bruno Haible  <bruno@clisp.org>
69688
69689         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69690         Optimize search in case of 1 delimiter.
69691
69692 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69693
69694         * lib/acl.h: Include sys/types.h before sys/acl.h.
69695
69696 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69697
69698         Merge upstream fix for glibc bugzilla #3957:
69699
69700         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69701
69702         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69703         bit for RE_HAT_LISTS_NOT_NEWLINE.
69704         (build_charclass_op): Remove bogus comment.
69705
69706 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69707
69708         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69709
69710 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69711
69712         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69713         * lib/memmem.c [!defined _LIBC]: Include config.h.
69714
69715 2007-02-04  Bruno Haible  <bruno@clisp.org>
69716
69717         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69718         warning message.
69719
69720 2007-02-04  Bruno Haible  <bruno@clisp.org>
69721
69722         New module mbstok_r.
69723         * modules/mbstok_r: New file.
69724         * lib/mbstok_r.c: New file.
69725         * lib/string_.h (strtok_r): Change argument names to match the
69726         comments. Add a conditional link warning.
69727         (mbstok_r): New declaration.
69728         * m4/mbstok_r.m4: New file.
69729         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69730         GNULIB_MBSTOK_R.
69731         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69732         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69733
69734 2007-02-04  Bruno Haible  <bruno@clisp.org>
69735
69736         New module mbsspn.
69737         * modules/mbsspn: New file.
69738         * lib/mbsspn.c: New file.
69739         * lib/string_.h (strspn): Add a conditional link warning.
69740         (mbsspn): New declaration.
69741         * m4/mbsspn.m4: New file.
69742         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69743         GNULIB_MBSSPN.
69744         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69745         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69746
69747 2007-02-04  Bruno Haible  <bruno@clisp.org>
69748
69749         New module mbspbrk.
69750         * modules/mbspbrk: New file.
69751         * lib/mbspbrk.c: New file.
69752         * lib/string_.h (strpbrk): Add a conditional link warning.
69753         (mbspbrk): New declaration.
69754         * m4/mbspbrk.m4: New file.
69755         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69756         GNULIB_MBSPBRK.
69757         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69758         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69759
69760 2007-02-04  Bruno Haible  <bruno@clisp.org>
69761
69762         New module mbscspn.
69763         * modules/mbscspn: New file.
69764         * lib/mbscspn.c: New file.
69765         * lib/string_.h (strcspn): Add a conditional link warning.
69766         (mbscspn): New declaration.
69767         * m4/mbscspn.m4: New file.
69768         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69769         GNULIB_MBSCSPN.
69770         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69771         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69772
69773 2007-02-04  Bruno Haible  <bruno@clisp.org>
69774
69775         New module mbscasestr, reduced goal of strcasestr.
69776         * modules/mbscasestr: New file.
69777         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69778         (mbscasestr): Renamed from strcasestr.
69779         * lib/strcasestr.c: Don't include mbuiter.h.
69780         (strcasestr): Remove support for multibyte locales.
69781         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69782         Change the conditional link warning.
69783         (mbscasestr): New declaration.
69784         * m4/mbscasestr.m4: New file.
69785         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69786         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69787         REPLACE_STRCASESTR.
69788         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69790         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69791         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69792         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69793         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69794         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69795         (Depends-on): Remove mbuiter.
69796         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69797
69798 2007-02-04  Bruno Haible  <bruno@clisp.org>
69799
69800         Simplify handling of strncasecmp.
69801         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69802         the conditional link warning.
69803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69804         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69805         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69806         * modules/strcase (configure.ac): Don't invoke
69807         gl_STRING_MODULE_INDICATOR.
69808         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69809
69810 2007-02-04  Bruno Haible  <bruno@clisp.org>
69811
69812         New module mbscasecmp, reduced goal of strcasecmp.
69813         * modules/mbscasecmp: New file.
69814         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69815         (mbscasecmp): Renamed from strcasecmp.
69816         * lib/strcasecmp.c: Don't include mbuiter.h.
69817         (strcasecmp): Remove support for multibyte locales.
69818         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69819         Change the conditional link warning.
69820         (mbscasecmp): New declaration.
69821         * m4/mbscasecmp.m4: New file.
69822         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69823         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69824         REPLACE_STRCASECMP.
69825         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69826         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69827         GNULIB_MBSCASECMP.
69828         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69829         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69830         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69831         (Depends-on): Remove mbuiter.
69832         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69833
69834 2007-02-04  Bruno Haible  <bruno@clisp.org>
69835
69836         New module mbsstr. Remove module strstr.
69837         * modules/mbsstr: New file.
69838         * modules/strstr: Remove file.
69839         * lib/mbsstr.c: Renamed from lib/strstr.c.
69840         (mbsstr): Renamed from strstr.
69841         * lib/string_.h (strstr): Remove declaration. Change the conditional
69842         link warning.
69843         (mbsstr): New declaration.
69844         * m4/mbsstr.m4: New file.
69845         * m4/strstr.m4: Remove file.
69846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69847         REPLACE_STRSTR.
69848         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69849         Don't initialize GNULIB_STRSTR.
69850         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69851         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69852         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69853         (Support for systems lacking ANSI C 89): Remove strstr.
69854
69855 2007-02-04  Bruno Haible  <bruno@clisp.org>
69856
69857         New module mbsrchr.
69858         * modules/mbsrchr: New file.
69859         * lib/mbsrchr.c: New file.
69860         * lib/string_.h (strrchr): Add a conditional link warning.
69861         (mbsrchr): New declaration.
69862         * m4/mbsrchr.m4: New file.
69863         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69864         GNULIB_MBSRCHR.
69865         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69866         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69867
69868 2007-02-04  Bruno Haible  <bruno@clisp.org>
69869
69870         New module mbschr.
69871         * modules/mbschr: New file.
69872         * lib/mbschr.c: New file.
69873         * lib/string_.h (strchr): Add a conditional link warning.
69874         (mbschr): New declaration.
69875         * m4/mbschr.m4: New file.
69876         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69877         GNULIB_MBSCHR.
69878         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69879         * MODULES.html.sh (Internationalization functions): Add mbschr.
69880
69881 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69882
69883         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69884
69885         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69886
69887 2007-02-04  Bruno Haible  <bruno@clisp.org>
69888
69889         New module description section 'configure.ac-early'.
69890         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69891         (func_get_autoconf_early_snippet): New function.
69892         (func_import, func_create_testdir): Use it. Remove special cases for
69893         modules 'extensions' and 'lock'.
69894         * modules/extensions (configure.ac-early): Require
69895         gl_USE_SYSTEM_EXTENSIONS.
69896         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69897
69898 2007-02-04  Bruno Haible  <bruno@clisp.org>
69899
69900         Make use of gcj-4.3's -fsource and -ftarget option.
69901         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69902         and if so try the options -fsource and -ftarget.
69903         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69904         source_version, ftarget_option, target_version arguments.
69905         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69906         (is_envjavac_oldgcj_14_14_usable): Renamed from
69907         is_envjavac_gcj_14_14_usable.
69908         (is_envjavac_oldgcj_14_13_usable): Renamed from
69909         is_envjavac_gcj_14_13_usable.
69910         (is_gcj_present): Update.
69911         (is_gcj_43, is_gcj43_usable): New functions.
69912         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69913         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69914         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69915         try the options -fsource and -ftarget.
69916
69917 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69918
69919         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69920         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69921         larger value.
69922
69923 2007-02-03  Jim Meyering  <jim@meyering.net>
69924
69925         Give tools a better chance to allocate space for very large buffers.
69926         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69927
69928         Make pwd and readlink work also when run with an unreadable parent dir
69929         on systems with openat support.
69930         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69931         provided getcwd function, even when we have openat support.
69932         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69933
69934 2007-02-02  Bruno Haible  <bruno@clisp.org>
69935
69936         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69937         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69938         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69939         portability problems if one of these functions is only used on specific
69940         platforms.
69941         Reported by Paul Eggert.
69942
69943 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69944
69945         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69946         is causing more trouble than it's curing.
69947         * lib/regex_internal.h (__mempcpy): Remove.
69948         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69949         (and make the code a tad smaller to boot).
69950         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69951
69952 2007-02-02  Jim Meyering  <jim@meyering.net>
69953
69954         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69955         section, not in the Makefile.am: one.
69956
69957 2007-02-02  Eric Blake  <ebb9@byu.net>
69958
69959         * lib/strchrnul.c: Always include config.h first.
69960
69961         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69962         gnulib strstr is not necessary here.
69963
69964 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69965
69966         * m4/socklen.m4: Fix typo.
69967
69968 2007-02-02  Eric Blake  <ebb9@byu.net>
69969
69970         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69971         * modules/netinet_in (Makefile.am): Likewise.
69972
69973 2007-02-01  Bruno Haible  <bruno@clisp.org>
69974
69975         * lib/string_.h (GL_LINK_WARNING): New macro.
69976         (strcasecmp, strstr, strcasestr): If provided by the system,
69977         conditionally define as a macro that leads to a warning instead of to
69978         an error.
69979         (strncasecmp): Conditionally define as a macro that leads to a warning.
69980
69981 2007-02-01  Karl Berry  <karl@gnu.org>
69982
69983         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69984
69985 2007-02-01  Bruno Haible  <bruno@clisp.org>
69986
69987         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69988         renamings.
69989
69990 2007-02-01  Eric Blake  <ebb9@byu.net>
69991
69992         * modules/regex (Depends-on): Revert dependence on mempcpy.
69993         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69994         module's definition of mempcpy.
69995         Reported by Paul Eggert.
69996
69997 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69998
69999         * lib/string_.h: If the gnulib module XYZ is not present, undefine
70000         the symbol XYZ before redefining it.  This fixes a problem with
70001         programs that don't use XYZ, when compiled on systems that define
70002         XYZ to something else.
70003
70004 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
70005
70006         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
70007         occurs when "mkdir -m foo" creates a setgid directory that is (1)
70008         writeable to group or other and (2) is intended to have a special
70009         mode bit that is set or cleared.  In such a case, the directory
70010         should be neither group- nor other-writeable until the special
70011         mode bits are right.
70012
70013 2007-01-31  Eric Blake  <ebb9@byu.net>
70014
70015         * modules/mountlist (Depends-on): Add strstr.
70016
70017         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
70018         bug.
70019         * modules/string (Makefile.am): Remove redundant replacement.
70020         * modules/regex (Depends-on): Add mempcpy.
70021
70022 2007-01-31  Bruno Haible  <bruno@clisp.org>
70023
70024         New module description field 'Link'.
70025         * gnulib-tool (func_usage): Document --extract-link-directive.
70026         (sed_extract_prog): Recognize 'Link' directive.
70027         (func_get_link_directive): New function.
70028         (func_import): Show summary of link directives.
70029         Handle --extract-link-directive option.
70030         * modules/acl (Link): New section.
70031         * modules/clock-time (Link): New section.
70032         * modules/euidaccess (Link): New section.
70033         * modules/gettext (Link): New section.
70034         * modules/iconv (Link): New section.
70035         * modules/lock (Link): New section.
70036         * modules/nanosleep (Link): New section.
70037         * modules/readline (Link): New section.
70038
70039 2007-01-27  Bruno Haible  <bruno@clisp.org>
70040
70041         Enforce the use of gnulib modules for unportable <string.h> functions.
70042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
70043         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
70044         (gl_HEADER_STRING_H_BODY): Require it.
70045         * lib/string_.h: If the gnulib module XYZ is not present, redefine
70046         the symbol XYZ to one that gives a link error.
70047         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
70048         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
70049         * modules/mempcpy (configure.ac): Likewise.
70050         * modules/memrchr (configure.ac): Likewise.
70051         * modules/stpcpy (configure.ac): Likewise.
70052         * modules/stpncpy (configure.ac): Likewise.
70053         * modules/strcase (configure.ac): Likewise.
70054         * modules/strcasestr (configure.ac): Likewise.
70055         * modules/strchrnul (configure.ac): Likewise.
70056         * modules/strdup (configure.ac): Likewise.
70057         * modules/strndup (configure.ac): Likewise.
70058         * modules/strnlen (configure.ac): Likewise.
70059         * modules/strpbrk (configure.ac): Likewise.
70060         * modules/strsep (configure.ac): Likewise.
70061         * modules/strstr (configure.ac): Likewise.
70062         * modules/strtok_r (configure.ac): Likewise.
70063
70064 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
70065
70066         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
70067
70068 2007-01-30  Jim Meyering  <jim@meyering.net>
70069
70070         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
70071
70072 2007-01-29  Bruno Haible  <bruno@clisp.org>
70073
70074         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
70075         * lib/execute.c: Likewise.
70076         * lib/pipe.c: Likewise.
70077         * lib/printf-args.h: Likewise.
70078         * lib/printf-args.c: Likewise.
70079         * lib/printf-parse.c: Likewise.
70080         * lib/vasnprintf.c: Likewise.
70081
70082 2007-01-29  Eric Blake  <ebb9@byu.net>
70083
70084         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
70085         declaration.
70086
70087 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
70088
70089         * lib/strptime.h (strptime): Use 'restrict' for args where
70090         POSIX requires this.
70091         * lib/strptime.c (strptime): Likewise.
70092         Change license notice from LGPL to GPL, since gnulib-tool will
70093         change this as needed.
70094         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
70095         defined.
70096         Include "strptime.h" first, to check interface.
70097         Do not #undef _LIBC and _NL_CURRENT.
70098         Do not include <stdlib.h>; no longer needed.
70099         Include "time_r.h" and declare ptime_locale_status
70100         only if _LIBC is not defined.
70101         (__P): Remove unused macro.
70102         (match_string): Bring back glibc version, but use it only if _LIBC
70103         is defined.
70104         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
70105         Remove unnecessary assertion and abort() call.
70106         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
70107         * m4/strptime.m4: Fix serial number comment.
70108         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
70109         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
70110         (Depends-on): Add time_r.
70111
70112 2007-01-29  Bruno Haible  <bruno@clisp.org>
70113
70114         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70115         strptime.
70116         * modules/strptime (Depends-on): Add stdbool.
70117         * lib/strptime.h: Include <time.h> always. Add comments.
70118
70119 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70120
70121         * modules/strptime: New file.
70122         * lib/strptime.h: New file.
70123         * lib/strptime.c: New file.
70124         * m4/strptime.m4: New file.
70125
70126 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
70127
70128         * MODULES.html.sh: New module mpsort.
70129         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
70130
70131         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
70132         a circularity problem with HP-UX ia64 reported by Bob Proulx in
70133         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
70134         All uses changed.
70135         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
70136         All uses changed.
70137         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
70138         to _Restrict_.
70139         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
70140         the parameter matches the prototype.
70141
70142 2007-01-28  Jim Meyering  <jim@meyering.net>
70143
70144         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
70145         sys/time.h here, reverting that part of the previous patch:
70146         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
70147
70148 2007-01-28  Bruno Haible  <bruno@clisp.org>
70149
70150         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
70151         value of $(SYS_TIME_H).
70152         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
70153         remove it conditionally, too. [added by Jim Meyering]
70154         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
70155         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70156         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
70157         GETTIMEOFDAY_REPLACEMENT to 1.
70158
70159 2007-01-28  Bruno Haible  <bruno@clisp.org>
70160
70161         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
70162         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
70163         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
70164         Set UNISTD_H instead of UNISTD_H2.
70165         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
70166
70167 2007-01-28  Bruno Haible  <bruno@clisp.org>
70168
70169         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
70170         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
70171
70172 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70173
70174         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
70175         (func_create_testdir): Ensure C locale for `grep' and `tr'
70176         character ranges.
70177         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
70178         ACLOCAL_AMFLAGS parsing state machine.
70179
70180 2007-01-27  Bruno Haible  <bruno@clisp.org>
70181
70182         * modules/unistr/base: Update.
70183
70184 2007-01-27  Bruno Haible  <bruno@clisp.org>
70185
70186         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
70187         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
70188         * modules/unistr/u32-mbtouc-unsafe: Renamed from
70189         modules/unistr/u32-mbtouc.
70190         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
70191         * lib/unistr.h: Update.
70192         * lib/linebreak.c: Update.
70193         * modules/unistr/u32-mbtouc: Renamed from
70194         modules/unistr/u32-mbtouc-safe.
70195         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
70196         * lib/unistr.h: Update.
70197         * lib/unistr/u32-to-u8.c: Update.
70198         * lib/unistr/u32-to-u16.c: Update.
70199
70200 2007-01-27  Bruno Haible  <bruno@clisp.org>
70201
70202         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
70203         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
70204         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
70205         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
70206         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
70207         * modules/unistr/u16-mbtouc-unsafe: Renamed from
70208         modules/unistr/u16-mbtouc.
70209         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
70210         * lib/unistr.h: Update.
70211         * lib/linebreak.c: Update.
70212         * modules/linebreak: Update.
70213         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
70214         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
70215         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
70216         * modules/unistr/u16-mbtouc: Renamed from
70217         modules/unistr/u16-mbtouc-safe.
70218         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
70219         * lib/unistr.h: Update.
70220         * lib/unistr/u16-to-u8.c: Update.
70221         * modules/unistr/u16-to-u8: Update.
70222         * lib/unistr/u16-to-u32.c: Update.
70223         * modules/unistr/u16-to-u32: Update.
70224
70225 2007-01-27  Bruno Haible  <bruno@clisp.org>
70226
70227         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
70228         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
70229         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
70230         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
70231         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
70232         * modules/unistr/u8-mbtouc-unsafe: Renamed from
70233         modules/unistr/u8-mbtouc.
70234         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
70235         * lib/unistr.h: Update.
70236         * lib/striconveh.c: Update.
70237         * modules/striconveh: Update.
70238         * lib/linebreak.c: Update.
70239         * modules/linebreak: Update.
70240         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
70241         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
70242         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
70243         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
70244         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
70245         * lib/unistr.h: Update.
70246         * lib/striconveh.c: Update.
70247         * modules/striconveh: Update.
70248         * lib/unistr/u8-to-u16.c: Update.
70249         * modules/unistr/u8-to-u16: Update.
70250         * lib/unistr/u8-to-u32.c: Update.
70251         * modules/unistr/u8-to-u32: Update.
70252
70253 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70254
70255         Sync from Libtool.
70256         * lib/argz.c: Do not include strings.h nor memory.h, include
70257         string.h unconditionally.  Patch by Simon Josefsson.
70258
70259 2007-01-27  Bruno Haible  <bruno@clisp.org>
70260
70261         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
70262         from gl_HEADER_STRING_H_BODY.
70263         (gl_HEADER_STRING_H_BODY): Require it.
70264         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
70265         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
70266         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
70267         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
70268         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
70269         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
70270         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
70271         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
70272         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
70273         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
70274         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
70275         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
70276         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
70277         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
70278         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70279
70280 2007-01-27  Bruno Haible  <bruno@clisp.org>
70281
70282         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
70283         check_PROGRAMS into noinst_PROGRAMS.
70284         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
70285         check_PROGRAMS in this case.
70286         (func_import): Set for_test to false.
70287         (func_create_testdir): Set for_test to true.
70288
70289 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70290             Bruno Haible  <bruno@clisp.org>
70291
70292         * modules/strcasestr (Files): Remove lib/strcasestr.h.
70293         (Depends-on): Add string.
70294         (Includes): Use <string.h> instead of strcasestr.h.
70295         * modules/string (Makefile.am): Also substitute the value of
70296         REPLACE_STRCASESTR.
70297         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
70298         assume strcasestr is declared in <string.h> not <strings.h>. Also
70299         set REPLACE_STRCASESTR.
70300         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
70301         REPLACE_STRCASESTR.
70302         * lib/strcasestr.h: Remove file.
70303         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
70304         * lib/string_.h (strcasestr): New declaration.
70305
70306 2007-01-27  Bruno Haible  <bruno@clisp.org>
70307
70308         * lib/string_.h: Use 'extern'.
70309
70310 2007-01-27  Jim Meyering  <jim@meyering.net>
70311
70312         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70313         of set-but-not-used local, "q".
70314
70315         * lib/mempcpy.c: Include <config.h> before <string.h>.
70316         This fixes a compilation error on HP-UX, due to the system's
70317         "restrict"-using mempcpy prototype.
70318
70319 2007-01-26  Bruno Haible  <bruno@clisp.org>
70320
70321         Small optimization.
70322         * lib/javacomp.c: Include c-strstr.h.
70323          (is_envjavac_gcj): Use c_strstr instead of strstr.
70324         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70325
70326 2007-01-26  Bruno Haible  <bruno@clisp.org>
70327
70328         * MODULES.html.sh (Unicode string functions): Add the new modules.
70329
70330         * modules/uniconv/u32-strconv-to-locale: New file.
70331         * lib/uniconv/u32-strconv-to-locale.c: New file.
70332
70333         * modules/uniconv/u16-strconv-to-locale: New file.
70334         * lib/uniconv/u16-strconv-to-locale.c: New file.
70335
70336         * modules/uniconv/u8-strconv-to-locale: New file.
70337         * lib/uniconv/u8-strconv-to-locale.c: New file.
70338
70339         * modules/uniconv/u32-strconv-from-locale: New file.
70340         * lib/uniconv/u32-strconv-from-locale.c: New file.
70341
70342         * modules/uniconv/u16-strconv-from-locale: New file.
70343         * lib/uniconv/u16-strconv-from-locale.c: New file.
70344
70345         * modules/uniconv/u8-strconv-from-locale: New file.
70346         * lib/uniconv/u8-strconv-from-locale.c: New file.
70347
70348         * modules/uniconv/u32-strconv-to-enc: New file.
70349         * lib/uniconv/u32-strconv-to-enc.c: New file.
70350         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70351         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70352
70353         * modules/uniconv/u16-strconv-to-enc: New file.
70354         * lib/uniconv/u16-strconv-to-enc.c: New file.
70355         * lib/uniconv/u-strconv-to-enc.h: New file.
70356         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70357         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70358
70359         * modules/uniconv/u8-strconv-to-enc: New file.
70360         * lib/uniconv/u8-strconv-to-enc.c: New file.
70361         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70362         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70363
70364         * modules/uniconv/u32-strconv-from-enc: New file.
70365         * lib/uniconv/u32-strconv-from-enc.c: New file.
70366         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70367         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70368
70369         * modules/uniconv/u16-strconv-from-enc: New file.
70370         * lib/uniconv/u16-strconv-from-enc.c: New file.
70371         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70372         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70373
70374         * modules/uniconv/u8-strconv-from-enc: New file.
70375         * lib/uniconv/u8-strconv-from-enc.c: New file.
70376         * lib/uniconv/u-strconv-from-enc.h: New file.
70377         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70378         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70379
70380         * modules/uniconv/u32-conv-from-enc: New file.
70381         * lib/uniconv/u32-conv-from-enc.c: New file.
70382         * modules/uniconv/u32-conv-from-enc-tests: New file.
70383         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70384
70385         * modules/uniconv/u16-conv-from-enc: New file.
70386         * lib/uniconv/u16-conv-from-enc.c: New file.
70387         * lib/uniconv/u-conv-from-enc.h: New file.
70388         * modules/uniconv/u16-conv-from-enc-tests: New file.
70389         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70390
70391         * modules/uniconv/u8-conv-from-enc: New file.
70392         * lib/uniconv/u8-conv-from-enc.c: New file.
70393         * modules/uniconv/u8-conv-from-enc-tests: New file.
70394         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70395
70396         * modules/uniconv/base: New file.
70397         * lib/uniconv.h: New file.
70398
70399 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70400
70401         * doc/gnulib-tool.texi (Initial import): Update to match current
70402         behavior with strdup module.
70403         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70404         * lib/memmem.h: Remove; all uses removed.  This is now done
70405         by <string.h>.
70406         * lib/mempcpy.h: Likewise.
70407         * lib/memrchr.h: Likewise.
70408         * lib/stpcpy.h: Likewise.
70409         * lib/stpncpy.h: Likewise.
70410         * lib/strcase.h: Likewise.
70411         * lib/strchrnul.h: Likewise.
70412         * lib/strdup.h: Likewise.
70413         * lib/strndup.h: Likewise.
70414         * lib/strnlen.h: Likewise.
70415         * lib/strpbrk.h: Likewise.
70416         * lib/strsep.h: Likewise.
70417         * lib/strstr.h: Likewise.
70418         * lib/strtok_r.h: Likewise.
70419         * lib/string_.h: New file.
70420         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70421         Rely on <string.h> instead.
70422         * lib/canon-host.c: Likewise.
70423         * lib/chdir-long.c: Likewise.
70424         * lib/concatpath.c: Likewise.
70425         * lib/exclude.c: Likewise.
70426         * lib/fchdir.c: Likewise.
70427         * lib/getaddrinfo.c: Likewise.
70428         * lib/getcwd.c: Likewise.
70429         * lib/getsubopt.c: Likewise.
70430         * lib/glob.c: Likewise.
70431         * lib/hard-locale.c: Likewise.
70432         * lib/iconvme.c: Likewise.
70433         * lib/javacomp.c: Likewise.
70434         * lib/mempcpy.c: Likewise.
70435         * lib/memrchr.c: Likewise.
70436         * lib/regex_internal.h: Likewise.
70437         * lib/stpncpy.c: Likewise.
70438         * lib/strcasecmp.c: Likewise.
70439         * lib/strchrnul.c: Likewise.
70440         * lib/strdup.c: Likewise.
70441         * lib/striconv.c: Likewise.
70442         * lib/striconveh.c: Likewise.
70443         * lib/striconveha.c: Likewise.
70444         * lib/strncasecmp.c: Likewise.
70445         * lib/strndup.c: Likewise.
70446         * lib/strnlen.c: Likewise.
70447         * lib/strsep.c: Likewise.
70448         * lib/strstr.c: Likewise.
70449         * lib/strtok_r.c: Likewise.
70450         * lib/userspec.c: Likewise.
70451         * lib/w32spawn.h: Likewise.
70452         * lib/xstrndup.c: Likewise.
70453         * lib/mountlist.c (strstr): Remove decl.
70454         * m4/string_h.m4: New file.
70455         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70456         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70457         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70458         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70459         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70460         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70461         Set REPLACE_STRCASECMP if necessary.
70462         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70463         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70464         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70465         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70466         HAVE_DECL_STRDUP if necessary.
70467         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70468         since gl_FUNC_STRNDUP does that now.
70469         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70470         Check for decl here...
70471         (gl_PREREQ_STRNLEN): ... not here.
70472         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70473         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70474         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70475         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70476         necessary.
70477         * modules/string: New file.
70478         * modules/memmem (Files): Remove special-purpose include file.
70479         (Depends-on): Add string.
70480         (Include): Include <string.h>, not the removed file.
70481         * modules/mempcpy: Likewise.
70482         * modules/memrchr: Likewise.
70483         * modules/stpcpy: Likewise.
70484         * modules/stpncpy: Likewise.
70485         * modules/strcase: Likewise.
70486         * modules/strchrnul: Likewise.
70487         * modules/strdup: Likewise.
70488         * modules/strndup: Likewise.
70489         * modules/strnlen: Likewise.
70490         * modules/strpbrk: Likewise.
70491         * modules/strsep: Likewise.
70492         * modules/strstr: Likewise.
70493         * modules/strtok_r: Likewise.
70494         * tests/test-dirname.c: Don't include "strdup.h", since
70495         <string.h> now suffices.
70496         * tests/test-memmem.c: Don't include "memmem.h", since
70497         <string.h> now suffices.
70498
70499 2007-01-25  Bruno Haible  <bruno@clisp.org>
70500
70501         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70502         *resultp is 0.
70503
70504         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70505         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70506         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70507         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70508
70509         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70510         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70511         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70512         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70513         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70514         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70515
70516 2007-01-24  Bruno Haible  <bruno@clisp.org>
70517
70518         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70519         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70520         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70521         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70522         gl_FUNC_FTS_CORE.
70523         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70524         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70525         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70526         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70527         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70528         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70529         gl_FUNC_FCHOWNAT.
70530         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70531         gl_FUNC_STRFTIME.
70532         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70533         Reported by Ralf Wildenhues.
70534
70535 2007-01-24  Bruno Haible  <bruno@clisp.org>
70536
70537         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70538         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70539         gl_GETADDRINFO.
70540         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70541         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70542         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70543
70544 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70545
70546         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70547         Don't use 'exit'; just return from 'main'.
70548         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70549
70550         * lib/fnmatch_.h: Readjust white space and comments to match
70551         glibc, to avoid spurious diffs.
70552
70553 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70554
70555         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70556         2004-12-01 change by Jakub Jelinek, since this code won't compile
70557         if !LIBC.  Problem reported by Bob Proulx.
70558
70559 2007-01-23  Bruno Haible  <bruno@clisp.org>
70560
70561         * lib/striconveh.c: Include c-strcaseeq.h.
70562         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70563         * modules/striconveh (Depends-on): Add c-strcaseeq.
70564
70565 2007-01-23  Bruno Haible  <bruno@clisp.org>
70566
70567         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70568
70569         * modules/c-strcaseeq: New file.
70570         * lib/c-strcaseeq.h: New file.
70571
70572         * modules/streq: New file.
70573         * lib/streq.h: New file.
70574
70575 2007-01-23  Bruno Haible  <bruno@clisp.org>
70576
70577         * modules/striconveha-tests: New file.
70578         * tests/test-striconveha.c: New file.
70579
70580         * lib/striconveha.h: Include <stdbool.h>.
70581         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70582         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70583         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70584         (mem_iconveha): New function.
70585         (str_iconveha_notranslit): Renamed from str_iconveha.
70586         (str_iconveha): New function.
70587         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70588         c-strcase.
70589
70590 2007-01-23  Bruno Haible  <bruno@clisp.org>
70591
70592         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70593         encodings without forgiving before trying any encoding with handler.
70594         (str_iconveha): Try all encodings without forgiving before trying any
70595         encoding with handler.
70596
70597 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70598
70599         Import the following changes from libc.
70600
70601         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70602
70603         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70604
70605         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70606
70607         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70608         normal_bracket label.
70609
70610         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70611
70612         [BZ #361]
70613         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70614         to normal_bracket after fetching the next character.
70615
70616 2007-01-22  Bruno Haible  <bruno@clisp.org>
70617
70618         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70619         argument.
70620         * lib/striconveh.c (iconv_carefully_1): New function.
70621         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70622         argument.
70623         (str_cd_iconveh): Update.
70624         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70625         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70626         * tests/test-striconveh.c (MAGIC): New macro.
70627         (new_offsets): New function.
70628         (main): Test call with and without offsets.
70629
70630 2007-01-22  Bruno Haible  <bruno@clisp.org>
70631
70632         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70633         * modules/sys_select (Makefile.am): Likewise.
70634         * modules/sys_socket (Makefile.am): Likewise.
70635         * modules/sys_time (Makefile.am): Likewise.
70636
70637 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70638
70639         * modules/gettimeofday (License): Change from GPL to LGPL, since
70640         gettimeofday is a library function.
70641
70642 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70643
70644         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70645
70646 2007-01-21  Bruno Haible  <bruno@clisp.org>
70647
70648         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70649
70650 2007-01-21  Bruno Haible  <bruno@clisp.org>
70651
70652         * modules/striconveha: New file.
70653         * lib/striconveha.h: New file.
70654         * lib/striconveha.c: New file.
70655         * MODULES.html.sh (Internationalization functions): Add striconveha.
70656         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70657         string.
70658         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70659
70660 2007-01-21  Bruno Haible  <bruno@clisp.org>
70661
70662         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70663         * lib/striconveh.c (str_iconveh): Likewise.
70664
70665 2007-01-21  Bruno Haible  <bruno@clisp.org>
70666
70667         * lib/striconveh.h (mem_iconveh): New declaration.
70668         * lib/striconveh.c (mem_iconveh): New function.
70669         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70670
70671 2007-01-21  Bruno Haible  <bruno@clisp.org>
70672
70673         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70674
70675         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70676         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70677         original result buffer.
70678         (str_cd_iconveh): Update.
70679         * tests/test-striconveh.c (main): Update.
70680
70681         * lib/striconv.h (mem_cd_iconv): Change specification.
70682         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70683         result buffer.
70684         (str_cd_iconv): Update.
70685         * tests/test-striconv.c (main): Update.
70686
70687 2007-01-21  Bruno Haible  <bruno@clisp.org>
70688
70689         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70690
70691 2007-01-20  Jim Meyering  <jim@meyering.net>
70692
70693         * lib/userspec.c (parse_with_separator): If a user or group string
70694         starts with "+", skip the corresponding name-to-ID look-up, since
70695         such a look-up must fail: user and group names may not include "+".
70696
70697 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70698
70699         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70700         since we now assume the sys_time module.
70701         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70702         check for sys/time.h; no longer needed.
70703         * modules/poll (Depends-on): Depend on sys_time.
70704
70705 2007-01-18  Bruno Haible  <bruno@clisp.org>
70706
70707         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70708         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70709
70710         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70711         gettimeofday.
70712
70713         * tests/test-gettimeofday.c: Include <time.h>.
70714         (dummy): Remove variable.
70715
70716         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70717         gl_HEADER_SYS_TIME_H.
70718         (gl_HEADER_SYS_TIME_H): New macro.
70719
70720         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70721         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70722         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70723         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70724         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70725         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70726         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70727         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70728         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70729         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70730         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70731
70732         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70733         last change; it caused a compilation error when cross-compiling to
70734         Cygwin.
70735
70736 2007-01-18  Jim Meyering  <jim@meyering.net>
70737
70738         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70739         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70740         than the race-prone "test -d sys || mkdir sys".
70741         (configure.ac): Use AC_PROG_MKDIR_P.
70742         * modules/sys_select: Likewise.
70743         * modules/sys_socket: Likewise.
70744         * modules/sys_time: Likewise.
70745
70746 2007-01-18  Eric Blake  <ebb9@byu.net>
70747
70748         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70749         replace gettimeofday.
70750         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70751         name, to avoid infinite recursion.
70752
70753 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70754
70755         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70756         module sys_time.
70757         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70758         assume timespec.h defines struct timeval.
70759         * lib/settime.c: Likewise.
70760         * lib/utimens.c: Likewise.
70761         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70762         since we now assume the gettimeofday module.
70763         * lib/tempname.c (__gen_tempname): Likewise.
70764         * lib/gettimeofday.h: Remove.
70765         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70766         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70767         Include <time.h>, for 'time()'.
70768         (localtime_buffer_addr): Also use this workaround if
70769         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70770         to simplify the uses.  All uses changed.
70771         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70772         that #undef is inside {}, and 'const' follows type name consistently.
70773         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70774         (gettimeofday): Do not use the maximum possible value for
70775         tv->tv_usec, since that might break usages other than ls.c.
70776         Instead, we'll leave ls.c alone.  This undoes today's patch
70777         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70778         we've never observed the problem but might as well keep the
70779         canary.
70780         * lib/nanosleep.c: Include timespec.h first, for interface check.
70781         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70782         now assume the sys_time module.
70783         * lib/tempname.c: Likewise.
70784         * lib/timespec.h: Likewise.
70785         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70786         needed.
70787         * lib/strftime.c: Likewise.
70788         * lib/timespec.h: Likewise.
70789         * lib/posixtm.c: Include posixtm.h first, for interface check.
70790         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70791         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70792         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70793         * lib/sys_time_.h: New file.
70794         * lib/timespec.h (struct timespec): Use long int, not long.
70795         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70796         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70797         Remove obsolescent call to AC_HEADER_TIME.
70798         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70799         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70800         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70801         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70802         Likewise.
70803         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70804         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70805         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70806         into the sys_time module.  Check for gettimeofday just once.
70807         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70808         for gettimeofday signature to just check the signature.  Merely
70809         compile it, since linking doesn't test signature.  Improve test for
70810         whether gettimeofday.o is actually needed.
70811         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70812         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70813         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70814         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70815         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70816         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70817         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70818         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70819         than worrying about sys/time.h.
70820         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70821         Don't bother worrying about TIME_WITH_SYS_TIME.
70822         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70823         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70824         * m4/sys_time_h.m4: New file.
70825         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70826         Don't include sys/time.h.  Return from main rather than exiting.
70827         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70828         all uses changed.
70829         * modules/gethrxtime (Depends-on): Add sys_time.
70830         * modules/gettime (Depends-on): Likewise.
70831         * modules/gettimeofday (Depends-on): Likewise.
70832         * modules/nanosleep (Depends-on): Likewise.
70833         * modules/settime (Depends-on): Likewise.
70834         * modules/tempname (Depends-on): Likewise.
70835         * modules/utimens (Depends-on): Likewise.
70836         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70837         (Include): Change back to <sys/time.h>.
70838         (Maintainer): Add self.
70839         * modules/sys_time: New file.
70840         * modules/tempname (Depends-on): Add gettimeofday.
70841         * tests/test-gettimeofday.c: Include <sys/time.h>
70842         rather than gettimeofday.h.
70843
70844 2007-01-17  Bruno Haible  <bruno@clisp.org>
70845
70846         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70847         the license default to GPL.
70848         (func_create_testdir): Don't complain if a module is LGPL and its
70849         tests module depends on GPLed modules.
70850
70851 2007-01-17  Bruno Haible  <bruno@clisp.org>
70852
70853         * lib/gettimeofday.c (gettimeofday): Add code for the case
70854         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70855         maximum possible value for tv->tv_usec, rather than the minimum one.
70856
70857 2005-10-08  Martin Lambers  <marlam@marlam.de>
70858 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70859 2007-01-16  Bruno Haible  <bruno@clisp.org>
70860
70861         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70862         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70863         gl_FUNC_GETTIMEOFDAY.
70864         (Include): Add gettimeofday.h.
70865         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70866         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70867         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70868         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70869         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70870         * lib/gettimeofday.h: New file.
70871         * lib/gettimeofday.c: Include <sys/timeb.h>.
70872         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70873         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70874         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70875         fall back on time().
70876
70877         * tests/test-gettimeofday.c: New file.
70878         * modules/gettimeofday-tests: New file.
70879
70880 2007-01-16  Eric Blake  <ebb9@byu.net>
70881
70882         * modules/fnmatch (Depends-on): Depend on wchar.
70883         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70884         * m4/fnmatch.m4: Likewise.
70885         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70886         * m4/mbchar.m4: Likewise.
70887         * modules/mbswidth (Depends-on): Depend on wchar.
70888         * lib/mbswidth.c: Assume <wchar.h>.
70889         * m4/mbswidth.m4: Likewise.
70890         * modules/quotearg (Depends-on): Depend on wchar.
70891         * lib/quotearg.c: Assume <wchar.h>.
70892         * m4/quotearg.m4: Likewise.
70893         * modules/regex (Depends-on): Depend on wchar.
70894         * lib/regex_internal.h: Assume <wchar.h>.
70895         * m4/regex.m4: Likewise.
70896         * modules/stdint (Depends-on): Depend on wchar.
70897         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70898         * m4/stdint.m4: Likewise.
70899         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70900         * modules/strftime (Depends-on): Depend on wchar.
70901         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70902         * modules/strtol (Depends-on): Depend on wchar.
70903         * lib/strtol.c: Assume <wchar.h>.
70904         * modules/wcwidth (Depends-on): Depend on wchar.
70905         * lib/wcwidth.h: Assume <wchar.h>.
70906         * m4/wcwidth.m4: Likewise.
70907
70908 2007-01-16  Bruno Haible  <bruno@clisp.org>
70909
70910         * modules/csharpexec-script: New, created from...
70911         * modules/csharpexec: ... this.
70912
70913 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70914
70915         * modules/javaexec-script: New, created from...
70916         * modules/javaexec: ... this.
70917
70918 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70919
70920         * modules/poll (Dependencies): Add sys_select.
70921
70922 2007-01-15  Jim Meyering  <jim@meyering.net>
70923
70924         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70925         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70926         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70927         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70928
70929 2007-01-15  Bruno Haible  <bruno@clisp.org>
70930
70931         * modules/striconveh: New file.
70932         * lib/striconveh.h: New file.
70933         * lib/striconveh.c: New file.
70934         * MODULES.html.sh (Internationalization functions): Add striconveh.
70935
70936         * modules/striconveh-tests: New file.
70937         * tests/test-striconveh.c: New file.
70938
70939 2007-01-15  Bruno Haible  <bruno@clisp.org>
70940
70941         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70942         not from GNU libiconv or GNU libc.
70943
70944 2007-01-15  Bruno Haible  <bruno@clisp.org>
70945
70946         * doc/gnulib-intro.texi (Copyright): Explain the different license
70947         terms for module descriptions, autoconf macros, tests, documentation.
70948
70949 2007-01-14  Bruno Haible  <bruno@clisp.org>
70950
70951         * modules/striconv-tests: New file.
70952         * tests/test-striconv.c: New file.
70953
70954 2007-01-14  Bruno Haible  <bruno@clisp.org>
70955
70956         * modules/iconv-tests: New file.
70957         * tests/test-iconv.c: New file.
70958
70959 2007-01-14  Bruno Haible  <bruno@clisp.org>
70960
70961         * gnulib-tool (func_get_license): For test modules, use the license of
70962         the main module.
70963
70964 2007-01-14  Bruno Haible  <bruno@clisp.org>
70965
70966         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70967         if iconv is found to exist.
70968
70969 2007-01-14  Bruno Haible  <bruno@clisp.org>
70970
70971         * modules/c-ctype-tests: New file.
70972         * tests/test-c-ctype.c: New file.
70973
70974 2007-01-14  Bruno Haible  <bruno@clisp.org>
70975
70976         * modules/binary-io-tests: New file.
70977         * tests/test-binary-io.sh: New file.
70978         * tests/test-binary-io.c: New file.
70979
70980 2007-01-14  Bruno Haible  <bruno@clisp.org>
70981
70982         * modules/array-oset-tests: New file.
70983         * tests/test-array_oset.c: New file.
70984
70985 2007-01-14  Bruno Haible  <bruno@clisp.org>
70986
70987         * modules/array-list-tests: New file.
70988         * tests/test-array_list.c: New file.
70989
70990 2007-01-14  Bruno Haible  <bruno@clisp.org>
70991
70992         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70993         and make.
70994         Reported by Simon Josefsson in
70995         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70996
70997 2007-01-14  Bruno Haible  <bruno@clisp.org>
70998
70999         * modules/allocsa-tests: New file.
71000         * tests/test-allocsa.c: New file.
71001
71002 2007-01-14  Bruno Haible  <bruno@clisp.org>
71003
71004         * modules/fchdir (Depends-on): Add absolute-header.
71005         * modules/unistd (Depends-on): Likewise.
71006
71007 2006-12-30  Bruno Haible  <bruno@clisp.org>
71008
71009         * modules/fchdir: New file.
71010         * modules/unistd (Files): Add lib/unistd_.h.
71011         (Makefile.am): Generate unistd.h from unistd_.h.
71012         * lib/fchdir.c: New file.
71013         * lib/dirent_.h: New file.
71014         * lib/unistd_.h: New file.
71015         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
71016         * m4/fchdir.m4: New file.
71017         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
71018         (gl_HEADER_UNISTD): Invoke it.
71019         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
71020         function.
71021         * lib/backupfile.c (opendir, closedir): Undefine.
71022         * lib/chown.c (open, close): Undefine.
71023         * lib/clean-temp.c (open, close): Undefine.
71024         * lib/copy-file.c (open, close): Undefine.
71025         * lib/execute.c (open, close): Undefine.
71026         * lib/fsusage.c (open, close): Undefine.
71027         * lib/gc-gnulib.c (open, close): Undefine.
71028         * lib/getcwd.c (opendir, closedir): Undefine.
71029         * lib/glob.c (opendir, closedir): Undefine.
71030         * lib/javacomp.c (open, close): Undefine.
71031         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
71032         * lib/openat-proc.c (open, close): Undefine.
71033         * lib/pagealign_alloc.c (open, close): Undefine.
71034         * lib/pipe.c (open, close): Undefine.
71035         * lib/progreloc.c (open, close): Undefine.
71036         * lib/savedir.c (opendir, closedir): Undefine.
71037         * lib/utime.c (open, close): Undefine.
71038         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
71039
71040 2007-01-10  Bruno Haible  <bruno@clisp.org>
71041
71042         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
71043
71044 2007-01-12  Eric Blake  <ebb9@byu.net>
71045
71046         Provide a robust <wchar.h>.  Further simplifications are now
71047         possible in other modules, but not included here.
71048         * modules/wchar: New module.
71049         * m4/wchar.m4: New file.
71050         * lib/wchar_.h: Likewise.
71051         * modules/mbchar (Depends-on): Depend on wchar, as the first use
71052         of the new module.
71053         * MODULES.html.sh (Extended multibyte and wide character utilities):
71054         New section.
71055
71056 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
71057
71058         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
71059         to a reasonable default for memory allocation.
71060         (xreadlink): Don't allocate a huge buffer, to work around a buggy
71061         file system that reports garbage st_size values for symlinks.
71062         Problem reported by Liyang Hu.
71063
71064 2007-01-11  Simon Josefsson  <simon@josefsson.org>
71065
71066         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
71067         Emacs .#* auto-save files).
71068
71069 2007-01-11  Bruno Haible  <bruno@clisp.org>
71070
71071         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
71072         directory.
71073
71074 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
71075
71076         Use @...@ consistently in lib/wctype_.h.
71077         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
71078         on it being set to 1 or 0.
71079         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
71080         go back to AC_SUBSTing it.
71081         * modules/wctype (Makefile.am): Undo previous change.
71082
71083 2007-01-10  Eric Blake  <ebb9@byu.net>
71084
71085         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
71086         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
71087         * modules/wctype (Makefile.am): Likewise.
71088         Reported by Chris McGuire.
71089
71090 2007-01-10  Jim Meyering  <jim@meyering.net>
71091
71092         fts.c: a small readability/maintainability improvement
71093         * lib/fts.c (fts_read): Make this code slightly more readable and
71094         maintainable by hoisting the "sp->fts_cur = p" assignments to
71095         immediately follow the statements that set P.  Derived from
71096         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
71097
71098 2007-01-10  Eric Blake  <ebb9@byu.net>
71099
71100         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
71101         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
71102         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71103         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
71104         Reported by Chris McGuire.
71105
71106 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71107
71108         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
71109         in sed script.
71110
71111 2007-01-09  Bruno Haible  <bruno@clisp.org>
71112
71113         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
71114         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
71115         variables.
71116         (func_module): Use them.
71117
71118 2007-01-09  Bruno Haible  <bruno@clisp.org>
71119
71120         * modules/unistr/base: New file.
71121         * lib/unistr.h: New file.
71122
71123         * modules/unistr/u8-to-u16: New file.
71124         * lib/unistr/u8-to-u16.c: New file.
71125
71126         * modules/unistr/u8-to-u32: New file.
71127         * lib/unistr/u8-to-u32.c: New file.
71128
71129         * modules/unistr/u16-to-u8: New file.
71130         * lib/unistr/u16-to-u8.c: New file.
71131
71132         * modules/unistr/u16-to-u32: New file.
71133         * lib/unistr/u16-to-u32.c: New file.
71134
71135         * modules/unistr/u32-to-u8: New file.
71136         * lib/unistr/u32-to-u8.c: New file.
71137
71138         * modules/unistr/u32-to-u16: New file.
71139         * lib/unistr/u32-to-u16.c: New file.
71140
71141         * modules/unistr/u8-check: New file.
71142         * modules/unistr/u16-check: New file.
71143         * modules/unistr/u32-check: New file.
71144         * lib/unistr/u8-check.c: New file.
71145         * lib/unistr/u16-check.c: New file.
71146         * lib/unistr/u32-check.c: New file.
71147
71148         * modules/unistr/u8-chr: New file.
71149         * modules/unistr/u16-chr: New file.
71150         * modules/unistr/u32-chr: New file.
71151         * lib/unistr/u8-chr.c: New file.
71152         * lib/unistr/u16-chr.c: New file.
71153         * lib/unistr/u32-chr.c: New file.
71154
71155         * modules/unistr/u8-cmp: New file.
71156         * modules/unistr/u16-cmp: New file.
71157         * modules/unistr/u32-cmp: New file.
71158         * lib/unistr/u8-cmp.c: New file.
71159         * lib/unistr/u16-cmp.c: New file.
71160         * lib/unistr/u32-cmp.c: New file.
71161
71162         * modules/unistr/u8-cpy: New file.
71163         * modules/unistr/u16-cpy: New file.
71164         * modules/unistr/u32-cpy: New file.
71165         * lib/unistr/u8-cpy.c: New file.
71166         * lib/unistr/u16-cpy.c: New file.
71167         * lib/unistr/u32-cpy.c: New file.
71168         * lib/unistr/u-cpy.h: New file.
71169
71170         * modules/unistr/u8-cpy-alloc: New file.
71171         * modules/unistr/u16-cpy-alloc: New file.
71172         * modules/unistr/u32-cpy-alloc: New file.
71173         * lib/unistr/u8-cpy-alloc.c: New file.
71174         * lib/unistr/u16-cpy-alloc.c: New file.
71175         * lib/unistr/u32-cpy-alloc.c: New file.
71176         * lib/unistr/u-cpy-alloc.h: New file.
71177
71178         * modules/unistr/u8-endswith: New file.
71179         * modules/unistr/u16-endswith: New file.
71180         * modules/unistr/u32-endswith: New file.
71181         * lib/unistr/u8-endswith.c: New file.
71182         * lib/unistr/u16-endswith.c: New file.
71183         * lib/unistr/u32-endswith.c: New file.
71184         * lib/unistr/u-endswith.h: New file.
71185
71186         * modules/unistr/u8-mblen: New file.
71187         * modules/unistr/u16-mblen: New file.
71188         * modules/unistr/u32-mblen: New file.
71189         * lib/unistr/u8-mblen.c: New file.
71190         * lib/unistr/u16-mblen.c: New file.
71191         * lib/unistr/u32-mblen.c: New file.
71192
71193         * modules/unistr/u8-mbtouc: New file.
71194         * modules/unistr/u16-mbtouc: New file.
71195         * modules/unistr/u32-mbtouc: New file.
71196         * lib/unistr/u8-mbtouc.c: New file.
71197         * lib/unistr/u16-mbtouc.c: New file.
71198         * lib/unistr/u32-mbtouc.c: New file.
71199
71200         * modules/unistr/u8-mbtouc-safe: New file.
71201         * modules/unistr/u16-mbtouc-safe: New file.
71202         * modules/unistr/u32-mbtouc-safe: New file.
71203         * lib/unistr/u8-mbtouc-safe.c: New file.
71204         * lib/unistr/u16-mbtouc-safe.c: New file.
71205         * lib/unistr/u32-mbtouc-safe.c: New file.
71206
71207         * modules/unistr/u8-move: New file.
71208         * modules/unistr/u16-move: New file.
71209         * modules/unistr/u32-move: New file.
71210         * lib/unistr/u8-move.c: New file.
71211         * lib/unistr/u16-move.c: New file.
71212         * lib/unistr/u32-move.c: New file.
71213         * lib/unistr/u-move.h: New file.
71214
71215         * modules/unistr/u8-next: New file.
71216         * modules/unistr/u16-next: New file.
71217         * modules/unistr/u32-next: New file.
71218         * lib/unistr/u8-next.c: New file.
71219         * lib/unistr/u16-next.c: New file.
71220         * lib/unistr/u32-next.c: New file.
71221
71222         * modules/unistr/u8-prev: New file.
71223         * modules/unistr/u16-prev: New file.
71224         * modules/unistr/u32-prev: New file.
71225         * lib/unistr/u8-prev.c: New file.
71226         * lib/unistr/u16-prev.c: New file.
71227         * lib/unistr/u32-prev.c: New file.
71228
71229         * modules/unistr/u8-set: New file.
71230         * modules/unistr/u16-set: New file.
71231         * modules/unistr/u32-set: New file.
71232         * lib/unistr/u8-set.c: New file.
71233         * lib/unistr/u16-set.c: New file.
71234         * lib/unistr/u32-set.c: New file.
71235         * lib/unistr/u-set.h: New file.
71236
71237         * modules/unistr/u8-startswith: New file.
71238         * modules/unistr/u16-startswith: New file.
71239         * modules/unistr/u32-startswith: New file.
71240         * lib/unistr/u8-startswith.c: New file.
71241         * lib/unistr/u16-startswith.c: New file.
71242         * lib/unistr/u32-startswith.c: New file.
71243         * lib/unistr/u-startswith.h: New file.
71244
71245         * modules/unistr/u8-stpcpy: New file.
71246         * modules/unistr/u16-stpcpy: New file.
71247         * modules/unistr/u32-stpcpy: New file.
71248         * lib/unistr/u8-stpcpy.c: New file.
71249         * lib/unistr/u16-stpcpy.c: New file.
71250         * lib/unistr/u32-stpcpy.c: New file.
71251         * lib/unistr/u-stpcpy.h: New file.
71252
71253         * modules/unistr/u8-stpncpy: New file.
71254         * modules/unistr/u16-stpncpy: New file.
71255         * modules/unistr/u32-stpncpy: New file.
71256         * lib/unistr/u8-stpncpy.c: New file.
71257         * lib/unistr/u16-stpncpy.c: New file.
71258         * lib/unistr/u32-stpncpy.c: New file.
71259         * lib/unistr/u-stpncpy.h: New file.
71260
71261         * modules/unistr/u8-strcat: New file.
71262         * modules/unistr/u16-strcat: New file.
71263         * modules/unistr/u32-strcat: New file.
71264         * lib/unistr/u8-strcat.c: New file.
71265         * lib/unistr/u16-strcat.c: New file.
71266         * lib/unistr/u32-strcat.c: New file.
71267         * lib/unistr/u-strcat.h: New file.
71268
71269         * modules/unistr/u8-strchr: New file.
71270         * modules/unistr/u16-strchr: New file.
71271         * modules/unistr/u32-strchr: New file.
71272         * lib/unistr/u8-strchr.c: New file.
71273         * lib/unistr/u16-strchr.c: New file.
71274         * lib/unistr/u32-strchr.c: New file.
71275
71276         * modules/unistr/u8-strcmp: New file.
71277         * modules/unistr/u16-strcmp: New file.
71278         * modules/unistr/u32-strcmp: New file.
71279         * lib/unistr/u8-strcmp.c: New file.
71280         * lib/unistr/u16-strcmp.c: New file.
71281         * lib/unistr/u32-strcmp.c: New file.
71282
71283         * modules/unistr/u8-strcpy: New file.
71284         * modules/unistr/u16-strcpy: New file.
71285         * modules/unistr/u32-strcpy: New file.
71286         * lib/unistr/u8-strcpy.c: New file.
71287         * lib/unistr/u16-strcpy.c: New file.
71288         * lib/unistr/u32-strcpy.c: New file.
71289         * lib/unistr/u-strcpy.h: New file.
71290
71291         * modules/unistr/u8-strcspn: New file.
71292         * modules/unistr/u16-strcspn: New file.
71293         * modules/unistr/u32-strcspn: New file.
71294         * lib/unistr/u8-strcspn.c: New file.
71295         * lib/unistr/u16-strcspn.c: New file.
71296         * lib/unistr/u32-strcspn.c: New file.
71297         * lib/unistr/u-strcspn.h: New file.
71298
71299         * modules/unistr/u8-strdup: New file.
71300         * modules/unistr/u16-strdup: New file.
71301         * modules/unistr/u32-strdup: New file.
71302         * lib/unistr/u8-strdup.c: New file.
71303         * lib/unistr/u16-strdup.c: New file.
71304         * lib/unistr/u32-strdup.c: New file.
71305         * lib/unistr/u-strdup.h: New file.
71306
71307         * modules/unistr/u8-strlen: New file.
71308         * modules/unistr/u16-strlen: New file.
71309         * modules/unistr/u32-strlen: New file.
71310         * lib/unistr/u8-strlen.c: New file.
71311         * lib/unistr/u16-strlen.c: New file.
71312         * lib/unistr/u32-strlen.c: New file.
71313         * lib/unistr/u-strlen.h: New file.
71314
71315         * modules/unistr/u8-strmblen: New file.
71316         * modules/unistr/u16-strmblen: New file.
71317         * modules/unistr/u32-strmblen: New file.
71318         * lib/unistr/u8-strmblen.c: New file.
71319         * lib/unistr/u16-strmblen.c: New file.
71320         * lib/unistr/u32-strmblen.c: New file.
71321
71322         * modules/unistr/u8-strmbtouc: New file.
71323         * modules/unistr/u16-strmbtouc: New file.
71324         * modules/unistr/u32-strmbtouc: New file.
71325         * lib/unistr/u8-strmbtouc.c: New file.
71326         * lib/unistr/u16-strmbtouc.c: New file.
71327         * lib/unistr/u32-strmbtouc.c: New file.
71328
71329         * modules/unistr/u8-strncat: New file.
71330         * modules/unistr/u16-strncat: New file.
71331         * modules/unistr/u32-strncat: New file.
71332         * lib/unistr/u8-strncat.c: New file.
71333         * lib/unistr/u16-strncat.c: New file.
71334         * lib/unistr/u32-strncat.c: New file.
71335         * lib/unistr/u-strncat.h: New file.
71336
71337         * modules/unistr/u8-strncmp: New file.
71338         * modules/unistr/u16-strncmp: New file.
71339         * modules/unistr/u32-strncmp: New file.
71340         * lib/unistr/u8-strncmp.c: New file.
71341         * lib/unistr/u16-strncmp.c: New file.
71342         * lib/unistr/u32-strncmp.c: New file.
71343
71344         * modules/unistr/u8-strncpy: New file.
71345         * modules/unistr/u16-strncpy: New file.
71346         * modules/unistr/u32-strncpy: New file.
71347         * lib/unistr/u8-strncpy.c: New file.
71348         * lib/unistr/u16-strncpy.c: New file.
71349         * lib/unistr/u32-strncpy.c: New file.
71350         * lib/unistr/u-strncpy.h: New file.
71351
71352         * modules/unistr/u8-strnlen: New file.
71353         * modules/unistr/u16-strnlen: New file.
71354         * modules/unistr/u32-strnlen: New file.
71355         * lib/unistr/u8-strnlen.c: New file.
71356         * lib/unistr/u16-strnlen.c: New file.
71357         * lib/unistr/u32-strnlen.c: New file.
71358         * lib/unistr/u-strnlen.h: New file.
71359
71360         * modules/unistr/u8-strpbrk: New file.
71361         * modules/unistr/u16-strpbrk: New file.
71362         * modules/unistr/u32-strpbrk: New file.
71363         * lib/unistr/u8-strpbrk.c: New file.
71364         * lib/unistr/u16-strpbrk.c: New file.
71365         * lib/unistr/u32-strpbrk.c: New file.
71366         * lib/unistr/u-strpbrk.h: New file.
71367
71368         * modules/unistr/u8-strrchr: New file.
71369         * modules/unistr/u16-strrchr: New file.
71370         * modules/unistr/u32-strrchr: New file.
71371         * lib/unistr/u8-strrchr.c: New file.
71372         * lib/unistr/u16-strrchr.c: New file.
71373         * lib/unistr/u32-strrchr.c: New file.
71374
71375         * modules/unistr/u8-strspn: New file.
71376         * modules/unistr/u16-strspn: New file.
71377         * modules/unistr/u32-strspn: New file.
71378         * lib/unistr/u8-strspn.c: New file.
71379         * lib/unistr/u16-strspn.c: New file.
71380         * lib/unistr/u32-strspn.c: New file.
71381         * lib/unistr/u-strspn.h: New file.
71382
71383         * modules/unistr/u8-strstr: New file.
71384         * modules/unistr/u16-strstr: New file.
71385         * modules/unistr/u32-strstr: New file.
71386         * lib/unistr/u8-strstr.c: New file.
71387         * lib/unistr/u16-strstr.c: New file.
71388         * lib/unistr/u32-strstr.c: New file.
71389         * lib/unistr/u-strstr.h: New file.
71390
71391         * modules/unistr/u8-strtok: New file.
71392         * modules/unistr/u16-strtok: New file.
71393         * modules/unistr/u32-strtok: New file.
71394         * lib/unistr/u8-strtok.c: New file.
71395         * lib/unistr/u16-strtok.c: New file.
71396         * lib/unistr/u32-strtok.c: New file.
71397         * lib/unistr/u-strtok.h: New file.
71398
71399         * modules/unistr/u8-uctomb: New file.
71400         * modules/unistr/u16-uctomb: New file.
71401         * modules/unistr/u32-uctomb: New file.
71402         * lib/unistr/u8-uctomb.c: New file.
71403         * lib/unistr/u16-uctomb.c: New file.
71404         * lib/unistr/u32-uctomb.c: New file.
71405
71406         * MODULES.html.sh (Unicode string functions): Add the new modules.
71407
71408 2007-01-08  Bruno Haible  <bruno@clisp.org>
71409
71410         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71411         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71412         subdirectories.
71413
71414 2007-01-08  Karl Berry  <karl@gnu.org>
71415
71416         * doc/error.texi: mention that main() fns must set program_name
71417         when progname is used.
71418
71419 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71420
71421         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71422         WCTYPE_H is empty, for the benefit of builds from non-distclean
71423         directories.  Problem reported by Eric Blake in
71424         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71425
71426 2007-01-08  Bruno Haible  <bruno@clisp.org>
71427
71428         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71429         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71430         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71431         PROVIDE_CANONICALIZE_FILENAME_MODE.
71432         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71433
71434 2007-01-08  Bruno Haible  <bruno@clisp.org>
71435
71436         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71437         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71438         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71439         * lib/fts.c: Likewise.
71440         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71441
71442 2006-12-25  Bruno Haible  <bruno@clisp.org>
71443
71444         * modules/utf8-ucs4-safe: New file.
71445         * lib/utf8-ucs4-safe.h: New file.
71446         * lib/unistr/utf8-ucs4-safe.c: New file.
71447
71448         * modules/utf16-ucs4-safe: New file.
71449         * lib/utf16-ucs4-safe.h: New file.
71450         * lib/unistr/utf16-ucs4-safe.c: New file.
71451
71452         * MODULES.html.sh (Unicode string functions): Add the new modules.
71453
71454 2007-01-08  Bruno Haible  <bruno@clisp.org>
71455
71456         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71457         (Depends-on): Add unitypes.
71458         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71459         (u8_mbtouc_aux): Move out to separate file.
71460         (u8_mbtouc): Use ucs4_t, uint8_t types.
71461         * lib/unistr/utf8-ucs4.c: New file.
71462
71463         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71464         (Depends-on): Add unitypes.
71465         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71466         (u16_mbtouc_aux): Move out to separate file.
71467         (u16_mbtouc): Use ucs4_t, uint16_t types.
71468         * lib/unistr/utf16-ucs4.c: New file.
71469
71470         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71471         (Depends-on): Add unitypes.
71472         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71473         (u8_uctomb_aux): Move out to separate file.
71474         (u8_uctomb): Use ucs4_t, uint8_t types.
71475         * lib/unistr/ucs4-utf8.c: New file.
71476
71477         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71478         (Depends-on): Add unitypes.
71479         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71480         (u16_uctomb_aux): Move out to separate file.
71481         (u16_uctomb): Use ucs4_t, uint16_t types.
71482         * lib/unistr/ucs4-utf16.c: New file.
71483
71484 2006-12-25  Bruno Haible  <bruno@clisp.org>
71485
71486         * modules/unitypes: New file.
71487         * lib/unitypes.h: New file.
71488         * MODULES.html.sh (func_all_modules): New section "Unicode string
71489         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71490         this section. Add unitypes.
71491
71492 2007-01-08  Bruno Haible  <bruno@clisp.org>
71493
71494         Avoid variable names that conflict with those from libtool.
71495         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71496         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71497         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71498         library_names_spec to acl_library_names_spec, hardcode_* to
71499         acl_hardcode_*.
71500         Reported by Ralf Wildenhues.
71501
71502 2007-01-08  Bruno Haible  <bruno@clisp.org>
71503
71504         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71505         definition.
71506         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71507         definition.
71508         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71509         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71510         definition.
71511         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71512         definition.
71513         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71514         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71515         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71516         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71517         definition.
71518         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71519         definition.
71520         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71521         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71522         GC_USE_<algorithm>.
71523         * lib/gc-libgcrypt.c: Likewise.
71524         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71525         * modules/gc-arctwo (configure.ac): Likewise.
71526         * modules/gc-des (configure.ac): Likewise.
71527         * modules/gc-hmac-md5 (configure.ac): Likewise.
71528         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71529         * modules/gc-md2 (configure.ac): Likewise.
71530         * modules/gc-md4 (configure.ac): Likewise.
71531         * modules/gc-md5 (configure.ac): Likewise.
71532         * modules/gc-random (configure.ac): Likewise.
71533         * modules/gc-rijndael (configure.ac): Likewise.
71534         * modules/gc-sha1 (configure.ac): Likewise.
71535
71536 2007-01-08  Bruno Haible  <bruno@clisp.org>
71537
71538         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71539         macro definition.
71540         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71541         definition.
71542         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71543         definition.
71544         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71545         * modules/fcntl-safer (configure.ac): Likewise.
71546         * modules/fopen-safer (configure.ac): Likewise.
71547         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71548         GNULIB_FWRITEERROR macro definition.
71549
71550 2007-01-08  Bruno Haible  <bruno@clisp.org>
71551
71552         * m4/gnulib-common.m4: New file.
71553         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71554         (func_get_filelist): Add m4/gnulib-common.m4.
71555
71556 2007-01-08  Bruno Haible  <bruno@clisp.org>
71557
71558         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71559         command.
71560
71561 2007-01-08  Jim Meyering  <jim@meyering.net>
71562
71563         Use a more robust test for a "can't happen" condition.
71564         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71565         narrowed the st_size value.  Presuming the "can't happen" condition
71566         is true, that narrowing could conceivably convert an invalid st_size
71567         value into a valid one.  Instead, use a change based on Matthew
71568         Woehlke's original patch.
71569
71570         Slight readability improvement: use an assert-like macro
71571         in place of literal "abort ()" uses.
71572         * lib/fts.c (fts_assert): Define.
71573         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71574         Use this macro instead of a bare 'abort'.
71575
71576 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71577
71578         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71579         simply work around them.
71580         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71581         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71582         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71583         declaring.
71584         Don't bother to define as macros, since the standard doesn't require it.
71585         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71586         longer worry about IRIX 5.3.
71587         (HAVE_WCTYPE_CTMP_BUG): Remove.
71588
71589 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71590
71591         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71592         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71593         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71594         Problems reported by Georg Schwarz for IRIX 5.3.
71595
71596         * gnulib-tool (autoconf_minversion): Take the maximum version number
71597         found, not the minimum.  Problem reported by James Youngman.
71598
71599 2007-01-03  Karl Berry  <karl@gnu.org>
71600
71601         * doc/error.texi: new file, explaining interaction with progname.
71602         * doc/gnulib.texi: include it.  Update copyright.
71603
71604 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71605
71606         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71607         AC_CANONICAL_HOST, to improve autobuild outputs.
71608
71609 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71610             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71611
71612         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71613         sockets, server sockets, and other file descriptors.  Count errors
71614         to compute the return value.  Reorder the code a bit to be easier
71615         to follow.  Don't set event bits that were not requested (except
71616         POLLERR and POLLHUP).
71617
71618 2007-01-01  Bruno Haible  <bruno@clisp.org>
71619
71620         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71621
71622 2007-01-03  Jim Meyering  <jim@meyering.net>
71623
71624         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71625
71626 2007-01-02  Bruno Haible  <bruno@clisp.org>
71627
71628         * modules/settime (Include): Require timespec.h.
71629         * modules/nanosleep (Include): Likewise.
71630
71631 2007-01-01  Bruno Haible  <bruno@clisp.org>
71632
71633         * gnulib-tool (func_emit_copyright_notice): Bump year.
71634         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71635
71636 2007-01-01  Bruno Haible  <bruno@clisp.org>
71637
71638         Improve support for OpenBSD.
71639         * build-aux/config.rpath (libname_spec): Export.
71640         (library_names_spec): New variable. Export.
71641         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71642         library_names_spec from the config.rpath output. Locate shared library
71643         through the name pattern in library_names_spec.
71644
71645 2007-01-01  Eric Blake  <ebb9@byu.net>
71646
71647         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71648
71649 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71650
71651         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71652         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71653         assume the C locale, and avoid an "eval" that could cause trouble.
71654         Problem with SORT reported by Bob Proulx.
71655
71656         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71657         Define.  Trivial patch from Henning Nielsen Lund, originally
71658         sent to bug-grep@gnu.org today.
71659
71660 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71661
71662         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71663         struct stat.  Problem reported by Henning Nielsen Lund.
71664         * lib/acl.c: Include acl.h first, to check interface.  Don't
71665         bother to include sys/types.h and sys/stat.h again.
71666
71667 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71668
71669         Import the following change from libc; problem reported by
71670         Sven Verdoolaege.
71671
71672         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71673
71674         [BZ #1373]
71675         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71676
71677 2006-12-28  Jim Meyering  <jim@meyering.net>
71678
71679         * build-aux/announce-gen: Do not assume that the package
71680         builds any of tar.gz, tar.bz2, and .xdelta files.
71681         Suggestion from Simon Josefsson.
71682
71683 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71684
71685         * modules/announce-gen: New file.
71686
71687 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71688
71689         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71690         handles its gotchas now.
71691         * lib/mbswidth.c: Likewise.
71692         * lib/wcwidth.h: Likewise.
71693         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71694         and iswcntrl; the wctype module does this stuff now.
71695         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71696         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71697         * modules/mbchar (Depends-on): Add wctype.
71698         * modules/mbswidth (Depends-on): Likewise.
71699         * modules/wcwidth (Depends-on): Likewise.
71700
71701 2006-12-27  Eric Blake  <ebb9@byu.net>
71702
71703         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71704         module uses more than what <wctype.h> is required to provide.
71705
71706 2006-12-26  Eric Blake  <ebb9@byu.net>
71707
71708         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71709
71710 2006-12-26  Eric Blake  <ebb9@byu.net>
71711
71712         * modules/absolute-header: New module.
71713         * modules/fcntl (Depends-on): Depend on it.
71714         * modules/inttypes (Depends-on): Likewise.
71715         * modules/stdint (Depends-on): Likewise.
71716         * modules/sys_stat (Depends-on): Likewise.
71717         * modules/wctype (Depends-on): Likewise.
71718         * MODULES.html.sh (Support for building libraries and
71719         executables): Document it.
71720
71721 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71722
71723         * gnulib-tool (SED): Remove, undoing previous change.
71724         The problem was that it broke coreutils on Solaris, because
71725         "sed --posix" leaked into a makefile.
71726         (sed): New alias, if 'alias' and GNU sed.
71727
71728 2006-12-24  Jim Meyering  <jim@meyering.net>
71729
71730         Work around an fchownat bug in glibc-2.4:
71731         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71732         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71733         in spite of the -P option.
71734         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71735         New macros.
71736         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71737         * modules/openat (Files): Add lib/fchownat.c.
71738         * lib/openat.c (fchownat): Don't define here.  Move to...
71739         * lib/fchownat.c: ...this new file.
71740
71741 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71742
71743         Fix bug reported by Bruno Haible in
71744         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71745         where quotearg.c didn't compile on Mac OS X 10.2 because it
71746         lacks <wchar.h> and wint_t.
71747         * lib/wctype_.h (__wctype_wint_t): New type.
71748         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71749         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71750         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71751         Arg is now of type __wctype_wint_t, not wint_t.
71752         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71753         substitute HAVE_WINT_T.
71754         * modules/wctype (Files): Add m4/wint_t.m4.
71755         (wctype.h): Substitute HAVE_WINT_T.
71756
71757 2006-12-23  Bruno Haible  <bruno@clisp.org>
71758
71759         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71760
71761 2006-12-23  Bruno Haible  <bruno@clisp.org>
71762
71763         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71764         S_ISLNK.
71765         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71766         mingw.
71767
71768 2006-12-22  Bruno Haible  <bruno@clisp.org>
71769
71770         * lib/copy-file.c: Include acl.h.
71771         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71772         Close the file descriptors only after being done with copy_acl.
71773         * modules/copy-file (Depends-on): Add acl.
71774
71775 2006-12-22  Bruno Haible  <bruno@clisp.org>
71776
71777         * gnulib-tool (SED): New variable.
71778         Use $SED instead of sed everywhere.
71779
71780 2006-12-22  Bruno Haible  <bruno@clisp.org>
71781
71782         * modules/no-c++: New file.
71783         * m4/no-c++.m4: New file.
71784         * MODULES.html.sh (Support for building libraries and executables):
71785         Add no-c++.
71786
71787 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71788
71789         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71790         Include <limits.h>, and use its INT_MAX to rewrite the
71791         j loop so that it does not overflow 'int'.  Problem reported by
71792         Ralf Wildenhues in
71793         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71794         Play it safe by shifting left by 1 rather than multiplying by 2,
71795         as GCC is less likely to optimize this away when the value
71796         is signed (when it assumes overflow leads to undefined behavior).
71797         Also, don't assume time_t uses two's complement.
71798
71799 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71800
71801         * MODULES.html.sh: New module wctype.
71802         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71803         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71804         <wctype.h>, since the new wctype module should fix this.
71805         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71806         the wctype module should arrange for it.
71807         * lib/regex_internal.h: Likewise.
71808         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71809         since the wctype module should handle this now.
71810         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71811         * modules/fnmatch (Depends-on): Add wctype.
71812         * modules/quotearg (Depends-on): Likewise.
71813         * modules/regex (Depends-on): Likewise.
71814
71815 2006-12-19  Bruno Haible  <bruno@clisp.org>
71816
71817         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71818         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71819
71820 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71821
71822         * modules/savewd (Depends-on): Fix dependency on fcntl.
71823
71824 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71825
71826         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71827         conforms to C99, rather than relying on the user's environment
71828         setting of STDINT_H.
71829
71830 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71831         and Eric Blake  <ebb9@byu.net>
71832
71833         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71834         This is more consistent with the other defines here.
71835         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71836         Port to z/OS.  Problem reported by Paul Gilmartin.
71837         Change local vars to use gl_ prefix rather than ac_.
71838         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71839         with other defines.
71840         * modules/double-slash-root: New module.
71841         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71842         (Depends-on): Add double-slash-root.
71843         * MODULES.html.sh (File system functions): Mention new module.
71844
71845 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71846
71847         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71848         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71849         This is for the benefit of gzip, which doesn't do i18n.
71850
71851 2006-12-12  Jim Meyering  <jim@meyering.net>
71852
71853         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71854         Reported by Andreas Schwab <schwab@suse.de>.
71855
71856 2006-12-12  Bruno Haible  <bruno@clisp.org>
71857
71858         Merge these changes.
71859         2006-09-05  Bruno Haible  <bruno@clisp.org>
71860         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71861         iconv_alloc succeeded.
71862         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71863         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71864         test for " && dest " at the end - dest is always != NULL there. Call
71865         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71866         with 2xNULL arguments, also to flush the state storage. Handle the
71867         IRIX iconv behaviour. Realloc the final result, to throw away unused
71868         memory.
71869
71870 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71871
71872         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71873         and fchmodat unconditionally, since glibc 2.4 has them.
71874         Problem reported by Arkadiusz Miskiewicz.
71875
71876 2006-12-10  Bruno Haible  <bruno@clisp.org>
71877
71878         * gnulib-tool (func_import): Show the include files only for those
71879         modules that are copied and specified.
71880         Reported by Karl Berry.
71881
71882 2006-12-08  Jim Meyering  <jim@meyering.net>
71883
71884         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71885         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71886
71887         * build-aux/announce-gen: Add two new options, both optional:
71888         --bootstrap-tools=TOOL_LIST
71889               a comma-separated list of tools, e.g.,
71890               autoconf,automake,bison,gnulib
71891         --gnulib-snapshot-date=DATE
71892               if gnulib is in the bootstrap tool list,
71893               then report this as the snapshot date.
71894               If not specified, use the current date/time.
71895               If you specify a date here, be sure it's UTC.
71896
71897 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71898
71899         * tests/test-argp-2.sh: Fix test to match actual output.
71900         (func_compare): Fix sed script to be portable.
71901
71902 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71903
71904         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71905         workaround for this case.  It is not autoconfigured now; offhand
71906         it's hard to see how to autoconfigure it.
71907
71908 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71909
71910         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71911         a directory that is about to be chowned.  Such a directory's
71912         initial file permissions should permit the owner only and this
71913         should not be changed until after the chown, since the group and
71914         other bits would be incorrect if they granted permission before
71915         the chown.
71916
71917         Fix porting problem for iswctype reported by Georg Schwarz in:
71918         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71919         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71920         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71921         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71922         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71923
71924 2006-12-03  Jim Meyering  <jim@meyering.net>
71925
71926         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71927         p->fts_statp may not yet be defined.
71928         (fts_read): Instead, set it in the caller, once p->fts_statp is
71929         sure to be defined, and corresponds to a top-level directory.
71930         This bug made du -x fail.  Here's the coreutils test case:
71931         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71932         Reported by Mike Frysinger.
71933
71934 2006-12-01  Jim Meyering  <jim@meyering.net>
71935
71936         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71937         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71938         Reported by Simon Josefsson.
71939
71940 2006-11-30  Jim Meyering  <jim@meyering.net>
71941
71942         * m4/warning.m4: Use the all-permissive copyright notice
71943         recommended by RMS (rather than LGPL).
71944         * m4/vararrays.m4: Likewise.
71945         * m4/flexmember.m4: Likewise.
71946
71947 2006-11-29  Bruno Haible  <bruno@clisp.org>
71948
71949         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71950         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71951         using +=.
71952         Reported by Simon Josefsson <simon@josefsson.org>.
71953
71954 2006-11-28  James Youngman <jay@gnu.org>
71955
71956         * README: Advise users that they might find the bug-gnulib@gnu.org
71957         and autotools-announce@gnu.org mailing lists useful.
71958
71959 2006-11-28  Bruno Haible  <bruno@clisp.org>
71960
71961         * m4/ptrdiff_max.m4: Remove file.
71962
71963 2006-11-21  Bruno Haible  <bruno@clisp.org>
71964
71965         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71966         _AC_COMPUTE_INT.
71967         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71968         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71969         _AC_COMPUTE_INT.
71970         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71971         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71972         _AC_COMPUTE_INT.
71973         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71974
71975 2006-11-28  Jim Meyering  <jim@meyering.net>
71976
71977         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71978         warning from "gcc -Wshadow" about shadowing the builtin.
71979
71980 2006-11-27  Bruno Haible  <bruno@clisp.org>
71981
71982         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71983         _AC_COMPUTE_INT.
71984         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71985
71986 2006-11-27  Bruno Haible  <bruno@clisp.org>
71987             Paul Eggert  <eggert@cs.ucla.edu>
71988
71989         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71990
71991 2006-11-26  Bruno Haible  <bruno@clisp.org>
71992
71993         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71994         noinst_LTLIBRARIES.
71995
71996 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71997             Bruno Haible  <bruno@clisp.org>
71998
71999         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
72000         if compiling with "gcc -ansi".
72001
72002 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
72003
72004         Fix some incompatibilities with gcc -ansi -pedantic.
72005         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
72006         if compiling pedantically with GCC, unless it's C99 or later.
72007         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
72008         it mishandles gcc -ansi -pedantic as well.
72009         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
72010         if gcc -pedantic.
72011         * lib/regexec.c (check_node_accept_bytes): Don't use auto
72012         initializers for struct if -pedantic, unless it's C99 or later.
72013
72014 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
72015
72016         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
72017         Don't close an fd more than once. Identical atimes indicate
72018         success, not failure.
72019
72020 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
72021
72022         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
72023
72024 2006-11-23  Jim Meyering  <jim@meyering.net>
72025
72026         * build-aux/announce-gen: New file.  From coreutils.
72027
72028 2006-11-22  Jim Meyering  <jim@meyering.net>
72029
72030         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
72031         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
72032         (fts_read): Use a temporary to narrow the overused st_size member
72033         before using it in a switch statement.  Reported by Matthew Woehlke.
72034
72035         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
72036         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
72037
72038 2006-11-20  Bruno Haible  <bruno@clisp.org>
72039
72040         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
72041         changequote instead of pairs of brackets.
72042         Reported by Andreas Schwab <schwab@suse.de>.
72043
72044 2006-11-21  Jim Meyering  <jim@meyering.net>
72045
72046         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
72047         so as to remain compatible with older compilers.
72048         Patch from Michael Deutschmann.
72049
72050 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72051
72052         * MODULES.html.sh (File system functions): Add openat.
72053
72054         * lib/openat.h (rpl_fstatat): New macro, if
72055         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
72056         (fstatat): Define to rpl_fstatat under the same conditions,
72057         unless COMPILING_FSTATAT.
72058         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
72059         seems to have the bug.
72060         * lib/fstatat.c: New file.
72061         * modules/openat (Files): Add it.
72062
72063 2006-11-20  Bruno Haible  <bruno@clisp.org>
72064
72065         * Makefile: New file.
72066
72067 2006-11-20  Jim Meyering  <jim@meyering.net>
72068
72069         The beginnings of syntax-related checks for gnulib.
72070         * lib/Makefile: New file.
72071         * lib/t-idcache: New script.  Ensure that the two halves of
72072         idcache.c stay in sync.
72073
72074         * lib/idcache.c: Adjust comments in user- and group- portions to
72075         be more accurate, and to be consistent with one another.
72076
72077 2006-11-20  Jim Meyering  <jim@meyering.net>
72078
72079         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
72080         continue using the flexible array member (thus, this module performs
72081         half as many malloc calls), with the addition that...
72082         (getgroup, getuser): Consistently record a non-match via an empty
72083         "name" string, and map an empty string match to a NULL return value.
72084         * modules/idcache (Depends-on): Re-add flexmember.
72085
72086         * lib/idcache.c (getuser): Remove all uses of the register keyword.
72087         (getuidbyname, getgroup, getgidbyname): Likewise.
72088
72089         Use cleaner syntax: NULL rather than 0.
72090         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
72091
72092 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
72093
72094         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
72095         It mishandled the case where the group was missing.
72096         Problem reported by Greg Schafer.
72097         * modules/idcache: Likewise.
72098
72099 2006-11-18  Jim Meyering  <jim@meyering.net>
72100
72101         * check-module (%exempt_header): Add exception for some
72102         conditionally-included headers.
72103
72104         * modules/i-ring (Depends-on): Add verify.
72105         (License): Change to LGPL.
72106
72107 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
72108
72109         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
72110         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
72111         and inttostr.h.  Use snprintf rather than uinttostr, so that
72112         LGPLed code doesn't depend on GPLed.
72113
72114 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
72115
72116         * modules/inline (License): Change from GPL to LGPL.
72117
72118 2006-11-17  Jim Meyering  <jim@meyering.net>
72119
72120         * modules/d-type (License): Switch to LGPL.
72121
72122 2006-11-15  Bruno Haible  <bruno@clisp.org>
72123
72124         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
72125
72126 2006-11-15  Eric Blake  <ebb9@byu.net>
72127
72128         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
72129         the module dependency.
72130
72131 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72132             Bruno Haible  <bruno@clisp.org>
72133
72134         * gnulib-tool (func_create_testdir): Add license consistency check.
72135
72136 2006-11-15  Eric Blake  <ebb9@byu.net>
72137
72138         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
72139         random "(cached)" in configure output.
72140
72141 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72142
72143         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
72144         test for conforming inttypes.h is both announced and cached.
72145
72146         * MODULES.html.sh (seen_modules, seen_files): New variables.
72147         (func_module): Rewrite to use a few less gnulib-tool and sed
72148         invocations.  Avoid a couple of quadratic algorithms for ...
72149         (missed_modules, missed_files): ... these, with ...
72150         (func_append, func_tmpdir): ... these new functions, from
72151         gnulib-tool.  Analogously, install traps for cleanup.
72152
72153         * tests/test-gc.c (main): Remove unused variables.
72154         * tests/test-read-file.c: Include stdlib.h, for 'free'.
72155
72156 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
72157
72158         * modules/inttostr (License): Change to LGPL.
72159
72160 2006-11-14  Eric Blake  <ebb9@byu.net>
72161
72162         * modules/tempname (License): Change to LGPL.
72163
72164 2006-11-14  Eric Blake  <ebb9@byu.net>
72165
72166         * doc/functions.texi (Function Portability): *printf functions on
72167         Cygwin now understand all POSIX size specifiers.
72168
72169 2006-11-14  Bruno Haible  <bruno@clisp.org>
72170
72171         * modules/c-ctype (License): Change to LGPL.
72172
72173 2006-11-12  Bruno Haible  <bruno@clisp.org>
72174
72175         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
72176         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
72177         for GNOME libraries, for which the include files are installed in
72178         subdirectories of $prefix/include.
72179
72180 2006-11-12  Bruno Haible  <bruno@clisp.org>
72181
72182         * m4/lib-link.m4: Require at least autoconf-2.54.
72183         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
72184         name to underscores for the --with option.
72185
72186 2006-11-13  Bruno Haible  <bruno@clisp.org>
72187
72188         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
72189         the tests directory.
72190         Reported by Ralf Wildenhues.
72191
72192 2006-11-13  Bruno Haible  <bruno@clisp.org>
72193
72194         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
72195         (func_emit_initmacro_end): Undo the override here.
72196         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
72197         Works around the famous automake error in coreutils.
72198
72199 2006-11-13  Eric Blake  <ebb9@byu.net>
72200
72201         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
72202         element, not its node.
72203
72204 2006-11-12  Bruno Haible  <bruno@clisp.org>
72205
72206         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
72207         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
72208
72209 2006-11-12  Bruno Haible  <bruno@clisp.org>
72210
72211         * gnulib-tool: New option --local-symlink.
72212         (func_usage): Document it.
72213         (lsymbolic): New variable.
72214         (func_import, func_create_testdir): If --symlink was not specified,
72215         test whether --local-symlink was specified and the file comes from
72216         the local_gnulib_dir.
72217
72218 2006-11-12  Bruno Haible  <bruno@clisp.org>
72219
72220         * gnulib-tool (func_ln): New function.
72221         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
72222
72223 2006-11-12  Bruno Haible  <bruno@clisp.org>
72224
72225         Finish support for source files in subdirectories.
72226         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
72227         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
72228         AUTOMAKE_OPTIONS.
72229         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
72230
72231 2006-11-12  Bruno Haible  <bruno@clisp.org>
72232
72233         * gnulib-tool (func_get_automake_snippet): Synthesize also an
72234         EXTRA_lib_SOURCES augmentation.
72235         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
72236
72237 2006-11-12  Jim Meyering  <jim@meyering.net>
72238
72239         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
72240         file descriptors.  This also averts a failure on systems with
72241         native openat support when a traversed directory lacks "x" access.
72242         * lib/fts_.h: Include "i-ring.h"
72243         (struct FTS) [fts_fd_ring]: New member.
72244         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
72245         (FCHDIR): Add parentheses.
72246         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
72247         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
72248         When descending, rather than simply closing the previous
72249         fts_cwd_fd value, push that file descriptor onto the ring.
72250         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
72251         (fts_open): Initialize the new fd_ring member.
72252         (fts_close): Clear the ring.
72253         (fts_safe_changedir): When possible, use our new fd_ring to skip
72254         the diropen and fstat and dev/ino comparison that would normally
72255         accompany a virtual `chdir ("..")'.
72256
72257         * modules/fts (Depends-on): Add i-ring.
72258         * modules/i-ring: New module.
72259         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
72260         * m4/i-ring.m4: New file.
72261
72262 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72263
72264         * gnulib-tool (func_create_testdir): Fix replacement of
72265         `build-aux' in configure.ac.  Run autotools in gltests
72266         subdirectory.
72267         (func_create_testdir, func_create_megatestdir, test): There is
72268         no need for '--force' in most autotool invocations in a new
72269         tree.  Actually fail the whole test if any of the tools, or the
72270         configure or make stages fail.
72271
72272         Sync from Automake.
72273         * build-aux/gnupload: Revert last change.  Add pointer to upload
72274         instructions of the GNU Maintenance Instructions.
72275         Suggestion by Karl Berry.
72276
72277 2006-11-10  Jim Meyering  <jim@meyering.net>
72278
72279         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
72280
72281 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72282
72283         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
72284         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
72285         (bind_textdomain_codeset) [! ENABLE_NLS]:
72286         Evaluate all the arguments.  That way, callers get compatible behavior
72287         if the arguments have side effects.  Also, it avoids some GCC
72288         diagnostics in some cases; Joel E. Denny reported problems when Bison
72289         was configured with --enable-gcc-warnigs.
72290
72291 2006-11-10  Jim Meyering  <jim@meyering.net>
72292
72293         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
72294         relevant options in CFLAGS (like -O, -fno-inline) are taken into
72295         account.
72296
72297 2006-11-10  Jim Meyering  <jim@meyering.net>
72298
72299         * modules/inline: New file/module.
72300         * modules/xalloc (Files): Remove m4/inline.m4.
72301         (Depends-on): Add inline, instead.
72302         * modules/oset: Likewise.
72303         * modules/list: Likewise.
72304
72305 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
72306
72307         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
72308         Problem reported by Matthew Woehlke.
72309
72310 2006-11-09  Bruno Haible  <bruno@clisp.org>
72311
72312         * lib/tempname.c (gen_tempname): Remove variant that invokes
72313         __gen_tempname.
72314         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72315         __gen_tempname.
72316
72317 2006-11-08  Bruno Haible  <bruno@clisp.org>
72318
72319         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72320         to 'yes' instead of 'cross-compiling'.
72321
72322 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72323
72324         * lib/quotearg.h (quotearg_free): New decl.
72325         * lib/quotearg.c (quotearg_free): New function.
72326         (slot0, nslots, slotvec0, slotvec):
72327         Now file-scope so that quotearg_free can get at them.
72328
72329 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72330
72331         Sync from Automake.
72332         * build-aux/gnupload: Add missing 'gnu' to example URL.
72333         Report by Karl Berry.
72334
72335 2006-11-08  Bruno Haible  <bruno@clisp.org>
72336
72337         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72338         Suggested by Paul Eggert.
72339
72340 2006-11-08  Jim Meyering  <jim@meyering.net>
72341
72342         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72343         It's already included if !_LIBC.
72344         (fts_safe_changedir): Add a comment.
72345
72346 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72347
72348         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72349         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72350         Matthew Woehlke.
72351
72352         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72353         definitions up, to avoid colliding with change below.
72354         (static_inline) [HAVE_INLINE]: New macro.
72355         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72356         Provide extern decls when !HAVE_INLINE.  Do not define unless
72357         static_inline is defined, either by us or by xmalloc.c.  Use
72358         static_inline rather than static inline.
72359         (XCALLOC): Optimize sizeof(T) = 1 case.
72360         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72361
72362 2006-11-07  Bruno Haible  <bruno@clisp.org>
72363
72364         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72365         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72366         AC_C_INLINE.
72367         * modules/xalloc (Files): Add m4/inline.m4.
72368
72369 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72370
72371         * README: Fix typo.
72372         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72373         (Miscellanous Notes): ...from this.
72374
72375 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72376
72377         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72378         Mention that offsetof should be used instead of sizeof.
72379         From Bruno Haible.
72380
72381 2006-11-07  Bruno Haible  <bruno@clisp.org>
72382
72383         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72384
72385 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72386
72387         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72388         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72389         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72390         (gl_tree_add_before, gl_tree_add_after):
72391         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72392         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72393         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72394         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72395         (gl_linked_add_after, gl_linked_add_at): Likewise.
72396         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72397         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72398         (gl_tree_add_before, gl_tree_add_after): Likewise.
72399         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72400         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72401         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72402
72403 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72404
72405         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72406
72407 2006-11-06  Bruno Haible  <bruno@clisp.org>
72408
72409         * m4/inline.m4: New file.
72410         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72411         * modules/list (Files): Add m4/inline.m4.
72412         * modules/oset (Files): Likewise.
72413
72414 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72415
72416         * lib/idcache.c: Include <stddef.h>, for offsetof.
72417         (struct userid.name): Change from char * to a flexible array member.
72418         All uses changed.
72419         * modules/idcache (Depends-on): Add flexmember.
72420
72421         * MODULES.html.sh (Core language properties): New module flexmember.
72422         * modules/flexmember, m4/flexmember.m4: New files.
72423
72424         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72425         inline functions that are identical with the old xnmalloc_inline,
72426         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72427         that we can avoid some unnecessary integer multiplications and
72428         divisions in the common case where the element size is known at
72429         compile time.
72430         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72431         needed.
72432         (xnboundedmalloc): Remove.
72433         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72434         arguments, for consistency with rest of this header.
72435         (xcharalloc): Rewrite using XNMALLOC.
72436         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72437         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72438         versions have been moved to lib/xalloc.h and renamed to be the
72439         non-*_inline versions.
72440         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72441         and xnrealloc functions, since those functions are now inline and
72442         now call us.
72443         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72444         renaming described above.
72445         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72446         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72447         captures the dependency in AC_C_INLINE.
72448
72449         New module canonicalize-lgpl, proposed by Charles Wilson in
72450         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72451         with a few small changes afterwards.
72452         * MODULES.html.sh (File system functions): New module
72453         canonicalize-lgpl.
72454         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72455         and canonicalize_file_name.
72456         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72457         * modules/canonicalize-lgpl: New files.
72458
72459 2006-11-05  Bruno Haible  <bruno@clisp.org>
72460
72461         * gnulib-tool (func_import, func_create_testdir): Create directories
72462         also for files in subdirectories of lib/.
72463
72464 2006-11-05  Bruno Haible  <bruno@clisp.org>
72465
72466         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72467         ANSI C compliant.
72468
72469 2006-11-03  Bruno Haible  <bruno@clisp.org>
72470
72471         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72472         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72473         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72474         (xnboundedmalloc): New inline function.
72475         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72476         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72477         xmalloc.
72478         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72479         xmalloc.
72480         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72481         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72482         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72483         xmalloc.
72484         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72485         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72486         xmalloc.
72487         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72488         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72489         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72490         xmalloc.
72491         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72492         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72493         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72494         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72495         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72496         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72497         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72498
72499 2006-11-03  Bruno Haible  <bruno@clisp.org>
72500
72501         * lib/c-ctype.h [C++]: Define functions without name mangling.
72502         * lib/fwriteerror.h [C++]: Likewise.
72503         * lib/gcd.h [C++]: Likewise.
72504         * lib/linebreak.h [C++]: Likewise.
72505
72506 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72507
72508         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72509         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72510         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72511         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72512         Check for functions and headers just once.
72513         Check for declaration of canonicalize_file_name.
72514         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72515
72516 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72517
72518         * gnulib-tool (func_import): Fix typo in actioncmd.
72519
72520 2006-11-02  Bruno Haible  <bruno@clisp.org>
72521
72522         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72523         newline sequence in the Makefile.am snippet as a space, like "make"
72524         does.
72525         Reported by Roger Persson <perrog@gmail.com>.
72526
72527 2006-11-01  Bruno Haible  <bruno@clisp.org>
72528
72529         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72530         already declared in <string.h>.
72531         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72532
72533 2006-11-01  Bruno Haible  <bruno@clisp.org>
72534
72535         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72536         * lib/strcase.h: Include <string.h>.
72537         (strcasecmp): Define to rpl_strcasecmp here.
72538
72539 2006-11-01  Bruno Haible  <bruno@clisp.org>
72540
72541         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72542
72543 2006-11-01  Eric Blake  <ebb9@byu.net>
72544
72545         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72546
72547         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72548
72549 2006-10-29  Bruno Haible  <bruno@clisp.org>
72550
72551         Make it compile in C++ mode.
72552         * lib/full-write.c (full_rw): Add a cast.
72553
72554 2006-11-01  Bruno Haible  <bruno@clisp.org>
72555
72556         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72557         be POSIX compliant.
72558         Reported by Roger Persson <perrog@gmail.com>.
72559
72560 2006-11-01  Eric Blake  <ebb9@byu.net>
72561
72562         * lib/getopt_.h: Fix comments.
72563
72564 2006-10-31  Eric Blake  <ebb9@byu.net>
72565
72566         * modules/tmpdir (Depends-on): Add sys_stat.
72567         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72568         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72569         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72570         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72571         tempname.
72572
72573 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72574
72575         Avoid some C++ diagnostics reported by Bruno Haible.
72576         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72577         xmalloc.
72578         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72579         (struct slotvec): Move to top level.
72580         (quotearg_n_options): Rewrite to avoid xmalloc.
72581         * lib/xalloc.h (xcharalloc): New function.
72582         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72583         [defined __cplusplus]: Add function template that provides result
72584         type propagation.  This part of the change is from Bruno Haible.
72585
72586 2006-10-29  Bruno Haible  <bruno@clisp.org>
72587
72588         Make it compile in C++ mode.
72589         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72590         * lib/strnlen1.c (strnlen1): Cast memchr result.
72591         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72592         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72593         (create_temp_dir): Rename local variable 'template'.
72594         (compile_csharp_using_sscli): Add cast.
72595         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72596         * lib/findprog.c (find_in_path): Likewise.
72597         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72598         * lib/wait-process.c (register_slave_subprocess): Likewise.
72599
72600 2006-10-22  Bruno Haible  <bruno@clisp.org>
72601
72602         * modules/tsearch: New file.
72603         * lib/tsearch.h: New file.
72604         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72605         * m4/tsearch.m4: New file.
72606         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72607
72608 2006-10-29  Eric Blake  <ebb9@byu.net>
72609
72610         * lib/arcfour.c: Assume config.h.
72611         * lib/arctwo.c: Likewise.
72612         * lib/base64.c: Likewise.
72613         * lib/check-version.c: Likewise.
72614         * lib/crc.c: Likewise.
72615         * lib/des.c: Likewise.
72616         * lib/gc-gnulib.c: Likewise.
72617         * lib/gc-libgcrypt.c: Likewise.
72618         * lib/gc-pbkdf2-sha1.c: Likewise.
72619         * lib/getaddrinfo.c: Likewise.
72620         * lib/getdelim.c: Likewise.
72621         * lib/getline.c: Likewise.
72622         * lib/hmac-md5.c: Likewise.
72623         * lib/hmac-sha1.c: Likewise.
72624         * lib/iconvme.c: Likewise.
72625         * lib/md2.c: Likewise.
72626         * lib/md4.c: Likewise.
72627         * lib/memxor.c: Likewise.
72628         * lib/read-file.c: Likewise.
72629         * lib/readline.c: Likewise.
72630         * lib/rijndael-alg-fst.c: Likewise.
72631         * lib/rijndael-api-fst.c: Likewise.
72632         * lib/xgetdomainname.c: Likewise.
72633
72634 2006-10-28  Eric Blake  <ebb9@byu.net>
72635
72636         * lib/xstrndup.c: Assume config.h.
72637
72638 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72639
72640         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72641         stat-macros.h is now for our own macros, whereas stat_h is for
72642         macros in the <sys/stat.h> name space.
72643         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72644         (STAT_MACROS_H): Remove.
72645         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72646         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72647         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72648         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72649         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72650         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72651         Move these macros to ...
72652         * lib/stat_.h: here.  Don't include stat-macros.h.
72653         * lib/canonicalize.c: Don't include stat-macros.h.
72654         * lib/chown.c: Likewise.
72655         * lib/euidaccess.c: Likewise.
72656         * lib/file-type.c: Likewise.
72657         * lib/filemode.c: Likewise.
72658         * lib/glob.c: Likewise.
72659         * lib/isapipe.c: Likewise.
72660         * lib/lchown.c: Likewise.
72661         * lib/lstat.c: Likewise.
72662         * lib/mkdir-p.c: Likewise.
72663         * lib/rmdir.c: Likewise.
72664         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72665         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72666         unless mkdir isn't declared, to speed up 'configure'.
72667         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72668         would define all the S_* symbols.
72669         * modules/canonicalize (Depends-on):
72670         Depend on sys_stat, not stat-macros.
72671         * modules/chown: Likewise.
72672         * modules/euidaccess: Likewise.
72673         * modules/filemode: Likewise.
72674         * modules/file-type: Likewise.
72675         * modules/glob: Likewise.
72676         * modules/isapipe: Likewise.
72677         * modules/lchown: Likewise.
72678         * modules/lstat: Likewise.
72679         * modules/mkancesdirs: Likewise.
72680         * modules/rmdir: Likewise.
72681         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72682         * modules/modechange: Likewise.
72683         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72684         (configure.ac): Remove gl_STAT_MACROS.
72685         * modules/sys_stat (Depends-on): Remove stat-macros.
72686
72687 2006-10-27  Bruno Haible  <bruno@clisp.org>
72688
72689         * m4/signed.m4: Remove file.
72690         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72691         invocation.
72692         * modules/vasnprintf (Files): Remove m4/signed.m4.
72693
72694 2006-10-27  Bruno Haible  <bruno@clisp.org>
72695
72696         Update to GNU gettext 0.16.
72697         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72698         m4/inttypes-h.m4, m4/signed.m4.
72699         * m4/gettext.m4: Update to GNU gettext 0.16.
72700         * m4/intl.m4: New file, from GNU gettext.
72701         * m4/intldir.m4: New file, from GNU gettext.
72702         * config/srclist.txt: Update
72703
72704 2006-10-27  Eric Blake  <ebb9@byu.net>
72705
72706         * MODULES.html.sh: Document tempname.
72707         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72708         dependencies.
72709         (Files): Move lib/tempname.c...
72710         * modules/tempname: ...to this new module.
72711         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72712         (gl_PREREQ_TEMPNAME): Move...
72713         * m4/tempname.m4: ...to this new file.
72714         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72715         * modules/sys_stat (Depends-on): Add stat-macros.
72716         * lib/stat_.h (includes): Pick up stat macros.
72717         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72718         if stat macros are broken.
72719         * lib/tempname.c (includes): No need to include "stat-macros.h".
72720         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72721         (direxists, __path_search) [!_LIBC]: Don't compile these in
72722         gnulib; the tmpdir module covers that.
72723         * lib/tempname.h: New file.
72724
72725 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72726
72727         * COPYING: Explain how gnulib-tool converts licence headers.
72728         Almost all wording by Eric Blake.
72729
72730 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72731
72732         * lib/mbchar.h (is_basic_table): Make read-only.
72733         * lib/mbchar.c (is_basic_table): Likewise.
72734         Reported by John Darrington.
72735
72736 2006-10-25  Bruno Haible  <bruno@clisp.org>
72737
72738         * lib/progname.h (set_program_name): Undefine before defining.
72739
72740 2006-10-25  Bruno Haible  <bruno@clisp.org>
72741
72742         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72743         false for non-gcc C++ compilers.
72744         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72745
72746 2006-10-24  Bruno Haible  <bruno@clisp.org>
72747
72748         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72749         iconv implementations like Irix iconv.
72750
72751 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72752
72753         * modules/vararrays: New file.
72754         * m4/vararrays.m4: New file, taken from diffutils.
72755         * MODULES.html.sh: New module vararrays.
72756
72757 2006-10-24  Karl Berry  <karl@gnu.org>
72758
72759         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72760         Don't call GNU Unix.
72761
72762 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72763
72764         * users.txt: Add Libtool.
72765
72766         Sync from Libtool:
72767
72768         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72769
72770         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72771         to gnulib's policy of including config.h unconditionally.
72772
72773 2006-10-24  Bruno Haible  <bruno@clisp.org>
72774
72775         * modules/wcwidth (Files): Add m4/wint_t.m4.
72776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72777         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72778
72779 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72780
72781         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72782         to pacify GCC with some -W flags enabled.  Problem reported by
72783         Bruno Haible.
72784
72785 2006-10-24  Jim Meyering  <jim@meyering.net>
72786
72787         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72788         Reported by Karl Berry.
72789
72790 2006-10-23  Bruno Haible  <bruno@clisp.org>
72791
72792         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72793
72794 2006-10-24  Bruno Haible  <bruno@clisp.org>
72795
72796         * lib/gl_list.h: Use C comment style, not C++ comment style.
72797
72798 2006-10-23  Eric Blake  <ebb9@byu.net>
72799
72800         * lib/getaddrinfo.c (includes): Add missing include.
72801
72802 2006-10-23  Bruno Haible  <bruno@clisp.org>
72803             Paul Eggert  <eggert@cs.ucla.edu>
72804
72805         Ability to rename obstack_free.
72806         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72807         obstack_free.
72808         (obstack_free): Invoke the __obstack_free macro.
72809         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72810
72811 2006-10-23  Bruno Haible  <bruno@clisp.org>
72812             Paul Eggert  <eggert@cs.ucla.edu>
72813
72814         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72815         __argc, __argv from the declaration. (They are defined as macros on
72816         mingw.)
72817
72818 2006-10-22  Bruno Haible  <bruno@clisp.org>
72819
72820         * doc/gnulib-intro.texi: New file.
72821         * doc/gnulib.texi: Include it.
72822
72823 2006-10-21  Bruno Haible  <bruno@clisp.org>
72824
72825         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72826         "Introduction", "Miscellanous Notes", "Particular Modules".
72827
72828 2006-10-21  Bruno Haible  <bruno@clisp.org>
72829
72830         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72831         Change mostlyclean-local rule to avoid sh syntax error from bash
72832         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72833
72834 2006-10-23  Jim Meyering  <jim@meyering.net>
72835
72836         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72837         in place of snprintf.
72838
72839         * modules/inttostr (Files): Add lib/uinttostr.c.
72840         * lib/uinttostr.c (inttostr): New file/function.
72841         * lib/inttostr.h (uinttostr): Declare.
72842         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72843         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72844         Add uinttostr.
72845         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72846
72847 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72848
72849         * lib/canonicalize.c (ELOOP): Define if not already defined.
72850         Problem reported by Bruno Haible in
72851         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72852
72853 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72854
72855         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72856         Problem reported by Perry Smith and Ville Laurikari.
72857
72858         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72859         uses.
72860
72861 2006-10-19  Bruno Haible  <bruno@clisp.org>
72862
72863         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72864         for mingw.
72865
72866 2006-10-19  Bruno Haible  <bruno@clisp.org>
72867
72868         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72869         Needed for mingw.
72870
72871 2006-10-19  Bruno Haible  <bruno@clisp.org>
72872
72873         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72874
72875 2006-10-19  Bruno Haible  <bruno@clisp.org>
72876
72877         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72878         it.
72879
72880 2006-10-19  Bruno Haible  <bruno@clisp.org>
72881
72882         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72883         invocation.
72884
72885 2006-10-19  Bruno Haible  <bruno@clisp.org>
72886
72887         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72888         mountlist by default.
72889
72890 2006-10-16  Bruno Haible  <bruno@clisp.org>
72891
72892         * lib/c-strstr.c: Include c-strstr.h.
72893
72894 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72895
72896         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72897         in a slash.
72898
72899 2006-10-18  Bruno Haible  <bruno@clisp.org>
72900
72901         * lib/lock.h [C++]: Wrap definitions in extern "C".
72902
72903 2006-10-18  Bruno Haible  <bruno@clisp.org>
72904
72905         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72906         gl_LIBOBJS list.
72907
72908 2006-10-18  Bruno Haible  <bruno@clisp.org>
72909
72910         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72911
72912 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72913
72914         * lib/xstrtol.h: Include gettext.h.
72915         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72916         Problem reported by Eric Blake.
72917         * modules/xstrtol (Depends-on): Add gettext-h.
72918
72919 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72920
72921         * lib/strftime.c (advance): New macro.
72922         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72923         incomplete type, so you can't add 0 to it.  Problem and patch
72924         reported by Eelco Dolstra for dietlibc.
72925
72926 2006-10-18  Jim Meyering  <jim@meyering.net>
72927
72928         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72929         type for a local, and rename it: s/up/user_proc/.
72930
72931 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72932
72933         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72934         READ_UTMP_USER_PROCESS.
72935         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72936
72937 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72938
72939         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72940         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72941
72942 2006-10-17  Eric Blake  <ebb9@byu.net>
72943
72944         * lib/sigprocmask.c (sigprocmask): Fix typo.
72945
72946         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72947
72948         * modules/clean-temp (Makefile.am): Don't add to make output...
72949         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72950         config.h.
72951
72952 2006-10-17  Bruno Haible  <bruno@clisp.org>
72953
72954         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72955         differently if DEFAULT_TEXT_DOMAIN is set.
72956
72957 2006-10-16  Bruno Haible  <bruno@clisp.org>
72958
72959         * lib/clean-temp.c: Include fwriteerror.h.
72960
72961 2006-10-16  Bruno Haible  <bruno@clisp.org>
72962
72963         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72964
72965 2006-10-16  Bruno Haible  <bruno@clisp.org>
72966
72967         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72968         * lib/sigprocmask.h: Include <sys/types.h>.
72969         (sigset_t): Use the system's definition if present.
72970
72971 2006-10-17  Eric Blake  <ebb9@byu.net>
72972
72973         * lib/xvasprintf.c (includes): Assume config.h.
72974         * lib/xasprintf.c (includes): Likewise.
72975
72976 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72977
72978         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72979         at least as wide as intmax_t.
72980
72981 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72982
72983         (Imported from Automake.)
72984         * build-aux/gnupload: Update to version 1.1 of directive file.
72985
72986 2006-10-16  Eric Blake  <ebb9@byu.net>
72987
72988         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72989         match Automake 1.10a.
72990
72991 2006-10-14  Bruno Haible  <bruno@clisp.org>
72992
72993         * modules/sigprocmask: New file.
72994         * lib/sigprocmask.h: New file.
72995         * lib/sigprocmask.c: New file.
72996         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72997         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72998         request sigprocmask.o.
72999         (gl_PREREQ_SIGPROCMASK): New macro.
73000         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
73001         (Depends-on): Add sigprocmask.
73002         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
73003         gt_SIGNALBLOCKING. Test for 'raise' only once.
73004         * lib/fatal-signal.c: Include sigprocmask.h.
73005         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
73006         unblock_fatal_signals): Define always.
73007         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73008         sigprocmask.
73009
73010 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
73011
73012         Sync from Automake.
73013         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
73014         which incorrectly sets the mode of an existing destination
73015         directory.  In some cases the unpatched install-sh could do the
73016         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
73017         system.  We hope this is rare in practice, but it's clearly worth
73018         fixing.  Problem reported by Alex Unleashed in
73019         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
73020         Also, don't bother to check for -m bugs unless we're using -m;
73021         suggested by Stepan Kasal.
73022
73023 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73024
73025         Sync from Automake.
73026         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
73027         `-c' flag, so they appear at the same position as in %FASTDEP%
73028         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
73029         which ignores unknown options only after the first non-option.
73030         Bug report against M4 by Nelson H. F. Beebe.
73031
73032 2006-10-13  Jim Meyering  <jim@meyering.net>
73033
73034         Fix a bug in yesterday's change.
73035         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
73036         p->fts_statp->st_dev would be used uninitialized.
73037         Ensures that we always call fts_stat on the very first entry.
73038         Miklos Szeredi reported that find -xdev stopped working.
73039
73040 2006-10-12  Bruno Haible  <bruno@clisp.org>
73041
73042         * gnulib-tool (func_get_automake_snippet): Append an automatically
73043         computed EXTRA_DIST augmentation.
73044         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
73045         * modules/alloca-opt (Makefile.am): Likewise.
73046         * modules/allocsa (Makefile.am): Likewise.
73047         * modules/arcfour (Makefile.am): Likewise.
73048         * modules/arctwo (Makefile.am): Likewise.
73049         * modules/argmatch (Makefile.am): Likewise.
73050         * modules/argz (Makefile.am): Likewise.
73051         * modules/atexit (Makefile.am): Likewise.
73052         * modules/backupfile (Makefile.am): Likewise.
73053         * modules/byteswap (Makefile.am): Likewise.
73054         * modules/c-strtod (Makefile.am): Likewise.
73055         * modules/c-strtold (Makefile.am): Likewise.
73056         * modules/calloc (Makefile.am): Likewise.
73057         * modules/canon-host (Makefile.am): Likewise.
73058         * modules/canonicalize (Makefile.am): Likewise.
73059         * modules/chdir-long (Makefile.am): Likewise.
73060         * modules/chdir-safer (Makefile.am): Likewise.
73061         * modules/check-version (Makefile.am): Likewise.
73062         * modules/chown (Makefile.am): Likewise.
73063         * modules/cloexec (Makefile.am): Likewise.
73064         * modules/close-stream (Makefile.am): Likewise.
73065         * modules/closeout (Makefile.am): Likewise.
73066         * modules/crc (Makefile.am): Likewise.
73067         * modules/csharpexec (Makefile.am): Likewise.
73068         * modules/cycle-check (Makefile.am): Likewise.
73069         * modules/des (Makefile.am): Likewise.
73070         * modules/dev-ino (Makefile.am): Likewise.
73071         * modules/dirfd (Makefile.am): Likewise.
73072         * modules/dirname (Makefile.am): Likewise.
73073         * modules/dup2 (Makefile.am): Likewise.
73074         * modules/eealloc (Makefile.am): Likewise.
73075         * modules/error (Makefile.am): Likewise.
73076         * modules/euidaccess (Makefile.am): Likewise.
73077         * modules/exclude (Makefile.am): Likewise.
73078         * modules/exitfail (Makefile.am): Likewise.
73079         * modules/fcntl-safer (Makefile.am): Likewise.
73080         * modules/fcntl (Makefile.am): Likewise.
73081         * modules/file-type (Makefile.am): Likewise.
73082         * modules/fileblocks (Makefile.am): Likewise.
73083         * modules/filemode (Makefile.am): Likewise.
73084         * modules/filenamecat (Makefile.am): Likewise.
73085         * modules/fnmatch (Makefile.am): Likewise.
73086         * modules/fopen-safer (Makefile.am): Likewise.
73087         * modules/fpending (Makefile.am): Likewise.
73088         * modules/fprintftime (Makefile.am): Likewise.
73089         * modules/free (Makefile.am): Likewise.
73090         * modules/fsusage (Makefile.am): Likewise.
73091         * modules/ftruncate (Makefile.am): Likewise.
73092         * modules/fts (Makefile.am): Likewise.
73093         * modules/gc-arcfour (Makefile.am): Likewise.
73094         * modules/gc-des (Makefile.am): Likewise.
73095         * modules/gc-hmac-md5 (Makefile.am): Likewise.
73096         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
73097         * modules/gc-md4 (Makefile.am): Likewise.
73098         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73099         * modules/gc-sha1 (Makefile.am): Likewise.
73100         * modules/gc (Makefile.am): Likewise.
73101         * modules/getaddrinfo (Makefile.am): Likewise.
73102         * modules/getcwd (Makefile.am): Likewise.
73103         * modules/getdelim (Makefile.am): Likewise.
73104         * modules/getdomainname (Makefile.am): Likewise.
73105         * modules/getgroups (Makefile.am): Likewise.
73106         * modules/gethostname (Makefile.am): Likewise.
73107         * modules/gethrxtime (Makefile.am): Likewise.
73108         * modules/getline (Makefile.am): Likewise.
73109         * modules/getloadavg (Makefile.am): Likewise.
73110         * modules/getlogin_r (Makefile.am): Likewise.
73111         * modules/getndelim2 (Makefile.am): Likewise.
73112         * modules/getopt (Makefile.am): Likewise.
73113         * modules/getpagesize (Makefile.am): Likewise.
73114         * modules/getpass-gnu (Makefile.am): Likewise.
73115         * modules/getpass (Makefile.am): Likewise.
73116         * modules/getsubopt (Makefile.am): Likewise.
73117         * modules/gettime (Makefile.am): Likewise.
73118         * modules/gettimeofday (Makefile.am): Likewise.
73119         * modules/getugroups (Makefile.am): Likewise.
73120         * modules/getusershell (Makefile.am): Likewise.
73121         * modules/glob (Makefile.am): Likewise.
73122         * modules/group-member (Makefile.am): Likewise.
73123         * modules/hard-locale (Makefile.am): Likewise.
73124         * modules/hash (Makefile.am): Likewise.
73125         * modules/hmac-md5 (Makefile.am): Likewise.
73126         * modules/hmac-sha1 (Makefile.am): Likewise.
73127         * modules/human (Makefile.am): Likewise.
73128         * modules/idcache (Makefile.am): Likewise.
73129         * modules/imaxabs (Makefile.am): Likewise.
73130         * modules/imaxdiv (Makefile.am): Likewise.
73131         * modules/inet_ntop (Makefile.am): Likewise.
73132         * modules/inet_pton (Makefile.am): Likewise.
73133         * modules/intprops (Makefile.am): Likewise.
73134         * modules/inttostr (Makefile.am): Likewise.
73135         * modules/inttypes (Makefile.am): Likewise.
73136         * modules/isapipe (Makefile.am): Likewise.
73137         * modules/javaversion (Makefile.am): Likewise.
73138         * modules/lchmod (Makefile.am): Likewise.
73139         * modules/lchown (Makefile.am): Likewise.
73140         * modules/localcharset (Makefile.am): Likewise.
73141         * modules/long-options (Makefile.am): Likewise.
73142         * modules/lstat (Makefile.am): Likewise.
73143         * modules/malloc (Makefile.am): Likewise.
73144         * modules/mathl (Makefile.am): Likewise.
73145         * modules/mbchar (Makefile.am): Likewise.
73146         * modules/md2 (Makefile.am): Likewise.
73147         * modules/md4 (Makefile.am): Likewise.
73148         * modules/md5 (Makefile.am): Likewise.
73149         * modules/memcasecmp (Makefile.am): Likewise.
73150         * modules/memchr (Makefile.am): Likewise.
73151         * modules/memcmp (Makefile.am): Likewise.
73152         * modules/memcoll (Makefile.am): Likewise.
73153         * modules/memcpy (Makefile.am): Likewise.
73154         * modules/memmem (Makefile.am): Likewise.
73155         * modules/memmove (Makefile.am): Likewise.
73156         * modules/mempcpy (Makefile.am): Likewise.
73157         * modules/memrchr (Makefile.am): Likewise.
73158         * modules/memset (Makefile.am): Likewise.
73159         * modules/memxor (Makefile.am): Likewise.
73160         * modules/mkancesdirs (Makefile.am): Likewise.
73161         * modules/mkdir-p (Makefile.am): Likewise.
73162         * modules/mkdir (Makefile.am): Likewise.
73163         * modules/mkdtemp (Makefile.am): Likewise.
73164         * modules/mkstemp (Makefile.am): Likewise.
73165         * modules/mktime (Makefile.am): Likewise.
73166         * modules/modechange (Makefile.am): Likewise.
73167         * modules/mountlist (Makefile.am): Likewise.
73168         * modules/nanosleep (Makefile.am): Likewise.
73169         * modules/obstack (Makefile.am): Likewise.
73170         * modules/openat (Makefile.am): Likewise.
73171         * modules/pagealign_alloc (Makefile.am): Likewise.
73172         * modules/pathmax (Makefile.am): Likewise.
73173         * modules/physmem (Makefile.am): Likewise.
73174         * modules/poll (Makefile.am): Likewise.
73175         * modules/posixtm (Makefile.am): Likewise.
73176         * modules/posixver (Makefile.am): Likewise.
73177         * modules/putenv (Makefile.am): Likewise.
73178         * modules/quote (Makefile.am): Likewise.
73179         * modules/quotearg (Makefile.am): Likewise.
73180         * modules/raise (Makefile.am): Likewise.
73181         * modules/read-file (Makefile.am): Likewise.
73182         * modules/readline (Makefile.am): Likewise.
73183         * modules/readlink (Makefile.am): Likewise.
73184         * modules/readtokens (Makefile.am): Likewise.
73185         * modules/readutmp (Makefile.am): Likewise.
73186         * modules/realloc (Makefile.am): Likewise.
73187         * modules/regex (Makefile.am): Likewise.
73188         * modules/rename-dest-slash (Makefile.am): Likewise.
73189         * modules/rename (Makefile.am): Likewise.
73190         * modules/rijndael (Makefile.am): Likewise.
73191         * modules/rmdir (Makefile.am): Likewise.
73192         * modules/rpmatch (Makefile.am): Likewise.
73193         * modules/safe-read (Makefile.am): Likewise.
73194         * modules/safe-write (Makefile.am): Likewise.
73195         * modules/same-inode (Makefile.am): Likewise.
73196         * modules/same (Makefile.am): Likewise.
73197         * modules/save-cwd (Makefile.am): Likewise.
73198         * modules/savedir (Makefile.am): Likewise.
73199         * modules/setenv (Makefile.am): Likewise.
73200         * modules/settime (Makefile.am): Likewise.
73201         * modules/sha1 (Makefile.am): Likewise.
73202         * modules/sig2str (Makefile.am): Likewise.
73203         * modules/snprintf (Makefile.am): Likewise.
73204         * modules/stat-macros (Makefile.am): Likewise.
73205         * modules/stat-time (Makefile.am): Likewise.
73206         * modules/stdbool (Makefile.am): Likewise.
73207         * modules/stdint (Makefile.am): Likewise.
73208         * modules/stdlib-safer (Makefile.am): Likewise.
73209         * modules/stpcpy (Makefile.am): Likewise.
73210         * modules/stpncpy (Makefile.am): Likewise.
73211         * modules/strcase (Makefile.am): Likewise.
73212         * modules/strcasestr (Makefile.am): Likewise.
73213         * modules/strchrnul (Makefile.am): Likewise.
73214         * modules/strcspn (Makefile.am): Likewise.
73215         * modules/strdup (Makefile.am): Likewise.
73216         * modules/strerror (Makefile.am): Likewise.
73217         * modules/strftime (Makefile.am): Likewise.
73218         * modules/strndup (Makefile.am): Likewise.
73219         * modules/strnlen (Makefile.am): Likewise.
73220         * modules/strpbrk (Makefile.am): Likewise.
73221         * modules/strsep (Makefile.am): Likewise.
73222         * modules/strstr (Makefile.am): Likewise.
73223         * modules/strtod (Makefile.am): Likewise.
73224         * modules/strtoimax (Makefile.am): Likewise.
73225         * modules/strtok_r (Makefile.am): Likewise.
73226         * modules/strtol (Makefile.am): Likewise.
73227         * modules/strtoll (Makefile.am): Likewise.
73228         * modules/strtoul (Makefile.am): Likewise.
73229         * modules/strtoull (Makefile.am): Likewise.
73230         * modules/strtoumax (Makefile.am): Likewise.
73231         * modules/strverscmp (Makefile.am): Likewise.
73232         * modules/sys_socket (Makefile.am): Likewise.
73233         * modules/sys_stat (Makefile.am): Likewise.
73234         * modules/sysexits (Makefile.am): Likewise.
73235         * modules/time_r (Makefile.am): Likewise.
73236         * modules/timegm (Makefile.am): Likewise.
73237         * modules/timespec (Makefile.am): Likewise.
73238         * modules/tmpfile-safer (Makefile.am): Likewise.
73239         * modules/trim (Makefile.am): Likewise.
73240         * modules/unistd-safer (Makefile.am): Likewise.
73241         * modules/unlinkdir (Makefile.am): Likewise.
73242         * modules/unlocked-io (Makefile.am): Likewise.
73243         * modules/userspec (Makefile.am): Likewise.
73244         * modules/utime (Makefile.am): Likewise.
73245         * modules/utimecmp (Makefile.am): Likewise.
73246         * modules/utimens (Makefile.am): Likewise.
73247         * modules/vasnprintf (Makefile.am): Likewise.
73248         * modules/vasprintf (Makefile.am): Likewise.
73249         * modules/vsnprintf (Makefile.am): Likewise.
73250         * modules/xalloc (Makefile.am): Likewise.
73251         * modules/xgetcwd (Makefile.am): Likewise.
73252         * modules/xnanosleep (Makefile.am): Likewise.
73253         * modules/xreadlink (Makefile.am): Likewise.
73254         * modules/xstrtod (Makefile.am): Likewise.
73255         * modules/xstrtol (Makefile.am): Likewise.
73256         * modules/xstrtold (Makefile.am): Likewise.
73257         * modules/yesno (Makefile.am): Likewise.
73258         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
73259
73260 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73261
73262         * modules/error (Makefile.am): Distribute files through
73263         EXTRA_DIST, not lib_SOURCES.
73264
73265 2006-10-12  Eric Blake  <ebb9@byu.net>
73266
73267         * modules/error (Makefile.am): Distribute files in /lib.
73268         * modules/obstack (Makefile.am): Likewise.
73269
73270 2006-10-12  Bruno Haible  <bruno@clisp.org>
73271
73272         * modules/acl (Makefile.am): Distribute all files in lib/ through
73273         EXTRA_DIST.
73274         * modules/arcfour (Makefile.am): Likewise.
73275         * modules/arctwo (Makefile.am): Likewise.
73276         * modules/argmatch (Makefile.am): Likewise.
73277         * modules/argz (Makefile.am): Likewise.
73278         * modules/atexit (Makefile.am): Likewise.
73279         * modules/backupfile (Makefile.am): Likewise.
73280         * modules/c-strtod (Makefile.am): Likewise.
73281         * modules/c-strtold (Makefile.am): Likewise.
73282         * modules/calloc (Makefile.am): Likewise.
73283         * modules/canon-host (Makefile.am): Likewise.
73284         * modules/canonicalize (Makefile.am): Likewise.
73285         * modules/chdir-long (Makefile.am): Likewise.
73286         * modules/chdir-safer (Makefile.am): Likewise.
73287         * modules/check-version (Makefile.am): Likewise.
73288         * modules/chown (Makefile.am): Likewise.
73289         * modules/cloexec (Makefile.am): Likewise.
73290         * modules/close-stream (Makefile.am): Likewise.
73291         * modules/closeout (Makefile.am): Likewise.
73292         * modules/crc (Makefile.am): Likewise.
73293         * modules/cycle-check (Makefile.am): Likewise.
73294         * modules/des (Makefile.am): Likewise.
73295         * modules/dirfd (Makefile.am): Likewise.
73296         * modules/dirname (Makefile.am): Likewise.
73297         * modules/dup2 (Makefile.am): Likewise.
73298         * modules/euidaccess (Makefile.am): Likewise.
73299         * modules/exclude (Makefile.am): Likewise.
73300         * modules/exitfail (Makefile.am): Likewise.
73301         * modules/fcntl-safer (Makefile.am): Likewise.
73302         * modules/file-type (Makefile.am): Likewise.
73303         * modules/fileblocks (Makefile.am): Likewise.
73304         * modules/filemode (Makefile.am): Likewise.
73305         * modules/filenamecat (Makefile.am): Likewise.
73306         * modules/fnmatch (Makefile.am): Likewise.
73307         * modules/fopen-safer (Makefile.am): Likewise.
73308         * modules/fpending (Makefile.am): Likewise.
73309         * modules/fprintftime (Makefile.am): Likewise.
73310         * modules/free (Makefile.am): Likewise.
73311         * modules/fsusage (Makefile.am): Likewise.
73312         * modules/ftruncate (Makefile.am): Likewise.
73313         * modules/fts (Makefile.am): Likewise.
73314         * modules/gc (Makefile.am): Likewise.
73315         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73316         * modules/getaddrinfo (Makefile.am): Likewise.
73317         * modules/getcwd (Makefile.am): Likewise.
73318         * modules/getdelim (Makefile.am): Likewise.
73319         * modules/getdomainname (Makefile.am): Likewise.
73320         * modules/getgroups (Makefile.am): Likewise.
73321         * modules/gethostname (Makefile.am): Likewise.
73322         * modules/gethrxtime (Makefile.am): Likewise.
73323         * modules/getline (Makefile.am): Likewise.
73324         * modules/getloadavg (Makefile.am): Likewise.
73325         * modules/getlogin_r (Makefile.am): Likewise.
73326         * modules/getopt (Makefile.am): Likewise.
73327         * modules/getpass (Makefile.am): Likewise.
73328         * modules/getpass-gnu (Makefile.am): Likewise.
73329         * modules/getsubopt (Makefile.am): Likewise.
73330         * modules/gettime (Makefile.am): Likewise.
73331         * modules/gettimeofday (Makefile.am): Likewise.
73332         * modules/getugroups (Makefile.am): Likewise.
73333         * modules/getusershell (Makefile.am): Likewise.
73334         * modules/glob (Makefile.am): Likewise.
73335         * modules/group-member (Makefile.am): Likewise.
73336         * modules/hard-locale (Makefile.am): Likewise.
73337         * modules/hash (Makefile.am): Likewise.
73338         * modules/hmac-md5 (Makefile.am): Likewise.
73339         * modules/hmac-sha1 (Makefile.am): Likewise.
73340         * modules/human (Makefile.am): Likewise.
73341         * modules/idcache (Makefile.am): Likewise.
73342         * modules/imaxabs (Makefile.am): Likewise.
73343         * modules/imaxdiv (Makefile.am): Likewise.
73344         * modules/inet_ntop (Makefile.am): Likewise.
73345         * modules/inet_pton (Makefile.am): Likewise.
73346         * modules/inttostr (Makefile.am): Likewise.
73347         * modules/isapipe (Makefile.am): Likewise.
73348         * modules/lchown (Makefile.am): Likewise.
73349         * modules/long-options (Makefile.am): Likewise.
73350         * modules/lstat (Makefile.am): Likewise.
73351         * modules/malloc (Makefile.am): Likewise.
73352         * modules/mathl (Makefile.am): Likewise.
73353         * modules/mbchar (Makefile.am): Likewise.
73354         * modules/md2 (Makefile.am): Likewise.
73355         * modules/md4 (Makefile.am): Likewise.
73356         * modules/md5 (Makefile.am): Likewise.
73357         * modules/memcasecmp (Makefile.am): Likewise.
73358         * modules/memchr (Makefile.am): Likewise.
73359         * modules/memcmp (Makefile.am): Likewise.
73360         * modules/memcoll (Makefile.am): Likewise.
73361         * modules/memcpy (Makefile.am): Likewise.
73362         * modules/memmem (Makefile.am): Likewise.
73363         * modules/memmove (Makefile.am): Likewise.
73364         * modules/mempcpy (Makefile.am): Likewise.
73365         * modules/memrchr (Makefile.am): Likewise.
73366         * modules/memset (Makefile.am): Likewise.
73367         * modules/memxor (Makefile.am): Likewise.
73368         * modules/mkancesdirs (Makefile.am): Likewise.
73369         * modules/mkdir (Makefile.am): Likewise.
73370         * modules/mkdir-p (Makefile.am): Likewise.
73371         * modules/mkdtemp (Makefile.am): Likewise.
73372         * modules/mkstemp (Makefile.am): Likewise.
73373         * modules/mktime (Makefile.am): Likewise.
73374         * modules/modechange (Makefile.am): Likewise.
73375         * modules/mountlist (Makefile.am): Likewise.
73376         * modules/nanosleep (Makefile.am): Likewise.
73377         * modules/openat (Makefile.am): Likewise.
73378         * modules/pagealign_alloc (Makefile.am): Likewise.
73379         * modules/physmem (Makefile.am): Likewise.
73380         * modules/poll (Makefile.am): Likewise.
73381         * modules/posixtm (Makefile.am): Likewise.
73382         * modules/posixver (Makefile.am): Likewise.
73383         * modules/putenv (Makefile.am): Likewise.
73384         * modules/quote (Makefile.am): Likewise.
73385         * modules/quotearg (Makefile.am): Likewise.
73386         * modules/raise (Makefile.am): Likewise.
73387         * modules/read-file (Makefile.am): Likewise.
73388         * modules/readline (Makefile.am): Likewise.
73389         * modules/readlink (Makefile.am): Likewise.
73390         * modules/readtokens (Makefile.am): Likewise.
73391         * modules/readutmp (Makefile.am): Likewise.
73392         * modules/realloc (Makefile.am): Likewise.
73393         * modules/regex (Makefile.am): Likewise.
73394         * modules/rename (Makefile.am): Likewise.
73395         * modules/rename-dest-slash (Makefile.am): Likewise.
73396         * modules/rijndael (Makefile.am): Likewise.
73397         * modules/rmdir (Makefile.am): Likewise.
73398         * modules/rpmatch (Makefile.am): Likewise.
73399         * modules/safe-read (Makefile.am): Likewise.
73400         * modules/safe-write (Makefile.am): Likewise.
73401         * modules/same (Makefile.am): Likewise.
73402         * modules/save-cwd (Makefile.am): Likewise.
73403         * modules/savedir (Makefile.am): Likewise.
73404         * modules/setenv (Makefile.am): Likewise.
73405         * modules/settime (Makefile.am): Likewise.
73406         * modules/sha1 (Makefile.am): Likewise.
73407         * modules/sig2str (Makefile.am): Likewise.
73408         * modules/snprintf (Makefile.am): Likewise.
73409         * modules/stdlib-safer (Makefile.am): Likewise.
73410         * modules/stpcpy (Makefile.am): Likewise.
73411         * modules/stpncpy (Makefile.am): Likewise.
73412         * modules/strcase (Makefile.am): Likewise.
73413         * modules/strcasestr (Makefile.am): Likewise.
73414         * modules/strchrnul (Makefile.am): Likewise.
73415         * modules/strcspn (Makefile.am): Likewise.
73416         * modules/strdup (Makefile.am): Likewise.
73417         * modules/strerror (Makefile.am): Likewise.
73418         * modules/strftime (Makefile.am): Likewise.
73419         * modules/strndup (Makefile.am): Likewise.
73420         * modules/strnlen (Makefile.am): Likewise.
73421         * modules/strpbrk (Makefile.am): Likewise.
73422         * modules/strsep (Makefile.am): Likewise.
73423         * modules/strstr (Makefile.am): Likewise.
73424         * modules/strtod (Makefile.am): Likewise.
73425         * modules/strtoimax (Makefile.am): Likewise.
73426         * modules/strtok_r (Makefile.am): Likewise.
73427         * modules/strtol (Makefile.am): Likewise.
73428         * modules/strtoll (Makefile.am): Likewise.
73429         * modules/strtoul (Makefile.am): Likewise.
73430         * modules/strtoull (Makefile.am): Likewise.
73431         * modules/strtoumax (Makefile.am): Likewise.
73432         * modules/strverscmp (Makefile.am): Likewise.
73433         * modules/time_r (Makefile.am): Likewise.
73434         * modules/timegm (Makefile.am): Likewise.
73435         * modules/tmpfile-safer (Makefile.am): Likewise.
73436         * modules/unistd-safer (Makefile.am): Likewise.
73437         * modules/unlinkdir (Makefile.am): Likewise.
73438         * modules/userspec (Makefile.am): Likewise.
73439         * modules/utime (Makefile.am): Likewise.
73440         * modules/utimecmp (Makefile.am): Likewise.
73441         * modules/utimens (Makefile.am): Likewise.
73442         * modules/vasnprintf (Makefile.am): Likewise.
73443         * modules/vasprintf (Makefile.am): Likewise.
73444         * modules/vsnprintf (Makefile.am): Likewise.
73445         * modules/xalloc (Makefile.am): Likewise.
73446         * modules/xgetcwd (Makefile.am): Likewise.
73447         * modules/xnanosleep (Makefile.am): Likewise.
73448         * modules/xreadlink (Makefile.am): Likewise.
73449         * modules/xstrtod (Makefile.am): Likewise.
73450         * modules/xstrtol (Makefile.am): Likewise.
73451         * modules/xstrtold (Makefile.am): Likewise.
73452         * modules/yesno (Makefile.am): Likewise.
73453
73454 2006-10-12  Jim Meyering  <jim@meyering.net>
73455
73456         * m4/getloadavg.m4: Revert the change below.
73457
73458         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73459         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73460         fail with a symlink, which is what coreutils' ./bootstrap now
73461         creates by default.
73462
73463 2006-10-12  Bruno Haible  <bruno@clisp.org>
73464
73465         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73466         mingw.
73467         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73468         MSVC and mingw explicitly.
73469
73470 2006-10-11  Simon Josefsson  <jas@extundo.com>
73471             Bruno Haible  <bruno@clisp.org>
73472
73473         Add support for multiple gnulib-tool invocations in the scope of a
73474         single configure.ac file.
73475         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73476         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73477         with the same contents as the _LIBADD variable.
73478         (func_emit_initmacro_start, func_emit_initmacro_end,
73479         func_emit_initmacro_done): New functions.
73480         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73481         gl_LIBOBJS and gl_LTLIBOBJS.
73482
73483 2006-10-11  Bruno Haible  <bruno@clisp.org>
73484
73485         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73486         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73487         autoreconf. Instead, invoke autopoint explicitly but move back the
73488         *.m4 files from gnulib.
73489
73490 2006-10-11  Bruno Haible  <bruno@clisp.org>
73491
73492         * gnulib-tool (func_usage): Make module names after --create-testdir
73493         optional.
73494         (func_create_testdir): If no module was specified, use nearly all
73495         modules.
73496
73497 2006-10-12  Jim Meyering  <jim@meyering.net>
73498
73499         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73500         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73501         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73502         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73503         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73504         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73505         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73506         (fts_set_stat_required): New function.
73507         (fts_open): Defer the calls to fts_stat, if possible or requested.
73508         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73509         into fts_stat itself.
73510         (fts_read): Perform any required (deferred) fts_stat call.
73511         (fts_build): Likewise, for the directory we're about to open and read.
73512         In the readdir loop, carefully decide whether each entry will require
73513         an eventual call to fts_stat, using dirent.d_type info if available.
73514         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73515         a command line argument into this function.  Update all callers.
73516         Map a return value of FTS_DOT to FTS_D for a command line argument.
73517         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73518         Thanks to Miklos Szeredi for his tenacity and for the initial
73519         bug report about "find" failing on a FUSE-based file system.
73520
73521         * lib/fts.c (fts_open): Use consistent indentation.
73522
73523 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73524
73525         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73526         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73527         reported by Jim Meyering.  All uses of cache variables renamed
73528         to match Autoconf's.
73529         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73530         the other one.
73531
73532         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73533         Fix misspelling in diagnostic.
73534
73535 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73536
73537         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73538         defined.  Problem reported by Matthew Woehlke.
73539
73540         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73541         Add support for Tandem NonStop R series.
73542         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73543         Use new macro.
73544
73545         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73546         (has_trailing_slash): Omit size arg; all callers changed.
73547         Omit 'inline', since it doesn't help performance and we'd
73548         need to configure it.
73549         Don't count //, ///, etc. as having a trailing slash.
73550         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73551         (rpl_rename_dest_slash): On failure, use rename's errno rather
73552         than (in some cases) an incorrect or junk errno.
73553         Simplify code by removing need to compute length; this does
73554         cause it to make two passes instead of one over the file name,
73555         but it's worth it.
73556
73557         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73558         change, since Autoconf's version may no longer be appropriate now
73559         that we are using CVS Autoconf's version.  Add support for Tandem.
73560
73561 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73562             Bruno Haible  <bruno@clisp.org>
73563
73564         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73565         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73566         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73567         gl_AC_TYPE_LONG_LONG.
73568
73569         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73570         instead of HAVE_LONG_LONG.
73571         * lib/printf-args.c (printf_fetchargs): Likewise.
73572         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73573         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73574         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73575         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73576         gl_AC_TYPE_LONG_LONG.
73577
73578 2006-10-11  Bruno Haible  <bruno@clisp.org>
73579
73580         * m4/longlong.m4: Add comments.
73581         * m4/ulonglong.m4: Likewise.
73582
73583 2006-10-10  Bruno Haible  <bruno@clisp.org>
73584
73585         Make it possible to #define stpcpy, strdup to aliases.
73586         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73587         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73588
73589 2006-10-10  Bruno Haible  <bruno@clisp.org>
73590
73591         Make it possible to #define gcd to an alias.
73592         * lib/gcd.c: Include config.h.
73593
73594 2006-10-10  Bruno Haible  <bruno@clisp.org>
73595
73596         Make it possible to #define c_isascii to an alias.
73597         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73598         defined. Undefine the macros before defining them, to avoid gcc
73599         warnings.
73600         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73601         define NO_C_CTYPE_MACROS early.
73602
73603 2006-10-10  Bruno Haible  <bruno@clisp.org>
73604
73605         Make it possible to #define set_program_name to an alias.
73606         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73607         ENABLE_RELOCATABLE early.
73608
73609 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73610
73611         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73612         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73613         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73614         More generally, don't assume that 64-bit signed int is available
73615         if unsigned int is, and vice versa.
73616         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73617         unsigned symbols, not on their signed counterparts.
73618         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73619         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73620         (UINT64_C, UINTMAX_C):
73621         Likewise.
73622         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73623         unsigned counterparts.
73624         (Have_long_long, Unsigned): New macros.
73625         (Int): Renamed from INT.
73626         (strtoimax): Use the new macros.
73627         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73628         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73629         * modules/inttypes (inttypes.h): Substitute
73630         HAVE_UNSIGNED_LONG_LONG_INT.
73631         * modules/stdint (stdint.h): Likewise.
73632         (Files): Add m4/ulonglong.m4.
73633
73634 2006-10-10  Bruno Haible  <bruno@clisp.org>
73635
73636         Fix a gcc -Wshadow warning.
73637         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73638         to 'bucket'.
73639         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73640         gl_linked_indexof_from_to): Likewise.
73641         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73642         Likewise.
73643         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73644         Likewise.
73645         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73646         Reported by Eric Blake.
73647
73648 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73649
73650         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73651         for NetBSD.  Problem reported by Bruno Haible.
73652
73653 2006-10-09  Jim Meyering  <jim@meyering.net>
73654
73655         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73656         Patch from Bruno Haible.
73657
73658 2006-10-09  Jim Meyering  <jim@meyering.net>
73659
73660         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73661         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73662         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73663
73664 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73665
73666         Don't include <config.h> twice; this doesn't work in some cases,
73667         e.g., when config.h has "#define intmax_t long long int" and
73668         we include <config.h>, <inttypes.h>, <config.h> in that order.
73669         Problem reported by Matthew Woehlke in:
73670         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73671         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73672         * lib/fts-cycle.c: Don't include config.h.
73673         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73674         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73675         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73676         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73677         inttypes.h.
73678         * lib/xstrtoumax.c: Likewise.
73679         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73680         __strtol and the like, so that this module is more like its siblings.
73681         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73682         Remove; no longer needed now that we assume gnulib inttypes.h.
73683
73684 2006-10-08  Bruno Haible  <bruno@clisp.org>
73685
73686         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73687         option.
73688
73689 2006-10-07  Jim Meyering  <jim@meyering.net>
73690
73691         * modules/inttypes (inttypes.h): Revert what seems to have been
73692         an inadvertent part of today's change: use "|", not "/" in the
73693         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73694
73695 2006-10-07  Bruno Haible  <bruno@clisp.org>
73696
73697         * modules/sublist: New file.
73698
73699 2006-10-07  Bruno Haible  <bruno@clisp.org>
73700
73701         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73702         * modules/argz (argz.h): Likewise.
73703         * modules/arpa_inet (arpa/inet.h): Likewise.
73704         * modules/byteswap (byteswap.h): Likewise.
73705         * modules/configmake (configmake.h): Likewise.
73706         * modules/fcntl (fcntl.h): Likewise.
73707         * modules/fnmatch (fnmatch.h): Likewise.
73708         * modules/getopt (getopt.h): Likewise.
73709         * modules/glob (glob.h): Likewise.
73710         * modules/inttypes (inttypes.h): Likewise.
73711         * modules/netinet_in (netinet/in.h): Likewise.
73712         * modules/poll (poll.h): Likewise.
73713         * modules/stdbool (stdbool.h): Likewise.
73714         * modules/stdint (stdint.h): Likewise.
73715         * modules/sys_select (sys/select.h): Likewise.
73716         * modules/sys_socket (sys/socket.h): Likewise.
73717         * modules/sys_stat (sys/stat.h): Likewise.
73718         * modules/sysexits (sysexits.h): Likewise.
73719         * modules/unistd (unistd.h): Likewise.
73720         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73721         Add a "DO NOT EDIT" comment to the generated file.
73722         (func_import): Likewise for gnulib-comp.m4.
73723
73724 2006-10-07  Bruno Haible  <bruno@clisp.org>
73725
73726         * lib/gl_sublist.h: New file.
73727         * lib/gl_sublist.c: New file.
73728
73729 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73730
73731         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73732         name (relative to the original working directory) and the file
73733         name component (relative to the temporary working directory).  All
73734         callers changed.
73735         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73736         * lib/mkdir-p.c (make_dir_parents): Likewise.
73737         * lib/mkdir-p.h (make_dir_parents): Likewise.
73738
73739 2006-10-06  Eric Blake  <ebb9@byu.net>
73740
73741         Define several macros for use by the clean-temp module.
73742         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73743         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73744         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73745
73746         * lib/clean-temp.h (close_stream_temp): New declaration.
73747         * lib/clean-temp.c (includes): Pull in headers according to what
73748         other modules are in use.
73749         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73750
73751 2006-10-06  Bruno Haible  <bruno@clisp.org>
73752
73753         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73754         instead of fopen, fwriteerror.
73755
73756 2006-10-06  Bruno Haible  <bruno@clisp.org>
73757
73758         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73759         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73760         int.
73761         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73762         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73763         Return an error indicator.
73764         Suggested by Eric Blake.
73765
73766 2006-10-06  Bruno Haible  <bruno@clisp.org>
73767
73768         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73769         Reported by Eric Blake.
73770
73771 2006-10-06  Bruno Haible  <bruno@clisp.org>
73772
73773         * modules/closeout (Description): Mention stderr too.
73774
73775 2006-10-06  Bruno Haible  <bruno@clisp.org>
73776         and Paul Eggert  <eggert@cs.ucla.edu>
73777
73778         * lib/closeout.c (close_stdout): Also close stderr.
73779         * lib/closeout.h: Update comment.
73780
73781 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73782
73783         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73784         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73785         * lib/dirchownmod.c: Include lchown.h.
73786         * lib/lchown.c: Don't include files that lchown.h now includes.
73787         Don't declare chown, since lchown.h now does that.
73788         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73789         (lchown): Define to rpl_chown if lchown is declared but
73790         does not exist.  Declare using a prototype if lchown is not
73791         declared.  Add a copyright notice.
73792         * lib/mkstemp.h: Include <unistd.h>.
73793         * lib/openat.c: Include lchown.h.
73794
73795         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73796         we now test for that separately.
73797         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73798         rather than O_NOFOLLOW, when testing whether it's possible to
73799         avoid a race condition reliably.
73800         * lib/savewd.c (savewd_chdir): Likewise.
73801
73802         Remove macros that are no longer needed now that stdint.h is
73803         reliable.
73804         * lib/fsusage.c (UINTMAX_MAX): Remove.
73805         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73806         * lib/utimecmp.c (SIZE_MAX): Remove.
73807
73808         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73809
73810         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73811         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73812         O_NOATIME works.
73813
73814 2006-10-05  Bruno Haible  <bruno@clisp.org>
73815
73816         * lib/gl_list.h (gl_sortedlist_search_from_to,
73817         gl_sortedlist_indexof_from_to): New declarations.
73818         (gl_list_implementation): New fields sortedlist_search_from_to,
73819         sortedlist_indexof_from_to.
73820         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73821         inline functions.
73822         * lib/gl_list.c (gl_sortedlist_search_from_to,
73823         gl_sortedlist_indexof_from_to): New functions.
73824         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73825         function.
73826         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73827         (gl_array_sortedlist_search_from_to): New function.
73828         (gl_array_list_implementation): Update.
73829         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73830         function.
73831         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73832         (gl_carray_sortedlist_search_from_to): New function.
73833         (gl_carray_list_implementation): Update.
73834         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73835         gl_linked_sortedlist_indexof_from_to): New functions.
73836         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73837         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73838         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73839         gl_tree_sortedlist_indexof_from_to): New functions.
73840         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73841         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73842         Update.
73843         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73844         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73845         Update.
73846
73847 2006-10-05  Bruno Haible  <bruno@clisp.org>
73848
73849         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73850         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73851         (struct gl_list_implementation): Add fields search_from_to,
73852         indexof_from_to. Remove fields search, indexof.
73853         (gl_list_search): Use the search_from_to method.
73854         (gl_list_search_from, gl_list_search_from_to): New functions.
73855         (gl_list_indexof): Use the indexof_from_to method.
73856         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73857         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73858         (gl_list_search_from, gl_list_search_from_to): New functions.
73859         (gl_list_indexof): Use the indexof_from_to method.
73860         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73861         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73862         gl_array_indexof. Add start_index, end_index arguments.
73863         (gl_array_search_from_to): Renamed from gl_array_search. Add
73864         start_index, end_index arguments.
73865         (gl_array_remove, gl_array_list_implementation): Update.
73866         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73867         gl_carray_indexof. Add start_index, end_index arguments.
73868         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73869         start_index, end_index arguments.
73870         (gl_carray_remove, gl_carray_list_implementation): Update.
73871         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73872         gl_linked_search. Add start_index, end_index arguments.
73873         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73874         start_index, end_index arguments.
73875         (gl_linked_remove): Update.
73876         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73877         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73878         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73879         field to 'size_t'.
73880         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73881         gl_tree_search. Add start_index, end_index arguments.
73882         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73883         start_index, end_index arguments.
73884         (gl_tree_remove): Update.
73885         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73886         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73887         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73888         function.
73889         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73890         gl_tree_search. Add start_index, end_index arguments.
73891         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73892         start_index, end_index arguments.
73893         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73894         Update.
73895         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73896
73897 2006-10-05  Bruno Haible  <bruno@clisp.org>
73898
73899         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73900
73901         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73902         fwriteerror_temp): New declarations.
73903         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73904         (descriptors): New variable.
73905         (cleanup): First, close the descriptors.
73906         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73907         fclose_temp, fwriteerror_temp): New functions.
73908
73909 2006-10-04  Jim Meyering  <jim@meyering.net>
73910
73911         * lib/fts.c (fts_open): Tiny comment change.
73912
73913 2006-10-04  Bruno Haible  <bruno@clisp.org>
73914
73915         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73916         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73917         gl_LOCK_BODY.
73918         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73919         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73920         gl_LOCK_EARLY_BODY.
73921         (gl_LOCK): Require gl_LOCK_BODY.
73922
73923 2006-10-04  Bruno Haible  <bruno@clisp.org>
73924
73925         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73926         (gl_oset_search_atleast): New declaration.
73927         (struct gl_oset_implementation): Add field 'search_atleast'.
73928         (gl_oset_search_atleast): New inline function.
73929         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73930         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73931         (gl_array_oset_implementation): Update.
73932         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73933         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73934         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73935
73936 2006-10-04  Bruno Haible  <bruno@clisp.org>
73937
73938         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73939
73940 2006-10-03  Bruno Haible  <bruno@clisp.org>
73941
73942         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73943         from gl_avltreehash_list_implementation.
73944
73945 2006-10-03  Bruno Haible  <bruno@clisp.org>
73946
73947         * lib/gl_oset.c (gl_oset_add): Fix return type.
73948
73949 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73950
73951         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73952
73953 2006-10-02  Eric Blake  <ebb9@byu.net>
73954
73955         * modules/strnlen (Depends-on): Add extensions.
73956
73957 2006-10-02  Eric Blake  <ebb9@byu.net>
73958
73959         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73960         definition in 2.60+.
73961
73962 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73963
73964         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73965         checks.
73966
73967 2006-10-02  Bruno Haible  <bruno@clisp.org>
73968
73969         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73970         to the AUTOMAKE_OPTIONS.
73971         Reported by Jim Meyering.
73972
73973 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73974
73975         Work around bug in Solaris 10 /proc file system:
73976         /proc/self/fd/NNN/.. isn't the parent directory of
73977         the directory whose file descriptor is NNN.  This needs to
73978         be worked around at run time, not compile time, since a
73979         program might be built on Solaris 8, where things work, and
73980         run on Solaris 10.
73981         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73982         to use the following interface instead:
73983         (OPENAT_BUFFER_SIZE): New macro.
73984         (openat_proc_name): New function.
73985         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73986         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73987         Likewise.
73988         * lib/openat-proc.c: New file.
73989         * modules/openat (Files): Add lib/openat-proc.c.
73990         (Depends-on): Add same-inode, stdbool.
73991         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73992
73993 2006-09-29  Bruno Haible  <bruno@clisp.org>
73994
73995         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73996         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73997         argument. Set stdout_closed before testing for ferror, not after.
73998         (fwriteerror, fwriteerror_no_ebadf): New functions.
73999
74000 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74001
74002         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
74003
74004 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
74005
74006         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
74007         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
74008
74009 2006-09-28  Jim Meyering  <jim@meyering.net>
74010
74011         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
74012         Include <unistd.h>.
74013
74014 2006-09-28  Bruno Haible  <bruno@clisp.org>
74015
74016         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
74017         * modules/linkedhash-list (Depends-on): Likewise.
74018         * modules/rbtreehash-list (Depends-on): Likewise.
74019
74020 2006-09-28  Bruno Haible  <bruno@clisp.org>
74021
74022         * lib/strndup.h: Simplify the redefinition of strndup.
74023         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
74024         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
74025
74026 2006-09-28  Bruno Haible  <bruno@clisp.org>
74027
74028         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
74029         * lib/gl_linkedhash_list.c: Likewise.
74030         * lib/gl_rbtreehash_list.c: Likewise.
74031
74032 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74033
74034         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
74035         getaddrinfo.
74036
74037         * lib/__fpending.h: Don't include <stdio_ext.h> unless
74038         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
74039         it causes <stdio_ext.h> to cause a compile-time error.
74040         Problem reported by Nelson H. F. Beebe.
74041         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
74042         of HAVE_DECL___PENDING.
74043
74044         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
74045         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
74046         declaration.
74047
74048 2006-09-27  Jim Meyering  <jim@meyering.net>
74049
74050         This file could end up with a definition for a function
74051         named __strndup, rather than rpl_strndup on a system with
74052         incomplete weak_alias support.
74053         * lib/strndup.c (strndup): Rename from __strndup.
74054         Remove #defines that used to map __strndup to strndup.
74055         Don't use K&R prototypes.
74056         Remove LIBC-related code, since this file is not sync'd with glibc.
74057         * lib/strndup.h: Revamp, accordingly.
74058         * m4/strndup.m4: Modernize.
74059
74060 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         * modules/savewd (Depends-on): Add 'raise'.
74063         * lib/savewd.c: Include <signal.h>, for 'raise'.
74064
74065 2006-09-26  Jim Meyering  <jim@meyering.net>
74066
74067         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
74068         when we detect Darwin 8.7.0's acl_get_file bug.
74069         Rearrange to perform the new (below) run-test while $LIBS
74070         contains any acl-related library.  Set USE_ACL at the end.
74071         (gl_ACL_GET_FILE): New function.
74072
74073 2006-09-26  Eric Blake  <ebb9@byu.net>
74074
74075         * lib/verror.c: Include <config.h> unconditionally.
74076
74077 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
74078
74079         * modules/clock-time (Maintainer): Add self.
74080         * modules/getlogin_r (Depends-on): Add extensions.
74081
74082 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74083
74084         * modules/clock-time: New module.
74085         * modules/nanosleep (Depends-on): Add clock-time.
74086         * modules/gethrxtime (Depends-on): Likewise.
74087         * modules/gettime (Depends-on): Likewise.
74088         * modules/settime (Depends-on): Likewise.
74089
74090         * modules/fts-lgpl: Depend on openat.
74091         * modules/mkancesdirs: Depend on savewd.
74092         * modules/mkdir-p: Likewise.
74093
74094 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74095
74096         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
74097
74098         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
74099         `gl_have_arbitrary_file_name_length_limit' to
74100         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
74101         actually works between configure runs.
74102
74103 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74104             Bruno Haible  <bruno@clisp.org>
74105
74106         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
74107
74108 2006-09-25  Jim Meyering  <jim@meyering.net>
74109
74110         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
74111         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
74112
74113 2006-09-25  Eric Blake  <ebb9@byu.net>
74114
74115         * gnulib-tool (func_import, func_create_testdir): Fix typos in
74116         exec's in 2006-09-18 patch when shuffling fds.
74117
74118 2006-09-25  Bruno Haible  <bruno@clisp.org>
74119
74120         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
74121         Reported by Jim Meyering.
74122
74123 2006-09-24  Jim Meyering  <jim@meyering.net>
74124
74125         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
74126         compare a pointer against a literal "0".  That caused failures with
74127         at least HP-UX's hpcc.
74128
74129 2006-09-22  Simon Josefsson  <jas@extundo.com>
74130
74131         * modules/gc-sha1:
74132         * modules/gc-md4:
74133         * modules/gc-hmac-sha1:
74134         * modules/gc-hmac-md5:
74135         * modules/gc-des:
74136         * modules/gc-arcfour: Distribute more files.
74137
74138 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74139
74140         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
74141         (gl_linked_iterator_from_to): Initialize struct completely.
74142         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
74143         (gl_tree_iterator_from_to): Likewise
74144         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
74145         * lib/gl_array_list.c [lint] (gl_array_iterator)
74146         (gl_array_iterator_from_to): Likewise.
74147         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
74148         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
74149         (gl_carray_iterator_from_to): Likewise.
74150
74151         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
74152         * lib/md4.c (md4_process_block): Remove unused variable.
74153         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
74154         parentheses for clarity.
74155
74156 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74157
74158         * modules/bison-i18n (Depends-on): Add gettext.
74159
74160 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74161
74162         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
74163         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
74164         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
74165         also add missing comma that caused broken test.
74166         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
74167         stdlib.h, for `abort'.
74168         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
74169         variables.
74170         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
74171         include unistd.h if present, for `rmdir'.
74172         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
74173         variables.
74174         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
74175         in the process include standard headers for prototypes.
74176         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
74177         gets declared on GNU/Linux.
74178         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
74179         unistd.h, for `rmdir'.
74180         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
74181
74182         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
74183         always true.
74184         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
74185
74186         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
74187
74188 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74189
74190         * gnulib-tool (func_version): Create output all at once.  This
74191         may help avoid triggering unnecessary SIGPIPEs, and at any
74192         rate it doesn't hurt.
74193
74194 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74195             Bruno Haible  <bruno@clisp.org>
74196
74197         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
74198         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74199         * m4/signed.m4 (bh_C_SIGNED): Likewise.
74200
74201         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
74202         (gl_FUNC_VASPRINTF): Invoke it.
74203
74204 2006-09-22  Bruno Haible  <bruno@clisp.org>
74205
74206         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
74207         getloadavg.c as first argument.
74208
74209 2006-09-22  Bruno Haible  <bruno@clisp.org>
74210
74211         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
74212         at the beginning of the gl_INIT macro.
74213         * modules/getloadavg (configure.ac): Pass $gl_source_base to
74214         gl_GETLOADAVG.
74215
74216 2006-09-22  Bruno Haible  <bruno@clisp.org>
74217
74218         * gnulib-tool (func_create_megatestdir): Don't include the config-h
74219         module.
74220         Suggested by Ralf Wildenhues.
74221
74222 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
74223
74224         Import this patch from libc:
74225
74226         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
74227
74228         * lib/regex_internal.c (re_string_reconstruct): Handle
74229         offset < pstr->valid_raw_len && pstr->offsets_needed case.
74230         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
74231         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
74232         re_string_context_at.
74233
74234         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
74235         now requires it.
74236         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
74237         gl_REGEX now does it for us.
74238         (gl_REGEX): Add test taken from
74239         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
74240
74241         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
74242         Check that large offsets work.  Modernize Autoconf usages.
74243         Prefer "yes" to mean a good thing rather than a bad.
74244         Don't put "#define mkstemp" in config.h, as this might interfere
74245         with standard system headers that "#define mkstemp mkstemp64".
74246
74247         * modules/mkstemp (Depends-on): Add extensions, so that
74248         mkstemp is visible on some platforms.
74249         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
74250         (Include): Change to "mkstemp.h" from <stdlib.h>.
74251         (Files): Add mkstemp.h.
74252
74253         * lib/mkstemp.h: New file, since some standard headers
74254         #define mkstemp.
74255         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
74256         Include "mkstemp.h".
74257         Make the _LIBC code resemble glibc original more,
74258         e.g., use K&R style.
74259         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
74260         (mkstemp): Remove, since mkstemp.h does this for us.
74261         * lib/stdlib--.h: Include mkstemp.h.
74262
74263         Import this patch from libc:
74264
74265         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74266
74267         * lib/tempname.c (__gen_tempname): Change attempts_min
74268         into a macro.  Use preprocessor to decide how to initialize
74269         attempts [Coverity CID 67].
74270
74271 2006-09-20  Bruno Haible  <bruno@clisp.org>
74272
74273         * lib/mkdtemp.c: Import from libc.
74274         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
74275                 * sysdeps/posix/tempname.c (__gen_tempname): Change
74276                 attempts_min into a macro.  Use preprocessor to decide how to
74277                 initialize attempts [Coverity CID 67].
74278         2001-11-27  Paul Eggert  <eggert@twinsun.com>
74279                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
74280                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
74281
74282 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74283
74284         * gnulib-tool (func_exit): New function, to allow to pass the
74285         exit status portably through the trap.  Use everywhere.
74286         (--help, --version): Signal a write error.
74287         (trap): catch SIGPIPE, for write errors.
74288         Exit at the end of the trap, with the correct exit status.
74289
74290 2006-09-19  Karl Berry  <karl@gnu.org>
74291
74292         * doc/gnulib.texi: note about the license texinfo files.
74293
74294 2006-09-19  Eric Blake  <ebb9@byu.net>
74295
74296         * gnulib-tool: Avoid space-tab.
74297
74298 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74299
74300         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
74301         that prevented coreutils 6.1 from building.  Problem reported
74302         by Petter Reinholdtsen.
74303
74304 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
74305
74306         * gnulib-tool (avoidlist): Fix typo that broke options like
74307         --avoid=lock that are used by coreutils bootstrap.
74308
74309 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
74310
74311         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74312         more systematically.
74313
74314 2006-09-18  Jim Meyering  <jim@meyering.net>
74315
74316         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74317
74318 2006-09-18  Bruno Haible  <bruno@clisp.org>
74319
74320         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74321
74322 2006-09-18  Bruno Haible  <bruno@clisp.org>
74323
74324         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74325         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74326         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74327         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74328         * m4/gettext.m4: Require autoconf >= 2.52.
74329         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74330         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74331         of gl_cv_header_inttypes_h.
74332
74333 2006-09-18  Bruno Haible  <bruno@clisp.org>
74334
74335         * lib/javaversion.c: Include configmake.h.
74336
74337 2006-09-18  Bruno Haible  <bruno@clisp.org>
74338
74339         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74340         avoid that the while loops be executed in a subshell.
74341
74342 2006-09-18  Bruno Haible  <bruno@clisp.org>
74343
74344         * MODULES.html.sh (func_module): Break long lines.
74345         Suggested by Bruce Korb <bkorb@gnu.org>.
74346
74347 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74348
74349         Speed up by a factor of 1.12.
74350         * gnulib-tool (nl): New variable.
74351         (func_import): Rewrite include directive extraction to only read each
74352         directive once.
74353
74354 2006-09-17  Bruno Haible  <bruno@clisp.org>
74355
74356         * modules/javaversion (Makefile.am): Remove DEFS setting.
74357         (Depends-on): Add configmake, for PKGDATADIR definition.
74358
74359 2006-09-17  Bruno Haible  <bruno@clisp.org>
74360
74361         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74362
74363 2006-09-17  Bruno Haible  <bruno@clisp.org>
74364
74365         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74366         (func_modules_transitive_closure, func_modules_add_dummy,
74367         func_modules_to_filelist, func_import, func_create_testdir,
74368         func_create_megatestdir, ...): Use it wherever possible.
74369         Suggested by Ralf Wildenhues.
74370
74371 2006-09-16  Karl Berry  <karl@gnu.org>
74372
74373         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74374         to avoid sectioning errors.
74375         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74376         [ifinfo]: blank line after @center-ed titles.
74377         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74378         Spell FSF address consistently with others.
74379         (These changes approved by rms.)
74380
74381 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74382
74383         Speed up by a factor of 1.61.
74384         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74385         already checked module names again.
74386
74387 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74388
74389         Speed up by a factor of 1.13.
74390         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74391         for new_files, and the input to func_add_or_update.
74392
74393 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74394
74395         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74396         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74397
74398 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74399
74400         * modules/mkancesdirs (Depends-on): Add fcntl.
74401         * modules/savewd: New file.
74402         * MODULES.html.sh (File system functions): Add savewd.
74403
74404         * modules/configmake (Makefile.am): Add support for the
74405         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74406
74407 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74408
74409         * m4/savewd.m4: New file.
74410
74411 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74412
74413         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74414         (dirchownmod): New arg FD.  All callers changed.
74415         Use FD rather than opening the directory ourself, as opening is
74416         now the caller's responsibility.
74417         * lib/dirchownmod.h: Likewise.
74418         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74419         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74420         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74421         (test_dir): Remove.
74422         (mkancesdirs): Return length of prefix of FILE that has already
74423         been made, or -2 if there is a child doing the work.  Redo
74424         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74425         ".", and treat ".." specially since it might stray back into
74426         already-created areas.  Use a subprocess if necessary.  New arg
74427         WD; all users changed.  MAKE_DIR function should now return 1
74428         if it creates a directory that is not readable.  Return -2 if
74429         a child process is spun off.
74430         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74431         Adjust signature to match code.
74432         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74433         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74434         all users changed.
74435         * lib/savewd.c, lib/savewd.h: New files.
74436
74437 2006-09-15  Jim Meyering  <jim@meyering.net>
74438
74439         * modules/rename-dest-slash: New module.
74440         * MODULES.html.sh (posix_compat): Add it here.
74441
74442         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74443
74444 2006-09-15  Jim Meyering  <jim@meyering.net>
74445
74446         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74447         file.
74448
74449         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74450
74451 2006-09-15  Jim Meyering  <jim@meyering.net>
74452
74453         * lib/rename-dest-slash.c (has_trailing_slash): Use
74454         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74455         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74456         test before testing whether SRC is a directory.
74457         Suggestions from Bruno Haible.
74458
74459         Avoid a warning about an unused variable.
74460         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74461         into the #ifdef block where it's used.
74462
74463         * lib/rename-dest-slash.c: New file.
74464
74465 2006-09-14  Bruno Haible  <bruno@clisp.org>
74466
74467         * lib/allocsa.c: Include <config.h> unconditionally.
74468         * lib/asnprintf.c: Likewise.
74469         * lib/asprintf.c: Likewise.
74470         * lib/c-strcasecmp.c: Likewise.
74471         * lib/c-strcasestr.c: Likewise.
74472         * lib/c-strncasecmp.c: Likewise.
74473         * lib/c-strstr.c: Likewise.
74474         * lib/classpath.c: Likewise.
74475         * lib/clean-temp.c: Likewise.
74476         * lib/concatpath.c: Likewise.
74477         * lib/copy-file.c: Likewise.
74478         * lib/csharpcomp.c: Likewise.
74479         * lib/csharpexec.c: Likewise.
74480         * lib/execute.c: Likewise.
74481         * lib/fatal-signal.c: Likewise.
74482         * lib/findprog.c: Likewise.
74483         * lib/fwriteerror.c: Likewise.
74484         * lib/gl_array_list.c: Likewise.
74485         * lib/gl_array_oset.c: Likewise.
74486         * lib/gl_avltree_list.c: Likewise.
74487         * lib/gl_avltree_oset.c: Likewise.
74488         * lib/gl_avltreehash_list.c: Likewise.
74489         * lib/gl_carray_list.c: Likewise.
74490         * lib/gl_linked_list.c: Likewise.
74491         * lib/gl_linkedhash_list.c: Likewise.
74492         * lib/gl_list.c: Likewise.
74493         * lib/gl_oset.c: Likewise.
74494         * lib/gl_rbtree_list.c: Likewise.
74495         * lib/gl_rbtree_oset.c: Likewise.
74496         * lib/gl_rbtreehash_list.c: Likewise.
74497         * lib/imaxabs.c: Likewise.
74498         * lib/imaxdiv.c: Likewise.
74499         * lib/javacomp.c: Likewise.
74500         * lib/javaexec.c: Likewise.
74501         * lib/javaversion.c: Likewise.
74502         * lib/linebreak.c: Likewise.
74503         * lib/localcharset.c: Likewise.
74504         * lib/lock.c: Likewise.
74505         * lib/mbchar.c: Likewise.
74506         * lib/mbswidth.c: Likewise.
74507         * lib/mkdtemp.c: Likewise.
74508         * lib/pipe.c: Likewise.
74509         * lib/printf-args.c: Likewise.
74510         * lib/printf-parse.c: Likewise.
74511         * lib/progname.c: Likewise.
74512         * lib/progreloc.c: Likewise.
74513         * lib/readlink.c: Likewise.
74514         * lib/sh-quote.c: Likewise.
74515         * lib/stpcpy.c: Likewise.
74516         * lib/stpncpy.c: Likewise.
74517         * lib/strcasecmp.c: Likewise.
74518         * lib/strcasestr.c: Likewise.
74519         * lib/strcspn.c: Likewise.
74520         * lib/striconv.c: Likewise.
74521         * lib/strncasecmp.c: Likewise.
74522         * lib/strnlen1.c: Likewise.
74523         * lib/strstr.c: Likewise.
74524         * lib/strtok_r.c: Likewise.
74525         * lib/tls.c: Likewise.
74526         * lib/tmpdir.c: Likewise.
74527         * lib/unicodeio.c: Likewise.
74528         * lib/unsetenv.c: Likewise.
74529         * lib/vasnprintf.c: Likewise.
74530         * lib/vasprintf.c: Likewise.
74531         * lib/wait-process.c: Likewise.
74532         * lib/xallocsa.c: Likewise.
74533         * lib/xsetenv.c: Likewise.
74534         * lib/xstriconv.c: Likewise.
74535
74536 2006-09-13  Simon Josefsson  <jas@extundo.com>
74537
74538         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74539         that internally, suggested by Ralf Wildenhues
74540         <Ralf.Wildenhues@gmx.de>.
74541
74542 2006-09-13  Simon Josefsson  <jas@extundo.com>
74543
74544         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74545         @LIBOBJS@.
74546         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74547
74548 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74549
74550         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74551         longer worry about uses that don't define HAVE_CONFIG_H.
74552         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74553         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74554         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74555         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74556         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74557         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74558         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74559         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74560         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74561         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74562         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74563         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74564         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74565         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74566         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74567         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74568         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74569         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74570         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74571         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74572         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74573         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74574         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74575         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74576         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74577         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74578         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74579         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74580         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74581         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74582         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74583         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74584         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74585         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74586         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74587         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74588         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74589         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74590         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74591         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74592         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74593         Likewise.
74594
74595 2006-09-13  Eric Blake  <ebb9@byu.net>
74596
74597         * lib/getopt.c: Fix typo in last commit.
74598
74599 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74600
74601         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74602         dgettext.
74603
74604 2006-09-12  Jim Meyering  <jim@meyering.net>
74605
74606         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74607         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74608         Reported by Nelson H. F. Beebe.
74609
74610 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74611
74612         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74613         program_invocation_name and program_invocation_short_name are
74614         initialized.
74615         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74616         and program_invocation_short_name to argp.h, so they are visible
74617         to user programs.
74618         * lib/argp.h: Likewise
74619
74620 2006-09-10  Bruno Haible  <bruno@clisp.org>
74621
74622         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74623         m4/inttypes_h.m4, m4/uintmax_t.m4.
74624
74625 2006-09-10  Bruno Haible  <bruno@clisp.org>
74626
74627         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74628         gl_AC_TYPE_UINTMAX_T.
74629
74630 2006-09-10  Bruno Haible  <bruno@clisp.org>
74631
74632         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74633
74634 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74635
74636         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74637         convention.  Text proposed by Bruno Haible.
74638         (struct argp_option): Document the use of N_() wrappers.
74639
74640         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74641         '\v', and translate the two parts separately, instead of feeding
74642         the whole string to gettext.  This allows to exclude
74643         '\v' from the strings visible to the translator by writing doc
74644         strings as N_("..") "\v" N_("..").
74645
74646 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74647
74648         * config/srclist.txt: Undo latest change; the bug was fixed.
74649
74650 2006-09-09  Bruno Haible  <bruno@clisp.org>
74651
74652         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74653         assignments if building a library without libtool.
74654         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74655         in func_emit_lib_Makefile_am.
74656         (func_import): When building a static library libfoo.a, arrange to
74657         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74658         (func_create_testdir): Likewise.
74659         * modules/gc (configure.ac, Makefile.am): If building statically,
74660         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74661         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74662         * modules/striconv (configure.ac, Makefile.am): Likewise.
74663         Based on a suggestion by Ralf Wildenhues.
74664
74665 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74666
74667         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74668         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74669         Also:
74670
74671         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74672         Add year_2050_test to catch glibc bug 2821
74673         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74674
74675         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74676         Prefer #ifdef to #if.
74677
74678         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74679         Return from 'main' instead of calling 'exit'.
74680
74681 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74682
74683         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74684         returned the maximum time_t value rather than (time_t) -1.
74685         Problem originally reported by William Bardwell
74686         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74687
74688         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74689         Moved to here ...
74690         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74691         ... from here.
74692
74693 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74694
74695         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74696         2821 is fixed.
74697
74698 2006-09-08  Jim Meyering  <jim@meyering.net>
74699
74700         Don't make generated files read-only.  That would bother too many
74701         people.  However, do retain the ability to work when targets are
74702         read-only: remove the destination and temporary files before writing
74703         them (when generated via sed or echo), or by using the -f option for
74704         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74705         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74706         * modules/byteswap, modules/configmake, modules/fcntl:
74707         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74708         * modules/localcharset, modules/netinet_in, modules/poll:
74709         * modules/stdbool, modules/stdint, modules/sys_select:
74710         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74711
74712 2006-09-08  Jim Meyering  <jim@meyering.net>
74713
74714         Avoid new build failure on FreeBSD 6.0.
74715         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74716         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74717         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74718
74719 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74720
74721         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74722
74723 2006-09-07  Jim Meyering  <jim@meyering.net>
74724
74725         Fix global typo in last change: use chmod u-w, not chmod u-x.
74726         Spotted by Paul Eggert and Bruce Korb.
74727         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74728         * modules/byteswap, modules/configmake, modules/fcntl:
74729         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74730         * modules/localcharset, modules/netinet_in, modules/poll:
74731         * modules/stdbool, modules/stdint, modules/sys_select:
74732         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74733
74734 2006-09-06  Jim Meyering  <jim@meyering.net>
74735
74736         Make generated files be read-only.
74737         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74738         Ensure that each generated file is now read-only.
74739         * modules/argz: Likewise.
74740         * modules/arpa_inet: Likewise.
74741         * modules/byteswap: Likewise.
74742         * modules/configmake: Likewise.
74743         * modules/fcntl: Likewise.
74744         * modules/fnmatch: Likewise.
74745         * modules/getopt: Likewise.
74746         * modules/glob: Likewise.
74747         * modules/inttypes: Likewise.
74748         * modules/netinet_in: Likewise.
74749         * modules/poll: Likewise.
74750         * modules/stdbool: Likewise.
74751         * modules/stdint: Likewise.
74752         * modules/sys_select: Likewise.
74753         * modules/sys_socket: Likewise.
74754         * modules/sys_stat: Likewise.
74755         * modules/sysexits: Likewise.
74756         * modules/localcharset: Same as above, but continue using temporary
74757         file named "t-$@" (why different?) rather than the "$@-t" used
74758         everywhere else.
74759
74760         * modules/sysexits (Makefile.am): Replace literal occurrences
74761         of "sysexit.h" more readable, and more consistent, "$@".
74762
74763 2006-09-06  Bruno Haible  <bruno@clisp.org>
74764
74765         * modules/striconv: New file.
74766         * modules/xstriconv: New file.
74767         * MODULES.html.sh (Internationalization functions): Add striconv,
74768         xstriconv.
74769
74770 2006-09-06  Bruno Haible  <bruno@clisp.org>
74771
74772         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74773         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74774         not using libtool correctly.
74775
74776 2006-09-06  Bruno Haible  <bruno@clisp.org>
74777
74778         * lib/striconv.h: New file.
74779         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74780         iconvstring.c.
74781         * lib/xstriconv.h: New file.
74782         * lib/xstriconv.c: New file.
74783
74784 2006-09-06  Bruno Haible  <bruno@clisp.org>
74785
74786         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74787         lib_..._LDFLAGS.
74788
74789 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74790
74791         * lib/argz_.h: Sync from Libtool.
74792
74793         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74794                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74795
74796         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74797
74798 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74799
74800         * modules/trim: New file.
74801
74802 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74803
74804         * lib/trim.h: New file.
74805         * lib/trim.c: New file.
74806
74807 2006-09-05  Bruno Haible  <bruno@clisp.org>
74808
74809         * MODULES.html.sh (String handling): Add trim.
74810
74811 2006-09-04  Karl Berry  <karl@gnu.org>
74812
74813         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74814         until next release.
74815
74816 2006-09-03  Bruno Haible  <bruno@clisp.org>
74817
74818         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74819         correctly.
74820
74821 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74822
74823         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74824         not gl_GETLOADAVG.  Omit unneeded semicolons.
74825         Problems reported by Ralf Wildenhues in
74826         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74827         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74828         at the end, which is the usual gnulib style.
74829
74830         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74831         of doing all the work ourselves.
74832         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74833         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74834
74835 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74836
74837         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74838         Problem reported by Ralf Wildenhues in
74839         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74840
74841         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74842         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74843
74844 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74845
74846         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74847         yesterday's patch by changing test -n to test -z.
74848
74849 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74850
74851         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74852         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74853         the former is now obsolescent.
74854
74855         * modules/chdir-long (Depends-on): Add fcntl.
74856
74857 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74858
74859         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74860         obsolescent, and programs should use gnulib instead.
74861         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74862         but with prefixes changed.
74863
74864 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74865
74866         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74867         or stdbool.h, because they might not exist while configuring.
74868
74869         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74870         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74871         does that for us.
74872         (O_DIRECTORY): Remove.
74873
74874 2006-08-31  Eric Blake  <ebb9@byu.net>
74875
74876         * gnulib-tool: Don't let emacs change spaces to TAB.
74877
74878 2006-08-31  Bruno Haible  <bruno@clisp.org>
74879
74880         * gnulib-tool: When calling func_import more than once, do it in a
74881         subshell.
74882         Reported by Eric Blake <ebb9@byu.net>.
74883
74884 2006-08-31  Bruno Haible  <bruno@clisp.org>
74885
74886         * gnulib-tool (nl): Remove variable.
74887         (sed_transform_lib_file): Use more robust test for config-h module.
74888         (func_import): Fix typo in 2006-08-25 patch.
74889
74890 2006-08-31  Bruno Haible  <bruno@clisp.org>
74891
74892         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74893         specified, augment Makefile.am variables instead of assigning them.
74894
74895 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74896
74897         Work around a bug in both the Linux and SunOS 64-bit kernels:
74898         nanosleep mishandles sleeps for longer than 2**31 seconds.
74899         Problem reported by Frank v Waveren in
74900         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74901         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74902         Check for nanosleep bug.
74903         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74904
74905 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74906
74907         Work around a bug in both the Linux and SunOS 64-bit kernels:
74908         nanosleep mishandles sleeps for longer than 2**31 seconds.
74909         Problem reported by Frank v Waveren in
74910         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74911         * lib/nanosleep.c (BILLION): New constant.
74912         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74913         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74914         implementation.
74915
74916 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74917
74918         * modules/nanosleep (Depends-on): Add gettime.
74919
74920 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74921         and Simon Josefsson  <jas@extundo.com>
74922         and Oskar Liljeblad  <oskar@osk.mine.nu>
74923
74924         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74925         * gnulib-tool (func_import): New license type 'unmodifiable license
74926         text'.
74927         * modules/fdl: Use it.  Longer description.
74928         * module/gpl, module/lgpl: New files.
74929
74930 2006-08-30  Jim Meyering  <jim@meyering.net>
74931
74932         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74933         shadowing the parameter.
74934
74935 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74936
74937         Sync from Libtool:
74938
74939         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74940
74941         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74942         sharing with gnulib.  Report by Eric Blake.
74943
74944 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74945
74946         * modules/isapipe: New file.
74947         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74948
74949 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74950
74951         * modules/configmake (Makefile.am): Add a comment, and omit
74952         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74953         by Bruno Haible.
74954
74955 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74956
74957         * m4/isapipe.m4: New file.
74958
74959 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74960
74961         * lib/isapipe.c, lib/isapipe.h: New files.
74962
74963 2006-08-29  Jim Meyering  <jim@meyering.net>
74964
74965         * modules/configmake (Makefile.am): Make configmake.h depend on
74966         Makefile.  Otherwise, a stale configmake.h could hang around.
74967
74968 2006-08-29  Eric Blake  <ebb9@byu.net>
74969
74970         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74971         resolution of upstream bug 3044.
74972
74973 2006-08-29  Bruno Haible  <bruno@clisp.org>
74974
74975         * modules/localcharset (Depends-on): Add configmake.
74976         (Makefile.am): Remove setting of LIBDIR through DEFS.
74977
74978 2006-08-29  Bruno Haible  <bruno@clisp.org>
74979
74980         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74981         defined.
74982
74983 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74984
74985         * modules/fcntl: New file.
74986         * modules/chdir-safer (Depends-on): Add fcntl.
74987         * modules/fts: Likewise.
74988         * modules/mkdir-p: Likewise.
74989
74990         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74991         This undoes the most recent change, since we're now addressing the
74992         problem in a different way.
74993
74994         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74995         into output, since the output might be called Makefile.am even
74996         if $makefile_name is something different.
74997         (func_import): Use $makefile_am rather than
74998         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74999         empty.
75000
75001         * modules/inttypes (Files): Add m4/inttypes-h.m4.
75002
75003 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75004
75005         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
75006         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
75007         recent change to stdint.m4, since we're now addressing the problem in a
75008         different way.
75009
75010 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75011
75012         * m4/fcntl_h.m4: New file.
75013
75014 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
75015
75016         * lib/fcntl_.h: New file.
75017         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
75018         the fcntl module.
75019         * lib/dirchownmod.c: Likewise.
75020         * lib/fts.c: Likewise.
75021
75022         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
75023         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
75024         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
75025         just before including <inttypes.h>, to avoid circular inclusion.
75026
75027 2006-08-28  Jim Meyering  <jim@meyering.net>
75028
75029         * doc/visibility.texi: Actually read and correct the grammar of the
75030         sentence affected by yesterday's change.
75031
75032 2006-08-28  Eric Blake  <ebb9@byu.net>
75033
75034         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
75035         needs wrapper.
75036
75037 2006-08-28  Eric Blake  <ebb9@byu.net>
75038
75039         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
75040
75041 2006-08-28  Eric Blake  <ebb9@byu.net>
75042
75043         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
75044
75045 2006-08-28  Bruno Haible  <bruno@clisp.org>
75046
75047         * modules/c-strstr: New file, from GNU gettext.
75048         * MODULES.html.sh (String handling): Add c-strstr.
75049
75050 2006-08-28  Bruno Haible  <bruno@clisp.org>
75051
75052         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
75053         macros.
75054         Reported by Eric Blake.
75055
75056 2006-08-28  Bruno Haible  <bruno@clisp.org>
75057
75058         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
75059         (VASNPRINTF): Return a string of length > INT_MAX without failing.
75060         * lib/vasprintf.c: Include errno.h, limits.h.
75061         (EOVERFLOW): New fallback definition.
75062         (vasprintf): Test here whether the string length is > INT_MAX.
75063         * lib/vsnprintf.c: Include errno.h, limits.h.
75064         (EOVERFLOW): New fallback definition.
75065         (vsnprintf): Fix bug when generated string was too long for the buffer.
75066         Test here whether the string length is > INT_MAX.
75067
75068 2006-08-28  Bruno Haible  <bruno@clisp.org>
75069
75070         * lib/inttypes_.h (SCNX*): Remove definitions.
75071         Reported by Eric Blake.
75072
75073 2006-08-28  Bruno Haible  <bruno@clisp.org>
75074
75075         * lib/c-strstr.h: New file, from GNU gettext.
75076         * lib/c-strstr.c: New file, from GNU gettext.
75077
75078 2006-08-28  Bruno Haible  <bruno@clisp.org>
75079
75080         * gnulib-tool: Reorder some statements.
75081
75082 2006-08-28  Bruno Haible  <bruno@clisp.org>
75083
75084         * gnulib-tool: New option --makefile-name.
75085         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
75086         $makefile_name.
75087         (func_import): Write $makefile_name to the cache file, and read it from
75088         there unless explicitly specified. Use $makefile_name as file name
75089         instead of Makefile.am. Adjust the recommendations accordingly.
75090
75091 2006-08-28  Bruno Haible  <bruno@clisp.org>
75092
75093         * gnulib-tool (func_verify_module): Check against misapplying patch.
75094
75095 2006-08-28  Bruno Haible  <bruno@clisp.org>
75096
75097         * gnulib-tool (func_relativize, func_relconcat): New functions.
75098         Give an error if --local-dir is given with --update.
75099         Remove trailing slashes from $local_gnulib_dir.
75100         (func_import): Store the relativized $local_gnulib_dir in
75101         gnulib-cache.m4, and read it from there if not specified explicitly.
75102
75103 2006-08-28  Bruno Haible  <bruno@clisp.org>
75104
75105         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
75106         is the current directory. Respect also $local_gnulib_dir.
75107
75108 2006-08-28  Bruno Haible  <bruno@clisp.org>
75109             Simon Josefsson  <jas@extundo.com>
75110
75111         BeOS portability.
75112         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
75113
75114 2006-08-27  Jim Meyering  <jim@meyering.net>
75115
75116         * doc/visibility.texi: Remove duplicate word: "pointer".
75117
75118 2006-08-26  Bruno Haible  <bruno@clisp.org>
75119
75120         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
75121         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
75122         (Makefile.am): Create inttypes.h from inttypes_.h.
75123         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
75124
75125         * modules/imaxabs: New file.
75126
75127         * modules/imaxdiv: New file.
75128
75129 2006-08-26  Bruno Haible  <bruno@clisp.org>
75130
75131         * m4/inttypes.m4: New file.
75132         * m4/_inttypes_h.m4: Remove file.
75133         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
75134         PRI_MACROS_BROKEN.
75135         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
75136
75137         * m4/imaxabs.m4: New file.
75138
75139         * m4/imaxdiv.m4: New file.
75140
75141 2006-08-26  Bruno Haible  <bruno@clisp.org>
75142
75143         * lib/inttypes_.h: New file.
75144         * lib/inttypes.h: Remove file.
75145         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
75146
75147         * lib/imaxabs.c: New file.
75148
75149         * lib/imaxdiv.c: New file.
75150
75151 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75152
75153         New config-h module, so that "make" output needn't be cluttered
75154         by -DHAVE_CONFIG_H.
75155         * MODULES.html.sh (Support for building libraries and executables):
75156         Add config-h.
75157         * modules/config-h: New file.
75158         * gnulib-tool (nl, sed_transform_lib_file): New vars.
75159         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
75160         the config-h module is used.
75161
75162         New configmake module, so that "make" output needn't be cluttered
75163         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
75164         * MODULES.html.sh (Support for building libraries and executables):
75165         Add configmake.
75166         * modules/configmake: New file.
75167
75168 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75169
75170         * m4/config-h.m4: New file.
75171
75172 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75173
75174         * config/srclist.txt: Add elisp-comp.
75175
75176 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75177
75178         * MODULES.html.sh (Support for building libraries and executables):
75179         Add elisp-comp.
75180         * build-aux/elisp-comp: New file.
75181         * modules/elisp-comp: New file.
75182
75183 2006-08-24  Bruno Haible  <bruno@clisp.org>
75184
75185         * gnulib-tool (func_create_testdir): Use non-default values of
75186         sourcebase and m4base.
75187
75188 2006-08-24  Bruno Haible  <bruno@clisp.org>
75189
75190         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
75191         HTML structure.
75192
75193 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
75194
75195         * modules/openat (Depends-on): Add lchown.
75196
75197 2006-08-23  Bruno Haible  <bruno@clisp.org>
75198
75199         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
75200         of gl_LOCK_EARLY instead of gl_LOCK.
75201
75202 2006-08-23  Bruno Haible  <bruno@clisp.org>
75203
75204         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
75205         on OSF/1 to no.
75206         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
75207
75208 2006-08-23  Bruno Haible  <bruno@clisp.org>
75209
75210         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
75211         as unusable.
75212
75213         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
75214         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
75215         (gl_LOCK): New macro.
75216
75217 2006-08-22  Simon Josefsson  <jas@extundo.com>
75218
75219         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
75220         to md5 module.
75221
75222 2006-08-22  Simon Josefsson  <jas@extundo.com>
75223
75224         * MODULES.html.sh: Add "Support for maintaining and release
75225         projects".
75226
75227         * build-aux/gnupload: New file, from coreutils.
75228
75229 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75230
75231         Avoid the need for AC_LIBSOURCES in m4 macros.
75232         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
75233         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
75234         * modules/check-version (EXTRA_DIST): Add check-version.h.
75235         * modules/crc (EXTRA_DIST): Add crc.h.
75236         * modules/des (EXTRA_DIST): Add des.h.
75237         * modules/gc (EXTRA_DIST): Add gc.h.
75238         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
75239         * modules/getline (EXTRA_DIST): Add getline.h.
75240         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
75241         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
75242         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
75243         * modules/md2 (EXTRA_DIST): Add md2.h.
75244         * modules/md4 (EXTRA_DIST): Add md4.h.
75245         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
75246         * modules/read-file (EXTRA_DIST): Add read-file.h.
75247         * modules/readline (EXTRA_DIST): Add readline.h.
75248         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
75249         rijndael-api-fst.h.
75250
75251 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75252
75253         * m4/rijndael.m4 (gl_ARCFOUR):
75254         * m4/arctwo.m4 (gl_ARCTWO):
75255         * m4/check-version.m4 (gl_CHECK_VERSION):
75256         * m4/crc.m4 (gl_CRC):
75257         * m4/des.m4 (gl_DES):
75258         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
75259         * m4/gc.m4 (gl_GC):
75260         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
75261         * m4/getline.m4 (gl_FUNC_GETLINE):
75262         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
75263         * m4/hmac-md5.m4 (gl_HMAC_MD5):
75264         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
75265         * m4/md2.m4 (gl_MD2):
75266         * m4/md4.m4 (gl_MD4):
75267         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
75268         * m4/read-file.m4 (gl_FUNC_READ_FILE):
75269         * m4/readline.m4 (gl_FUNC_READLINE):
75270         * m4/rijndael.m4 (gl_RIJNDAEL):
75271         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75272         to get the necessary .h files and whatnot.
75273
75274 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
75275
75276         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
75277         gnulib rather than the other way around.
75278         * config/srclistvars.sh (COREUTILS): Remove.
75279
75280 2006-08-22  Jim Meyering  <jim@meyering.net>
75281
75282         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
75283
75284         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
75285
75286 2006-08-22  Eric Blake  <ebb9@byu.net>
75287
75288         * modules/regexprops-generic: New file.
75289         * MODULES.html.sh (Support for building documentation): List it.
75290
75291 2006-08-22  Eric Blake  <ebb9@byu.net>
75292
75293         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
75294         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
75295         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
75296         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
75297
75298 2006-08-22  Bruno Haible  <bruno@clisp.org>
75299
75300         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
75301         and lib_LTLIBRARIES like the other lib_* variables.
75302
75303 2006-08-22  Bruno Haible  <bruno@clisp.org>
75304
75305         * build-aux/x-to-1.in: New file, from GNU gettext.
75306
75307 2006-08-22  Bruno Haible  <bruno@clisp.org>
75308
75309         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
75310         <utmpx.h> exists.
75311
75312 2006-08-22  Bruno Haible  <bruno@clisp.org>
75313
75314         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75315         <utmpx.h> exists.
75316
75317 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75318
75319         BeOS portability.
75320         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75321         exist.
75322         Problem reported by Bruno Haible.
75323
75324 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75325
75326         Avoid the need for AC_LIBSOURCES in m4 macros.
75327         * modules/acl (EXTRA_DIST): Add acl.h.
75328         * modules/argmatch (Files): Add m4/argmatch.m4.
75329         (configure.ac): Add gl_ARGMATCH.
75330         (EXTRA_DIST): Renamed from lib_SOURCES, for
75331         consistency with the other modules.  Remove argmatch.c.
75332         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75333         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75334         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75335         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75336         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75337         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75338         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75339         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75340         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75341         * modules/closeout (EXTRA_DIST): Add closeout.h.
75342         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75343         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75344         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75345         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75346         dirname.h; remove basename.c and stripslash.c.
75347         * modules/exclude (EXTRA_DIST): Add exclude.h.
75348         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75349         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75350         * modules/file-type (EXTRA_DIST): Add file-type.h.
75351         * modules/filemode (EXTRA_DIST): Add filemode.h.
75352         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75353         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75354         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75355         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75356         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75357         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75358         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75359         * modules/getdate (EXTRA_DIST): Add getdate.c.
75360         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75361         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75362         * modules/getpass (EXTRA_DIST): Add getpass.h.
75363         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75364         * modules/group-member (EXTRA_DIST): Add group-member.h.
75365         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75366         * modules/hash (EXTRA_DIST): Add hash.h.
75367         * modules/human (EXTRA_DIST): Add human.h.
75368         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75369         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75370         * modules/lchown (EXTRA_DIST): Add lchown.h.
75371         * modules/long-options (EXTRA_DIST): Add long-options.h.
75372         * modules/lstat (EXTRA_DIST): Add lstat.h.
75373         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75374         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75375         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75376         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75377         * modules/memxor (EXTRA_DIST): Add memxor.h.
75378         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75379         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75380         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75381         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75382         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75383         * modules/physmem (EXTRA_DIST): Add physmem.h.
75384         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75385         * modules/posixver (EXTRA_DIST): Add posixver.h.
75386         * modules/quote (EXTRA_DIST): Add quote.h.
75387         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75388         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75389         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75390         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75391         regex_internal.h regexec.c.
75392         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75393         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75394         * modules/same (EXTRA_DIST): Add same.h.
75395         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75396         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75397         * modules/savedir (EXTRA_DIST): Add savedir.h.
75398         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75399         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75400         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75401         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75402         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75403         * modules/strdup (EXTRA_DIST): Add strdup.h.
75404         * modules/strftime (EXTRA_DIST): Add strftime.h.
75405         * modules/strndup (EXTRA_DIST): Add strndup.h.
75406         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75407         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75408         * modules/time_r (EXTRA_DIST): Add time_r.h.
75409         * modules/timespec (EXTRA_DIST): Add timespec.h.
75410         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75411         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75412         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75413         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75414         * modules/userspec (EXTRA_DIST): Add userspec.h.
75415         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75416         * modules/utimens (EXTRA_DIST): Add utimens.h.
75417         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75418         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75419         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75420         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75421         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75422         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75423         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75424         * modules/yesno (EXTRA_DIST): Add yesno.h.
75425
75426 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75427
75428         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75429
75430         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75431         * m4/dev-ino.m4, same-inode.m4: Remove.
75432
75433         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75434         * m4/acl.m4 (AC_FUNC_ACL):
75435         * m4/backupfile.m4 (gl_BACKUPFILE):
75436         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75437         * m4/canon-host.m4 (gl_CANON_HOST):
75438         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75439         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75440         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75441         * m4/cloexec.m4 (gl_CLOEXEC):
75442         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75443         * m4/closeout.m4 (gl_CLOSEOUT):
75444         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75445         * m4/dirname.m4 (gl_DIRNAME):
75446         * m4/exclude.m4 (gl_EXCLUDE):
75447         * m4/exitfail.m4 (gl_EXITFAIL):
75448         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75449         * m4/file-type.m4 (gl_FILE_TYPE):
75450         * m4/filemode.m4 (gl_FILEMODE):
75451         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75452         * m4/fpending.m4 (gl_FUNC_FPENDING):
75453         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75454         * m4/fts.m4 (gl_FUNC_FTS):
75455         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75456         * m4/getdate.m4 (gl_GETDATE):
75457         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75458         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75459         * m4/getpass.m4 (gl_FUNC_GETPASS):
75460         * m4/gettime.m4 (gl_GETTIME):
75461         * m4/getugroups.m4 (gl_GETUGROUPS):
75462         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75463         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75464         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75465         * m4/hash.m4 (gl_HASH):
75466         * m4/idcache.m4 (gl_IDCACHE):
75467         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75468         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75469         * m4/long-options.m4 (gl_LONG_OPTIONS):
75470         * m4/lstat.m4 (gl_FUNC_LSTAT):
75471         * m4/md5.m4 (gl_MD5):
75472         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75473         * m4/memcoll.m4 (gl_MEMCOLL):
75474         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75475         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75476         * m4/memxor.m4 (gl_MEMXOR):
75477         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75478         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75479         * m4/modechange.m4 (gl_MODECHANGE):
75480         * m4/mountlist.m4 (gl_MOUNTLIST):
75481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75482         * m4/openat.m4 (gl_FUNC_OPENAT):
75483         * m4/pathmax.m4 (gl_PATHMAX):
75484         * m4/physmem.m4 (gl_PHYSMEM):
75485         * m4/posixtm.m4 (gl_POSIXTM):
75486         * m4/posixver.m4 (gl_POSIXVER):
75487         * m4/quote.m4 (gl_QUOTE):
75488         * m4/quotearg.m4 (gl_QUOTEARG):
75489         * m4/readtokens.m4 (gl_READTOKENS):
75490         * m4/readutmp.m4 (gl_READUTMP):
75491         * m4/regex.m4 (gl_REGEX):
75492         * m4/safe-read.m4 (gl_SAFE_READ):
75493         * m4/safe-write.m4 (gl_SAFE_WRITE):
75494         * m4/same.m4 (gl_SAME):
75495         * m4/save-cwd.m4 (gl_SAVE_CWD):
75496         * m4/savedir.m4 (gl_SAVEDIR):
75497         * m4/settime.m4 (gl_SETTIME):
75498         * m4/sha1.m4 (gl_SHA1):
75499         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75500         * m4/stat-macros.m4 (gl_STAT_MACROS):
75501         * m4/stat-time.m4 (gl_STAT_TIME):
75502         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75503         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75504         * m4/strdup.m4 (gl_FUNC_STRDUP):
75505         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75506         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75507         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75508         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75509         * m4/time_r.m4 (gl_TIME_R):
75510         * m4/timespec.m4 (gl_TIMESPEC):
75511         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75512         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75513         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75514         * m4/userspec.m4 (gl_USERSPEC):
75515         * m4/utimecmp.m4 (gl_UTIMECMP):
75516         * m4/utimens.m4 (gl_UTIMENS):
75517         * m4/xalloc.m4 (gl_XALLOC):
75518         * m4/xgetcwd.m4 (gl_XGETCWD):
75519         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75520         * m4/xreadlink.m4 (gl_XREADLINK):
75521         * m4/xstrtod.m4 (gl_XSTRTOD):
75522         * m4/yesno.m4 (gl_YESNO):
75523         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75524         to get the necessary .h files and whatnot.
75525
75526 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75527             Bruno Haible  <bruno@clisp.org>
75528
75529         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75530         /bin/sh understanding of '!' conditional negation.
75531
75532 2006-08-21  Jim Meyering  <jim@meyering.net>
75533
75534         * modules/openat (Depends-on): Really alphabetize.
75535
75536         * modules/acl (Depends-on): Add error and quote.
75537
75538         * check-module (find_included_lib_files): Add at-func.c to the
75539         ok-to-include-more-than-once white list.
75540
75541         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75542
75543 2006-08-21  Bruno Haible  <bruno@clisp.org>
75544
75545         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75546         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75547         Reported by Martin Lambers <marlam@marlam.de>.
75548
75549 2006-08-21  Bruno Haible  <bruno@clisp.org>
75550
75551         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75552         specify an installation location, don't emit a noinst_LIBRARIES or
75553         noinst_LTLIBRARIES assignment.
75554
75555 2006-08-21  Bruno Haible  <bruno@clisp.org>
75556
75557         BeOS portability.
75558         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75559         BeOS has mbrtowc() but no <wctype.h>.
75560
75561 2006-08-21  Bruno Haible  <bruno@clisp.org>
75562
75563         BeOS portability.
75564         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75565         exist.
75566
75567 2006-08-21  Bruno Haible  <bruno@clisp.org>
75568
75569         BeOS portability.
75570         * lib/mbchar.h: Include <wctype.h> only if it exists.
75571
75572 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75573
75574         Remove files that are no longer needed by their respective modules.
75575         * m4/obstack.m4: Remove.
75576         * m4/strerror_r.m4: Remove.
75577         * m4/uint32_t.m4: Remove.
75578         * m4/uintptr_t.m4: Remove.
75579         * m4/ullong_max.m4: Remove.
75580         * m4/xstrtoimax.m4: Remove.
75581         * m4/xstrtoumax.m4: Remove.
75582
75583         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75584         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75585         dependencies now capture this.
75586
75587         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75588         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75589         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75590         * m4/human.m4 (gl_HUMAN): Likewise.
75591         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75592         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75593
75594         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75595
75596         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75597         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75598         stdint.
75599         * m4/human.m4 (gl_HUMAN): Likewise.
75600         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75601         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75602         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75603         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75604         * m4/xstrtol (gl_XSTRTOL): Likewise.
75605
75606         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75607         AC_TYPE_LONG_LONG_INT.
75608         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75609         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75610         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75611         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75612
75613         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75614         on stdbool.
75615
75616         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75617         (gl_PREREQ_XSTRTOUL): Remove.
75618
75619         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75620
75621         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75622         mode.
75623
75624 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75625
75626         Add and change modules to make it easier for coreutils to use
75627         gnulib-tool.
75628         * modules/backupfile (Files): Remove m4/d-ino.m4.
75629         (Depends-on): Add d-ino.
75630         * modules/cycle-check (Depends-on): Add stdint.
75631         (lib_SOURCES): Add cycle-check.h.
75632         * modules/d-ino: New module.
75633         * modules/d-type: New module.
75634         * modules/error (Files): Remove m4/strerror_r.m4.
75635         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75636         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75637         m4/inttypes_h.m4, m4/uintmax_t.m4.
75638         (Depends-on): Add stdint.
75639         (lib_SOURCES): Add fsusage.h.
75640         * modules/getcwd (Files): Remove d-ino.m4.
75641         (Depends-on): Add d-ino.
75642         * modules/getndelim2 (Depends-on): Add stdint.
75643         * modules/glob (Files): Remove m4/d-type.m4.
75644         (Depends-on): Add d-type.
75645         * modules/host-os: New module.
75646         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75647         m4/inttypes_h.m4, m4/uintmax_t.m4.
75648         * Depends-on: Add stdint.
75649         (lib_SOURCES): Add human.h.
75650         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75651         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75652         m4/uintmax_t.m4, m4/ulonglong.m4.
75653         (Depends-on): Add stdint.
75654         (EXTRA_DIST): Add inttostr.h.
75655         * modules/lchmod: New module.
75656         * modules/link-follow: New module.
75657         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75658         (Depends-on): Add lchmod.
75659         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75660         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75661         (Depends-on): Add stdint.
75662         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75663         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75664         (Depends-on): Add stdint.
75665         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75666         * modules/perl: New module.
75667         * modules/regex (Depends-on): Add stdint.
75668         * modules/rmdir-errno: New module.
75669         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75670         m4/intmax_t.m4.
75671         (Depends-on): Add stdint.
75672         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75673         m4/uintmax_t.m4.
75674         (Depends-on): Add stdint.
75675         * modules/unlink-busy: New module.
75676         * modules/utimecmp (Depends-on): Add stdint.
75677         * modules/uptime: New module.
75678         * modules/winsz-ioctl: New module.
75679         * modules/winsz-termios: New module.
75680         * modules/xnanosleep (Depends-on): Add nanosleep.
75681         * modules/ullong_max: Remove.
75682         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75683         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75684         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75685         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75686         (Depends-on): Add inttypes.
75687         (lib_SOURCES): Add xstrtol.h.
75688         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75689         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75690         * MODULES.html.sh: Move 'assert' into the assert section.
75691         Move 'dummy' into the linking section.
75692         Remove ullong_max.
75693         Add section for compatibility checks for POSIX:2001 functions,
75694         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75695         winsz-ioctl, and winsz-termios into it.
75696         Add lchmod.
75697         Add top-level Misc section and put host-os, perl, and uptime
75698         into it.
75699
75700 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75701
75702         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75703         now assume the stdint module.  Do not include inttypes.h.
75704         * lib/fsusage.h: Likewise.
75705         * lib/getndelim2.c: Likewise.
75706         * lib/human.h: Likewise.
75707         * lib/inttostr.h: Likewise.
75708         * lib/obstack.c: Likewise.
75709         * lib/regex_internal.h: Likewise.
75710         * lib/tempname.c: Likewise.
75711         * lib/utimecmp.c: Likewise.
75712         * lib/xstrtol.h: Likewise.
75713
75714         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75715
75716         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75717         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75718         * lib/xtime.h: Likewise.
75719
75720 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75721
75722         * modules/openat (Files): Add lib/fchmodat.c.
75723         Fixes problem reported by Jay Youngman.
75724
75725 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75726
75727         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75728         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75729
75730 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75731             Bruno Haible  <bruno@clisp.org>
75732
75733         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75734         and is a script that invokes bison. Tighten the code. Add comments.
75735
75736 2006-08-18  Jim Meyering  <jim@meyering.net>
75737
75738         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75739         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75740         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75741         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75742
75743 2006-08-18  Bruno Haible  <bruno@clisp.org>
75744
75745         * modules/bison-i18n: New file.
75746         * MODULES.html.sh (Internationalization functions): Add it.
75747
75748 2006-08-18  Bruno Haible  <bruno@clisp.org>
75749
75750         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75751         sys/statvfs.h. When getmntinfo was found, check its declaration and
75752         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75753
75754 2006-08-18  Bruno Haible  <bruno@clisp.org>
75755
75756         * m4/bison-i18n.m4: New file, from bison.
75757
75758 2006-08-18  Bruno Haible  <bruno@clisp.org>
75759
75760         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75761         (ME_DUMMY): Treat "kernfs" as a dummy.
75762         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75763
75764 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75765
75766         Update from coreutils.
75767
75768         2006-08-15  Jim Meyering  <jim@meyering.net>
75769
75770         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75771
75772         2006-01-17  Jim Meyering  <jim@meyering.net>
75773
75774         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75775
75776         2006-01-11  Jim Meyering  <jim@meyering.net>
75777
75778         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75779         Check for the lchmod function.
75780
75781 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75782
75783         Update from coreutils.
75784
75785         * lib/__fpending.h: Add copyright notice.
75786         * lib/fprintftime.h: Likewise.
75787         * lib/savedir.c: Use (C) in copyright notice.
75788         * lib/savedir.h: Likewise.
75789
75790         2006-08-15  Jim Meyering  <jim@meyering.net>
75791
75792         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75793         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75794         in support of the EXPECTED_ERRNO macro.
75795         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75796         definitions.  Instead, define the appropriate symbols and include
75797         "at-func.c".
75798         * lib/mkdirat.c (mkdirat): Likewise.
75799         * lib/fchmodat.c (fchmodat): Likewise.
75800         (ENOSYS): Remove definition.
75801         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75802         it.  Don't include "unistd--.h" -- it wasn't ever used.
75803
75804         2006-01-17  Jim Meyering  <jim@meyering.net>
75805
75806         Rewrite fts.c not to change the current working directory,
75807         by using openat, fstatat, fdopendir, etc..
75808
75809         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75810         (HAVE_OPENAT_SUPPORT): Define.
75811         [_LIBC] (fchdir): Don't undef or define; no longer used.
75812         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75813         Now, this `function' always succeeds, and consumes its file descriptor
75814         parameter -- so callers must not close such FDs.  Update callers.
75815         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75816         (diropen): Add parameter, SP.  Adjust all callers.
75817         Implement using diropen_fd, rather than open.
75818         (fts_open): Initialize new member, fts_cwd_fd.
75819         Remove fts_rft-setting code.
75820         (fts_close): Close fts_cwd_fd, if necessary.
75821         (__opendir2): Define in terms of opendir or opendirat,
75822         depending on whether the FST_NOCHDIR flag is set.
75823         (fts_build): Since fts_safe_changedir consumes its FD, and since
75824         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75825         and close the dup'd file descriptor upon failure.
75826         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75827         (fts_safe_changedir): Tweak semantics to reflect that this function
75828         now calls cwd_advance_fd and hence consumes its FD argument.
75829         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75830         [struct FTS] (fts_rft): Remove now-unused member.
75831         [struct FTS] (fts_cycle.state): Improve comment.
75832
75833         * lib/openat.c (openat_needs_fchdir): New function.
75834         * lib/openat.h (openat_needs_fchdir): Declare it.
75835
75836 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75837
75838         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75839         Problem and fix reported by Pádraig Brady in
75840         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75841
75842 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75843
75844         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75845
75846 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75847
75848         * lib/memcoll.c (memcoll): Optimize for the common case where the
75849         arguments are bytewise equal.
75850
75851 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75852
75853         * doc/regexprops-generic.texi: Add a copyright notice.
75854
75855 2006-08-15  Bruno Haible  <bruno@clisp.org>
75856
75857         * modules/tmpdir (License): Change to LGPL.
75858
75859 2006-08-15  Bruno Haible  <bruno@clisp.org>
75860
75861         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75862         module.
75863
75864 2006-08-14  Simon Josefsson  <jas@extundo.com>
75865
75866         * config/srclist.txt: Add gnupload.
75867
75868 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75869
75870         Change copyright notice from LGPL 2 to GPL 2, since that's the
75871         standard form used in the gnulib repository.
75872         * tests/test-lock.c: Likewise.
75873         * tests/test-stdint.c: Likewise.
75874         * tests/test-tls.c: Likewise.
75875
75876         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75877         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75878         Add copyright notice.
75879
75880         * check-module: Add copyright notice.  Output a copyright
75881         notice if "--version" is specified.
75882         * modules/COPYING: New file.
75883         * tests/test-getaddrinfo.c: Add copyright notice.
75884         * tests/test-verify.c: Likewise.
75885
75886 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75887
75888         Change copyright notice from LGPL 2 to GPL 2, since that's the
75889         standard form used in the gnulib repository.
75890         * lib/lock.c: LGPL -> GPL.
75891         * lib/lock.h: Likewise.
75892         * lib/strnlen1.c: Likewise.
75893         * lib/strnlen1.h: Likewise.
75894         * lib/tls.c: Likewise.
75895         * lib/tls.h: Likewise.
75896         * lib/tmpdir.c: Likewise.
75897
75898         * lib/TODO: Remove; this belongs only in coreutils.
75899
75900 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75901
75902         Add copyright notices to long-enough files that lack them, since
75903         otherwise the files aren't clearly free.  Use the same notice that
75904         getdate.texi already uses.
75905         * doc/alloca-opt.texi: Add copyright notice.
75906         * doc/alloca.texi: Likewise.
75907         * doc/ctime.texi: Likewise.
75908         * doc/functions.texi: Likewise.
75909         * doc/gcd.texi: Likewise.
75910         * doc/gnulib-tool.texi: Likewise.
75911         * doc/inet_ntoa.texi: Likewise.
75912         * doc/visibility.texi: Likewise.
75913
75914         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75915         * doc/quote.texi: Add copyright notice.
75916
75917         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75918         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75919         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75920         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75921         is now obsolete, and give a pointer to the Sun list.
75922         Add copyright notice.
75923
75924 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75925
75926         * config/srclistvars.sh: Add copyright notice.
75927
75928 2006-08-14  Eric Blake  <ebb9@byu.net>
75929
75930         Import the following change from libc:
75931
75932         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75933
75934         Upstream bug 2997.
75935         * lib/misc/error.c: Add space between program name and message if file
75936         name is missing.
75937
75938 2006-08-12  Karl Berry  <karl@gnu.org>
75939
75940         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75941         remove, these originate in gnulib now.
75942
75943 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75944
75945         * doc/Makefile (standards.info standards.html standards.dvi):
75946         Also depend on make-stds.texi.
75947
75948 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75949
75950         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75951         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75952
75953         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75954         in wchar_t.  Problem reported by Eric Blake.
75955
75956         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75957         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75958         Also, help the compiler to keep LEN in a register.
75959
75960 2006-08-11  Eric Blake  <ebb9@byu.net>
75961
75962         * users.txt: Sort.  Add tar.
75963
75964 2006-08-11  Bruno Haible  <bruno@clisp.org>
75965
75966         * users.txt: New file.
75967
75968 2006-08-11  Bruno Haible  <bruno@clisp.org>
75969
75970         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75971         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75972
75973 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75974
75975         * modules/snprintf (Depends-on): Remove minmax.
75976         (Maintainer): Add self and Bruno.
75977
75978 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75979
75980         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75981         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75982         (EOVERFLOW): Define if the system does not.
75983         Do not include "minmax.h"; it wasn't used.
75984         (snprintf): Don't assume size_t promotes to an unsigned type.
75985         Fix bug when generated string was too long for the buffer: the
75986         buffer's contents are supposed to be the initial prefix of the
75987         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75988         exceeds INT_MAX; do the check ourselves.
75989
75990         Import the following changes from libc:
75991
75992         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75993
75994         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75995         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75996         set wc to the byte which couldn't be converted.
75997         (re_string_reconstruct): Don't clear valid_raw_len before calling
75998         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75999         tip_context using re_string_context_at.
76000
76001         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
76002
76003         * lib/posix/regex.h: g++ still cannot handled [restrict].
76004
76005         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
76006
76007         * lib/posix/regex.h: Remove special handling for VMS.
76008
76009 2006-08-10  Jim Meyering  <jim@meyering.net>
76010
76011         * modules/same-inode: New module.
76012         * modules/dev-ino: New module.
76013         * modules/cycle-check: Depend on these modules, rather than simply
76014         including their .h files.
76015         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
76016         required via m4/cycle-check.m4.
76017         * modules/same: Depend on new same-inode module, rather than
76018         including same-inode.h.
76019         * modules/chdir-safer: New file.
76020
76021         * modules/chown (Depends-on): Add stat-macros.
76022
76023 2006-08-10  Jim Meyering  <jim@meyering.net>
76024
76025         * m4/cycle-check.m4: New file.
76026         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
76027         * m4/dev-ino.m4, m4/same-inode.m4: New files.
76028
76029 2006-08-10  Eric Blake  <ebb9@byu.net>
76030
76031         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
76032         in from original proposal.
76033
76034 2006-08-10  Eric Blake  <ebb9@byu.net>
76035         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76036
76037         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
76038         namespace.
76039
76040 2006-08-10  Bruno Haible  <bruno@clisp.org>
76041
76042         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
76043         as well.
76044
76045 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76046
76047         Sync from coreutils.
76048
76049         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
76050
76051         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
76052         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
76053
76054 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76055
76056         * modules/restrict: Remove; no longer needed now that we assume
76057         Autoconf 2.59 or later.
76058         * MODULES.html.sh: Remove 'restrict'.
76059         * modules/argp (Depends-on): Remove 'restrict'.
76060         * modules/base64 (Depends-on): Likewise.
76061         * modules/gc (Depends-on): Likewise.
76062         * modules/getaddrinfo (Depends-on): Likewise.
76063         * modules/glob (Depends-on): Likewise.
76064         * modules/inet_ntop (Depends-on): Likewise.
76065         * modules/inet_pton (Depends-on): Likewise.
76066         * modules/memxor (Depends-on): Likewise.
76067         * modules/regex (Depends-on): Likewise.
76068         * modules/strtok_r (Depends-on): Likewise.
76069         * modules/time_r (Depends-on): Likewise.
76070
76071 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76072
76073         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
76074         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
76075         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76076         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
76077         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
76078         * m4/memxor.m4 (gl_MEMXOR): Likewise.
76079         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
76080         gl_C_RESTRICT replaced by AC_C_RESTRICT.
76081
76082         Merge from coreutils.
76083         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
76084         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
76085         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
76086         * m4/time_r.m4 (gl_TIME_R): Likewise.
76087
76088 2006-08-09  Karl Berry  <karl@gnu.org>
76089
76090         * config/srclist.txt: no more gettext-tools, per Bruno.
76091
76092 2006-08-08  Eric Blake  <ebb9@byu.net>
76093
76094         * modules/verror: New module.
76095         * MODULES.html.sh: Document it.
76096
76097 2006-08-08  Eric Blake  <ebb9@byu.net>
76098
76099         * lib/verror.h, lib/verror.c: New files.
76100
76101 2006-08-08  Eric Blake  <ebb9@byu.net>
76102
76103         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
76104         verror_at_line output complies with GNU Coding Standards even when
76105         file is NULL.
76106
76107 2006-08-07  Bruno Haible  <bruno@clisp.org>
76108
76109         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
76110         versions of AIX.
76111         Reported by Ralf Wildenhues.
76112
76113 2006-08-07  Bruno Haible  <bruno@clisp.org>
76114
76115         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
76116         in an AC_DEFUN. Needed so that the autoconf snippets can use
76117         AC_REQUIRE.
76118
76119 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76120
76121         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76122         Initialize pkgdata_DATA.
76123         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
76124         overriding it.
76125
76126 2006-08-06  Eric Blake  <ebb9@byu.net>
76127
76128         * lib/error.h: Fold in some upstream changes from glibc.
76129         * lib/error.c: Likewise.
76130
76131 2006-08-04  Bruno Haible  <bruno@clisp.org>
76132
76133         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76134         Make the mostlyclean-local rule depend on mostlyclean-generic.
76135         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
76136
76137 2006-07-31  Bruno Haible  <bruno@clisp.org>
76138
76139         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
76140         <stdlib.h>, <string.h>.
76141
76142 2006-07-30  Bruno Haible  <bruno@clisp.org>
76143
76144         * modules/readlink (License): Change to LGPL.
76145
76146 2006-07-30  Bruno Haible  <bruno@clisp.org>
76147
76148         * modules/javaversion (Makefile.am): Distribute javaversion.java and
76149         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
76150         set PKGDATADIR to point to it.
76151
76152 2006-07-30  Bruno Haible  <bruno@clisp.org>
76153
76154         * modules/csharpexec (configure.ac): Comment out macro invocation.
76155         * modules/javaexec (configure.ac): Likewise.
76156         * modules/javacomp-script (configure.ac): Likewise.
76157
76158         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
76159
76160 2006-07-30  Bruno Haible  <bruno@clisp.org>
76161
76162         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
76163         linked-list.
76164
76165 2006-07-30  Bruno Haible  <bruno@clisp.org>
76166
76167         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
76168
76169 2006-07-30  Bruno Haible  <bruno@clisp.org>
76170
76171         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76172         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
76173         get removed.
76174
76175 2006-07-29  Bruno Haible  <bruno@clisp.org>
76176
76177         Make it possible for gnulib-tool to work with locally modified or
76178         augmented gnulib repositories.
76179         * gnulib-tool (func_usage): Document --local-dir option.
76180         (local_gnulib_dir): New variable.
76181         Handle --local-dir option.
76182         (func_lookup_file): New function.
76183         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
76184         (func_get_description, func_get_filelist, func_get_description,
76185         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
76186         func_get_automake_snippet, func_get_include_directive,
76187         func_get_license, func_get_maintainer): Use func_lookup_file.
76188         (func_import, func_create_testdir): Use func_lookup_file.
76189
76190 2006-07-29  Bruno Haible  <bruno@clisp.org>
76191
76192         * modules/setenv (Depends-on): Add unistd.
76193
76194 2006-07-29  Bruno Haible  <bruno@clisp.org>
76195
76196         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
76197
76198 2006-07-29  Bruno Haible  <bruno@clisp.org>
76199
76200         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
76201
76202 2006-07-29  Bruno Haible  <bruno@clisp.org>
76203
76204         * gnulib-tool (import, update): If there is no Makefile.am, look at
76205         aclocal.m4, instead of bailing out.
76206
76207 2006-07-29  Bruno Haible  <bruno@clisp.org>
76208
76209         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
76210         Categorize the options by when they are useful.
76211
76212 2006-07-29  Bruno Haible  <bruno@clisp.org>
76213
76214         * gnulib-tool (func_usage): Document option --no-libtool.
76215         Handle option --no-libtool.
76216         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
76217         for changed semantics of $libtool variable.
76218         (func_import): Likewise. If libtool is not used, show this through
76219         an option --no-libtool.
76220         (func_create_testdir): Update.
76221
76222 2006-07-29  Bruno Haible  <bruno@clisp.org>
76223
76224         * gnulib-tool (func_import): Extend error message about missing
76225         --doc-base.
76226
76227 2006-07-29  Bruno Haible  <bruno@clisp.org>
76228
76229         * gnulib-tool (func_import): Don't create the $docbase directory if
76230         there is no file to store there.
76231
76232 2006-07-29  Bruno Haible  <bruno@clisp.org>
76233
76234         * gnulib-tool (autoconf_minversion): If a --dir option is given and
76235         relevant, look for configure.ac there, not in the current directory.
76236         Also use a simple search for AC_PREREQ, not "autoconf --trace".
76237
76238 2006-07-29  Bruno Haible  <bruno@clisp.org>
76239
76240         * gnulib-tool (SORT): New variable.
76241         (func_usage): Undocument --assume-autoconf option.
76242         Remove --assume-autoconf option handling.
76243         (autoconf_minversion): Determine from the contents of configure.ac.
76244         (func_import): Remove autoconf_minversion handling.
76245         Suggested by Eric Blake.
76246
76247 2006-07-29  Bruno Haible  <bruno@clisp.org>
76248
76249         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
76250
76251 2006-07-29  Bruno Haible  <bruno@clisp.org>
76252
76253         * config/srclist.txt (*setenv.[ch]): Remove rules.
76254
76255 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76256
76257         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
76258
76259 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76260
76261         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
76262         arpa/inet.h.
76263
76264 2006-07-28  Simon Josefsson  <jas@extundo.com>
76265
76266         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
76267         * modules/inet_pton (Depends-on): Likewise.
76268
76269 2006-07-28  Simon Josefsson  <jas@extundo.com>
76270
76271         * m4/netinet_in_h.m4: New file.
76272
76273 2006-07-28  Simon Josefsson  <jas@extundo.com>
76274
76275         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
76276         #include's.
76277
76278 2006-07-28  Simon Josefsson  <jas@extundo.com>
76279
76280         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
76281         #include's.
76282
76283 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
76284
76285         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
76286         setgid on directories only if they set these bits.
76287         * lib/modechange.h: Remove obsolete comment about masks.
76288
76289 2006-07-28  Eric Blake  <ebb9@byu.net>
76290
76291         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
76292         macro expansion.
76293
76294 2006-07-28  Bruno Haible  <bruno@clisp.org>
76295
76296         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
76297
76298 2006-07-28  Bruno Haible  <bruno@clisp.org>
76299
76300         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
76301
76302 2006-07-28  Bruno Haible  <bruno@clisp.org>
76303
76304         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
76305         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
76306         Define fallbacks.
76307         Avoids link error on FreeBSD 4.x.
76308         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76309
76310         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
76311         encoding.
76312         * lib/mbswidth.c (iswcntrl): Likewise.
76313
76314 2006-07-27  Bruno Haible  <bruno@clisp.org>
76315
76316         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76317         test.
76318
76319 2006-07-27  Bruno Haible  <bruno@clisp.org>
76320
76321         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76322         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76323         defined.
76324
76325 2006-07-26  Eric Blake  <ebb9@byu.net>
76326
76327         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76328
76329 2006-07-26  Eric Blake  <ebb9@byu.net>
76330
76331         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76332         like mingw that lack mkstemp.
76333         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76334         avoid compilation warning on mingw.
76335
76336 2006-07-26  Bruno Haible  <bruno@clisp.org>
76337
76338         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76339         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76340         INT_FAST*_MIN, INTPTR_MIN.
76341
76342 2006-07-25  Bruno Haible  <bruno@clisp.org>
76343
76344         * modules/version-etc (Depends-on): Add stdarg.
76345
76346 2006-07-25  Bruno Haible  <bruno@clisp.org>
76347
76348         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76349         complex commands.
76350
76351 2006-07-25  Bruno Haible  <bruno@clisp.org>
76352
76353         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76354         defined in <stdarg.h> or config.h.
76355
76356 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76357
76358         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76359         (gl_STDIO_SAFER): Remove.
76360
76361 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76362
76363         * MODULES.html.sh (File stream based Input/Output):
76364         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76365         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76366         * modules/fopen-safer, modules/tmpfile-safer: New files.
76367         * modules/stdio-safer: Remove.
76368
76369 2006-07-24  Bruno Haible  <bruno@clisp.org>
76370
76371         * modules/tmpdir: New file.
76372         * MODULES.html.sh (File system functions): Add it.
76373
76374 2006-07-24  Bruno Haible  <bruno@clisp.org>
76375
76376         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76377         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76378
76379 2006-07-24  Bruno Haible  <bruno@clisp.org>
76380
76381         * modules/clean-temp: New file.
76382
76383 2006-07-24  Bruno Haible  <bruno@clisp.org>
76384
76385         * m4/tmpdir.m4: New file, from GNU gettext.
76386
76387 2006-07-24  Bruno Haible  <bruno@clisp.org>
76388
76389         * lib/tmpdir.h: New file, from GNU gettext.
76390         * lib/tmpdir.c: New file, from GNU gettext.
76391
76392 2006-07-24  Bruno Haible  <bruno@clisp.org>
76393
76394         * lib/clean-temp.h: New file, from GNU gettext.
76395         * lib/clean-temp.c: New file, from GNU gettext.
76396
76397 2006-07-23  Eric Blake  <ebb9@byu.net>
76398
76399         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76400         (Depends-on): Add binary-io.
76401
76402 2006-07-23  Eric Blake  <ebb9@byu.net>
76403
76404         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76405
76406 2006-07-23  Eric Blake  <ebb9@byu.net>
76407
76408         * lib/tmpfile-safer.c: New file.
76409         * lib/stdio-safer.h (fopen_safer): Add prototype.
76410         * lib/stdio--.h (tmpfile): Make safer.
76411
76412 2006-07-23  Bruno Haible  <bruno@clisp.org>
76413
76414         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76415         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76416         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76417         gl_linked_remove_at): Use it.
76418
76419 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76420         and Simon Josefsson <jas@extundo.com>
76421
76422         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76423
76424         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76425
76426 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76427
76428         * modules/close-stream: New file.
76429         * modules/closeout (Description): Make it clear that it exits
76430         with a diagnostic on error.
76431         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76432         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76433
76434 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76435
76436         * m4/close-stream.m4: New file.
76437
76438 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76439
76440         * lib/close-stream.c, lib/close-stream.h: New files.
76441
76442 2006-07-22  Bruno Haible  <bruno@clisp.org>
76443
76444         Merge from GNU gettext 0.15.
76445
76446         2006-05-01  Bruno Haible  <bruno@clisp.org>
76447
76448                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76449
76450         2006-07-22  Bruno Haible  <bruno@clisp.org>
76451
76452                 * modules/javaversion: New file.
76453                 * MODULES.html.sh (Java): Add javaversion.
76454
76455         2006-03-12  Bruno Haible  <bruno@clisp.org>
76456
76457                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76458
76459         2005-12-04  Bruno Haible  <bruno@clisp.org>
76460
76461                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76462                 (untested).
76463
76464         2006-06-21  Bruno Haible  <bruno@clisp.org>
76465
76466                 Avoid warnings from recent versions of mcs.
76467                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76468                 -o, -L, -r any more. Use options documented since mcs-1.0
76469                 instead. Similarly for -g.
76470
76471         2005-12-04  Bruno Haible  <bruno@clisp.org>
76472
76473                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76474                 .resources, not .resource.
76475
76476         2005-07-09  Bruno Haible  <bruno@clisp.org>
76477
76478                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76479                 add a .dll suffix.
76480                 Reported by Mark Junker <mjscod@gmx.de>.
76481
76482         2006-07-22  Bruno Haible  <bruno@clisp.org>
76483
76484                 * modules/gettext: Upgrade to gettext-0.15.
76485                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76486                 m4/visibility.m4.
76487                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76488
76489 2006-07-22  Bruno Haible  <bruno@clisp.org>
76490
76491         Merge from GNU gettext 0.15.
76492
76493         2006-03-25  Bruno Haible  <bruno@clisp.org>
76494
76495                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76496
76497         2006-07-21  Bruno Haible  <bruno@clisp.org>
76498
76499                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76500                 "1.1".
76501
76502         2006-05-09  Bruno Haible  <bruno@clisp.org>
76503
76504                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76505                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76506                 for the conftestver execution.
76507
76508         2006-05-01  Bruno Haible  <bruno@clisp.org>
76509
76510                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76511                 optional target-version argument. Verify that the compiler
76512                 groks source of the specified source-version, or add -source
76513                 option as necessary. Verify that the compiler produces
76514                 bytecode in the specified target-version, or add -target and
76515                 -source options as necessary. Make the result of the test
76516                 available as variable CONF_JAVAC. Also log error output in
76517                 config.log.
76518
76519         2006-03-11  Bruno Haible  <bruno@clisp.org>
76520
76521                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76522
76523         2006-05-09  Bruno Haible  <bruno@clisp.org>
76524
76525                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76526                 CLASSPATH_SEPARATOR to a semicolon.
76527
76528         2006-03-12  Bruno Haible  <bruno@clisp.org>
76529
76530                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76531                 available as variable CONF_JAVA, for subsequent autoconf
76532                 tests. Also log error output in config.log.
76533
76534         2006-07-19  Bruno Haible  <bruno@clisp.org>
76535
76536                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76537                 that getline works on glibc2 systems. Needed to avoid trouble
76538                 in relocatable.c.
76539                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76540
76541         2005-12-04  Bruno Haible  <bruno@clisp.org>
76542
76543                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76544                 launcher (untested).
76545
76546         2005-12-04  Bruno Haible  <bruno@clisp.org>
76547
76548                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76549
76550         2006-07-22  Bruno Haible  <bruno@clisp.org>
76551
76552                 * gettext.m4: Update from GNU gettext-0.15.
76553                 * nls.m4: Likewise.
76554                 * po.m4: Likewise.
76555                 * inttypes-pri.m4: Likewise.
76556                 * inttypes-h.m4: Renamed from inttypes.m4.
76557                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76558
76559 2006-07-22  Bruno Haible  <bruno@clisp.org>
76560
76561         Merge from GNU gettext 0.15.
76562
76563         2005-07-05  Bruno Haible  <bruno@clisp.org>
76564
76565                 * printf-args.c (printf_fetchargs): Work around broken
76566                 definition of wint_t on mingw.
76567
76568         2005-02-12  Bruno Haible  <bruno@clisp.org>
76569
76570                 * xallocsa.h: Add extern "C" for C++.
76571
76572         2006-05-17  Bruno Haible  <bruno@clisp.org>
76573
76574                 Cygwin portability.
76575                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76576
76577         2006-04-30  Bruno Haible  <bruno@clisp.org>
76578
76579                 * progreloc.c: Include <mach-o/dyld.h> if available.
76580                 (find_executable): Use _NSGetExecutablePath when possible.
76581
76582         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76583
76584                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76585                 function.
76586
76587         2005-12-29  Bruno Haible  <bruno@clisp.org>
76588
76589                 * progreloc.c (set_program_name_and_installdir): Fix
76590                 compilation error.
76591
76592         2005-12-04  Bruno Haible  <bruno@clisp.org>
76593
76594                 Cygwin portability.
76595                 * progreloc.c: Include <windows.h> also on Cygwin.
76596                 (find_executable): Add support for Cygwin.
76597                 (set_program_name_and_installdir): Handle also platforms with
76598                 nonempty EXEEXT.
76599
76600         2006-07-11  Bruno Haible  <bruno@clisp.org>
76601
76602                 * javacomp.c: Fix a comment.
76603                 Reported by Jim Meyering.
76604
76605         2006-04-30  Bruno Haible  <bruno@clisp.org>
76606
76607                 * javacomp.h (compile_java_class): Add source_version,
76608                 target_version arguments.
76609                 * javacomp.c: Rewritten to choose only a compiler that
76610                 respects the specified source_version and target_version.
76611
76612         2006-06-27  Bruno Haible  <bruno@clisp.org>
76613
76614                 Assume correct S_ISDIR macro.
76615                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76616
76617         2006-07-22  Bruno Haible  <bruno@clisp.org>
76618
76619                 * javaversion.h: New file, from GNU gettext.
76620                 * javaversion.c: New file, from GNU gettext.
76621                 * javaversion.java: New file, from GNU gettext.
76622                 * javaversion.class: New file, from GNU gettext.
76623
76624         2006-05-17  Bruno Haible  <bruno@clisp.org>
76625
76626                 Cygwin portability.
76627                 * javaexec.c (execute_java_class): Test for jview program
76628                 also on Cygwin.
76629
76630         2006-04-09  Bruno Haible  <bruno@clisp.org>
76631
76632                 * fatal-signal.c: Don't include string.h.
76633                 (at_fatal_signal): Use a copying loop instead of memcpy.
76634
76635         2005-12-04  Bruno Haible  <bruno@clisp.org>
76636
76637                 * csharpexec.c: Add support for 'clix' launcher (untested).
76638                 (execute_csharp_using_sscli): New function.
76639                 (execute_csharp_program): Call it.
76640
76641         2006-06-21  Bruno Haible  <bruno@clisp.org>
76642
76643                 Avoid warnings from recent versions of mcs.
76644                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76645                 -o, -L, -r any more. Use options documented since mcs-1.0
76646                 instead. Similarly for -g.
76647
76648         2005-07-09  Bruno Haible  <bruno@clisp.org>
76649
76650                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76651                 add a .dll suffix.
76652                 Reported by Mark Junker <mjscod@gmx.de>.
76653
76654         2006-06-17  Bruno Haible  <bruno@clisp.org>
76655
76656                 * config.charset: Update for NetBSD 3.0.
76657
76658         2006-05-17  Bruno Haible  <bruno@clisp.org>
76659
76660                 Cygwin portability.
76661                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76662
76663         2006-05-16  Bruno Haible  <bruno@clisp.org>
76664
76665                 * localcharset.c [CYGWIN]: Include <windows.h>.
76666                 (get_charset_aliases): For Cygwin, return the same CPxxx
76667                 aliases list as under WIN32.
76668                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76669                 the environment variables. Fall back to GetACP().
76670
76671         2006-04-05  Bruno Haible  <bruno@clisp.org>
76672
76673                 * config.charset: Update Juan Manuel Guerrero's address.
76674
76675         2005-02-12  Bruno Haible  <bruno@clisp.org>
76676
76677                 * allocsa.h: Add extern "C" for C++.
76678
76679         2005-02-10  Bruno Haible  <bruno@clisp.org>
76680
76681                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76682                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76683
76684         2006-07-22  Bruno Haible  <bruno@clisp.org>
76685
76686                 * gettext.h: Update to GNU gettext-0.15.
76687
76688 2006-07-22  Bruno Haible  <bruno@clisp.org>
76689
76690         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76691         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76692         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76693
76694 2006-07-21  Eric Blake  <ebb9@byu.net>
76695
76696         * modules/stdlib-safer: New file.
76697         * MODULES.html.sh (File stream based Input/Output): Add
76698         stdlib-safer.
76699
76700 2006-07-21  Eric Blake  <ebb9@byu.net>
76701
76702         * lib/stdlib-safer.h: New file from coreutils, required by
76703         stdlib--.h.
76704
76705 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76706
76707         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76708
76709 2006-07-20  Bruno Haible  <bruno@clisp.org>
76710
76711         * gnulib-tool: Recognize new option --assume-autoconf.
76712         (autoconf_minversion): New variable.
76713         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76714
76715 2006-07-20  Bruno Haible  <bruno@clisp.org>
76716
76717         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76718
76719 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76720
76721         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76722         Reindent and repaginate.
76723
76724 2006-07-19  Derek Price  <derek@ximbiot.com>
76725
76726         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76727         Correct grammar.
76728
76729 2006-07-17  Bruno Haible  <bruno@clisp.org>
76730
76731         * modules/list: New file.
76732         * modules/array-list: New file.
76733         * modules/carray-list, modules/carray-list-tests: New files.
76734         * modules/linked-list, modules/linked-list-tests: New files.
76735         * modules/avltree-list, modules/avltree-list-tests: New files.
76736         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76737         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76738         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76739         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76740         * modules/oset: New file.
76741         * modules/array-oset: New file.
76742         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76743         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76744         * tests/test-carray_list.c: New file.
76745         * tests/test-linked_list.c: New file.
76746         * tests/test-avltree_list.c: New file.
76747         * tests/test-rbtree_list.c: New file.
76748         * tests/test-linkedhash_list.c: New file.
76749         * tests/test-avltreehash_list.c: New file.
76750         * tests/test-rbtreehash_list.c: New file.
76751         * tests/test-avltree_oset.c: New file.
76752         * tests/test-rbtree_oset.c: New file.
76753         * MODULES.html.sh (Container data structures): New section.
76754
76755 2006-07-17  Bruno Haible  <bruno@clisp.org>
76756
76757         * m4/gl_list.m4: New file.
76758
76759 2006-07-17  Bruno Haible  <bruno@clisp.org>
76760
76761         * lib/gl_list.h: New file.
76762         * lib/gl_list.c: New file.
76763         * lib/gl_array_list.h: New file.
76764         * lib/gl_array_list.c: New file.
76765         * lib/gl_carray_list.h: New file.
76766         * lib/gl_carray_list.c: New file.
76767         * lib/gl_linked_list.h: New file.
76768         * lib/gl_linked_list.c: New file.
76769         * lib/gl_anylinked_list1.h: New file.
76770         * lib/gl_anylinked_list2.h: New file.
76771         * lib/gl_avltree_list.h: New file.
76772         * lib/gl_avltree_list.c: New file.
76773         * lib/gl_anyavltree_list1.h: New file.
76774         * lib/gl_anyavltree_list2.h: New file.
76775         * lib/gl_rbtree_list.h: New file.
76776         * lib/gl_rbtree_list.c: New file.
76777         * lib/gl_anyrbtree_list1.h: New file.
76778         * lib/gl_anyrbtree_list2.h: New file.
76779         * lib/gl_anytree_list1.h: New file.
76780         * lib/gl_anytree_list2.h: New file.
76781         * lib/gl_linkedhash_list.h: New file.
76782         * lib/gl_linkedhash_list.c: New file.
76783         * lib/gl_anyhash_list1.h: New file.
76784         * lib/gl_anyhash_list2.h: New file.
76785         * lib/gl_avltreehash_list.h: New file.
76786         * lib/gl_avltreehash_list.c: New file.
76787         * lib/gl_rbtreehash_list.h: New file.
76788         * lib/gl_rbtreehash_list.c: New file.
76789         * lib/gl_anytreehash_list1.h: New file.
76790         * lib/gl_anytreehash_list2.h: New file.
76791
76792         * lib/gl_oset.h: New file.
76793         * lib/gl_oset.c: New file.
76794         * lib/gl_array_oset.h: New file.
76795         * lib/gl_array_oset.c: New file.
76796         * lib/gl_avltree_oset.h: New file.
76797         * lib/gl_avltree_oset.c: New file.
76798         * lib/gl_rbtree_oset.h: New file.
76799         * lib/gl_rbtree_oset.c: New file.
76800         * lib/gl_anytree_oset.h: New file.
76801
76802 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76803
76804         * m4/mkancesdirs.m4: New file.
76805         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76806         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76807         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76808         it.
76809
76810 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76811
76812         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76813         * lib/mkancesdirs.h: New files.
76814         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76815         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76816         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76817         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76818         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76819         callers changed.  Revamp internals significantly, by not
76820         attempting to create directories that are temporarily more
76821         permissive than the final results.  Do not attempt to use
76822         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76823         This removes some race conditions, fixes some bugs, and simplifies
76824         things.  Use new dirchownmod function to do owner and mode changes.
76825         * lib/mkdir-p.h: Likewise.
76826         * lib/modechange.c (octal_to_mode): New function.
76827         (struct mode_change): New member mentioned.
76828         (make_node_op_equals): New arg mentioned.  All callers changed.
76829         (mode_compile): Keep track of which mode bits the user has explicitly
76830         mentioned.
76831         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76832         New arg PMODE_BITS, to keep track of which mode bits the user
76833         mentioned; it treats S_ISUID and S_ISGID speciall.
76834         All callers changed.
76835         * lib/modechange.h: Likewise.
76836
76837 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76838
76839         * MODULES.html.sh: Add mkancestors.
76840         * modules/mkancesdirs: New module.
76841         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76842         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76843         The chdir-safer and afs files are now orphans; I'll remove them
76844         unless someone speaks up.
76845         Add lib/dirchownmod.c, lib/dirchownmod.h.
76846         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76847         Add lchown, mkancesdirs.
76848         (Maintainer): Add self.
76849
76850 2006-07-15  Karl Berry  <karl@gnu.org>
76851
76852         * gnulib-tool: help message wording/arrangement.
76853
76854 2006-07-14  Simon Josefsson  <jas@extundo.com>
76855
76856         * doc/gnulib.texi (Libtool and Windows): New section.
76857
76858 2006-07-12  Simon Josefsson  <jas@extundo.com>
76859
76860         * modules/gendocs (License): Fix license, approved by Karl.
76861
76862 2006-07-12  Eric Blake  <ebb9@byu.net>
76863
76864         * MODULES.html.sh: Add gendocs.
76865
76866 2006-07-11  Eric Blake  <ebb9@byu.net>
76867
76868         * modules/fdl: New module, to install doc/fdl.texi.
76869         * MODULES.html.sh: Add new section for documentation modules.
76870         * gnulib-tool: Avoid space-tab.
76871         (--doc-base): New option, to manage files from doc.
76872
76873 2006-07-11  Eric Blake  <ebb9@byu.net>
76874
76875         * m4/absolute-header.m4: Fix comments to match recent change.
76876
76877 2006-07-11  Eric Blake  <ebb9@byu.net>
76878
76879         * gnulib-tool: List --doc-base before --tests-base.
76880
76881 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76882
76883         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76884
76885 2006-07-11  Bruno Haible  <bruno@clisp.org>
76886
76887         * README: Mention where to put documentation.
76888
76889 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76890
76891         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76892
76893 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76894
76895         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76896         to stdint.m4.
76897
76898 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76899
76900         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76901         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76902         "no/such/file/stdint.h" when there is no such file, so that
76903         the resulting C code can be parsed by dodgy compilers.
76904         Problems reported by Bob Proulx.
76905
76906 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76907
76908         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76909         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76910         macros into the GNU _D_EXACT_NAMLEN.
76911         * lib/savedir.c:  Likewise.
76912         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76913
76914 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76915         and Paul Eggert  <eggert@cs.ucla.edu>
76916
76917         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76918         * m4/savedir.m4:
76919         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76920         macros into the GNU _D_EXACT_NAMLEN.
76921
76922 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76923
76924         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76925         around the absolute name, to work around a problem with the HP-UX
76926         11.23 native C compiler, reported by Bob Proulx.
76927
76928 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76929
76930         * doc/maintain.texi, make-stds.texi: Sync from
76931         <http://savannah.gnu.org/projects/gnustandards>.
76932
76933 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76934
76935         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76936
76937 2006-07-09  Jim Meyering  <jim@meyering.net>
76938
76939         * m4/glob.m4: Remove a doubled word in a comment.
76940
76941 2006-07-09  Jim Meyering  <jim@meyering.net>
76942
76943         * lib/argp-pv.c: Remove a doubled word in a comment.
76944         * lib/check-version.c (check_version): Likewise.
76945         * lib/javacomp.c (compile_java_class): Likewise.
76946
76947 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76948
76949         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76950         for the benefit of people using Autoconf 2.60.  If you want to
76951         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76952         (or m4/onceonly.m4, if pre-2.57) manually.
76953
76954 2006-07-08  Jim Meyering  <jim@meyering.net>
76955
76956         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76957         comment.
76958         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76959         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76960         comment.
76961
76962 2006-07-08  Jim Meyering  <jim@meyering.net>
76963
76964         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76965
76966 2006-07-07  Simon Josefsson  <jas@extundo.com>
76967
76968         * tests/test-crc.c: Change expected crc value, the test vector
76969         were probably computed using the old broken crc.c?
76970
76971 2006-07-06  Simon Josefsson  <jas@extundo.com>
76972
76973         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76974         now the canonical place for the M4 file).
76975
76976         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76977         from the sys_socket dependency now.
76978
76979         * modules/inet_pton (Files): Ditto.
76980
76981         * modules/inet_ntop (Files): Ditto.
76982
76983 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76984
76985         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76986         not gl_PREREQ_GETUSERSHELL.
76987
76988 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76989
76990         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76991         with only one argument, for Autoconf 2.60.
76992         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76993         expand to nothing, so add a shell command to avoid syntax error.
76994         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76995
76996 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76997
76998         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76999
77000 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77001
77002         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
77003         no longer needed.  Check for isblank decl.
77004         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
77005         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
77006         of existence.
77007
77008 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77009
77010         * lib/getloadavg.c: Use __VMS, not VMS.
77011         * lib/getopt.c: Likewise.
77012         * lib/getpagesize.h: Likewise.
77013         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
77014         and probably does not work.
77015
77016 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77017
77018         * lib/.cppi-disable: Add wcwidth.
77019         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
77020         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
77021         (ISGRAPH): Remove.  All uses changed to isgraph.
77022         (FOLD) [!defined _LIBC]: Remove special case.
77023         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
77024         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
77025         HAVE_ISBLANK.
77026         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
77027         case.
77028
77029 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77030
77031         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
77032         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
77033         brackets.  Other minor changes to suppress some compiler
77034         warnings.
77035
77036 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77037         and Paul Eggert  <eggert@cs.ucla.edu>
77038
77039         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
77040         of invoking obsolescent AC_HEADER_DIRENT macro.
77041         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
77042         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
77043         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
77044         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
77045         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
77046         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77047         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
77048         * m4/readdir.m4: Remove; no longer needed.
77049
77050 2006-07-06  Derek R. Price  <derek@ximbiot.com>
77051         and Paul Eggert  <eggert@cs.ucla.edu>
77052
77053         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
77054         Don't worry about this obsolete case any more.
77055         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
77056         directories.
77057         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
77058         worry about this obsolete case any more.
77059         * lib/fts.c: Likewise.
77060         * lib/getcwd.c: Likewise.
77061         * lib/glob.h: Likewise.
77062         * lib/savedir.c: Likewise.
77063
77064 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77065
77066         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
77067         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
77068         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
77069         needed.
77070         All uses removed.
77071         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77072         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77073         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
77074         needed.
77075         * m4/getdate.m4 (gl_GETDATE): Likewise.
77076         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77077         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77078         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77079         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77080         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
77081         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77082         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
77083         needed.
77084
77085 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77086
77087         * lib/memcasecmp.c: Include <limits.h>.
77088         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
77089         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
77090         Don't assume isdigit succeeds only on '0' through '9'.
77091
77092 2006-07-05  Eric Blake  <ebb9@byu.net>
77093
77094         * modules/getaddrinfo (Depends-on): Add snprintf.
77095
77096 2006-07-05  Eric Blake  <ebb9@byu.net>
77097
77098         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
77099         to avoid 'header present but could not be compiled' on cygwin.
77100
77101 2006-07-05  Eric Blake  <ebb9@byu.net>
77102
77103         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
77104         missing from netdb.h.
77105         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
77106
77107 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77108
77109         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
77110         no longer needed.
77111         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
77112         * m4/getdate.m4 (gl_GETDATE): Likewise.
77113         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
77114         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
77115         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
77116         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
77117         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77118
77119 2006-07-05  Derek R. Price  <derek@ximbiot.com>
77120
77121         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
77122         All uses of is_space replaced by isspace.
77123         * lib/exit.h: Don't talk about STDC_HEADERS.
77124         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
77125         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
77126         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
77127         replaced by isprint etc.
77128         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
77129         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77130         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
77131         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
77132         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
77133         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
77134
77135 2006-07-05  Bruno Haible  <bruno@clisp.org>
77136
77137         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
77138         the function exists, before testing against AIX.
77139         Reported by Martin Lambers <marlam@marlam.de>.
77140
77141 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77142
77143         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
77144         From Mark D. Baushke.
77145
77146 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
77147
77148         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
77149         to the absolute name, not just one, to bypass Sun C 5.8's
77150         "warning: #include of /usr/include/... may be non-portable".
77151
77152 2006-07-04  Eric Blake  <ebb9@byu.net>
77153
77154         * modules/dirname-tests: New test module.
77155         * tests/test-dirname.c: New file, replacing dirname.c
77156         TEST_DIRNAME section that was recently deleted.
77157
77158 2006-07-04  Bruno Haible  <bruno@clisp.org>
77159
77160         Assume ANSI C header files and <ctype.h> functions.
77161         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
77162         (mbsnwidth): Use isprint, iscntrl instead.
77163
77164 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77165
77166         Merge from coreutils.
77167         * MODULES.html.sh: Add xstrtold.
77168         * modules/xstrtold: New file.
77169         * modules/cycle-check (Files): Add lib/same-inode.h.
77170         * modules/dirname (Files): Add m4/double-slash-root.m4.
77171         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
77172         * modules/mkdir-p (Files): Add lib/same-inode.h.
77173         * modules/same (Files): Add lib/same-inode.h.
77174
77175 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77176
77177         * m4/absolute-header.m4: Renamed from full-header-path.m4.
77178         This is to keep the terminology clean; POSIX talks about
77179         "absolute pathnames", not "full pathnames", but the GNU
77180         Coding Standards say to use "path" for something else;
77181         so use "absolute" to keep both sides happy.
77182         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
77183         Set gl_absolute_header, not gl_full_header_path.
77184         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
77185         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
77186         All uses changed.
77187
77188         Merge from coreutils.
77189
77190         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77191
77192         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
77193         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
77194         want to require the building of c-strtod.o.
77195         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
77196         needs -lm directly.
77197         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
77198
77199         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77200
77201         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
77202         --as-needed option if available.  Problem reported by Albert Chin in
77203         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
77204         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
77205         cc merely issues a bunch of annoying warnings for --as-needed
77206         (this problem was reported by Bob Proulx).  Also, try linking with
77207         -lm to detect a bug in binutils 2.16 (this problem was reported
77208         by Ralf Wildenhues).
77209
77210         2006-06-18  Jim Meyering  <jim@meyering.net>
77211
77212         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
77213         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
77214         macro.
77215         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
77216         also check for glibc-2.4's abort-inducing bug.
77217
77218         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
77219         Low-probability clean-up should be to use rmdir to get rid of
77220         the just-created directory, not unlink.
77221
77222         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
77223         configure fail, and request a bug report to inform us about it.
77224         Add a comment that, barring reports to the contrary, in 2007 we'll
77225         assume ftruncate is universally available.
77226
77227         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77228
77229         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
77230
77231         2006-03-12  Jim Meyering  <jim@meyering.net>
77232
77233         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
77234         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
77235         * m4/same.m4 (gl_SAME): Likewise.
77236         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
77237
77238         2006-03-11  Eric Blake  <ebb9@byu.net>
77239
77240         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
77241         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
77242         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
77243         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
77244
77245 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77246
77247         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
77248         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
77249         reported by Mark D. Baushke, one in
77250         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
77251
77252         Merge from coreutils.
77253
77254         * lib/.cppi-disable: Add stdint_.h.
77255         * lib/.cvsignore: Add stdint.h.
77256
77257         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
77258
77259         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
77260         both double and long double versions.
77261         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
77262         * lib/xstrtold.c: New file.
77263         * lib/xstrtod.h (xstrtold): New decl.
77264
77265         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77266
77267         * lib/filemode.c (setst): Remove.
77268         (strmode): Rewrite to avoid setst.  This makes the code shorter,
77269         (arguably) clearer, and the generated code is a bit smaller on my
77270         Debian GNU/Linux stable x86 host.
77271
77272         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
77273
77274         * lib/filemode.c: Include "filemode.h" first, to test the interface.
77275         Assume that filemode.h includes sys/types.h and sys/stat.h.
77276         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
77277         (ftypelet): Reorder to put common cases first, for efficiency.
77278         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
77279         to do 'M'.
77280         (strmode): Renamed from mode_string, and now stores 12 bytes instead
77281         of 10, for compatibility with FreeBSD.  All callers changed.
77282         (filemodestring): Now stores 12 bytes instead of 10, and sets file
77283         types that can't be deduced solely from st_mode.  First arg is now a
77284         const pointer.
77285         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
77286         (strmode): Renamed from mode_string.
77287         (filemodestring): New decl.
77288         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
77289         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
77290         needed.
77291         (S_ISPORT, S_ISWHT): New macros, if not already defined.
77292
77293         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77294
77295         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
77296         fsusage.h now does that.  Include fsusage.h first, to test interface.
77297         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
77298         at most one method (the old code could have generated decls that
77299         didn't conform to C89, not that this was ever exercised).
77300         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
77301
77302         2006-03-19  Jim Meyering  <jim@meyering.net>
77303
77304         Work even in a chroot where d_ino values for entries in "/"
77305         don't match the stat.st_ino values for the same names.
77306         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
77307         number, iterate through all entries again, using lstat instead.
77308         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
77309         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
77310
77311         * lib/getcwd.c (__getcwd): Clarify a comment.
77312         Use memcpy in place of a call to strcpy.
77313
77314         2006-03-12  Jim Meyering  <jim@meyering.net>
77315
77316         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77317         matches that of the current directory (which we're about to chdir ".."
77318         out of), then save the dev-ino of the parent, instead.
77319
77320         * lib/same-inode.h (SAME_INODE): New file/macro.
77321         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77322         Include "same-inode.h", instead.
77323         * lib/same.c: Likewise.
77324         * lib/cycle-check.h: Include "same-inode.h".
77325         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77326         * lib/cycle-check.c (SAME_INODE): Remove definition.
77327         * lib/root-dev-ino.h: Include "same-inode.h".
77328
77329         2006-03-11  Eric Blake  <ebb9@byu.net>
77330
77331         * lib/same.c (same_name): s/base_name/last_component/
77332         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77333         * lib/filenamecat.c (file_name_concat): Likewise.
77334
77335         2006-03-11  Eric Blake  <ebb9@byu.net>,
77336                     Paul Eggert  <eggert@cs.ucla.edu>
77337
77338         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77339         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77340         drive prefix.
77341         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77342         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77343         (last_component): New method.
77344         * lib/dirname.c (dir_len): Determine when drive letters need a
77345         subsequent slash.  Preserve // when it is special.
77346         (dir_name): Don't append dot when drive letter is absolute.
77347         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77348         * lib/basename.c (base_name): New semantics - malloc the result.
77349         Preserve // when it is special.  Preserve relative files that look
77350         like drive letters.
77351         (base_len): Preserve // when it is special.
77352         (last_component): New method, similar to old base_name semantics.
77353         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77354         base_name.  Strip redundant slashes from ///.
77355
77356 2006-07-03  Jim Meyering  <jim@meyering.net>
77357
77358         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77359         macro is used before the first cycle_check call.
77360
77361 2006-07-03  Eric Blake  <ebb9@byu.net>
77362
77363         * modules/dirname (Depends-on): Add xstrndup.
77364
77365 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77366
77367         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77368         test cases, so that config.log is a bit easier to follow.
77369
77370 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77371
77372         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77373         both are 64 bits, since this seems to be the tradition, and this
77374         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77375         we ever run into a host that prefers long long to long in this
77376         case, we'll need another configure-time test.  Problem reported by
77377         Jim Meyering.
77378
77379 2006-07-02  Eric Blake  <ebb9@byu.net>
77380
77381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77382
77383 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77384
77385         * modules/inttypes (Depends-on): No longer depends on stdint.
77386         * modules/stdint (Description): Say more about assumptions.
77387         Say that the fast types might differ.  Say macros are used.
77388         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77389         (Makefile.am): Revise list of substituted symbols to match
77390         new stdint.m4.
77391         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77392         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77393         * tests/test-stdint.c (verify_same_types)
77394         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77395         the code conforms to C99/C89.
77396         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77397         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77398
77399 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77400
77401         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77402         but fix a bug, by requiring at least 64 bits.
77403         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77404         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77405         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77406         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77407
77408         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77409         changes.  Make 2.59 a prerequisite.  Check and substitute for
77410         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77411         inttypes.h.  Do not use special include files; just use the
77412         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77413         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77414         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77415         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77416         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77417         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77418         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77419         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77420         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77421         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77422         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77423         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77424         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77425         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77426         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77427         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77428         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77429         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77430         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77431         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77432         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77433         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77434         not check for things that C99 does not require, e.g., int8_t.  If
77435         a test isn't needed unless <stdint.h> isn't working, and is
77436         unlikely to be needed for any other reason, then don't do it
77437         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77438         size_t, since we assume C89 freestanding at least.  Do not check
77439         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77440         the right thing even if the types are not defined.  Instead use:
77441         (gl_STDINT_TYPE_PROPERTIES): New macro.
77442         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77443         testing whether <sys/types.h> clashes, as Autoconf does this for
77444         us now.  All uses removed.
77445         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77446         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77447         (gl_CHECK_TYPE_SAME):
77448         Remove; no longer needed.
77449         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77450         exists, since we'll return 0 anyway in that case.
77451         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77452
77453 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77454
77455         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77456         possible collision with system files.
77457         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77458         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77459         WCHAR_MIN and WCHAR_MAX in this case.
77460         (<stddef.h>): Do not include; no longer needed.
77461         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77462         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77463         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77464         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77465         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77466         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77467         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77468         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77469         !defined(__c99))]: Include in this case too, since it's harmless
77470         now.
77471         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77472         dangerous to do so.
77473         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77474         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77475         (_STDINT_MIN, _STDINT_MAX): New macros.
77476         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77477         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77478         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77479         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77480         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77481         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77482         macros, not typedefs; this simplifies things quite a bit.
77483         Use long int for all types narrower than int64_t.
77484         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77485         Define in terms of long long int or int64_t or long int,
77486         not int64_t or int32_t.  This saves some compile-time testing.
77487         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77488         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77489         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77490         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77491         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77492         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77493         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77494         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77495         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77496         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77497         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77498         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77499         undef any previous version and define our own version, for
77500         simplicity and consistency with the new macros for types.
77501         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77502         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77503         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77504         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77505         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77506         @WINT_T_SUFFIX@ to keep things simple here.
77507         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77508         Simplify by assuming typical 8/16/32/64 host, since we're
77509         already doing that elsewhere anyway.
77510         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77511         and assume long long int is 64 bits if available.  This
77512         speeds up 'configure'.
77513
77514 2006-07-01  Eric Blake  <ebb9@byu.net>
77515
77516         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77517         Reported by Andreas Buening.
77518
77519 2006-07-01  Eric Blake  <ebb9@byu.net>
77520
77521         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77522
77523 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77524
77525         * lib/getaddrinfo.c: fixed typo
77526
77527 2006-06-29  Jim Meyering  <jim@meyering.net>
77528
77529         * modules/strftime (Maintainer): Add my name, since with the
77530         FPRINTFTIME changes strftime.c has forked from glibc.
77531
77532 2006-06-29  Eric Blake  <ebb9@byu.net>
77533
77534         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77535
77536 2006-06-29  Eric Blake  <ebb9@byu.net>
77537
77538         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77539
77540 2006-06-29  Eric Blake  <ebb9@byu.net>
77541
77542         * lib/stat_.h: New file.
77543
77544 2006-06-29  Eric Blake  <ebb9@byu.net>
77545
77546         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77547         unused static function.
77548
77549 2006-06-29  Eric Blake  <ebb9@byu.net>
77550
77551         * doc/functions.texi (Function Portability): Document missing lstat
77552         on mingw.
77553
77554 2006-06-29  Eric Blake  <ebb9@byu.net>
77555
77556         * MODULES.html.sh: Add sys_stat.
77557         * modules/sys_stat: New module.
77558         * modules/mkstemp (Depends-on): Add sys_stat.
77559
77560 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77561
77562         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77563
77564 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77565
77566         * m4/c-bs-a.m4: Removed.
77567
77568 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77569
77570         * lib/strftime.c: Assume strftime() exists.
77571
77572 2006-06-29  Derek Price  <derek@ximbiot.com>
77573
77574         * modules/c-bs-a: Removed - \a is C89.
77575         * MODULES.html.sh: Remove c-bs-a.
77576
77577 2006-06-29  Bruno Haible  <bruno@clisp.org>
77578
77579         * modules/wcwidth (License): Change to LGPL.
77580
77581 2006-06-28  Simon Josefsson  <jas@extundo.com>
77582
77583         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77584         on _WIN32.
77585
77586         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77587         getnameinfo.
77588
77589 2006-06-28  Simon Josefsson  <jas@extundo.com>
77590
77591         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77592
77593 2006-06-28  Simon Josefsson  <jas@extundo.com>
77594
77595         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77596         functions there.  It will succeed on Windows XP, but on Windows
77597         2000 and (presumably) earlier, it will fail, and use the internal
77598         re-implementation.
77599         (use_win32_p): New function.
77600         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77601         Support AI_NUMERICSERV to disable getservbyname.
77602         (getnameinfo): New function, only supports
77603         NI_NUMERICHOST|NI_NUMERICSERV for now.
77604
77605         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77606         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77607         getnameinfo.
77608
77609 2006-06-28  Eric Blake  <ebb9@byu.net>
77610
77611         * modules/wcwidth: New file.
77612         * modules/mbchar (Depends-on): Add wcwidth.
77613         * modules/mbswidth (Depends-on): Add wcwidth.
77614         * MODULES.html.sh: Add wcwidth.
77615
77616 2006-06-28  Eric Blake  <ebb9@byu.net>
77617
77618         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77619         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77620
77621 2006-06-28  Eric Blake  <ebb9@byu.net>
77622
77623         * lib/xvasprintf.h: Fix comments.
77624
77625 2006-06-28  Eric Blake  <ebb9@byu.net>
77626
77627         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77628         * lib/mbswidth.c (wcwidth): Move from here...
77629         * lib/wcwidth.h: ...to this new file.
77630
77631 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77632
77633         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77634
77635         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77636         it's obsolete.
77637         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77638
77639 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77640
77641         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77642         Autoconf 2.60 says this stuff was obsolete.
77643
77644 2006-06-28  Bruno Haible  <bruno@clisp.org>
77645
77646         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77647
77648 2006-06-28  Bruno Haible  <bruno@clisp.org>
77649
77650         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77651         gt_TYPE_WCHAR_T.
77652
77653 2006-06-28  Bruno Haible  <bruno@clisp.org>
77654
77655         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77656         declaration for wcwidth.
77657         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77658
77659 2006-06-28  Bruno Haible  <bruno@clisp.org>
77660
77661         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77662         (mkdir): Define using _mkdir.
77663
77664 2006-06-28  Bruno Haible  <bruno@clisp.org>
77665
77666         * lib/getaddrinfo.h: Fix POSIX URL.
77667         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77668         _WIN32.
77669         (use_win32_p): Make static.
77670         (getaddrinfo): Reject service name if it is empty or does not consist
77671         solely of decimal digits, or if its value is > 65535.
77672         (getnameinfo): Remove useless casts.
77673
77674 2006-06-27  Simon Josefsson  <jas@extundo.com>
77675
77676         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77677         Eggert and Martin Lambers.
77678
77679 2006-06-27  Simon Josefsson  <jas@extundo.com>
77680
77681         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77682         Eggert and Martin Lambers.
77683
77684 2006-06-27  Bruno Haible  <bruno@clisp.org>
77685
77686         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77687         result to 0, not to empty.
77688         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77689
77690 2006-06-27  Bruno Haible  <bruno@clisp.org>
77691
77692         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77693
77694 2006-06-26  Simon Josefsson  <jas@extundo.com>
77695
77696         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77697         present.
77698
77699 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77700
77701         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77702         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77703         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77704
77705 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77706
77707         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77708
77709 2006-06-26  Bruno Haible  <bruno@clisp.org>
77710
77711         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77712
77713 2006-06-26  Bruno Haible  <bruno@clisp.org>
77714
77715         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77716
77717 2006-06-26  Bruno Haible  <bruno@clisp.org>
77718
77719         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77720         SGI C compiler in pre-C99 mode.
77721         Suggested by Mark D. Baushke and Larry Jones.
77722
77723 2006-06-26  Bruno Haible  <bruno@clisp.org>
77724
77725         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77726         WCHAR_MAX.
77727         Reported by Mark D. Baushke and Larry Jones.
77728
77729 2006-06-26  Bruno Haible  <bruno@clisp.org>
77730
77731         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77732         in pre-C99 mode.
77733         Suggested by Mark D. Baushke and Larry Jones.
77734
77735 2006-06-23  Simon Josefsson  <jas@extundo.com>
77736             Bruno Haible  <bruno@clisp.org>
77737
77738         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77739         Emit mostlyclean-local rule.
77740         (func_emit_tests_Makefile_am): Likewise.
77741         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77742
77743 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77744
77745         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77746
77747 2006-06-23  Bruno Haible  <bruno@clisp.org>
77748
77749         * tests/test-stdint.c: Update to match ISO C 99 Technical
77750         Corrigendum 1.
77751
77752 2006-06-23  Bruno Haible  <bruno@clisp.org>
77753
77754         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77755
77756 2006-06-23  Bruno Haible  <bruno@clisp.org>
77757
77758         * lib/stdint_.h: Treat IRIX like OpenBSD.
77759
77760 2006-06-23  Bruno Haible  <bruno@clisp.org>
77761
77762         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77763         ISO C 99 Technical Corrigendum 1.
77764
77765 2006-06-22  Simon Josefsson  <jas@extundo.com>
77766
77767         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77768         MinGW.
77769
77770 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77771
77772         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77773         needed.  Some compiler complained about some of them.  Problem reported
77774         by Larry Jones in
77775         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77776
77777 2006-06-21  Simon Josefsson  <jas@extundo.com>
77778
77779         * tests/test-getaddrinfo.c: New file.
77780
77781         * modules/getaddrinfo-tests: New file.
77782
77783         * MODULES.html.sh: Add inet_pton.
77784
77785         * modules/inet_pton: New file.
77786
77787 2006-06-21  Simon Josefsson  <jas@extundo.com>
77788
77789         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77790         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77791         of using the (limited) gnulib implementation on Windows XP.
77792
77793         * m4/inet_pton.m4: New file.
77794
77795 2006-06-21  Simon Josefsson  <jas@extundo.com>
77796
77797         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77798         variable.
77799
77800         * lib/socket_.h: Don't define WINVER.
77801
77802         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77803         slightly modified to work in gnulib.
77804
77805 2006-06-21  Simon Josefsson  <jas@extundo.com>
77806
77807         * doc/gnulib.texi (Windows sockets): Add.
77808
77809 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77810
77811         * lib/read-file.c (fread_file): Start with buffer allocation of
77812         0 bytes rather than 1 byte; this simplifies the code.
77813         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77814         code to free buffer and save/restore errno.
77815         (internal_read_file): Remove unused local.
77816
77817 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77818
77819         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77820         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77821         Problem reported by Denis Excoffier in
77822         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77823
77824 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77825
77826         * modules/sys_socket, modules/socklen: Include sys/types since
77827         FreeBSD 4.x's sys/socket.h needs it.
77828
77829 2006-06-19  Simon Josefsson  <jas@extundo.com>
77830
77831         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77832
77833 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77834
77835         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77836
77837 2006-06-19  Bruno Haible  <bruno@clisp.org>
77838
77839         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77840         and FULL_PATH_INTTYPES_H in angle brackets.
77841         Reported by Mark D. Baushke <mdb@gnu.org>.
77842
77843 2006-06-17  Eric Blake  <ebb9@byu.net>
77844
77845         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77846         errno.
77847
77848 2006-06-17  Bruno Haible  <bruno@clisp.org>
77849
77850         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77851         <sys/inttypes.h>.
77852
77853 2006-06-17  Bruno Haible  <bruno@clisp.org>
77854
77855         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77856         whether errno is declared. Assume <errno.h> declares errno.
77857
77858 2006-06-17  Bruno Haible  <bruno@clisp.org>
77859
77860         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77861
77862 2006-06-17  Bruno Haible  <bruno@clisp.org>
77863
77864         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77865         problem on Solaris 2.5.1.
77866
77867 2006-06-16  Eric Blake  <ebb9@byu.net>
77868
77869         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77870         * lib/unicodeio.c [!defined errno]: Likewise.
77871         * lib/strtol.c [!defined errno]: Likewise.
77872         * lib/strtod.c [!defined errno]: Likewise.
77873
77874 2006-06-15  Eric Blake  <ebb9@byu.net>
77875
77876         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77877
77878 2006-06-15  Eric Blake  <ebb9@byu.net>
77879
77880         * config/srclist.txt (ssize_t.m4): Lose sync.
77881
77882 2006-06-15  Bruno Haible  <bruno@clisp.org>
77883
77884         * modules/stdint (Files): Include m4/full-header-path.m4,
77885         m4/size_max.m4, m4/wchar_t.m4.
77886         (Makefile.am): Many more substitutions.
77887         * modules/stdint-tests: New file.
77888         * tests/test-stdint.c: New file.
77889
77890 2006-06-15  Bruno Haible  <bruno@clisp.org>
77891
77892         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77893         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77894         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77895         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77896         gl_CHECK_TYPE_SAME): New macros.
77897
77898 2006-06-15  Bruno Haible  <bruno@clisp.org>
77899
77900         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77901
77902 2006-06-15  Bruno Haible  <bruno@clisp.org>
77903
77904         * lib/stdint_.h: Rewritten to be fully auto-configured.
77905         Fixes bug on HP-UX/IA64.
77906
77907 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77908
77909         * lib/getdate.y (__attribute__): Don't define if already defined.
77910         Problem reported by Larry Jones.
77911         * lib/utimens.c (__attribute__): Likewise.
77912
77913 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77914
77915         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77916         reported by Andreas Schwab.
77917
77918 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77919             Bruno Haible  <bruno@clisp.org>
77920
77921         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77922         check for the declaration of strnlen and a run test that exposes the
77923         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77924         rpl_strndup.
77925
77926 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77927             Bruno Haible  <bruno@clisp.org>
77928
77929         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77930
77931 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77932
77933         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77934         compile test, for Tru64 4.0D.
77935
77936 2006-05-28  Karl Berry  <karl@gnu.org>
77937
77938         * config/srclist.txt (printf-args.c): lose sync.
77939
77940 2006-05-26  Martin Lambers  <marlam@marlam.de>
77941
77942         * lib/getpass.c: Updates the test for the native W32 API, and adds
77943         missing includes, thus fixing compilation warnings.
77944
77945 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77946
77947         * lib/exclude.c (exclude_fnmatch): New function.
77948         (excluded_file_name): Call exclude_fnmatch.
77949         * lib/exclude.h (excluded_file_name): New prototype
77950
77951 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77952
77953         * lib/tempname.c (small_open, large_open): New macros.
77954         (__open, __open64) [!_LIBC]: Remove.
77955         (__gen_tempname): Use small_open and large_open instead of __open
77956         and __open64.  This fixes a portability bug on HP-UX 11.11i
77957         reported by Simon Wing-Tang in
77958         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77959
77960 2006-05-24  Bruno Haible  <bruno@clisp.org>
77961
77962         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77963         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77964         Reported by Thorsten Maerz <torte@netztorte.de> via
77965         Aaron Stone <aaron@serendipity.cx>.
77966
77967 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77968
77969         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77970         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77971         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77972         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77973         not really conditional on the cache.
77974         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77975
77976 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77977
77978         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77979         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77980         (my_usleep): Don't mishandle maximum value.
77981
77982 2006-05-19  Jim Meyering  <jim@meyering.net>
77983
77984         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77985
77986 2006-05-17  Bruno Haible  <bruno@clisp.org>
77987
77988         Cygwin portability.
77989         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77990
77991 2006-05-17  Bruno Haible  <bruno@clisp.org>
77992
77993         * lib/stdint_.h: Fix recognition of Cygwin.
77994
77995 2006-05-15  Bruno Haible  <bruno@clisp.org>
77996
77997         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77998         on libtool patch by Ralf Wildenhues.
77999
78000 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78001
78002         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
78003         test for C99 conformance; (bool) 0.5 is an integer constant
78004         expression, but (bool) -0.5 is not.  Problem reported by Fedor
78005         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
78006
78007 2006-05-11  Simon Josefsson  <jas@extundo.com>
78008
78009         * m4/xvasprintf.m4: Fix obvious typo.
78010
78011 2006-05-11  Jim Meyering  <jim@meyering.net>
78012
78013         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
78014         James Lemley.
78015
78016 2006-05-10  Simon Josefsson  <jas@extundo.com>
78017
78018         * lib/md4.c: Typo fix, update copyright years.
78019         (K1, K2): Don't use L because it turn computations into 64-bit on
78020         64-bit platforms.
78021
78022 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
78023
78024         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
78025         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
78026         unwanted sign propagation, e.g., on hosts with 64-bit int.
78027         There still are some problems with reeelly weird theoretical hosts
78028         (e.g., 33-bit int) but it's not worth worrying about now.
78029         * lib/sha1.c (rol): Likewise.
78030         (K1, K2, K3, K4): Remove unnecessary L suffix.
78031
78032 2006-05-10  Bruno Haible  <bruno@clisp.org>
78033
78034         * lib/des.c: Cast to avoid warnings.
78035
78036 2006-05-09  Bruno Haible  <bruno@clisp.org>
78037
78038         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
78039         (Depends-on): Depend also on xsize, stdarg.
78040         (configure.ac): Add gl_XVASPRINTF.
78041
78042 2006-05-09  Bruno Haible  <bruno@clisp.org>
78043
78044         * m4/xvasprintf.m4: New file.
78045
78046 2006-05-09  Bruno Haible  <bruno@clisp.org>
78047
78048         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
78049         (EOVERFLOW): Define fallback value.
78050         (xstrcat): New function.
78051         (xvasprintf): Recognize the special case of a string concatenation.
78052
78053 2006-05-08  Eric Blake  <ebb9@byu.net>
78054
78055         * gnulib-tool (func_version): Base copyright year on CVS date.
78056         (func_emit_copyright_notice): New function.
78057         (func_emit_lib_Makefile_am): Use it.
78058         (func_emit_tests_Makefile_am): Likewise.
78059         (func_import): Likewise.
78060
78061 2006-05-08  Bruno Haible  <bruno@clisp.org>
78062
78063         * modules/stdarg: New file.
78064         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
78065
78066 2006-05-08  Bruno Haible  <bruno@clisp.org>
78067
78068         * m4/stdarg.m4: New file, from GNU gettext.
78069
78070 2006-05-08  Bruno Haible  <bruno@clisp.org>
78071
78072         * config/srclist.txt (build-aux/config.rpath): different from latest
78073         release.
78074
78075 2006-05-08  Bruno Haible  <bruno@clisp.org>
78076
78077         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
78078
78079 2006-05-05  Jim Meyering  <jim@meyering.net>
78080
78081         * m4/warning.m4: New file, derived from bison's file by the same name.
78082
78083 2006-05-03  Bruno Haible  <bruno@clisp.org>
78084
78085         * lib/stdint_.h: Shorter URL.
78086         * lib/inttypes.h: Likewise.
78087
78088 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78089
78090         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
78091
78092 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78093
78094         * lib/verify.h: Document the internals better.  Most of this change
78095         was written by Bruno Haible.
78096
78097 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
78098
78099         * doc/verify.texi: New file, partly based on a proposal by
78100         Bruno Haible.
78101
78102 2006-05-02  Bruno Haible  <bruno@clisp.org>
78103
78104         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
78105         test from here...
78106         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
78107
78108 2006-04-29  Bruno Haible  <bruno@clisp.org>
78109
78110         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
78111         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
78112
78113 2006-04-29  Bruno Haible  <bruno@clisp.org>
78114
78115         * gnulib-tool: Make --update option actually work.
78116
78117 2006-04-29  Bruno Haible  <bruno@clisp.org>
78118
78119         * doc/gcd.texi: New file.
78120         * doc/gnulib.texi: Include it.
78121
78122 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
78123
78124         * lib/getdate.y (get_date): When adding relative date, start with the
78125         initial time, not with the result of the first mktime call.
78126
78127 2006-04-25  Bruno Haible  <bruno@clisp.org>
78128
78129         * gnulib-tool (func_import): Output the include directives in three
78130         blocks, sorted separately.
78131         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78132
78133 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78134
78135         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
78136         to define main with arguments, for C++.  Reported by Eric Blake.
78137         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
78138         Prefer 'int main ()' to 'int main (void)', for C++.
78139         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
78140         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
78141         for 'main', for C99 and C++.
78142
78143 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
78144
78145         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
78146         Don't assume that exit status -1 is valid.
78147         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78148         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
78149         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
78150         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
78151         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
78152         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
78153         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
78154         functions can be used without declaring them, or that you can
78155         exit with status -1.
78156         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
78157
78158 2006-04-24  Karl Berry  <karl@gnu.org>
78159
78160         * config/srclist.txt (longdouble.m4): sync lost.
78161
78162 2006-04-24  Eric Blake  <ebb9@byu.net>
78163
78164         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
78165
78166 2006-04-24  Bruno Haible  <bruno@clisp.org>
78167
78168         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
78169         poll() implementation in AIX.
78170         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78171
78172 2006-04-24  Bruno Haible  <bruno@clisp.org>
78173
78174         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
78175         assigned exactly once.
78176
78177 2006-04-23  Claudio Fontana  <claudio@gnu.org>
78178             Bruno Haible  <bruno@clisp.org>
78179
78180         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
78181         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
78182         for AM_CPPFLAGS.
78183
78184 2006-04-23  Bruno Haible  <bruno@clisp.org>
78185
78186         * modules/copy-file: Depend on unistd.
78187         * modules/execute: Likewise.
78188         * modules/fatal-signal: Likewise.
78189         * modules/findprog: Likewise.
78190         * modules/mkdtemp : Likewise.
78191         * modules/pipe: Likewise.
78192         * modules/wait-process: Likewise.
78193
78194 2006-04-23  Bruno Haible  <bruno@clisp.org>
78195
78196         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
78197         condition was already detected.
78198         Reported by Ben Pfaff <blp@cs.stanford.edu>.
78199
78200 2006-04-23  Bruno Haible  <bruno@clisp.org>
78201
78202         * lib/copy-file.c: Include <unistd.h> unconditionally.
78203         * lib/execute.c: Likewise.
78204         * lib/fatal-signal.c: Likewise.
78205         * lib/findprog.c: Likewise.
78206         * lib/mkdtemp.c: Likewise.
78207         * lib/pipe.h: Likewise.
78208         * lib/pipe.c: Likewise.
78209         * lib/wait-process.h: Likewise.
78210
78211 2006-04-23  Bruno Haible  <bruno@clisp.org>
78212
78213         * gnulib-tool (func_usage): Fix --import description. Document
78214         --update.
78215         (func_import): Create temporary file in a temporary directory, if
78216         --dry-run is specified. Silence errors from 'grep' when there are no
78217         m4 files in $m4dir.
78218         (func_create_testdir): Silence errors from 'grep' when there are no
78219         m4 files in $m4dir.
78220         Reported by Karl Berry <karl@freefriends.org>.
78221
78222 2006-04-20  Bruno Haible  <bruno@clisp.org>
78223
78224         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
78225         one argument, so that the code will be portable to Autoconf 2.60.
78226         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
78227         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78228         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
78229
78230 2006-04-19  Derek Price  <derek@ximbiot.com>
78231             Eric Blake  <ebb9@byu.net>
78232
78233         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
78234         rather than "/full/path.h".  Update comment to match.  Shorten &
78235         generalize m4_translit call via AS_TR_CPP.
78236
78237 2006-04-19  Derek Price  <derek@ximbiot.com>
78238             Eric Blake  <ebb9@byu.net>
78239
78240         * lib/inttypes.h: Correct grammar in comment.
78241
78242 2006-04-18  Derek Price  <derek@ximbiot.com>
78243             Paul Eggert  <eggert@cs.ucla.edu>
78244
78245         * modules/inttypes: New file.
78246         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
78247
78248 2006-04-18  Derek Price  <derek@ximbiot.com>
78249             Paul Eggert  <eggert@cs.ucla.edu>
78250
78251         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
78252         New files.
78253
78254 2006-04-18  Derek Price  <derek@ximbiot.com>
78255             Paul Eggert  <eggert@cs.ucla.edu>
78256
78257         * lib/inttypes.h: New file.
78258         * lib/strtoimax.c: Assume <inttypes.h>.
78259
78260 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
78261
78262         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
78263         isn't mounted.  Problem reported by Kir Kolyshkin.
78264
78265 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78266
78267         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
78268         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
78269         Derek R. Price.
78270         * lib/regex.h (RE_DUP_MAX): Update comment to match current
78271         implementation.
78272
78273 2006-04-12  Eric Blake  <ebb9@byu.net>
78274
78275         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
78276         is now done automatically by the corresponding Autoconf macro.
78277
78278 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
78279
78280         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
78281         time_r.h.
78282
78283 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78284
78285         Merge regex changes from libc, removing some of our
78286         POSIX-conformance changes that were rejected and redoing them in a
78287         less-intrusive way.
78288
78289         * lib/regcomp.c (re_compile_internal, init_dfa):
78290         Length arg is now size_t, not Idx.  All uses changed.
78291         (peek_token): Forward decl now says internal_function.
78292         (__re_error_msgid, __re_error_msgid_idx):
78293         Now static rather than extern with attribute_hidden.
78294         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
78295         For some reason libc prefers K&R style defns for external functions.
78296         (regerror) [!defined _LIBC]: Likewise.
78297         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
78298         (seek_collating_symbol_entry, lookup_collation_sequence_value):
78299         (build_range_exp, build_collating_symbol):
78300         Use K&R-style defn.
78301         (re_compile_fastmap): Use '\0' to memset, not 0.
78302         (utf8_sb_map): Make the calculations more obvious.
78303         (init_dfa, parse_bracket_exp, build_charclass_op):
78304         Call calloc and cast result, as glibc does.
78305         (init_word_char, fetch_token, peek_token, peek_token_bracket):
78306         (build_range_exp, build_collating_symbol):
78307         Now internal functions.
78308
78309         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
78310
78311         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78312         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78313         Don't depend on VMS; depend on __VMS instead, for POSIX
78314         namespace cleanness.
78315         (regoff_t): Define to ssize_t, not long int.
78316
78317         Remove the REG_ macros named below.  Instead, make the old names
78318         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78319         __USE_GNU_REGEX.
78320         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78321         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78322         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78323         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78324         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78325         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78326         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78327         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78328         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78329         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78330         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78331         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78332         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78333         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78334         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78335         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78336         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78337         (REG_NREGS):
78338         Remove.  All uses replaced by the old RE_* names.
78339         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78340         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78341         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78342         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78343         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78344         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78345         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78346         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78347         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78348         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78349         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78350         Don't bother having these macros be independent of each others'
78351         values, since they no longer exist in the POSIX name space.
78352
78353         Rename the following member names back to their old names,
78354         unless !__USE_GNU_REGEX.  All uses changed back.
78355         (buffer): Renamed from re_buffer.
78356         (allocated): Renamed from re_allocated.
78357         (used): Renamed from re_used.
78358         (syntax): Renamed from re_syntax.
78359         (fastmap): Renamed from re_fastmap.
78360         (translate): Renamed from re_translate.
78361         (can_be_null): Renamed from re_can_be_null.
78362         (regs_allocated): Renamed from re_regs_allocated.
78363         (fastmap_accurate): Renamed from re_fastmap_accurate.
78364         (no_sub): Renamed from re_no_sub.
78365         (not_bol): Renamed from re_not_bol.
78366         (not_eol): Renamed from re_not_eol.
78367         (newline_anchor): Renamed from re_newline_anchor.
78368         (num_regs): Renamed from rm_num_regs.
78369         (start): Renamed from rm_start.
78370         (end): Renamed from rm_end.
78371
78372         (free_state): Move up a bit.
78373
78374         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78375         #define to be empty.
78376         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78377         when that is what is intended.
78378         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78379         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78380         (MAX): New macro.
78381         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78382         All uses changed back to re_malloc, etc.  It's now the caller's
78383         responsibility to check for overflow; all callers changed.
78384         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78385         (re_x2nrealloc): Remove.
78386         (free_state): Remove decl.
78387
78388         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78389         (re_set_registers, re_exec):
78390         Use K&R-style defn.
78391
78392         2006-01-31  Roland McGrath  <roland@redhat.com>
78393
78394         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78395         Reported by Mike Frysinger <vapier@gentoo.org>.
78396
78397         2006-01-15  Andreas Jaeger  <aj@suse.de>
78398
78399         [BZ #1950]
78400         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78401         build_wcs_upper_buffer change.
78402         (build_wcs_upper_buffer): Change return type.
78403
78404         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78405
78406         * lib/regex_internal.h: Include <stdint.h> if available.
78407
78408         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78409
78410         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78411
78412         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78413
78414         * lib/regcomp.c: Adjust for changed secondary hash function.
78415
78416         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78417
78418         * lib/regex.h: Pretty printing.
78419         Clean up namespace a bit.
78420
78421         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78422
78423         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78424         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78425
78426         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78427                     Ulrich Drepper  <drepper@redhat.com>
78428
78429         [BZ #1302]
78430         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78431         changed.
78432         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78433
78434         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78435
78436         [BZ #281]
78437         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78438         * lib/regcomp.c: Remove unnecessary uses of
78439         unsigned RE_TRANSLATE_TYPE.
78440         * lib/regex_internal.h: Likewise.
78441         * lib/regex_internal.c: Likewise.
78442         * lib/regexec.c: Likewise.
78443         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78444
78445         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78446
78447         * lib/regexec.c (find_recover_state): Remove unnecessary
78448         initialization.
78449         (transit_state_bkref): Make DFA a const pointer.
78450         (get_subexp): Likewise.
78451         (check_arrival): Likewise.
78452         (update_cur_sifted_state): Likewise.
78453         (re_search_internal): Likewise.
78454         (prune_impossible_nodes): Likewise.
78455         (acquire_init_state_context): Likewise.
78456         (proceed_next_node): Likewise.
78457         (set_regs): Likewise.
78458         (free_fail_stack_return): Likewise.
78459         (check_arrival_expand_ecl): Mark DFA parameter as const.
78460         (check_arrival_expand_ecl_sub): Likewise.
78461         (check_subexp_limits): Likewise.
78462         (sub_epsilon_src_nodes):  Likewise.
78463         (add_epsilon_src_nodes):  Likewise.
78464         (merge_state_array): Likewise.
78465         (update_regs): Likewise.
78466         (build_trtable): Likewise.
78467         (sift_states_backward): Mark MCTX parameter as const.
78468         (build_sifted_states): Likewise.
78469         (update_cur_sifted_state): Likewise.
78470         (sift_states_mkref): Likewise.
78471         (check_arrival_expand_ecl): Mark eclosure as const.
78472         (check_dst_limits_calc_pos_1): Likewise.
78473         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78474         pointer.
78475
78476         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78477
78478         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78479         (transit_state_sb): Likewise.
78480         (transit_state_mb): Likewise.
78481         (sift_states_iter_mb): Likewise.
78482         (check_arrival_add_next_nodes): Likewise.
78483         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78484         [_LIBC] (re_search_2_stub): Use mempcpy.
78485
78486         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78487         mbrtowc for very simple UTF-8 case.
78488
78489         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78490         a pointer-to-const.
78491         (re_acquire_state_context): Likewise.
78492         * lib/regex_internal.h: Adjust prototypes.
78493
78494         * lib/regex.c: Prevent using C++ compilers.
78495
78496         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78497         (re_acquire_state_context): Likewise.
78498
78499 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78500
78501         * modules/regex (Depends-on): Add ssize_t.
78502
78503 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78504
78505         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78506         translation table.
78507
78508 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78509
78510         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78511
78512 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78513             Bruno Haible  <bruno@clisp.org>
78514
78515         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78516         <sys/types.h> and <inttypes.h>.
78517
78518 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78519
78520         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78521         `__error_t_defined', so argp.h will not typedef the former.
78522
78523 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78524
78525         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78526         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78527         glibc names.  Even if glibc is changed to conform to POSIX, the
78528         traditional names will be available anyway, since regex depends on
78529         the extensions module.  Also, fix a longstanding typo in the
78530         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78531         reported by Emanuele Giaquinta.  Also, change sense of cached
78532         variable, so that the message makes sense.
78533
78534 2006-03-24  Simon Josefsson  <jas@extundo.com>
78535
78536         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78537         including some doc fixes.
78538         (base64_encode_alloc): Fix +1 bug on allocation failures.
78539
78540 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78541
78542         * lib/base64.c (base64_encode): Do not read past end of array with
78543         unsanitized input on systems with CHAR_BIT > 8.
78544
78545 2006-03-24  Eric Blake  <ebb9@byu.net>
78546
78547         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78548
78549 2006-03-22  Karl Berry  <karl@gnu.org>
78550
78551         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78552         * config/srclistvars.sh (COREUTILS): new var.
78553
78554 2006-03-17  Jim Meyering  <jim@meyering.net>
78555
78556         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78557         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78558
78559 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78560
78561         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78562         no longer needs it.  Instead, check that regoff_t is as least
78563         as wide as ptrdiff_t.
78564
78565         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78566         so that our regex.h stays compatible with the installed regex.
78567         This is helpful for installers who configure --without-included-regex.
78568         Problem reported by Emanuele Giaquinta.
78569
78570 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78571
78572         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78573         Typedef to long int, not to off_, as POSIX will likely change
78574         in that direction.
78575
78576 2006-03-15  Eric Blake  <ebb9@byu.net>
78577
78578         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78579
78580 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78581
78582         * lib/argp-help.c (validate_uparams): Fix typo
78583         * lib/argp-parse.c (argp_default_options): Consistently begin help
78584         messages with a lowercase letter.
78585
78586 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78587
78588         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78589         overrun buffers and shouldn't be used (much as gets shouldn't be
78590         used).
78591         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78592
78593 2006-03-08  Simon Josefsson  <jas@extundo.com>
78594
78595         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78596         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78597
78598 2006-03-08  Simon Josefsson  <jas@extundo.com>
78599
78600         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78601         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78602
78603 2006-03-08  Simon Josefsson  <jas@extundo.com>
78604
78605         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78606         signal that configure disabled the device.
78607
78608 2006-03-08  Simon Josefsson  <jas@extundo.com>
78609
78610         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78611         languages.
78612
78613 2006-03-07  Simon Josefsson  <jas@extundo.com>
78614
78615         * modules/getopt (Depends-on): Add unistd.
78616
78617         * modules/unistd: New file.
78618
78619 2006-03-07  Simon Josefsson  <jas@extundo.com>
78620
78621         * modules/gc-random: New file.
78622
78623 2006-03-07  Simon Josefsson  <jas@extundo.com>
78624
78625         * m4/unistd_h.m4: New file.
78626
78627 2006-03-07  Simon Josefsson  <jas@extundo.com>
78628
78629         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78630         test to be side-effect free by storing the result in the cache
78631         variable gl_cv_lib_readline, and moving the assignment of
78632         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78633         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78634
78635 2006-03-07  Simon Josefsson  <jas@extundo.com>
78636
78637         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78638         error on missing devices (the functions will return an error).
78639
78640         * m4/gc.m4: Move random stuff to gc-random.m4
78641
78642 2006-03-07  Simon Josefsson  <jas@extundo.com>
78643
78644         * lib/unistd_.h: New file.
78645
78646 2006-03-07  Simon Josefsson  <jas@extundo.com>
78647
78648         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78649
78650 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78651
78652         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78653         Problem reported by Juan Manuel Guerrero.
78654
78655 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78656
78657         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78658         the unistd module.
78659         * lib/getlogin_r.c: Likewise.
78660         * lib/getlogin_r.h: Likewise.
78661         * lib/glob.c: Likewise.
78662         * lib/pagealign_alloc.c: Likewise.
78663         * lib/unistd_.h: Remove; no longer needed.
78664
78665 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78666
78667         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78668         Add unistd.
78669         * modules/c-stack (Depends-on): Add unistd.
78670         * modules/getlogin_r: Likewise.
78671         * modules/glob: Likewise.
78672         * modules/pagealign_alloc: Likewise.
78673         * modules/unistd (Files): Remove lib/unistd_.h.
78674         (EXTRA_DIST): Remove.
78675         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78676         need unistd_.h.
78677         (MOSTLYCLEANFILES): Remove unistd.h-t.
78678
78679 2006-03-03  Simon Josefsson  <jas@extundo.com>
78680
78681         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78682
78683 2006-03-03  Simon Josefsson  <jas@extundo.com>
78684
78685         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78686         libidn and bison.
78687
78688 2006-03-03  Simon Josefsson  <jas@extundo.com>
78689
78690         * build-aux/maint.mk: Add indent target.
78691
78692 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78693
78694         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78695         our replacement poll.h in any case, to avoid a differing
78696         declaration from a system header.  Seen on AIX.
78697
78698 2006-03-01  Simon Josefsson  <jas@extundo.com>
78699
78700         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78701         <kasal@ucw.cz>.
78702
78703 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78704
78705         * modules/gettime (Depends-on): Add extensions module.
78706         * modules/nanosleep (Depends-on): Likewise.
78707         * modules/settime (Depends-on): Likewise.
78708
78709 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78710
78711         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78712         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78713         pedantically.
78714         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78715         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78716
78717         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78718         not "==".  Reported by Ralf Wildenhues.
78719
78720 2006-03-01  Karl Berry  <karl@gnu.org>
78721
78722         * doc/Copyright/request-*: new files, synced from gnuorg.
78723
78724 2006-03-01  Karl Berry  <karl@gnu.org>
78725
78726         * config/srclist.txt (Copyright/*): new entries.
78727
78728 2006-02-28  Simon Josefsson  <jas@extundo.com>
78729
78730         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78731
78732 2006-02-27  Simon Josefsson  <jas@extundo.com>
78733
78734         * lib/base64.h: Indent #define's.  From Jim Meyering
78735         <jim@meyering.net>.
78736
78737 2006-02-27  Jim Meyering  <jim@meyering.net>
78738
78739         Revert the change of 2006-02-24, so these files can continue
78740         to be sync'd from gettext.
78741         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78742         of `config.h'.
78743
78744 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78745
78746         * modules/intprops: New file.
78747         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78748         Add intprops.
78749         * modules/getloadavg (Files): Remove lib/intprops.h.
78750         (Depends-on): Add intprops.
78751         * modules/human: Likewise.
78752         * modules/inttostr: Likewise.
78753         * modules/openat: Likewise.
78754         * modules/sig2str: Likewise.
78755         * modules/userspec: Likewise.
78756         * modules/utimecmp: Likewise.
78757         * modules/xnanosleep: Likewise.
78758         * modules/xstrtol: Likewise.
78759
78760 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78761
78762         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78763         * modules/lock-tests (TESTS): Use $(EXEEXT).
78764         * modules/tls-tests: Likewise.
78765         * modules/argp-tests: Likewise.
78766         (check_PROGRAMS): New var, replacing...
78767         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78768
78769 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78770
78771         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78772         `config.h'.
78773
78774 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78775
78776         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78777
78778 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78779
78780         Sync from coreutils.
78781         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78782         gl_CHDIR_SAFER.
78783
78784 2006-02-22  Jim Meyering  <jim@meyering.net>
78785
78786         Sync from coreutils.
78787         * m4/chdir-safer.m4: New file.
78788
78789 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78790
78791         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78792         AT_FDCWD exceeds INT_MAX.
78793         * lib/openat.h (AT_FDCWD): Likewise.
78794
78795 2006-02-17  Eric Blake  <address@hidden>
78796
78797         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78798
78799 2006-02-16  Simon Josefsson  <jas@extundo.com>
78800
78801         * modules/getaddrinfo (Depends-on): Add sys_socket.
78802
78803 2006-02-15  Simon Josefsson  <jas@extundo.com>
78804
78805         * build-aux/maint.mk: Add dsyntax-check rule.
78806
78807 2006-02-15  Eric Blake  <ebb9@byu.net>
78808
78809         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78810         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78811         'present but cannot compile' warnings on cygwin.
78812         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78813         use ws2tcpip.h if sys/socket.h works.
78814         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78815         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78816
78817 2006-02-14  Simon Josefsson  <jas@extundo.com>
78818
78819         * modules/maintainer-makefile (Files): Rename.
78820
78821         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78822         and (the local) Makefile.cfg to maint-cfg.mk.
78823
78824         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78825         to the latter.
78826
78827         * modules/maintainer-makefile: New module.
78828
78829         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78830         severaly stripped to make it possible to build it up from scratch
78831         with reliable tests.
78832
78833         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78834         fixes to permit overriding the default actions when configure and
78835         makefile are not available.
78836
78837 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78838
78839         Sync from coreutils.
78840         * modules/lstat (Depends-on): Don't depend on xalloc.
78841         (License): Change from GPL to LGPL, since this is now simply a
78842         replacement for a libc function.
78843
78844 2006-02-14  Jim Meyering  <jim@meyering.net>
78845
78846         Sync from coreutils.
78847
78848         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78849         failure on deficient systems, and simplify gnulib lgpl dependencies.
78850         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78851         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78852
78853         * lib/xalloc-die.c: Remove unused definition of N_.
78854
78855 2006-02-14  Jim Meyering  <jim@meyering.net>
78856
78857         Sync from coreutils.
78858         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78859         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78860         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78861         double-quote uses of that variable, to accommodate the rare case in
78862         which getmntent is available in none of the libraries checked.  This
78863         happens at least on FreeBSD 5.0.
78864
78865 2006-02-13  Simon Josefsson  <jas@extundo.com>
78866
78867         * gnulib-tool (Usage): Fix --import, from
78868         karl@freefriends.org (Karl Berry).
78869
78870 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78871
78872         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78873
78874 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78875
78876         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78877         "autoupdate" on 2005-12-12.
78878
78879 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78880
78881         * modules/closeout (Depends-on): Remove atexit.
78882
78883 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78886         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78887
78888 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78889
78890         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78891         __EXTENSIONS__ if this causes compilation to fail.  Problem
78892         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78893         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78894
78895 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78896
78897         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78898         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78899         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78900         All uses changed.
78901
78902 2006-01-26  Simon Josefsson  <jas@extundo.com>
78903
78904         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78905         prototype is visible on mingw32.
78906
78907         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78908         for mingw32.
78909
78910         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78911         mingw32).
78912
78913 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78914
78915         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78916         attempt to open for write; this always fails, at least on POSIX
78917         hosts.  This reinstates the 2006-01-09 change, which was
78918         inadvertently removed.
78919
78920 2006-01-26  Bruno Haible  <bruno@clisp.org>
78921
78922         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78923         Reported by Paul Eggert.
78924
78925 2006-01-26  Bruno Haible  <bruno@clisp.org>
78926             Paul Eggert  <eggert@cs.ucla.edu>
78927
78928         * lib/stdbool_.h (_Bool)
78929         [(! (defined __cplusplus || defined __BEOS__)
78930           && !defined __GNUC__
78931           && !(defined __HP_cc || defined __xlc__
78932                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78933                || defined __sgi))]:
78934         #define to signed char in these cases too; this simplifies
78935         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78936         etc., separately) and makes it more conservative.
78937
78938 2006-01-25  Simon Josefsson  <jas@extundo.com>
78939
78940         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78941         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78942         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78943
78944 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78945
78946         * lib/argp-namefrob.h: Bugfix. Remove stray #
78947
78948 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78949
78950         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78951         so that we test the test.
78952         Check for yet another HP-UX cc bug involving *bool |= bool.
78953
78954 2006-01-25  Karl Berry  <karl@gnu.org>
78955
78956         * config/srclist.txt (vasnprintf.c): sync lost.
78957
78958 2006-01-25  Jim Meyering  <jim@meyering.net>
78959
78960         Sync from the stable (b5) branch of coreutils:
78961
78962         * lib/fts.c (fts_children): Don't let close() clobber errno from
78963         failed fchdir().
78964
78965         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78966         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78967         a dangling symlink.  That can also happen at least for ELOOP.
78968         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78969         FYI, this bug predates the inclusion of fts.c in coreutils.
78970
78971         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78972         in their own block, so pre-c99 compilers don't object.
78973
78974         Avoid the double-free (first in fts_read, second in fts_close) that
78975         would occur when an `active' directory is made inaccessible (e.g.,
78976         via chmod a-x) during a traversal.
78977         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78978         before returning.  Reproduce this failure by
78979         mkdir -p a/b; cd a; chmod a-x . b
78980         Reported by Stavros Passas.
78981
78982 2006-01-25  Jim Meyering  <jim@meyering.net>
78983
78984         * lib/fileblocks.c: Remove more useless parentheses.
78985         * lib/readutmp.h: Likewise.
78986
78987 2006-01-25  Bruno Haible  <bruno@clisp.org>
78988
78989         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78990         warnings.
78991         Reported by Paul Eggert.
78992
78993 2006-01-25  Bruno Haible  <bruno@clisp.org>
78994
78995         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78996         rid of a trap command. For Solaris sh.
78997         Reported by Mark D. Baushke <mdb@gnu.org>.
78998
78999 2006-01-24  Simon Josefsson  <jas@extundo.com>
79000
79001         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
79002         Bruno.
79003
79004 2006-01-24  Karl Berry  <karl@gnu.org>
79005
79006         * config/srclist.txt (argp-namefrob.h): sync lost.
79007
79008 2006-01-24  Jim Meyering  <jim@meyering.net>
79009
79010         * modules/openat (Files): Add lib/intprops.h.
79011         From Mark D. Baushke.
79012
79013 2006-01-24  Jim Meyering  <jim@meyering.net>
79014
79015         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
79016         Reported by Mark D. Baushke.
79017
79018 2006-01-24  Jim Meyering  <jim@meyering.net>
79019
79020         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
79021
79022 2006-01-24  Bruno Haible  <bruno@clisp.org>
79023
79024         * modules/strnlen (Maintainer): Change from glibc to all.
79025
79026 2006-01-24  Bruno Haible  <bruno@clisp.org>
79027
79028         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
79029         Patch by Paul Eggert.
79030
79031 2006-01-24  Bruno Haible  <bruno@clisp.org>
79032
79033         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
79034         already has it.
79035         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
79036         2005-11-26.
79037
79038         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
79039         'signed char' to avoid problems with the built-in _Bool type.
79040         Reported by Paul Eggert on 2005-11-26.
79041
79042 2006-01-24  Bruno Haible  <bruno@clisp.org>
79043
79044         * gnulib-tool (func_import): Avoid constructing complicated sed
79045         expressions inside backquote.
79046         Report and solution by Mark D. Baushke <mdb@gnu.org>.
79047
79048 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
79049
79050         These changes imported from libc.
79051         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
79052         test and two separate function calls.
79053         * lib/strndup.c (__strndup): Add libc_hidden_def.
79054
79055 2006-01-23  Simon Josefsson  <jas@extundo.com>
79056
79057         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
79058         Remove the test_*_SOURCES variable: automake infers it by default.
79059         * modules/tls-tests: Likewise.
79060
79061 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79062
79063         Work around porting bugs reported by Dieter in
79064         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
79065         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
79066         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
79067         Include "getopt.h" first, to check interface.
79068         (getenv): Declare only if defined HAVE_DECL_GETENV &&
79069         !HAVE_DECL_GETENV.
79070         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
79071         (__strndup): Revert to K&R-style function dfns, the glibc style.
79072         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
79073         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
79074         Include strnlen.h first, to get prototype properly.
79075         (strnlen): Renamed from __strnlen.
79076         Remove weak alias.
79077
79078 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79079
79080         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
79081
79082 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79083
79084         * config/srclist.txt: Adjust to reflect glibc reorganization.
79085         This affects only comments.
79086
79087 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79088
79089          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
79090          Reported by Bruce Korb <bkorb@gnu.org>.
79091
79092 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
79093
79094         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
79095         to pacify gcc -Wswitch-default.
79096
79097 2006-01-22  Bruno Haible  <bruno@clisp.org>
79098
79099         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
79100         temporary buffer for sprintf, take into account the precision also
79101         for 'd', 'i', 'u', 'o', 'x', 'X'.
79102
79103 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79104
79105         * modules/argp-tests: New module
79106         * tests/test-argp.c: New file
79107         * tests/test-argp-2.sh: New file
79108
79109 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
79110
79111         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
79112         (__argp_base_name): Removed
79113         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
79114         typo.
79115         (__argp_base_name): Provide macro definition or extern declaration
79116         depending on the configuration
79117
79118 2006-01-20  Simon Josefsson  <jas@extundo.com>
79119
79120         * modules/inet_ntop (Depends-on): Depend on sys_socket.
79121
79122 2006-01-20  Simon Josefsson  <jas@extundo.com>
79123
79124         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
79125
79126 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79127
79128         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
79129         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
79130         Suggested by Bruno Haible.
79131
79132 2006-01-20  Karl Berry  <karl@gnu.org>
79133
79134         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
79135         until changes propagate, I guess.
79136
79137 2006-01-19  Simon Josefsson  <jas@extundo.com>
79138
79139         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
79140
79141 2006-01-19  Simon Josefsson  <jas@extundo.com>
79142
79143         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
79144
79145 2006-01-19  Simon Josefsson  <jas@extundo.com>
79146
79147         * gnulib-tool: Set check_PROGRAMS.
79148
79149         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79150         modules/des-tests, modules/gc-arcfour-tests,
79151         modules/gc-arctwo-tests, modules/gc-des-tests,
79152         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79153         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79154         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79155         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79156         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79157         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
79158         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
79159         test_*_SOURCES.
79160
79161 2006-01-18  Simon Josefsson  <jas@extundo.com>
79162
79163         * modules/socklen (Depends-on): Depend on sys_socket.
79164
79165 2006-01-18  Simon Josefsson  <jas@extundo.com>
79166
79167         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
79168         modules/des-tests, modules/gc-arcfour-tests,
79169         modules/gc-arctwo-tests, modules/gc-des-tests,
79170         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
79171         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
79172         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
79173         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
79174         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
79175         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
79176         $(EXEEXT) to automake TESTS variable, for mingw32.
79177
79178 2006-01-17  Simon Josefsson  <jas@extundo.com>
79179
79180         * modules/socklen (Include): Need sys/socket.h.
79181
79182 2006-01-17  Bruno Haible  <bruno@clisp.org>
79183
79184         * modules/ssize_t (Include): Add <sys/types.h>.
79185
79186 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
79187
79188         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
79189         it's not portable and it doesn't work with cross-compiles.
79190         Problem reported by Bruno Haible.  Fix missing-$ typo in
79191         'test "gl_cv_ignore_unused_libraries" ...' that prevented
79192         -zignore from being used with Sun's C compiler.
79193
79194 2006-01-12  Simon Josefsson  <jas@extundo.com>
79195
79196         * lib/base64.c: Fix warning, reported by Bruno Haible
79197         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
79198
79199 2006-01-12  Bruno Haible  <bruno@clisp.org>
79200
79201         * modules/ldd: New file.
79202         * build-aux/ldd.sh.in: New file.
79203         * MODULES.html.sh (Support for building libraries and executables): Add
79204         ldd.
79205
79206 2006-01-12  Bruno Haible  <bruno@clisp.org>
79207
79208         * m4/ldd.m4: New file.
79209
79210 2006-01-12  Bruno Haible  <bruno@clisp.org>
79211
79212         * gnulib-tool (func_import, func_create_testdir): Don't go into an
79213         endless loop while replacing $auxdir with build-aux.
79214
79215 2006-01-11  Simon Josefsson  <jas@extundo.com>
79216
79217         * lib/stdint_.h (SIZE_MAX): Add missing (.
79218
79219 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
79220
79221         Sync from coreutils.
79222         * lib/md5.c: Fix commentary typos.
79223         (alignof, UNALIGNED_P): No need for a GCC-specific version.
79224         * lib/md5.h (__attribute__): Remove; unused.
79225         * lib/sha1.c: Fix commentary to match md5 better.
79226         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
79227         so that we don't need to worry about alignment.  All uses changed.
79228         This merges the 2005-10-28 md5 change into sha1.
79229
79230 2006-01-11  Jim Meyering  <jim@meyering.net>
79231
79232         Sync from coreutils.
79233         * lib/md5.c (OP): Fix spacing.
79234
79235 2006-01-11  Bruno Haible  <bruno@clisp.org>
79236
79237         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79238         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
79239         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
79240
79241 2006-01-11  Bruno Haible  <bruno@clisp.org>
79242
79243         Ensure automatic ordering between gl_LOCK and gl_ARGP.
79244         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
79245         the "early" section as well.
79246
79247 2006-01-11  Bruno Haible  <bruno@clisp.org>
79248
79249         Avoid "ar: no archive members specified" error on MacOS X.
79250         * gnulib-tool (func_modules_add_dummy): New function.
79251         (func_import, func_create_testdir): Invoke it.
79252
79253 2006-01-11  Bruno Haible  <bruno@clisp.org>
79254
79255         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
79256         with $auxdir in AC_CONFIG_FILES statements.
79257
79258 2006-01-11  Bruno Haible  <bruno@clisp.org>
79259
79260         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79261         Initialize also noinst_HEADERS to empty.
79262
79263 2006-01-11  Bruno Haible  <bruno@clisp.org>
79264
79265         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
79266         variables.
79267         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
79268         autoreconf.
79269
79270 2006-01-11  Bruno Haible  <bruno@clisp.org>
79271
79272         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
79273         overridable by the user.
79274         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79275
79276 2006-01-10  Simon Josefsson  <jas@extundo.com>
79277
79278         * modules/sys_socket: New file.
79279
79280 2006-01-10  Simon Josefsson  <jas@extundo.com>
79281
79282         * m4/sys_socket_h.m4: New file.
79283
79284 2006-01-10  Simon Josefsson  <jas@extundo.com>
79285
79286         * lib/socket_.h: New file.
79287
79288 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79289
79290         * modules/readutmp (Maintainer): Add myself.
79291
79292 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79293
79294         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
79295         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
79296         People who are still concerned with buggy memcmp implementations
79297         can invoke gl_FUNC_MEMCMP themselves.
79298
79299 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
79300
79301         * lib/regex_internal.h (BITSET_WORD_BITS):
79302         Work around a bug in 64-bit PGC (before version 6.1-2), where the
79303         preprocessor mishandles large unsigned values as if they were signed.
79304         Problem reported by Claudio Fontana in
79305         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
79306
79307 2006-01-10  Jim Meyering  <jim@meyering.net>
79308
79309         Avoid the double-free (first in fts_read, second in fts_close) that
79310         would occur when an `active' directory is made inaccessible (e.g.,
79311         via chmod a-x) during a traversal.
79312         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79313         before returning.  Reproduce this failure by
79314         mkdir -p a/b; cd a; chmod a-x . b
79315         Reported by Stavros Passas.
79316
79317         Sync from coreutils.
79318         * lib/sha1.c: Tweak grammar in a comment.
79319
79320 2006-01-10  Jim Meyering  <jim@meyering.net>
79321
79322         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79323         Patch by Joerg Sonnenberger.
79324
79325 2006-01-10  Bruno Haible  <bruno@clisp.org>
79326
79327         * modules/readutmp: Depend on module free.
79328         * modules/strtok_r: Depend on module restrict.
79329
79330 2006-01-10  Bruno Haible  <bruno@clisp.org>
79331
79332         * modules/gettext (configure.ac): Add an invocation of
79333         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79334
79335 2006-01-10  Bruno Haible  <bruno@clisp.org>
79336
79337         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79338         Reported by Werner Lemberg <wl@gnu.org>.
79339
79340 2006-01-10  Bruno Haible  <bruno@clisp.org>
79341
79342         * lib/localcharset.c: Update from GNU gettext.
79343
79344 2006-01-10  Bruno Haible  <bruno@clisp.org>
79345
79346         * lib/argp.h (__const): Remove macro. Use const instead.
79347         * lib/argp-fmtstream.h (__const): Likewise.
79348         * lib/glob_.h (__const): Remove macro.
79349         * lib/glob-libc.h: Use const instead of __const.
79350
79351 2006-01-10  Bruno Haible  <bruno@clisp.org>
79352
79353         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79354         variable.
79355         Needed to avoid an automake error regarding the 'gettext' module.
79356
79357 2006-01-09  Simon Josefsson  <jas@extundo.com>
79358
79359         * modules/inet_ntop (Depends-on): Add restrict.
79360
79361 2006-01-09  Simon Josefsson  <jas@extundo.com>
79362
79363         * modules/gc-rijndael-tests (License): Put under LGPL.
79364
79365         * modules/gc-des-tests (License): Likewise.
79366
79367         * modules/gc-arcfour-tests (License): Likewise.
79368
79369         * modules/gc-arctwo-tests (License): Likewise.
79370
79371         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79372
79373         * modules/gc-hmac-sha1-tests (Files): Likewise.
79374
79375         * modules/gc-hmac-md5-tests (License): Likewise.
79376
79377         * modules/gc-sha1-tests (License): Likewise.
79378
79379         * modules/gc-md5-tests (License): Likewise.
79380
79381         * modules/gc-md4-tests (License): Likewise.
79382
79383         * modules/gc-md2-tests (License): Likewise.
79384
79385         * modules/gc-tests (License): Likewise.
79386
79387         * modules/des-tests (License): Likewise.
79388
79389         * modules/md4-tests (License): Likewise.
79390
79391         * modules/md2-tests (License): Likewise.
79392
79393 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79394
79395         Sync from coreutils:
79396
79397         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79398         * modules/lib-ignore: New file.
79399         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79400         chdir-safer.m4, lchmod.m4.
79401         * modules/openat: Add mkdirat.c, openat-priv.h.
79402
79403 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79404
79405         Sync from coreutils.
79406         * m4/lib-ignore.m4: New file.
79407         * m4/lchmod.m4: New file.
79408
79409 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79410
79411         Sync from coreutils.
79412         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79413         for write access: POSIX says that must fail.
79414         * lib/fts.c (diropen): Likewise.
79415         * lib/save-cwd.c (save_cwd): Likewise.
79416         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79417         well, for minor improvements on hosts that lack O_DIRECTORY.
79418         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79419         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79420         Fall back on chown if open failed with EACCES.
79421
79422         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79423         Report an error at compile-time if only a 1-second nominal clock
79424         resolution is found.
79425
79426         * lib/lchmod.h: New file.
79427         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79428         (make_dir_parents): Use lchown rather than chown, and
79429         lchmod rather than chmod.
79430
79431         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79432         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79433         "proc" reported by n0dalus.
79434
79435         * lib/mountlist.c: Include <limits.h>.
79436         (dev_from_mount_options)
79437         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79438         New function.  It no longer assumes "dev=" has the System V meaning
79439         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79440         (read_file_system_list)
79441         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79442         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79443         dev= in that case.
79444
79445         * lib/posixtm.h (PDS_PRE_2000): New macro.
79446         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79447         allow_century.  All usages changed.  Reject dates outside the range
79448         1969-1999 if PDS_PRE_2000 is used.
79449
79450 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79451
79452         Sync from coreutils.
79453         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79454         (Time of day items): Mention the possibility of leap seconds.
79455         Problem reported by Dr. David Alan Gilbert.
79456
79457 2006-01-09  Jim Meyering  <jim@meyering.net>
79458
79459         Sync from coreutils.
79460
79461         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79462
79463         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79464
79465         * lib/modechange.c (mode_compile): Reject an invalid mode string
79466         that starts with an octal digit.  From Andreas Gruenbacher.
79467
79468         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79469         and dup to open_safer and dup_safer, respectively.
79470         (openat_permissive): Fix typo in comment.
79471
79472         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79473         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79474         (_): Remove; no longer needed.
79475         (openat): Renamed from rpl_openat; no need for rpl_openat
79476         since openat.h renames openat for us.
79477         Replace most of the body with a call to openat_permissive,
79478         to avoid duplicate code.
79479         Port to (probably hypothetical) environments were mode_t is
79480         wider than int.
79481         (openat_permissive): Require mode arg, so that we can check
79482         types better.  Put it just after flags.  Change cwd failure
79483         indicator from pointer-to-bool to pointer-to-errno-value.
79484         All callers changed.
79485         Invoke openat_save_fail and/or openat_restore_fail if
79486         cwd_errno is null, so that openat can call us.
79487         (openat_permissive, fdopendir, fstatat, unlinkat):
79488         Simplify errno handling to avoid some duplicate code,
79489         as it's OK to set errno on success.
79490         * lib/openat.h: Revamp code so that function macros depend on
79491         __OPENAT_PREFIX only, not also on AT_FDCWD.
79492         (openat_ro): Remove.  Caller changed to use openat_permissive.
79493         (openat_permissive): Now a macro, if not a function.
79494         (openat_restore_fail, openat_save_fail): Now always functions,
79495         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79496
79497         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79498         and openat.c.
79499         * lib/mkdirat.c: Include openat-priv.h.
79500         Remove definitions of macros defined therein.
79501         * lib/openat.c: Likewise.
79502
79503         * lib/mkdirat.c (mkdirat): New file and function.
79504         * lib/openat.h (mkdirat): Declare.
79505
79506         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79507
79508         * lib/openat.h (openat_permissive): Declare.
79509         (openat_ro): Define.
79510
79511         * lib/openat.c (EXPECTED_ERRNO): New macro.
79512         (openat_permissive): New function -- used in remove.c rewrite.
79513         (all functions): Set errno just before returning, only if there
79514         was an actual failure.
79515         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79516
79517         Emulate openat-family functions using Linux's procfs, if possible.
79518         Idea and some code based on Ulrich Drepper's glibc changes.
79519
79520         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79521         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79522         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79523         before falling back on save_cwd and restore_cwd.
79524         (fdopendir, fstatat, unlinkat): Likewise.
79525
79526         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79527         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79528
79529         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79530         as second argument to va_arg.  Otherwise, some versions of gcc
79531         warn that `if this code is reached, the program will abort'.
79532
79533 2006-01-09  Jim Meyering  <jim@meyering.net>
79534
79535         Sync from coreutils.
79536         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79537         Require openat-priv.h.
79538
79539 2006-01-09  Bruno Haible  <bruno@clisp.org>
79540
79541         * modules/strnlen (Include): Use strnlen.h.
79542
79543 2006-01-09  Bruno Haible  <bruno@clisp.org>
79544
79545         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79546
79547 2006-01-09  Bruno Haible  <bruno@clisp.org>
79548
79549         * lib/sysexit_.h (EX_OK): New macro.
79550         Suggested by Martin Lambers <marlam@marlam.de>.
79551
79552 2006-01-09  Bruno Haible  <bruno@clisp.org>
79553
79554         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79555         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79556
79557 2006-01-09  Bruno Haible  <bruno@clisp.org>
79558
79559         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79560         numbers.
79561
79562 2006-01-09  Bruno Haible  <bruno@clisp.org>
79563
79564         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79565         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79566         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79567         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79568
79569 2006-01-09  Bruno Haible  <bruno@clisp.org>
79570
79571         * build-aux/javacomp.sh.in: New file, moved from lib/.
79572         * modules/javacomp-script (Files): Update.
79573         (configure.ac): Add AC_CONFIG_FILES invocation.
79574         (EXTRA_DIST): Remove variable.
79575
79576         * build-aux/javaexec.sh.in: New file, moved from lib/.
79577         * modules/javaexec (Files): Update.
79578         (configure.ac): Add AC_CONFIG_FILES invocation.
79579         (EXTRA_DIST): Remove javaexec.sh.in.
79580
79581         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79582         * modules/csharpcomp-script (Files): Update.
79583         (configure.ac): Add AC_CONFIG_FILES invocation.
79584         (EXTRA_DIST): Remove variable.
79585
79586         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79587         * modules/csharpexec (Files): Update.
79588         (configure.ac): Add AC_CONFIG_FILES invocation.
79589         (EXTRA_DIST): Remove csharpexec.sh.in.
79590
79591 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79592
79593         Sync from coreutils.
79594
79595         Add POSIX ACL support
79596         * lib/acl.h (copy_acl, set_acl): Add declarations.
79597         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79598         systems other than Linux.
79599         (chmod_or_fchmod): New function: use fchmod when possible,
79600         and chmod otherwise.
79601         (file_has_acl): Add a POSIX ACL implementation, with a
79602         Linux-specific subcase.
79603         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79604         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79605         acls are unsupported.
79606         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79607         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79608         are unsupported.
79609
79610 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79611
79612         Sync from coreutils.
79613         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79614
79615 2006-01-07  Bruno Haible  <bruno@clisp.org>
79616
79617         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79618         gl_EARLY.
79619
79620 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79621
79622         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79623         Problem reported for Mingw by Mark Junker.
79624
79625 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79626
79627         * README: Gnulib normally doesn't generate a tarball.
79628
79629 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79630
79631         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79632         long int, not int, for nanosecond counts, so that people who are
79633         used to POSIX struct timespec won't be surprised.  Reported by Jim
79634         Meyering.
79635
79636 2005-12-28  Bruno Haible  <bruno@clisp.org>
79637
79638         * build-aux/config.rpath: Update from GNU gettext.
79639
79640 2005-12-16  Jim Meyering  <jim@meyering.net>
79641
79642         * modules/fprintftime: New module.
79643         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79644
79645 2005-12-16  Jim Meyering  <jim@meyering.net>
79646
79647         * m4/fprintftime.m4: New file.
79648
79649 2005-12-16  Jim Meyering  <jim@meyering.net>
79650
79651         * lib/fprintftime.c, lib/fprintftime.h: New files.
79652
79653 2005-12-15  Simon Josefsson  <jas@extundo.com>
79654
79655         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79656         new m4/socklen.m4.
79657
79658 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79659
79660         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79661         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79662
79663 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79664
79665         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79666         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79667         struct uparams is valid. Fall back to the default values if it is
79668         not.
79669
79670 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79671
79672         * modules/argp (Files): Add argp-pin.c
79673         (Depends-on): dirname
79674         (lib_SOURCES): Add argp-pin.c
79675
79676 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79677
79678         * m4/argp.m4:  Check if program_invocation_name and
79679         program_invocation_short_name are declared and define appropriate
79680         macros if they are not.
79681
79682 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79683
79684         * lib/argp-help.c (__argp_base_name): New function
79685         (__argp_short_program_name): Rewrite using __argp_base_name
79686         * lib/argp-namefrob.h: Define program_invocation_name and
79687         program_invocation_short_name if requested
79688         (__argp_base_name): Add prototype
79689         * lib/argp-parse.c (argp_def): Use gettext wrappers
79690         (argp_default_parser): Use __argp_base_name
79691         * lib/argp-pin.c: New file. Defines program_invocation_name and
79692         program_invocation_short_name on systems that lack them.
79693
79694 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79695
79696         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79697         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79698         porting problem reported by Georg Schwarz in
79699         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79700
79701 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79702
79703         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79704         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79705         porting problem reported by Georg Schwarz in
79706         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79707
79708 2005-12-05  Bruno Haible  <bruno@clisp.org>
79709
79710         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79711         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79712         Reported by Mark Junker <mjscod@gmx.de>.
79713
79714 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79715
79716         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79717         Use implementation from Albert Chin, with some
79718         comments/corrections by Stepan Kasal and myself.
79719
79720 2005-12-02  Bruno Haible  <bruno@clisp.org>
79721
79722         * gnulib-tool (func_import): Accept GPLed build tool modules when
79723         --lgpl is given.
79724         * modules/csharpcomp-script: New file.
79725         * modules/csharpcomp: Depend on it.
79726         * modules/javacomp-script: New file.
79727         * modules/javacomp: Depend on it.
79728         Suggested by Simon Josefsson.
79729
79730 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79731
79732         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79733         statement, to work around an HP-UX 10.20 compiler bug reported by
79734         Peter O'Gorman.
79735
79736 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79737
79738         * modules/savedir (Depends-on): Add openat.
79739
79740 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79741
79742         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79743         (uintmax_t) [defined uintmax_t]: Do not declare.
79744         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79745         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79746         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79747         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79748         sake of portability to weird hosts that C allows (though we don't
79749         know of any practical examples).
79750
79751         * lib/savedir.h (fdsavedir): New decl.
79752         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79753         contains most of the former guts of savedir.
79754         (savedir): Use savedirstream.
79755         Include "openat.h".
79756
79757 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79758
79759         * modules/obstack (Files): Add m4/ulonglong.m4.
79760         Problem reported by Davide Angelocola.
79761
79762 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79763
79764         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79765         coreutils no longer futzes with rounding modes.
79766
79767 2005-11-14  Jim Meyering  <jim@meyering.net>
79768
79769         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79770         replacement of mkstemp.
79771
79772 2005-11-10  Simon Josefsson  <jas@extundo.com>
79773
79774         * lib/readline.c: Remove EOL.
79775
79776 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79777
79778         * modules/gethrxtime (Depends-on): Add gettime.
79779
79780 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79781
79782         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79783         or gettimeofday; no longer needed.
79784
79785 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79786
79787         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79788         time business.
79789         (gethrxtime) [! (HAVE_NANOUPTIME
79790         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79791         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79792         our own approximation.
79793
79794 2005-11-08  Eric Blake  <ebb9@byu.net>
79795
79796         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79797
79798 2005-11-08  Eric Blake  <ebb9@byu.net>
79799
79800         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79801
79802 2005-11-04  Bruno Haible  <bruno@clisp.org>
79803
79804         * gnulib-tool: Implement --update mode.
79805
79806 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79807
79808         Fix porting problem reported by Theodoros V. Kalamatianos.
79809         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79810         Don't assume that futimes failing means we must fail.
79811
79812 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79813
79814         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79815         variables to suggest the intended function of the PATH_MAX check.
79816
79817 2005-10-30  Kean Johnston  <jkj@sco.com>
79818
79819         Trivial changes to support SCO systems.
79820         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79821         as PATH_MAX.
79822         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79823         where __ptr is null when no I/O is pending.
79824
79825 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79826
79827         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79828         leave errno alone.  Problem reported by Dmitry V. Levin.
79829
79830 2005-10-28  Simon Josefsson  <jas@extundo.com>
79831
79832         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79833         Test more.
79834
79835         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79836
79837         * modules/md2, modules/md2-tests: New files.
79838
79839 2005-10-28  Simon Josefsson  <jas@extundo.com>
79840
79841         * m4/inet_ntop.m4: More tests.
79842
79843         * m4/gc-md2.m4, md2.m4: New file.
79844
79845 2005-10-28  Simon Josefsson  <jas@extundo.com>
79846
79847         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79848         "restrict" keywords, as per POSIX.  Protect the function
79849         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79850         Don't use K&R prototypes.  Check the sprintf return values.
79851         Re-define EAFNOSUPPORT if not present.  Indent.
79852
79853         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79854         suggested by Bruno Haible <bruno@clisp.org>.
79855
79856         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79857
79858         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79859
79860         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79861         libgcrypt).
79862
79863         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79864
79865         * lib/md2.h, lib/md2.c: New files.
79866
79867 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79868
79869         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79870         errno alone.  Problem reported by Frederic Jolliton.
79871
79872 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79873
79874         * modules/verify (License): Change from GPL to LGPL.  This is a
79875         tiny module and there are apparently near-equivalents that are
79876         under the BSD license.
79877
79878 2005-10-24  Simon Josefsson  <jas@extundo.com>
79879
79880         * modules/sha1: Relicense to LGPL.
79881
79882 2005-10-24  Simon Josefsson  <jas@extundo.com>
79883
79884         * lib/md4.h: Shrink buffer size, now that we changed the type.
79885
79886 2005-10-23  Simon Josefsson  <jas@extundo.com>
79887
79888         * gnulib-tool (func_import): Fix --tests-base.
79889
79890 2005-10-22  Simon Josefsson  <jas@extundo.com>
79891
79892         * modules/arcfour (Depends-on): Need stdint.
79893
79894 2005-10-22  Simon Josefsson  <jas@extundo.com>
79895
79896         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79897         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79898
79899 2005-10-22  Simon Josefsson  <jas@extundo.com>
79900
79901         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79902         suggested by Bruno Haible <bruno@clisp.org>.
79903
79904 2005-10-22  Simon Josefsson  <jas@extundo.com>
79905
79906         * lib/crc.h: Include stddef.h, for size_t.
79907
79908 2005-10-22  Simon Josefsson  <jas@extundo.com>
79909
79910         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79911         arcfour_context struct (simplify test vector testing in GNU
79912         Shishi).
79913
79914 2005-10-21  Simon Josefsson  <jas@extundo.com>
79915
79916         * modules/des, modules/des-tests: New files.
79917
79918         * modules/gc-des, modules/gc-des-tests: New files.
79919
79920         * tests/test-des.c, tests/test-gc-des.c: New file.
79921
79922 2005-10-21  Simon Josefsson  <jas@extundo.com>
79923
79924         * modules/arctwo, modules/arctwo-tests: New files.
79925
79926         * tests/test-arctwo.c: New file.
79927
79928         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79929
79930         * tests/test-gc-arctwo.c: New file.
79931
79932 2005-10-21  Simon Josefsson  <jas@extundo.com>
79933
79934         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79935         Bruno Haible <bruno@clisp.org>.
79936
79937         * m4/gc-des.m4: New file.
79938
79939 2005-10-21  Simon Josefsson  <jas@extundo.com>
79940
79941         * m4/arctwo.m4: New file.
79942
79943         * m4/gc-arctwo.m4: New file.
79944
79945 2005-10-21  Simon Josefsson  <jas@extundo.com>
79946
79947         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79948         block.
79949
79950 2005-10-21  Simon Josefsson  <jas@extundo.com>
79951
79952         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79953         <bruno@clisp.org>.
79954
79955         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79956
79957         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79958         Bruno Haible <bruno@clisp.org>.
79959
79960         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79961         <bruno@clisp.org>.
79962
79963 2005-10-21  Simon Josefsson  <jas@extundo.com>
79964
79965         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79966
79967 2005-10-21  Simon Josefsson  <jas@extundo.com>
79968
79969         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79970
79971 2005-10-21  Simon Josefsson  <jas@extundo.com>
79972
79973         * lib/des.h, lib/des.c: New files.
79974
79975         * lib/gc-gnulib.c: Support DES.c
79976
79977 2005-10-21  Simon Josefsson  <jas@extundo.com>
79978
79979         * lib/arctwo.h, lib/arctwo.c: New files.
79980
79981         * lib/gc-gnulib.c: Support ARCTWO.
79982
79983 2005-10-21  Simon Josefsson  <jas@extundo.com>
79984
79985         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79986         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79987
79988 2005-10-21  Simon Josefsson  <jas@extundo.com>
79989
79990         * gnulib-tool (func_import, func_create_testdir): Define automake
79991         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79992         Makefile.am snippet),
79993         suggested by Bruno Haible <bruno@clisp.org>.
79994
79995         * modules/gc (Makefile.am): Use it.
79996
79997 2005-10-21  Bruno Haible  <bruno@clisp.org>
79998
79999         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
80000         patch.
80001
80002 2005-10-19  Simon Josefsson  <jas@extundo.com>
80003
80004         * tests/test-gc-rijndael.c: New file.
80005
80006         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
80007
80008 2005-10-19  Simon Josefsson  <jas@extundo.com>
80009
80010         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
80011         interface too.
80012
80013 2005-10-19  Simon Josefsson  <jas@extundo.com>
80014
80015         * tests/test-gc-arcfour.c: New file.
80016
80017         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
80018
80019 2005-10-19  Simon Josefsson  <jas@extundo.com>
80020
80021         * modules/gc-md4, modules/gc-md4-tests: New file.
80022
80023         * tests/test-gc-md4.c: New file.
80024
80025 2005-10-19  Simon Josefsson  <jas@extundo.com>
80026
80027         * m4/gc-md4.m4: New file.
80028
80029 2005-10-19  Simon Josefsson  <jas@extundo.com>
80030
80031         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
80032         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
80033         <kasal@ucw.cz>.
80034
80035 2005-10-19  Simon Josefsson  <jas@extundo.com>
80036
80037         * m4/gc-arcfour.m4: New file.
80038
80039         * m4/gc-rijndael.m4: New file.
80040
80041 2005-10-19  Simon Josefsson  <jas@extundo.com>
80042
80043         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
80044
80045 2005-10-19  Simon Josefsson  <jas@extundo.com>
80046
80047         * lib/gc-gnulib.c: Support ARCFOUR.
80048
80049 2005-10-19  Simon Josefsson  <jas@extundo.com>
80050
80051         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
80052         support.
80053
80054         * lib/gc.h: Add ECB enum type.
80055
80056         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
80057
80058 2005-10-18  Simon Josefsson  <jas@extundo.com>
80059
80060         * tests/test-md5.c: New file.
80061
80062         * modules/md5-tests: New file.
80063
80064 2005-10-18  Simon Josefsson  <jas@extundo.com>
80065
80066         * tests/test-md4.c: New file.
80067
80068         * modules/md4, modules/md4-tests: New files.
80069
80070 2005-10-18  Simon Josefsson  <jas@extundo.com>
80071
80072         * m4/md4.m4: New file.
80073
80074 2005-10-18  Simon Josefsson  <jas@extundo.com>
80075
80076         * lib/md4.h, lib/md4.c: New files, based on md5.?.
80077
80078 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
80079
80080         * gnulib-tool (func_create_testdir): Omit the second check whether
80081         BUILT_SOURCES in nonempty.
80082
80083 2005-10-17  Simon Josefsson  <jas@extundo.com>
80084
80085         * tests/test-rijndael.c: New file.
80086
80087 2005-10-17  Simon Josefsson  <jas@extundo.com>
80088
80089         * modules/sha1: Depend on stdint instead of md5.
80090
80091         * modules/md5: Depend on stdint, remove uint32_t.
80092
80093 2005-10-17  Simon Josefsson  <jas@extundo.com>
80094
80095         * modules/gc-sha1-tests: New file.
80096
80097         * tests/test-gc-sha1.c: New file.
80098
80099 2005-10-17  Simon Josefsson  <jas@extundo.com>
80100
80101         * m4/md5.m4: Remove call to uint32_t.m4.
80102
80103 2005-10-17  Simon Josefsson  <jas@extundo.com>
80104
80105         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
80106
80107         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
80108         md5.h.
80109
80110         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
80111
80112         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
80113
80114 2005-10-17  Simon Josefsson  <jas@extundo.com>
80115
80116         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
80117
80118 2005-10-17  Simon Josefsson  <jas@extundo.com>
80119
80120         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
80121
80122 2005-10-17  Simon Josefsson  <jas@extundo.com>
80123
80124         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
80125
80126         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
80127
80128 2005-10-17  Bruno Haible  <bruno@clisp.org>
80129
80130         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
80131         that it can also be used in a test.
80132
80133 2005-10-16  Bruno Haible  <bruno@clisp.org>
80134
80135         * gnulib-tool (func_emit_tests_Makefile_am): Also define
80136         TESTS_ENVIRONMENT, so that individual tests can augment it.
80137
80138         * gnulib-tool (func_create_testdir): Use an intermediate target for
80139         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
80140         macros, like $(ALLOCA_H), which cannot be passed through the command
80141         line.
80142
80143 2005-10-15  Simon Josefsson  <jas@extundo.com>
80144
80145         * modules/rijndael-tests: New file.
80146
80147         * modules/rijndael: New file.
80148
80149 2005-10-15  Simon Josefsson  <jas@extundo.com>
80150
80151         * m4/rijndael.m4: New file.
80152
80153 2005-10-15  Simon Josefsson  <jas@extundo.com>
80154
80155         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
80156
80157         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
80158
80159 2005-10-14  Simon Josefsson  <jas@extundo.com>
80160
80161         * tests/test-arcfour.c: New file.
80162
80163         * modules/arcfour, modules/arcfour-tests: New files.
80164
80165 2005-10-14  Simon Josefsson  <jas@extundo.com>
80166
80167         * m4/arcfour.m4: New file.
80168
80169 2005-10-14  Simon Josefsson  <jas@extundo.com>
80170
80171         * lib/arcfour.h, lib/arcfour.c: New files.
80172
80173 2005-10-14  Roland McGrath  <roland@redhat.com>
80174
80175         Import from libc.  [BZ #1331]
80176         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
80177         macro argument.
80178         Reported by Matej Vela <vela@debian.org>.
80179
80180 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80181
80182         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
80183         include <wchar.h>; no longer needed.
80184
80185 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
80186
80187         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
80188
80189 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
80190         and  Ulrich Drepper  <drepper@redhat.com>
80191
80192         Import from libc.
80193         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
80194         instead of inline stream orientation test and two separate
80195         function calls.  Pay no attention to USE_IN_LIBIO.
80196
80197 2005-10-13  Simon Josefsson  <jas@extundo.com>
80198
80199         * modules/gc-hmac-md5-tests: New file.
80200
80201         * tests/test-gc-hmac-sha1.c: New file.
80202
80203         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
80204
80205         * modules/gc-hmac-md5-tests: New file.
80206
80207         * tests/test-gc-md5.c: New file.
80208
80209         * modules/gc-md5-tests: New file.
80210
80211 2005-10-13  Simon Josefsson  <jas@extundo.com>
80212
80213         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
80214         Move memory allocation outside of loop.
80215
80216 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
80217
80218         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
80219         intermediate directory is in a read-only file system.  Problem
80220         reported by Eric Blake.
80221
80222 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
80223
80224         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
80225
80226 2005-10-12  Simon Josefsson  <jas@extundo.com>
80227
80228         * tests/test-hmac-sha1.c: New file.
80229
80230         * modules/hmac-sha1-tests: New file.
80231
80232         * modules/hmac-sha1: New file.
80233
80234 2005-10-12  Simon Josefsson  <jas@extundo.com>
80235
80236         * modules/gc-sha1: New file.
80237
80238 2005-10-12  Simon Josefsson  <jas@extundo.com>
80239
80240         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
80241
80242         * tests/test-gc-pbkdf2-sha1.c: New file.
80243
80244 2005-10-12  Simon Josefsson  <jas@extundo.com>
80245
80246         * modules/gc-md5, modules/gc-hmac-md5: New files.
80247
80248         * modules/gc (Files): Remove md5, memxor and hmac files.
80249
80250 2005-10-12  Simon Josefsson  <jas@extundo.com>
80251
80252         * m4/gc-pbkdf2-sha1.m4: New file.
80253
80254         * m4/gc-hmac-sha1.m4: New file.
80255
80256         * m4/gc-sha1: New file.
80257
80258         * m4/hmac-sha1.m4: New file.
80259
80260 2005-10-12  Simon Josefsson  <jas@extundo.com>
80261
80262         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
80263
80264         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
80265
80266 2005-10-12  Simon Josefsson  <jas@extundo.com>
80267
80268         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
80269         suggested by Bruno Haible <bruno@clisp.org>.
80270
80271 2005-10-12  Simon Josefsson  <jas@extundo.com>
80272
80273         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
80274
80275 2005-10-12  Simon Josefsson  <jas@extundo.com>
80276
80277         * lib/gc-pbkdf2-sha1.c: New file.
80278
80279         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
80280
80281 2005-10-12  Simon Josefsson  <jas@extundo.com>
80282
80283         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
80284
80285         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
80286
80287 2005-10-12  Simon Josefsson  <jas@extundo.com>
80288
80289         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
80290         GC_USE_HMAC_MD5, respectively.
80291
80292         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
80293         (gc_md5): Fix typo.
80294
80295         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
80296
80297         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
80298
80299         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
80300
80301 2005-10-12  Bruno Haible  <bruno@clisp.org>
80302
80303         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
80304         Reported by Stepan Kasal <kasal@ucw.cz>.
80305
80306 2005-10-11  Simon Josefsson  <jas@extundo.com>
80307
80308         * tests/test-crc.c: New file.
80309
80310         * modules/crc, modules/crc-tests: New files.
80311
80312 2005-10-11  Simon Josefsson  <jas@extundo.com>
80313
80314         * m4/crc.m4: New file.
80315
80316 2005-10-11  Simon Josefsson  <jas@extundo.com>
80317
80318         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80319
80320         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80321
80322         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80323
80324 2005-10-11  Simon Josefsson  <jas@extundo.com>
80325
80326         * lib/crc.h, lib/crc.c: New files.
80327
80328         * lib/gc.h (gc_hash_buffer): Add doc.
80329
80330 2005-10-11  Bruno Haible  <bruno@clisp.org>
80331
80332         * modules/c-strcasestr: New file.
80333         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80334
80335 2005-10-11  Bruno Haible  <bruno@clisp.org>
80336
80337         * modules/c-strcase: New file.
80338         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80339
80340 2005-10-11  Bruno Haible  <bruno@clisp.org>
80341
80342         * lib/strcasecmp.c: Include limits.h.
80343         (strcasecmp): Avoid integer overflow on exotic platforms.
80344         * lib/strncasecmp.c: Include limits.h.
80345         (strncasecmp): Avoid integer overflow on exotic platforms.
80346         Reported by Paul Eggert.
80347
80348 2005-10-11  Bruno Haible  <bruno@clisp.org>
80349
80350         * lib/c-strcasestr.h: New file, from GNU gettext.
80351         * lib/c-strcasestr.c: New file, from GNU gettext.
80352
80353 2005-10-11  Bruno Haible  <bruno@clisp.org>
80354
80355         * lib/c-strcase.h: New file, from GNU gettext.
80356         * lib/c-strcasecmp.c: New file, from GNU gettext.
80357         * lib/c-strncasecmp.c: New file, from GNU gettext.
80358
80359 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80360
80361         * modules/mempcpy (License): GPL -> LGPL.
80362         * modules/strchrnul (License): Likewise.
80363         * modules/sysexits (License): Likewise.
80364
80365 2005-10-08  Simon Josefsson  <jas@extundo.com>
80366
80367         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80368
80369 2005-10-07  Simon Josefsson  <jas@extundo.com>
80370
80371         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80372
80373 2005-10-06  Simon Josefsson  <jas@extundo.com>
80374
80375         * tests/test-hmac-md5.c: New file.
80376
80377         * modules/hmac-md5-tests: New file.
80378
80379         * modules/hmac-md5: New file.
80380
80381 2005-10-06  Simon Josefsson  <jas@extundo.com>
80382
80383         * m4/hmac-md5.m4: New file.
80384
80385         * m4/memxor.m4: Require gl_C_RESTRICT.
80386
80387 2005-10-06  Simon Josefsson  <jas@extundo.com>
80388
80389         * lib/memxor.c (memxor): Avoid casts and warnings.
80390
80391 2005-10-06  Simon Josefsson  <jas@extundo.com>
80392
80393         * lib/hmac-md5.c: New file.
80394
80395         * lib/hmac.h: New file.
80396
80397 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80398
80399         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80400         promotes to int, not unsigned int, to catch the AIX 5.3
80401         compiler bug.
80402
80403 2005-10-05  Simon Josefsson  <jas@extundo.com>
80404
80405         * modules/memxor: New file.
80406
80407         * modules/iconv (Files): Move config.rpath to havelib, it is used
80408         there.
80409
80410         * modules/havelib (Files): Add config.rpath.
80411
80412 2005-10-05  Simon Josefsson  <jas@extundo.com>
80413
80414         * m4/memxor.m4: New file.
80415
80416 2005-10-05  Simon Josefsson  <jas@extundo.com>
80417
80418         * lib/memxor.c (memxor): Fix compiler error.
80419
80420         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80421         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80422
80423         * lib/memxor.h, lib/memxor.c: New files.
80424
80425         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80426         we assume all systems have it, suggested by Jim Meyering
80427         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80428         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80429         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80430         same reasons.
80431
80432 2005-10-05  Simon Josefsson  <jas@extundo.com>
80433
80434         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80435
80436 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80437
80438         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80439         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80440         needed, since the source code now assumes these .h files.
80441
80442 2005-10-05  Derek Price  <derek@ximbiot.com>
80443
80444         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80445
80446 2005-10-05  Bruno Haible  <bruno@clisp.org>
80447
80448         * modules/stdint (License): Change to LGPL.
80449
80450 2005-10-04  Simon Josefsson  <jas@extundo.com>
80451
80452         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80453         D. Baushke" <mdb@gnu.org>.
80454
80455 2005-10-04  Bruno Haible  <bruno@clisp.org>
80456
80457         * lib/verify.h (verify_true): Provide alternative definition for C++.
80458
80459 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80460
80461         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80462         (SSIZE_MAX): New macro, if not already defined.
80463         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80464         than 2 GiB.
80465
80466 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80467
80468         Sync from coreutils.
80469         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80470         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80471         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80472         ULLONG_MAX doesn't work with 2.7.2.1.
80473
80474 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80475
80476         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80477         From Ben Pfaff.
80478
80479         * modules/exclude (Depends-on): Depend on verify.
80480         * modules/strtoimax (Depends-on): Likewise.
80481         * modules/utimecmp (Depends-on): Likewise.
80482
80483 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80484
80485         * lib/exclude.c: Include verify.h.
80486         (verify): Remove.  All callers changed to use verify.h's version.
80487         * lib/strtoimax.c: Likewise.
80488         * lib/utimecmp.c: Likewis.e
80489
80490         Sync from coreutils.
80491         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80492         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80493         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80494         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80495         bother returning ENOSYS if settimeofday or stime fails; just let
80496         them return whatever errno they want to return.
80497         * lib/utimens.c: Include unistd.h, for dup2.
80498         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80499         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80500
80501 2005-10-02  Jim Meyering  <jim@meyering.net>
80502
80503         Sync from coreutils.
80504         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80505         from glibc-2.2.5 that fails for read-only files.
80506
80507 2005-10-02  Jim Meyering  <jim@meyering.net>
80508
80509         Sync from coreutils.
80510         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80511         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80512         `#if HAVE_CONFIG_H'.
80513         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80514         Remove AT_FDCWD test.
80515         Do not consume the fd unless successful.
80516         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80517         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80518         block, so that we don't even try to compile it if settimeofday is
80519         available.  This works around a compilation failure on OSF1 V5.1,
80520         due to stime requiring a `long int*' while tv_sec is `int'.
80521
80522 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80523
80524         Sync from coreutils.
80525         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80526         against `yes', rather than just testing for nonempty.
80527
80528 2005-10-01  Simon Josefsson  <jas@extundo.com>
80529
80530         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80531         and Darwin.
80532
80533         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80534         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80535         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80536         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80537         Check if struct addrinfo is declared.
80538
80539 2005-10-01  Simon Josefsson  <jas@extundo.com>
80540
80541         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80542         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80543         AI_* and EAI_* definitions.  Protect function declarations.
80544
80545 2005-10-01  Jim Meyering  <jim@meyering.net>
80546
80547         Sync from coreutils.
80548
80549         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80550         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80551         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80552         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80553         in the inet and nsl libraries.  Required on Solaris 5.7.
80554
80555 2005-10-01  Jim Meyering  <jim@meyering.net>
80556
80557         Sync from coreutils.
80558         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80559         in the inet and nsl libraries.  Required on Solaris 5.7.
80560
80561 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80562
80563         * lib/getdelim.c (getdelim): Remove unused variables.
80564
80565 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80566
80567         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80568         so that the code works even with ancient cpp.  Portability problem
80569         with GCC 2.7.2.1 reported by Thomas M.Ott.
80570
80571 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80572
80573         * modules/regex (Depends-on): Add strcase.
80574
80575         * modules/gethostname (Licence): Change from GPL to LGPL, since
80576         gethostname.c is a trivial implementation of a standard library
80577         function.
80578         * modules/poll (License): Change from GPL to LGPL, since it's
80579         derived from LGPL code.
80580
80581 2005-09-27  Jim Meyering  <jim@meyering.net>
80582
80583         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80584         HAVE_CONFIG_H.
80585
80586         * lib/intprops.h (signed_type_or_expr__): Define.
80587         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80588         for unsigned types.
80589
80590 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80591
80592         * lib/verify.h (verify_expr): Remove, replacing with:
80593         (verify_true): New macro that returns true instead of void.
80594         (verify_type__): Remove.
80595         (verify): Use verify_true rather than verify_type__.
80596
80597 2005-09-26  Bruno Haible  <bruno@clisp.org>
80598
80599         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80600         is necessary.
80601         (lib_SOURCES): Remove mbchar.c.
80602         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80603         (Files): Add m4/mbrtowc.m4.
80604         * modules/mbiter: Likewise.
80605         * modules/mbuiter: Likewise.
80606
80607 2005-09-26  Bruno Haible  <bruno@clisp.org>
80608
80609         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80610         compile mbchar.c if they are not both present.
80611         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80612         * m4/mbiter.m4 (gl_MBITER): Likewise.
80613         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80614         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80615         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80616
80617 2005-09-25  Jim Meyering  <jim@meyering.net>
80618
80619         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80620         also uses socklen_t.
80621
80622 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80623
80624         * lib/utimens.c (ENOSYS): Define if not already defined.
80625         (futimens): Support having a null PATH if the file descriptor
80626         is nonnegative.
80627
80628         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80629         Remove.
80630         (__attribute): Define to empty unless GCC 3.1 or later.
80631         This works around a core dump on OpenBSD 3.4, which has GCC
80632         2.95.3, which dumps core when given __attribute__(()).  It also
80633         simplifies other tests, since we really don't want to bother with
80634         worrying about which ancient version of GCC supported what.
80635         Original problem reported by Yoann Vandoorselaere, with part of
80636         the fix suggested by Derek Price.
80637
80638 2005-09-24  Jim Meyering  <jim@meyering.net>
80639
80640         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80641         so we can once again use a positive bitfield width of 1 -- now we
80642         don't have to explain why we were using a bitfield width of 2.
80643
80644 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80645
80646         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80647         and similarly for the other external symbols.  Problem reported
80648         by James Gallager.
80649
80650         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80651         bug reported by Jim Meyering.
80652
80653         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80654         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80655         not needed, since socklen is a prerequisite module.
80656
80657 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80658
80659         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80660         Problem reported by Eric Blake.
80661         (getaddrinfo): Initialize se so that it's not garbage.
80662         Redo internal storage allocation so that it doesn't make unportable
80663         assumptions about alignment.
80664         Fix a memory leak.
80665
80666         * lib/utimens.c (futimens): Use futimesat if available.
80667         Prefer it to futimes since it doesn't have the futimes bug.
80668
80669         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80670         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80671         Instead, declare a function that returns a pointer to an array,
80672         and use verify_type__ to declare the size of the array.
80673         Problem and germ of a solution reported by Bruno Haible.
80674         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80675         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80676
80677 2005-09-23  Jim Meyering  <jim@meyering.net>
80678
80679         Sync from coreutils.
80680         Correct build failure (socklen_t not defined) on at least
80681         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80682         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80683
80684 2005-09-23  Jim Meyering  <jim@meyering.net>
80685
80686         * modules/getaddrinfo (Depends-on): Add socklen.
80687
80688 2005-09-23  Bruno Haible  <bruno@clisp.org>
80689
80690         * tests/test-verify.c: New file.
80691
80692 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80693
80694         Sync from coreutils.
80695
80696         * modules/argmatch (Depends-on): Add verify.
80697         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80698         unistd-safer.
80699         * modules/save-cwd (Depends-on): Likewise.
80700
80701         * modules/openat (Files): Add lib/openat-die.c.
80702         (Depends-on): Remove error, exitfail.
80703         Add dirname.
80704
80705         * modules/verify: New file.
80706         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80707         with "verify" module.
80708
80709 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80710
80711         Sync from coreutils.
80712
80713         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80714         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80715         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80716         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80717         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80718         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80719         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80720         Don't bother checking for string.h, stdlib.h, unistd.h.
80721         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80722         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80723         module's job.
80724         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80725         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80726
80727         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80728         (gl_GETDATE): Use it.
80729
80730         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80731
80732 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80733
80734         Sync from coreutils.
80735
80736         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80737         stat-time.h.
80738         * lib/argmatch.h: Include verify.h
80739         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80740         (ARGMATCH_ASSERT): Remove; unused.
80741         * lib/canonicalize.c: Assume STDC_HEADERS.
80742         * lib/exclude.c: Include "strcase.h".
80743         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80744         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80745         and stdio-safer.h.
80746         (getusershell): Call fopen, not fopen_safer.
80747         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80748         Do not include unistd-safer.h.
80749         (save_cwd): Don't call fd_safer; no longer needed
80750         now that we include fcntl--.h.
80751
80752         * lib/getdate.y (relative_time): New type.
80753         (RELATIVE_TIME_0): New constant.
80754         (parser_control): Use relative_time instead of doing it ourselves.
80755         (%union): Add new relative_time rel member.
80756         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80757         Now typeless.
80758         (relunit, relunit_snumber): Now of type rel.
80759         (zone, rel, relunit, get_date): Adjust to above changes.
80760
80761         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80762         Do not include unistd-safer.h.
80763         (getloadavg): Don't call fd_safer; no longer needed
80764         now that we include fcntl--.h.
80765
80766         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80767         (make_dir_parents): Treat ENOSYS like EEXIST.
80768
80769         Improve quality of diagnostics on restore_cwd failure.
80770         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80771         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80772         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80773         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80774         each time through the loop.  Do not diagnose restore_cwd failure;
80775         that is the caller's job (and perhaps the caller does not care).
80776
80777         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80778         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80779         If the file already exists but is not a directory, don't bother
80780         to try to make its parents.
80781         Close potential file descriptor leak if we can't chdir("/") (!).
80782         Don't always return true if chdir($PWD) fails; return true only
80783         if the requested action was done successfully (except for the
80784         chdir($PWD)).
80785         Don't log final directory unless we actually made it.
80786         Refactor to avoid duplicate code to fix up permissions.
80787         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80788
80789         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80790         to make it a bit faster and (I hope) clearer.
80791         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80792         Fix bug in formats like %2N.
80793
80794         * lib/verify.h: New file.
80795
80796 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80797
80798         Sync from coreutils.
80799         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80800
80801 2005-09-22  Jim Meyering  <jim@meyering.net>
80802
80803         Sync from coreutils.
80804
80805         * m4/lstat.m4 (gl_FUNC_LSTAT):
80806         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80807         Remove obsolete comment.
80808         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80809         * m4/xstrtod.m4: Likewise.
80810
80811         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80812
80813 2005-09-22  Jim Meyering  <jim@meyering.net>
80814
80815         Sync from coreutils.
80816
80817         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80818
80819         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80820         the .tm_year member, since otherwise gcc-4.0 would now warn about
80821         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80822
80823         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80824         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80825
80826         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80827         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80828         when run in a time zone for which daylight savings time is in effect
80829         for the starting date.
80830
80831         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80832         stop us from restricting permissions of just-created absolute-named
80833         directories.
80834         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80835         to restore initial working directory.
80836         * lib/mkdir-p.c (make_dir_parents): New parameter:
80837         different_working_dir, to tell caller if/when we change the working
80838         directory and are unable to return to the initial one.
80839         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80840         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80841         `return false'.  This fixes a bug introduced on 2004-07-30.
80842
80843         * lib/openat.c (fdopendir): Be sure to close the supplied
80844         file descriptor before returning.  This makes our replacement
80845         implementation a little closer to Solaris's, where fdopendir
80846         ties the file descriptor to the returned DIR* pointer.
80847         * lib/openat.c (unlinkat): New function.
80848         * lib/openat.h (unlinkat): Add prototype.
80849         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80850         (openat_restore_fail): Rename from openat_restore_die.
80851         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80852
80853         Provide an alternative to exiting immediately upon save_cwd or
80854         restore_cwd failure.  Now, an application can arrange e.g.,
80855         to perform a longjump in that case.
80856         * lib/openat.c: Include dirname.h.
80857         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80858         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80859         and openat_restore_die rather than calling error directly.
80860         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80861
80862         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80863         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80864         define.
80865
80866         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80867         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80868                             int utc, int nanoseconds);
80869         Background:
80870         date should not have to allocate a megabyte of virtual memory to
80871         handle a format argument like +%1048575T.  When implemented with
80872         strftime, it must allocate such a buffer, use strftime to fill it
80873         in, print it, then free it.
80874         With fprintftime, it simply prints everything and exits.
80875         With no need for memory allocation, that's one fewer way to fail.
80876         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80877         optional field width, not before, so we accept %9:z, not %:9z.
80878         (my_strftime): Be sure to use L_('x') for literals.
80879
80880         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80881         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80882         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80883         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80884         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80885         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80886         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80887         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80888         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80889         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80890         * lib/xgethostname.c, lib/xreadlink.c:
80891         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80892
80893         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80894         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80895         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80896         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80897         and don't include <sys/file.h>).
80898
80899 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80900
80901         Sync from coreutils.
80902
80903         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80904         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80905         [!LDAV_DONE]: Avoid unused variable warning.
80906
80907 2005-09-21  Bruno Haible  <bruno@clisp.org>
80908
80909         * lib/unicodeio.h (unicode_to_mb): New declaration.
80910
80911 2005-09-20  Derek Price  <derek@ximbiot.com>
80912
80913         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80914         getaddrinfo.h.
80915
80916 2005-09-20  Bruno Haible  <bruno@clisp.org>
80917
80918         * gnulib-tool: Remove trailing slashes from the values specified for
80919         --source-base, --m4-base, --tests-base, --aux-dir.
80920         Suggested by Simon Josefsson <jas@extundo.com>.
80921
80922 2005-09-20  Bruno Haible  <bruno@clisp.org>
80923
80924         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80925         func_modules_to_filelist, func_import, func_create_testdir): Make all
80926         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80927         change when gnulib-tool is invoked in a different locale.
80928
80929 2005-09-19  Simon Josefsson  <jas@extundo.com>
80930
80931         * m4/socklen.m4: Fix typo.
80932
80933 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80934
80935         Use a consistent style for including <config.h>.
80936         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80937         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80938         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80939         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80940         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80941         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80942         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80943         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80944         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80945         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80946         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80947         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80948         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80949         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80950         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80951         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80952         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80953         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80954         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80955         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80956         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80957         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80958         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80959         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80960         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80961         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80962         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80963         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80964         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80965         lib/xstrtoumax.c, lib/yesno.c:
80966         Standardize inclusion of config.h.
80967         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80968         lib/inttostr.h:  Removed inclusion of config.h from header files.
80969         * lib/inttostr.c:  Adjusted in-tree users.
80970         * lib/timespec.h: Remove superfluous warning to include config.h.
80971         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80972         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80973         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80974         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80975         config.h with HAVE_CONFIG_H.
80976
80977 2005-09-19  Jim Meyering  <jim@meyering.net>
80978
80979         * modules/pathmax (License): Change to LGPL.
80980
80981 2005-09-19  Derek Price  <derek@ximbiot.com>
80982
80983         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80984
80985 2005-09-19  Bruno Haible  <bruno@clisp.org>
80986
80987         * gnulib-tool (import): Provide default for --tests-base.
80988
80989 2005-09-19  Bruno Haible  <bruno@clisp.org>
80990
80991         * doc/quote.texi: New file, extracted from gnulib.texi.
80992         * doc/ctime.texi: New file, extracted from gnulib.texi.
80993         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80994         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80995         * doc/gnulib.texi: Include them.
80996
80997 2005-09-18  Bruno Haible  <bruno@clisp.org>
80998
80999         Portability fix.
81000         * gnulib-tool (func_readlink): New function.
81001         (func_ln_if_changed): Use it.
81002
81003 2005-09-18  Bruno Haible  <bruno@clisp.org>
81004
81005         * gnulib-tool: Support --with-tests also with --import.
81006         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
81007         (func_import): Use variables $testsbase and $inctests. Emit a
81008         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
81009         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
81010         SUBDIRS += $testsdir.
81011         (func_create_testdir): Update.
81012
81013 2005-09-18  Bruno Haible  <bruno@clisp.org>
81014
81015         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
81016         instead of $dry_run.
81017         (func_cp_if_changed, func_mv_if_changed): Remove functions.
81018         (func_ln_if_changed): Don't handle dry-run here.
81019         (func_import): In dry-run mode, detect more precisely which actions
81020         would be performed, and don't use "...ing" verbs.
81021
81022 2005-09-18  Bruno Haible  <bruno@clisp.org>
81023
81024         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
81025         (func_import): Use join on two temporary files instead of three nested
81026         loops, in order to determine which files are new or old.
81027
81028 2005-09-18  Bruno Haible  <bruno@clisp.org>
81029
81030         * gnulib-tool (func_import): Comment out code that spits out the
81031         new files with --dry-run.
81032
81033 2005-09-18  Bruno Haible  <bruno@clisp.org>
81034
81035         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
81036
81037 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81038
81039         * lib/stat-time.h: New file.
81040         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
81041         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
81042         in a different way.
81043         (timespec_cmp): New function.
81044         * lib/utimecmp.c: Include stat-time.h.
81045         (SYSCALL_RESOLUTION): Depend on whether various struct stat
81046         members exist, not on the obsolescent ST_MTIM_NSEC.
81047         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
81048
81049 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81050
81051         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
81052
81053 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
81054
81055         * MODULES.html.sh (File system functions): Add stat-time.
81056         * modules/stat-time: New file.
81057         * modules/timespec (Files): Remove m4/st_mtim.m4; this
81058         is now done in a different way, by the stat-time module.
81059         * modules/utimecmp (Depends-on): Add stat-time.
81060
81061 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
81062
81063         * m4/st_mtim.m4: Remove.  Superseded by...
81064         * m4/stat-time.m4: New file.
81065         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
81066         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
81067
81068 2005-09-15  Derek Price  <derek@ximbiot.com>
81069
81070         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
81071
81072 2005-09-15  Derek Price  <derek@ximbiot.com>
81073
81074         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
81075         * lib/regex_internal.c: Ditto, using this...
81076         (__GNUC_PREREQ): ...new macro.
81077         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
81078         using...
81079         (__GNUC_PREREQ): ...this new macro.
81080
81081         * lib/strstr.h: Include string.h. Define strstr as a macro here.
81082
81083 2005-09-15  Derek Price  <derek@ximbiot.com>
81084             Paul Eggert  <eggert@cs.ucla.edu>
81085
81086         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
81087         changes, consolidating in...
81088         * lib/regex_internal.h: ...this file.
81089
81090 2005-09-13  Jim Meyering  <jim@meyering.net>
81091
81092         * lib/canon-host.c: Filter through gnu indent and reword comments
81093         slightly.
81094         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
81095
81096 2005-09-13  Derek Price  <derek@ximbiot.com>
81097
81098         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
81099         failure.
81100         Reported by Jim Meyering  <jim@meyering.net>.
81101
81102 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81103
81104         * lib/base64.c: Typo.
81105         (base64_encode): Put b64str in initialized data section.
81106
81107 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
81108
81109         Merge glibc and coreutils changes into gnulib, plus a few
81110         extra fixes.
81111         * lib/md5.c: Use #error rather than a string.
81112         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
81113         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
81114         (__attribute__): Define to empty for non recent-GCC.
81115         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
81116         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
81117         Renamed from their non-__ counterparts, with new macros replacing
81118         them if not _LIBC.  Add __THROW attribute.
81119         (rol): Remove.
81120         (struct md5_ctx): Align buffer if using GCC.
81121         * lib/sha1.h (struct sha1_ctx): Likewise.
81122         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
81123         The old name was backwards.
81124         (NOTSWAP): Remove; not used.
81125         (rol): New macro, moved here from md5.h.
81126         (sha1_process_block): Remove a FIXME that doesn't make sense.
81127
81128 2005-09-12  Derek Price  <derek@ximbiot.com>
81129
81130         Return usable errors from canon-host.
81131         * lib/canon-host.h: New file.
81132         * lib/canon-host.c (canon_host): Wrap...
81133         (canon_host_r): ...this new function, which now relies exclusively on
81134         getaddrinfo.
81135         (ch_strerror): New function.
81136         (last_cherror): New global.
81137         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
81138         interface.
81139         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
81140         void *.
81141         (freeaddrinfo): Free ai->ai_canonname when set.
81142
81143 2005-09-12  Derek Price  <derek@ximbiot.com>
81144
81145         Make canon-host require getaddrinfo.
81146         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
81147         AC_LIBSOURCE canon-host.h.  Call...
81148         (gl_PREREQ_CANON_HOST): ...this new function, which requires
81149         gl_GETADDRINFO.
81150         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
81151
81152 2005-09-12  Derek Price  <derek@ximbiot.com>
81153
81154         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
81155         LGPL.
81156         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
81157
81158 2005-09-12  Derek Price  <derek@ximbiot.com>
81159
81160         * lib/gai_strerror.c: Include config.h when available.  Include
81161         getaddrinfo.h before other headers to test interface.
81162         Reported by Larry Jones <lawrence.jones@ugs.com>.
81163
81164 2005-09-12  Derek Price  <derek@ximbiot.com>
81165             Paul Eggert  <eggert@cs.ucla.edu>
81166
81167         * modules/glob (Files): Add glob-libc.h.
81168
81169 2005-09-12  Derek Price  <derek@ximbiot.com>
81170             Paul Eggert  <eggert@cs.ucla.edu>
81171
81172         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
81173         glob_.h, glob-libc.h.
81174         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
81175
81176 2005-09-12  Derek Price  <derek@ximbiot.com>
81177             Paul Eggert  <eggert@cs.ucla.edu>
81178
81179         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
81180         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
81181         protecting things that should be done only in gnulib contexts.
81182         * lib/glob_.h: New file, containing only the glob things needed for
81183         gnulib.
81184         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
81185         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
81186         (glob, globfree, glob_pattern_p): Now defined simply in terms of
81187         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
81188         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
81189         and to respect the namespace rules better.
81190
81191 2005-09-08  Simon Josefsson  <jas@extundo.com>
81192
81193         * modules/socklen: New file.
81194
81195 2005-09-08  Simon Josefsson  <jas@extundo.com>
81196
81197         * m4/socklen.m4: New file.
81198
81199 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81200
81201         * modules/utimens (Files): Add m4/utimbuf.m4, since
81202         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
81203         Reported by Sergey Poznyakoff.
81204
81205 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81206
81207         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
81208         definitions, since that's the preferred style in glibc.
81209         Fix a minor spacing issue, and update copyright notice to match
81210         glibc's.
81211
81212 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
81213
81214         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
81215
81216 2005-09-06  Simon Josefsson  <jas@extundo.com>
81217
81218         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
81219         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
81220
81221 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81222
81223         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
81224         warning.
81225
81226 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81227
81228         * config/srclist.txt: Add glibc bug 1302.
81229
81230 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
81231
81232         Change bitset word type from unsigned int to unsigned long int,
81233         as this has better performance on typical 64-bit hosts.
81234         Port bitset code to hosts with unusual word sizes.
81235         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
81236         (build_collating_symbol):
81237         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
81238         argument is a bitset.  This is merely a style issue, but it makes
81239         it clearer that an entire array is expected.
81240         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
81241         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
81242         Port to the case where bitset_word is not the same as unsigned int.
81243         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81244         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
81245         Likewise.
81246         * lib/regexec.c (check_dst_limits_calc_pos_1,
81247         check_subexp_matching_top):
81248         (build_trtable, group_nodes_into_DFAstates):
81249         Likewise.
81250         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
81251         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
81252         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
81253         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
81254         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
81255         * lib/regcomp.c (optimize_subexps, lower_subexp):
81256         Work even if bitset_word has holes in its bitwise representation.
81257         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
81258         * lib/regexec.c (check_dst_limits_calc_pos_1,
81259         check_subexp_matching_top):
81260         Likewise.
81261         * lib/regex_internal.c (re_string_reconstruct):
81262         Don't assume UCHAR_MAX == 255.
81263         * lib/regex_internal.h (bitset_set_all): Likewise.
81264         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
81265         All uses changed.
81266         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
81267         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
81268         All uses changed.
81269         (BITSET_WORD_MAX): New macro.
81270         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
81271         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
81272         (bitset_empty, bitset_copy):
81273         Prefer sizeof (bitset) to multiplying it out ourselves.
81274         (bitset_not_merge): Remove; unused.
81275         (bitset_contain): Return bool, not unsigned int with one bit on.
81276         All callers changed.
81277         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
81278         alignment than re_node_set; do this by defining a new internal
81279         type struct dests_alloc and using it to allocate memory.
81280
81281 2005-09-05  Bruno Haible  <bruno@clisp.org>
81282
81283         * gnulib-tool (func_import): Fix comparison in handling of symbolic
81284         links.
81285
81286 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
81287
81288         * modules/size_max (Makefile.am): Add size_max.h
81289
81290 2005-09-04  Derek Price  <derek@ximbiot.com>
81291
81292         * gnulib-tool (func_import): Fix reversed $symbolic logic.
81293
81294 2005-09-03  Simon Josefsson  <jas@extundo.com>
81295
81296         * gnulib-tool: Fix typo.
81297
81298 2005-09-03  Simon Josefsson  <jas@extundo.com>
81299
81300         * config/srclist.txt: Add glibc bug 1293.
81301
81302 2005-09-03  Derek Price  <derek@ximbiot.com>
81303
81304         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
81305         From Larry Jones <lawrence.jones@ugs.com>.
81306
81307 2005-09-02  Simon Josefsson  <jas@extundo.com>
81308
81309         * modules/socklen: New file.
81310
81311 2005-09-02  Simon Josefsson  <jas@extundo.com>
81312
81313         * modules/havelib: New module.
81314
81315         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81316         Use havelib.
81317
81318 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81319
81320         Check for arithmetic overflow when calculating sizes, to prevent
81321         some buffer-overflow issues.  These patches are conservative, in the
81322         sense that when I couldn't determine whether an overflow was possible,
81323         I inserted a run-time check.
81324         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81325         macros.
81326         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81327         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81328         (re_xnrealloc, re_x2nrealloc): New inline functions.
81329         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81330         parse_bracket_exp):
81331         (build_equiv_class, build_charclass): Check for arithmetic overflow
81332         in size expression calculations.
81333         * lib/regex_internal.c (re_string_realloc_buffers):
81334         (build_wcs_upper_buffer, re_node_set_add_intersect):
81335         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81336         (re_dfa_add_node, register_state): Likewise.
81337         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81338         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81339         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81340         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81341
81342 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81343
81344         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81345         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81346
81347 2005-09-02  Bruno Haible  <bruno@clisp.org>
81348
81349         Support for lib vs. lib64 distinction on biarch platforms.
81350         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81351         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81352         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81353
81354 2005-09-02  Bruno Haible  <bruno@clisp.org>
81355
81356         * gnulib-tool (import): In the other first-use case, provide defaults
81357         as well.
81358
81359 2005-09-02  Bruno Haible  <bruno@clisp.org>
81360
81361         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81362         patches not yet found in the latest gettext release.
81363
81364 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81365
81366         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81367         to avoid a collision with bits/local_lim.h in glibc.
81368         All uses changed.  Problem reported by Dmitry V. Levin in
81369         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81370
81371         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81372         bugs in int versus size_t comparisons.
81373         (re_string_context_at): Fix bug where the code assumed that
81374         Idx is signed.
81375
81376         Use bool where appropriate.
81377         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81378         All callers changed.
81379         (calc_eclosure_iter): Likewise, for ROOT arg.
81380         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81381         (build_charclass_op): Likewise, for NON_MATCH arg.
81382         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81383         (re_string_construct_common): Likewise, for ICASE arg.
81384         * lib/regexec.c (re_search_2_stub, re_search_stub):
81385         Likewise, for RET_LEN arg.
81386         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81387         (set_regs): Likewise, for FL_BACKTRACK arg.
81388         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81389         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81390         (calc_eclosure_iter, parse_bracket_exp):
81391         Use bool for internal variables that are booleans.
81392         * lib/regexec.c (re_search_internal, check_matching,
81393         proceed_next_node):
81394         (set_regs, build_sifted_states, sift_states_bkref):
81395         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81396         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81397         (find_collation_sequence_value):
81398         Likewise.
81399         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81400         (re_node_set_compare):
81401         Return bool, not int. All callers changed.
81402         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81403         (build_trtable, check_node_accept): Likewise.
81404         * lib/regex_internal.h: Include stdbool.h.
81405
81406         Fix bugs uncovered when converting to bool.
81407         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81408         failure instead of charging ahead blindly.
81409         * lib/regex_internal.c (register_state): Likewise.
81410         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81411         for freeing internal storage.
81412         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81413         bitset pieces used as boolean, to avoid undefined behavior
81414         on hosts that do int overflow checking.
81415
81416 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81417
81418         * config/srclist.txt: Add glibc bugs 1285-1287.
81419
81420 2005-09-01  Jim Meyering  <jim@meyering.net>
81421
81422         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81423         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81424         Require gl_STAT_MACROS, too.
81425
81426 2005-09-01  Bruno Haible  <bruno@clisp.org>
81427
81428         * gnulib-tool (import): In the first-use case, provide defaults.
81429
81430 2005-09-01  Bruno Haible  <bruno@clisp.org>
81431
81432         * gnulib-tool (func_import): Remove the .tmp files.
81433
81434 2005-09-01  Bruno Haible  <bruno@clisp.org>
81435
81436         * gnulib-tool (func_import): Fix handling of symbolic links.
81437
81438 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81439
81440         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81441         old glibc regex code mishandles strings longer than 2**31 bytes.
81442         This patch fixes this when the regex code is used in gnulib
81443         (i.e., outside glibc).
81444
81445         This patch should not affect the use of the regex code inside
81446         glibc.  No doubt this problem also needs to be handled for glibc
81447         as well, but the result will be an incompatible change to the
81448         glibc ABI, and the old ABI will have to be supported too.  That
81449         can be the the subject for another patch.
81450
81451         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81452         governing whether the rest of this patch is active.  By default,
81453         the macro is disabled and the patch has no effect.
81454         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81455         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81456         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81457         (re_match_2, re_set_registers): Use the new types.
81458         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81459         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81460         New macros.
81461         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81462         (re_string_context_at, bin_tree_t, re_dfastate_t):
81463         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81464         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81465         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81466         (re_string_char_size_at, re_string_wchar_at):
81467         (re_string_elem_size_at):
81468         Use the new types and macros to port to 64-bit hosts.
81469         Use unsigned types for internal values, so that the code
81470         mostly works even for arrays larger than SSIZE_MAX.
81471         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81472         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81473         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81474         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81475         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81476         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81477         (calc_inveclosure, parse_dup_op, build_range_exp):
81478         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81479         (fetch_number, create_token_tree, mark_opt_subexp):
81480         Likewise.
81481         * lib/regex_internal.c (re_string_construct_common,
81482         create_ci_newstate):
81483         (create_cd_newstate, re_string_allocate, re_string_construct):
81484         (re_string_realloc_buffers, build_wcs_upper_buffer):
81485         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81486         (re_string_reconstruct, re_string_peek_byte_case):
81487         (re_string_fetch_byte_case, re_string_context_at):
81488         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81489         (re_node_set_init_copy, re_node_set_add_intersect):
81490         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81491         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81492         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81493         (re_acquire_state, re_acquire_state_context, register_state):
81494         Likewise.
81495         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81496         search_cur_bkref_entry):
81497         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81498         (re_search_internal, re_search_2_stub, re_search_stub)
81499         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81500         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81501         (update_cur_sifted_state, check_dst_limits):
81502         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81503         (check_subexp_limits, sift_states_bkref, merge_state_array):
81504         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81505         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81506         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81507         (expand_bkref_cache, check_node_accept_bytes):
81508         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81509         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81510         (acquire_init_state_context, check_halt_node_context):
81511         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81512         (sift_states_backward, clean_state_log_if_needed):
81513         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81514         (find_recover_state, transit_state_sb, transit_state_mb):
81515         (transit_state_bkref, build_trtable, match_ctx_clean):
81516         Likewise.
81517         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81518         to work around an assumption that REG_MISSING is negative.
81519
81520         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81521         (seek_collating_symbol_entry) [defined _LIBC]:
81522         (lookup_collation_sequence_value) [defined _LIBC]:
81523         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81524         Use prototypes rather than old-style function definitions.
81525         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81526         (transit_state_sb) [0]:
81527         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81528
81529         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81530         rm_eo.
81531
81532         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81533         (optimize_subexps, lower_subexp):
81534         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81535         since the signed shift might overflow.  Use 1u<<31 instead.
81536         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81537         Likewise.
81538         * lib/regexec.c (check_dst_limits_calc_pos_1,
81539         check_subexp_matching_top): Likewise.
81540
81541         * lib/regcomp.c (optimize_subexps, lower_subexp):
81542         Use CHAR_BIT rather than 8, for clarity.
81543         * lib/regexec.c (check_dst_limits_calc_pos_1):
81544         (check_subexp_matching_top): Likewise.
81545         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81546         have to worry about portability issues when shifting it left.
81547         Remove no-longer-needed test for table_size > 0.
81548         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81549         in a word, as the resulting behavior is undefined.
81550         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81551         in one case, a <= should have been an <, and in another case the
81552         whole test was missing.
81553         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81554         the standard name CHAR_BIT.
81555         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81556         this is not true on one's complement and signed-magnitude hosts.
81557
81558         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81559         next_last_offset.
81560         (struct re_dfa_t): Remove unused member states_alloc.
81561         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81562
81563 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81564
81565         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81566         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81567         and large-file glibc and in 32-bit large-file Solaris.
81568
81569 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81570
81571         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81572         lengths fit in regoff_t; this isn't true if regoff_t is the same
81573         width as size_t.
81574         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81575         (= START + RANGE) instead of RANGE.  This avoids overflow
81576         problems when regoff_t is the same width as size_t.
81577         All callers changed.
81578         (re_search_2_stub): Check for overflow when adding the
81579         sizes of the two strings.
81580         (re_search_stub): Check for overflow when adding START
81581         to RANGE; if it occurs, substitute the extreme value.
81582
81583 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81584
81585         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81586
81587 2005-08-31  Jim Meyering  <jim@meyering.net>
81588
81589         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81590         a pointer-to-const.
81591         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81592         (register_state): Likewise.
81593         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81594         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81595         (group_nodes_into_DFAstates): Likewise.
81596
81597 2005-08-31  Jim Meyering  <jim@meyering.net>
81598
81599         * check-module: Add a FIXME comment.
81600
81601 2005-08-31  Eric Blake  <ebb9@byu.net>
81602
81603         * modules/unistd-safer (Files): Add unistd--.h.
81604         * modules/stdio-safer (Files): Add stdio--.h.
81605
81606 2005-08-31  Derek Price  <derek@ximbiot.com>
81607
81608         * lib/getdelim.c (getdelim): Return EOF on EOF.
81609         Reported by Larry Jones <lawrence.jones@ugs.com>.
81610
81611 2005-08-31  Bruno Haible  <bruno@clisp.org>
81612
81613         Avoid unnecessary diffs in the generated lib/Makefile.am.
81614         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81615         the generated files.
81616         (func_import): Don't set cmd.
81617
81618 2005-08-31  Bruno Haible  <bruno@clisp.org>
81619
81620         * lib/strstr.c: Include <stddef.h>, for NULL.
81621         * lib/strcasestr.c: Likewise.
81622         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81623
81624 2005-08-31  Bruno Haible  <bruno@clisp.org>
81625
81626         * gnulib-tool: New option --macro-prefix.
81627         (func_import): Use macro_prefix.
81628         (import): Handle option --macro-prefix.
81629
81630 2005-08-31  Bruno Haible  <bruno@clisp.org>
81631
81632         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81633         Also use new variables cached_lgpl, cached_libtool.
81634
81635 2005-08-31  Bruno Haible  <bruno@clisp.org>
81636
81637         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81638         always instantiating them.
81639
81640 2005-08-31  Bruno Haible  <bruno@clisp.org>
81641
81642         * gnulib-tool (func_import): Read the previous cached settings
81643         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81644         earlier added by gnulib but are now dropped. Warn when a gnulib file
81645         overwrites a non-gnulib file.
81646
81647 2005-08-31  Bruno Haible  <bruno@clisp.org>
81648
81649         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81650         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81651         projects that don't keep autogenerated files in CVS. Put into
81652         actioncmd only the specified modules, not the transitive closure.
81653
81654 2005-08-31  Bruno Haible  <bruno@clisp.org>
81655
81656         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81657         Create directories that shall be filled.
81658         (import): Don't look for gl_* macros in configure.ac. Recurse across
81659         all directories containing a gnulib-cache.m4 files, if meaningful.
81660
81661 2005-08-31  Bruno Haible  <bruno@clisp.org>
81662
81663         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81664         (import): Set seen_libtool when we see gl_LIBTOOL.
81665
81666 2005-08-31  Bruno Haible  <bruno@clisp.org>
81667
81668         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81669         declaration macro definitions from generated gnulib.m4.
81670
81671 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81672
81673         * lib/iconvme.h: Add prototype for iconv_alloc.
81674
81675 2005-08-29  Simon Josefsson  <jas@extundo.com>
81676
81677         * lib/iconvme.c: Fix errno.
81678
81679 2005-08-29  Bruno Haible  <bruno@clisp.org>
81680
81681         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81682         that it works when the directory contains spaces.
81683
81684 2005-08-29  Bruno Haible  <bruno@clisp.org>
81685
81686         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81687
81688 2005-08-29  Bruno Haible  <bruno@clisp.org>
81689
81690         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81691         Emit more advice.
81692
81693 2005-08-29  Bruno Haible  <bruno@clisp.org>
81694         and Stepan Kasal  <kasal@ucw.cz>
81695
81696         * check-module: If more parameters are given, check each of them
81697         separately; add more exceptions, as noted by Jim Meyering.
81698         (check_module): New procedure.
81699         (%exempt_header): Now contains all exceptions.
81700
81701 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81702
81703         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81704
81705 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81706
81707         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81708
81709 2005-08-28  Bruno Haible  <bruno@clisp.org>
81710
81711         * m4/gnulib-tool.m4: New file.
81712
81713 2005-08-27  Jim Meyering  <jim@meyering.net>
81714
81715         * modules/unistd-safer (Files): Add pipe-safer.c.
81716         * modules/fcntl-safer (Files): Add creat-safer.c.
81717
81718 2005-08-27  Jim Meyering  <jim@meyering.net>
81719
81720         * m4/stdlib-safer.m4: New file.  From coreutils.
81721         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81722         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81723         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81724         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81725         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81726
81727 2005-08-27  Jim Meyering  <jim@meyering.net>
81728
81729         * lib/fopen-safer.c: Merge minor changes from coreutils.
81730         * lib/dup-safer.c: Likewise.
81731         * lib/fd-safer.c: Likewise.
81732
81733         Merge from coreutils.
81734         * lib/stdio--.h: New file.
81735         * lib/stdlib--.h: New file.
81736         * lib/mkstemp-safer.c: New file.
81737
81738         GNU tar needs these.
81739         * lib/pipe-safer.c: New file.
81740         * lib/creat-safer.c: New file.
81741         * lib/fcntl--.h (creat): Define to creat_safer.
81742         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81743         * lib/unistd--.h (pipe): Define to pipe_safer.
81744         * lib/unistd-safer.h: Declare pipe_safer.
81745
81746 2005-08-26  Simon Josefsson  <jas@extundo.com>
81747
81748         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81749         Haible <bruno@clisp.org>.
81750
81751 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81752
81753         * lib/regex_internal.h: Remove all references to
81754         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81755         or better.
81756         (bitset_not, bitset_merge, bitset_not_merge):
81757         (bitset_mask, re_string_allocate, re_string_construct):
81758         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81759         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81760         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81761         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81762         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81763         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81764         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81765         (re_acquire_state_context):
81766         Remove unnecessary forward decls.
81767         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81768         Put __attribute at function definition,
81769         now that the function decl has been removed.
81770         * lib/regex_internal.c (re_string_peek_byte_case):
81771         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81772         Likewise.
81773
81774 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81775
81776         * m4/regex.m4: Add AC_PREREQ(2.50).
81777         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81778
81779 2005-08-25  Simon Josefsson  <jas@extundo.com>
81780
81781         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81782         __fsetlocking.
81783
81784 2005-08-25  Simon Josefsson  <jas@extundo.com>
81785
81786         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81787         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81788         GLIBC specific code.
81789
81790 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81791
81792         Make regex safe for g++.  This fixes one real bug (an "err"
81793         that should have been "*err").  g++ problem reported by
81794         Sam Steingold.
81795         * lib/regex_internal.h (re_calloc): New macro, consistent with
81796         re_malloc etc.  All callers of calloc changed to use re_calloc.
81797         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81798         not int.  All callers changed.
81799         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81800         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81801         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81802         (find_recover_state): Change "err" to "*err"; this fixes what
81803         appears to be a real bug.
81804         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81805         versus int.
81806
81807 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81808
81809         * modules/regex (Depends-on): Add malloc, since the code
81810         assumes that !malloc(0) means failure.
81811
81812 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81813
81814         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81815
81816         alloca modernization/simplification for regex.
81817         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81818         needs to be at the start of the file, and can be moved into
81819         regex_internal.h and simplified.
81820         * lib/regex_internal.h: Include <alloca.h>.
81821         (__libc_use_alloca) [!defined _LIBC]: New macro.
81822         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81823         now works outside glibc.
81824
81825 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81826
81827         * config/srclist.txt: Add glibc bugs 1241, 1245.
81828
81829 2005-08-25  Jim Meyering  <jim@meyering.net>
81830
81831         * lib/open-safer.c: Include <config.h>.
81832         Otherwise, we'd lose LARGEFILE support in any file using
81833         e.g. "fcntl--.h"
81834
81835 2005-08-25  Bruno Haible  <bruno@clisp.org>
81836
81837         * m4/minmax.m4: Require autoconf 2.52.
81838         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81839         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81840         alternatives of translit over the alphabet.
81841         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81842
81843 2005-08-24  Simon Josefsson  <jas@extundo.com>
81844
81845         * tests/test-getpass.c: New file.
81846
81847 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81848
81849         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81850         for GNU regex features.
81851
81852 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81853
81854         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81855         * lib/regex.h (regerror): Likewise.
81856
81857         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81858         requires this.  (The code never needed it.)
81859
81860         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81861         All uses of recently-renamed identifiers changed to use the new,
81862         POSIX-compliant names.  The code will build and run just fine
81863         without these changes, but it's better to eat our own dog food
81864         and use the standard-conforming names.
81865
81866         * lib/regex.h: Fix a multitude of POSIX name space violations.
81867         These changes have an effect only for programs that define
81868         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81869         do not change anything for programs compiled in the normal way.
81870         Also, there is no effect on the ABI.
81871
81872         (_REGEX_SOURCE): New macro.
81873         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81874         defined and _GNU_SOURCE is not; this fixes a name space violation.
81875
81876         Rename the following macros to obey POSIX requirements.
81877         The old names are still visible as macros if _REGEX_SOURCE is defined.
81878         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81879         RE_BACKSLASH_ESCAPE_IN_LISTS.
81880         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81881         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81882         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81883         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81884         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81885         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81886         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81887         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81888         (REG_INTERVALS): renamed from RE_INTERVALS.
81889         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81890         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81891         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81892         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81893         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81894         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81895         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81896         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81897         RE_UNMATCHED_RIGHT_PAREN_ORD.
81898         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81899         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81900         (REG_DEBUG): renamed from RE_DEBUG.
81901         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81902         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81903         unusual, since we can't clash with the POSIX REG_ICASE.
81904         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81905         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81906         (REG_NO_SUB): renamed from RE_NO_SUB.
81907         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81908         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81909         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81910         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81911         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81912         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81913         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81914         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81915         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81916         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81917         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81918         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81919         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81920         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81921         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81922         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81923         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81924         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81925         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81926         (REG_FIXED): Renamed from REGS_FIXED.
81927         (REG_NREGS): Renamed from RE_NREGS.
81928
81929         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81930         of other REG_* macros, since POSIX says the user is allowed to
81931         #undef these macros selectively.
81932
81933         (reg_errcode_t): Update comment stating what other tables need
81934         to be consistent.
81935
81936         Rename the following enum values to obey POSIX requirements.
81937         The old names are still visible as macros.
81938         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81939         is not defined, since GNU is supposed to be a superset of POSIX as
81940         much as possible, and since we want reg_errcode_t to be a signed
81941         type for implementation consistency.
81942         (_REG_NOERROR): Renamed from REG_NOERROR.
81943         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81944         (_REG_BADPAT): Renamed from REG_BADPAT.
81945         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81946         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81947         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81948         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81949         (_REG_EBRACK): Renamed from REG_EBRACK.
81950         (_REG_EPAREN): Renamed from REG_EPAREN.
81951         (_REG_EBRACE): Renamed from REG_EBRACE.
81952         (_REG_BADBR): Renamed from REG_BADBR.
81953         (_REG_ERANGE): Renamed from REG_ERANGE.
81954         (_REG_ESPACE): Renamed from REG_ESPACE.
81955         (_REG_BADRPT): Renamed from REG_BADRPT.
81956         (_REG_EEND): Renamed from REG_EEND.
81957         (_REG_ESIZE): Renamed from REG_ESIZE.
81958         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81959         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81960         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81961         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81962         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81963
81964         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81965         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81966         changed.  But support the old name if the new one is not defined
81967         and if _REGEX_SOURCE.
81968
81969         Change the following member names in struct re_pattern_buffer.
81970         The old names are still supported if !_REGEX_SOURCE.
81971         The new names are always supported, regardless of _REGEX_SOURCE.
81972         (re_buffer): Renamed from buffer.
81973         (re_allocated): Renamed from allocated.
81974         (re_used): Renamed from used.
81975         (re_syntax): Renamed from syntax.
81976         (re_fastmap): Renamed from fastmap.
81977         (re_translate): Renamed from translate.
81978         (re_can_be_null): Renamed from can_be_null.
81979         (re_regs_allocated): Renamed from regs_allocated.
81980         (re_fastmap_accurate): Renamed from fastmap_accurate.
81981         (re_no_sub): Renamed from no_sub.
81982         (re_not_bol): Renamed from not_bol.
81983         (re_not_eol): Renamed from not_eol.
81984         (re_newline_anchor): Renamed from newline_anchor.
81985
81986         Change the following member names in struct re_registers.
81987         The old names are still supported if !_REGEX_SOURCE.
81988         The new names are always supported, regardless of _REGEX_SOURCE.
81989         (rm_num_regs): Renamed from num_regs.
81990         (rm_start): Renamed from start.
81991         (rm_end): Renamed from end.
81992
81993         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81994         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81995         Prepend __ to parameter names.
81996
81997         Undo yesterday's changes.
81998
81999 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82000
82001         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
82002         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
82003         lib/regex.c.
82004
82005 2005-08-24  Jim Meyering  <jim@meyering.net>
82006
82007         Sync from coreutils.
82008         * m4/fcntl-safer.m4: New file.
82009
82010         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
82011         and object files for this module.
82012
82013 2005-08-24  Jim Meyering  <jim@meyering.net>
82014
82015         Sync from coreutils.
82016         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
82017
82018 2005-08-24  Jim Meyering  <jim@meyering.net>
82019
82020         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
82021         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
82022
82023 2005-08-24  Jim Meyering  <jim@meyering.net>
82024
82025         * modules/fcntl-safer: New module.
82026         * modules/fts (Depends-on): Add fcntl-safer.
82027         * MODULES.html.sh (File descriptor based Input/Output):
82028         Add fcntl-safer.
82029
82030 2005-08-24  Bruno Haible  <bruno@clisp.org>
82031
82032         Support for unit test modules.
82033         * modules/README: Mention tests modules.
82034         * modules/TEMPLATE-TESTS: New file.
82035         * gnulib-tool: New options --extract-tests-module, --with-tests and
82036         --tests-base (unused for the moment).
82037         (testsbase, inctests): New variables.
82038         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
82039         (func_verify_module): Exclude TEMPLATE-TESTS.
82040         (func_verify_nontests_module, func_verify_tests_module): New functions.
82041         (func_get_dependencies): Add implicit dependency for tests modules.
82042         (func_get_tests_module): New function.
82043         (func_modules_transitive_closure): When --with-tests was specified,
82044         include the unit tests as well, unless explicitly avoided.
82045         (func_emit_lib_Makefile_am): Ignore the tests modules here.
82046         (func_emit_tests_Makefile_am): New function.
82047         (func_create_testdir): When --with-tests was specified, emit a
82048         tests/ directory.
82049         * MODULES.html.sh (Future developments): Update.
82050
82051 2005-08-24  Bruno Haible  <bruno@clisp.org>
82052
82053         * modules/tls-tests: New file.
82054         * tests/test-tls.c: New file, from GNU gettext.
82055
82056 2005-08-24  Bruno Haible  <bruno@clisp.org>
82057
82058         * modules/lock-tests: New file.
82059         * tests/test-lock.c: New file, from GNU gettext.
82060
82061 2005-08-24  Bruno Haible  <bruno@clisp.org>
82062
82063         * lib/lock.h: Add multiple inclusion guard.
82064         * lib/tls.h: Add multiple inclusion guard.
82065
82066 2005-08-24  Bruno Haible  <bruno@clisp.org>
82067
82068         * gnulib-tool: Add support for the --aux-dir option to
82069         --create-testdir, --create-megatestdir, --test, --megatest.
82070         (func_create_testdir, func_create_megatestdir): Optionally emit a
82071         AC_CONFIG_AUX_DIR directive.
82072         (create-testdir, create-megatestdir, test, megatest): Provide a
82073         default value for $auxdir.
82074
82075 2005-08-24  Bruno Haible  <bruno@clisp.org>
82076
82077         * gnulib-tool (import): Use compound statement instead of subshell
82078         where possible.
82079
82080 2005-08-24  Bruno Haible  <bruno@clisp.org>
82081
82082         * gnulib-tool (import): Change --aux-dir default to "build-aux".
82083
82084 2005-08-24  Bruno Haible  <bruno@clisp.org>
82085
82086         * gnulib-tool (func_version): Update.
82087
82088 2005-08-24  Bruno Haible  <bruno@clisp.org>
82089
82090         * gnulib-tool (func_import, func_create_testdir,
82091         func_create_megatestdir): Quote all autoconf macro arguments.
82092
82093 2005-08-24  Bruno Haible  <bruno@clisp.org>
82094
82095         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
82096         option --force, because --force causes the aclocal.m4 of each
82097         subdirectory to be newer than the corresponding config.h.in.
82098
82099 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82100
82101         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
82102         All contents moved to gl_REGEX.
82103         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
82104         assume that it does.
82105
82106 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82107
82108         * lib/regex.h (REG_NOSYS)
82109         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
82110         Define, since POSIX requires it as of 2001.
82111         (_REG_ENOSYS)
82112         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
82113         New private symbol, used to keep the enum signed in all cases.
82114         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
82115         Youngman in
82116         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
82117
82118         * lib/regex_internal.c (re_string_skip_chars, register_state):
82119         (calc_state_hash):
82120         Remove forward decls; no longer needed now that we use prototypes.
82121         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
82122         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
82123         (clean_state_log_if_needed): Likewise.
82124
82125 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
82126
82127         * config/srclist.txt: Add glibc bugs 1231-1233.
82128
82129 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82130
82131         Fix problems reported by Sam Steingold in
82132         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
82133         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
82134         assumed that reg_errcode_t is a signed type, which is not
82135         necessarily true if _XOPEN_SOURCE is not defined.
82136         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
82137         since some compilers warn about it otherwise.
82138
82139 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82140
82141         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
82142         (init_word_char, create_initial_state, duplicate_node_closure):
82143         (fetch_token, peek_token_bracket, build_range_exp):
82144         (build_collating_symbol): Remove forward decls; no longer needed
82145         now that we use prototypes.
82146
82147         * lib/regcomp.c:
82148         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
82149         (re_compile_fastmap_iter, regcomp, regerror, regfree):
82150         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
82151         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
82152         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
82153         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
82154         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
82155         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
82156         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
82157         (build_range_exp, build_collating_symbol, parse_bracket_exp):
82158         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
82159         (build_charclass, build_charclass_op, fetch_number, create_tree):
82160         (create_token_tree, mark_opt_subexp, duplicate_tree):
82161         Use prototypes rather than old-style definitions.
82162
82163         * lib/regex_internal.c:
82164         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
82165         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
82166         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82167         (re_string_reconstruct, re_string_peek_byte_case):
82168         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
82169         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82170         (re_node_set_init_copy, re_node_set_add_intersect):
82171         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82172         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82173         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82174         (re_acquire_state, re_acquire_state_context, register_state):
82175         (create_ci_newstate, create_cd_newstate, free_state):
82176         Likewise.
82177         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
82178         re_search_2):
82179         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
82180         (re_search_internal, prune_impossible_nodes):
82181         (acquire_init_state_context, check_matching, static):
82182         (check_halt_node_context, check_halt_state_context, proceed_next_node):
82183         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
82184         (update_regs, sift_states_backward, build_sifted_states):
82185         (clean_state_log_if_needed, merge_state_array):
82186         (update_cur_sifted_state, add_epsilon_src_nodes):
82187         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
82188         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
82189         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
82190         (find_recover_state, check_subexp_matching_top, transit_state_mb):
82191         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
82192         (check_arrival, check_arrival_add_next_nodes):
82193         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82194         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82195         (check_node_accept_bytes, check_node_accept, extend_buffers):
82196         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
82197         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
82198         (sift_ctx_init):
82199         Likewise.
82200
82201         * lib/regex_internal.h:
82202         (re_string_allocate, re_string_construct, re_string_reconstruct):
82203         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
82204         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
82205         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
82206         (re_string_context_at, re_string_peek_byte_case):
82207         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
82208         is defined, since we now use prototypes always.
82209
82210         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
82211         C89 or better.  All uses removed.
82212
82213 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
82214
82215         * config/srclist.txt: Add glibc bugs 1220-1227.
82216
82217 2005-08-20  Jim Meyering  <jim@meyering.net>
82218
82219         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
82220         of unused local, dfa.
82221
82222 2005-08-20  Bruno Haible  <bruno@clisp.org>
82223
82224         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
82225
82226 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82227
82228         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
82229         (re_node_set_insert_last, re_dfa_add_node):
82230         Rename local variables to avoid GCC shadowing warnings.
82231
82232 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82233
82234         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
82235         [defined lint]: Suppress bogus uninitialized-variable warnings.
82236
82237         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
82238         and let the caller return REG_ESPACE if out of space.  This
82239         removes an uninitialied-variable warning with GCC 4.0.1, and also
82240         avoids taking the address of a local variable.  All callers
82241         changed.
82242
82243 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
82244
82245         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
82246         $LIBCSRC/posix/regexec.c.
82247         Add glibc bug 1217 for regcomp.c.
82248
82249 2005-08-19  Jim Meyering  <jim@meyering.net>
82250
82251         * lib/regexec.c (proceed_next_node): Redo local variables to
82252         avoid GCC shadowing warnings.
82253
82254 2005-08-18  Bruno Haible  <bruno@clisp.org>
82255
82256         * lib/strstr.c (strstr): Fix return value in multibyte case.
82257         * lib/strcasestr.c (strcasestr): Likewise.
82258
82259 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82260
82261         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
82262
82263 2005-08-17  Jim Meyering  <jim@meyering.net>
82264
82265         Make the %s format (seconds since the epoch) work for a negative
82266         number and when used with a zero-padded field width, e.g. %015s.
82267
82268         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
82269         label so that it precedes the code to set `digits'.  Otherwise,
82270         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
82271         print `00-22'.  Now, it prints `-0022', as it should.
82272
82273 2005-08-17  Bruno Haible  <bruno@clisp.org>
82274
82275         * modules/strstr (Files): Add m4/mbrtowc.m4.
82276         (Depends-on): Add mbuiter.
82277
82278 2005-08-17  Bruno Haible  <bruno@clisp.org>
82279
82280         * modules/strcasestr: New file.
82281         * MODULES.html.sh (String handling, based on ANSI C 89): Add
82282         strcasestr.
82283
82284 2005-08-17  Bruno Haible  <bruno@clisp.org>
82285
82286         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
82287
82288 2005-08-17  Bruno Haible  <bruno@clisp.org>
82289
82290         * modules/mbuiter: New file.
82291         * MODULES.html.sh (Extended multibyte and wide character utilities):
82292         Add mbuiter.
82293
82294 2005-08-17  Bruno Haible  <bruno@clisp.org>
82295
82296         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
82297         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
82298
82299 2005-08-17  Bruno Haible  <bruno@clisp.org>
82300
82301         * m4/strcasestr.m4: New file.
82302
82303 2005-08-17  Bruno Haible  <bruno@clisp.org>
82304
82305         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
82306         * lib/strstr.c: Completely rewritten, with multibyte locale support.
82307
82308 2005-08-17  Bruno Haible  <bruno@clisp.org>
82309
82310         * lib/strcasestr.h: New file.
82311         * lib/strcasestr.c: New file.
82312
82313 2005-08-17  Bruno Haible  <bruno@clisp.org>
82314
82315         * lib/strcasecmp.c: Use mbuiter.h.
82316
82317 2005-08-17  Bruno Haible  <bruno@clisp.org>
82318
82319         * lib/mbuiter.h: New file.
82320
82321 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82322
82323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82324         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82325         and gl_GETOPT are both invoked via different paths (as happens
82326         with GNU tar CVS because it uses both argp and getopt), the former
82327         wins.
82328
82329 2005-08-16  Bruno Haible  <bruno@clisp.org>
82330
82331         * modules/tls: New file.
82332         * MODULES.html.sh (Multithreading): Add tls.
82333
82334 2005-08-16  Bruno Haible  <bruno@clisp.org>
82335
82336         * modules/strnlen1: New file.
82337         * MODULES.html.sh (String handling): Add strnlen1.
82338
82339 2005-08-16  Bruno Haible  <bruno@clisp.org>
82340
82341         * modules/strcase (Files): Add m4/mbrtowc.m4.
82342         (Depends-on): Add strnlen1, mbchar.
82343
82344 2005-08-16  Bruno Haible  <bruno@clisp.org>
82345
82346         * modules/mbiter: New file.
82347         * MODULES.html.sh (Extended multibyte and wide character utilities):
82348         Add mbiter.
82349
82350 2005-08-16  Bruno Haible  <bruno@clisp.org>
82351
82352         * modules/mbfile: New file.
82353         * MODULES.html.sh (Extended multibyte and wide character utilities):
82354         Add mbfile.
82355
82356 2005-08-16  Bruno Haible  <bruno@clisp.org>
82357
82358         * modules/mbchar: New file.
82359         * MODULES.html.sh (Extended multibyte and wide character utilities):
82360         New section.
82361
82362 2005-08-16  Bruno Haible  <bruno@clisp.org>
82363
82364         * m4/tls.m4: New file, from GNU gettext.
82365
82366 2005-08-16  Bruno Haible  <bruno@clisp.org>
82367
82368         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82369         always.
82370         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82371
82372 2005-08-16  Bruno Haible  <bruno@clisp.org>
82373
82374         * m4/mbiter.m4: New file.
82375
82376 2005-08-16  Bruno Haible  <bruno@clisp.org>
82377
82378         * m4/mbfile.m4: New file.
82379
82380 2005-08-16  Bruno Haible  <bruno@clisp.org>
82381
82382         * m4/mbchar.m4: New file.
82383
82384 2005-08-16  Bruno Haible  <bruno@clisp.org>
82385
82386         * lib/tls.h: New file, from GNU gettext.
82387         * lib/tls.c: New file, from GNU gettext.
82388
82389 2005-08-16  Bruno Haible  <bruno@clisp.org>
82390
82391         * lib/strnlen1.h: New file.
82392         * lib/strnlen1.c: New file.
82393
82394 2005-08-16  Bruno Haible  <bruno@clisp.org>
82395
82396         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82397         (mbi_init): Update.
82398         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82399         NUL byte, not after it.
82400
82401 2005-08-16  Bruno Haible  <bruno@clisp.org>
82402
82403         * lib/strcase.h (strcasecmp): Add note in comments.
82404         * lib/strncasecmp.c: Use code from strcasecmp.c.
82405         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82406         (strcasecmp): Work correctly in multibyte locales.
82407
82408 2005-08-16  Bruno Haible  <bruno@clisp.org>
82409
82410         * lib/mbiter.h: New file.
82411
82412 2005-08-16  Bruno Haible  <bruno@clisp.org>
82413
82414         * lib/mbfile.h: New file.
82415
82416 2005-08-16  Bruno Haible  <bruno@clisp.org>
82417
82418         * lib/mbchar.h: New file.
82419         * lib/mbchar.c: New file.
82420
82421 2005-08-16  Bruno Haible  <bruno@clisp.org>
82422
82423         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82424         the valid ones. Makes the comparison operations transitive:
82425         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82426         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82427
82428 2005-08-15  Simon Josefsson  <jas@extundo.com>
82429
82430         * modules/ssize_t (License): Change to 'unlimited'.
82431
82432         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82433
82434 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82435
82436         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82437         Add comments for each pending glibc patch.
82438
82439 2005-08-15  Bruno Haible  <bruno@clisp.org>
82440
82441         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82442         __cplusplus is defined.
82443
82444 2005-08-14  Jim Meyering  <jim@meyering.net>
82445
82446         Sync from coreutils.
82447
82448         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82449         Use the hash-table-based cycle-detection code not just when
82450         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82451         Reported by James Youngman in
82452         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82453         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82454         FTS_TIGHT_CYCLE_CHECK.
82455         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82456         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82457         once again.
82458         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82459         * lib/fts.c (fd_safer): Remove decl.
82460         Include fcntl--.h rather than unistd-safer.h
82461         (fts_safe_changedir): Don't call fd_safer; no longer needed
82462         now that we include fcntl--.h.
82463
82464 2005-08-12  Simon Josefsson  <jas@extundo.com>
82465
82466         * modules/getndelim2: Use ssize_t module.
82467         * modules/getnline: Likewise.
82468         * modules/safe-read: Likewise.
82469         * modules/xreadlink: Likewise.
82470
82471         * modules/ssize_t: New file.
82472
82473 2005-08-12  Simon Josefsson  <jas@extundo.com>
82474
82475         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82476
82477 2005-08-12  Simon Josefsson  <jas@extundo.com>
82478
82479         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82480         ssize_t.
82481
82482 2005-08-12  Simon Josefsson  <jas@extundo.com>
82483
82484         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82485         readline, getdelim and check_version.
82486         (Support for systems lacking ISO C 99: Sizes of integer types):
82487         Add size_max.
82488
82489 2005-08-12  Bruno Haible  <bruno@clisp.org>
82490
82491         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82492
82493 2005-08-11  Simon Josefsson  <jas@extundo.com>
82494
82495         * modules/readline: New file.
82496
82497         * modules/strnlen (Files): Add strnlen.h.
82498
82499 2005-08-11  Simon Josefsson  <jas@extundo.com>
82500
82501         * m4/readline.m4: New file.
82502
82503 2005-08-11  Simon Josefsson  <jas@extundo.com>
82504
82505         * lib/readline.h, readline.c: New file.
82506
82507 2005-08-11  Simon Josefsson  <jas@extundo.com>
82508
82509         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82510         gl_AVOID.
82511
82512 2005-08-11  Bruno Haible  <bruno@clisp.org>
82513
82514         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82515
82516 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82517
82518         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82519
82520 2005-08-10  Simon Josefsson  <jas@extundo.com>
82521
82522         * tests/test-iconvme.c: New file.
82523
82524 2005-08-10  Simon Josefsson  <jas@extundo.com>
82525
82526         * m4/strnlen.m4: New file.
82527
82528         * m4/strndup.m4: Don't check for strnlen declaration, done in
82529         strnlen.m4.
82530
82531 2005-08-10  Simon Josefsson  <jas@extundo.com>
82532
82533         * lib/strndup.c: Use strnlen.h.
82534
82535         * lib/strnlen.h: New file.
82536
82537 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82538
82539         * README: Typos.
82540
82541 2005-08-02  Simon Josefsson  <jas@extundo.com>
82542
82543         * modules/readline: New file.
82544
82545 2005-08-02  Simon Josefsson  <jas@extundo.com>
82546
82547         * modules/getdelim: New file.
82548
82549         * modules/getline: Rewrite, don't use getndelim2.
82550
82551 2005-08-02  Simon Josefsson  <jas@extundo.com>
82552
82553         * m4/getline.m4: Separate out getdelim stuff into separate module.
82554
82555         * m4/getdelim.m4: New file.
82556
82557 2005-08-02  Simon Josefsson  <jas@extundo.com>
82558
82559         * lib/getline.h, getline.c: Rewrite.
82560
82561         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82562
82563 2005-07-31  Bruno Haible  <bruno@clisp.org>
82564
82565         * lib/lock.h (gl_lock_initializer): New macro.
82566         (gl_lock_define_initialized): Use it.
82567         (gl_rwlock_initializer): New macro.
82568         (gl_rwlock_define_initialized): Use it.
82569         (gl_recursive_lock_initializer): New macro.
82570         (gl_recursive_lock_define_initialized): Use it.
82571
82572 2005-07-30  Karl Berry  <karl@gnu.org>
82573
82574         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82575         Report from Ben Pfaff, regarding getopt.
82576
82577 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82578
82579         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82580         normal way.
82581         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82582         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82583         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82584         (gl_GETOPT): Use the new macros.  Most of the implementation
82585         is moved to the new macros.  This is for programs like Emacs
82586         that don't want all the functionality of gl_GETOPT.
82587
82588 2005-07-26  Bruno Haible  <bruno@clisp.org>
82589
82590         * m4/lock.m4: Update from GNU gettext.
82591
82592 2005-07-26  Bruno Haible  <bruno@clisp.org>
82593
82594         * lib/lock.h: Update from GNU gettext.
82595         * lib/lock.c: Update from GNU gettext.
82596
82597 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82598
82599         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82600         obsolescent AC_TRY_RUN.  Include the default includes files, for
82601         'exit'.
82602
82603 2005-07-24  Bruno Haible  <bruno@clisp.org>
82604
82605         * modules/visibility: New file.
82606         * MODULES.html.sh (Misc): Add visibility.
82607
82608 2005-07-24  Bruno Haible  <bruno@clisp.org>
82609
82610         * m4/visibility.m4: New file.
82611
82612 2005-07-24  Bruno Haible  <bruno@clisp.org>
82613
82614         * doc/visibility.texi: New file.
82615
82616 2005-07-22  Bruno Haible  <bruno@clisp.org>
82617
82618         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82619         $(ALLOCA_H), redundant through BUILT_SOURCES.
82620         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82621         redundant through BUILT_SOURCES.
82622         * modules/byteswap (Makefile.am): Remove explicit dependency on
82623         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82624         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82625         $(FNMATCH_H), redundant through BUILT_SOURCES.
82626         * modules/getopt (Makefile.am): Remove explicit dependency on
82627         $(GETOPT_H), redundant through BUILT_SOURCES.
82628         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82629         redundant through BUILT_SOURCES.
82630         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82631         redundant through BUILT_SOURCES.
82632         * modules/stdbool (Makefile.am): Remove explicit dependency on
82633         $(STDBOOL_H), redundant through BUILT_SOURCES.
82634         * modules/stdint (Makefile.am): Remove explicit dependency on
82635         $(STDINT_H), redundant through BUILT_SOURCES.
82636         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82637         Remove explicit dependency on $(SYSEXITS_H).
82638         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82639
82640 2005-07-18  Simon Josefsson  <jas@extundo.com>
82641
82642         * lib/check-version.c (check_version): Accept identical versions too.
82643
82644 2005-07-18  Bruno Haible  <bruno@clisp.org>
82645
82646         * modules/lock: New file.
82647         * MODULES.html.sh (Multithreading): New section.
82648
82649 2005-07-18  Bruno Haible  <bruno@clisp.org>
82650
82651         * m4/lock.m4: New file, from GNU gettext.
82652
82653 2005-07-18  Bruno Haible  <bruno@clisp.org>
82654
82655         * lib/lock.h: New file, from GNU gettext.
82656         * lib/lock.c: New file, from GNU gettext.
82657
82658 2005-07-18  Bruno Haible  <bruno@clisp.org>
82659
82660         * lib/lock.h (gl_once_t): New type.
82661         (gl_once_define, gl_once): New macros.
82662         * lib/lock.c (fresh_once): New variable.
82663         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82664         functions.
82665
82666 2005-07-16  Simon Josefsson  <jas@extundo.com>
82667
82668         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82669         workaround, suggested by Bruno.
82670
82671 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82672
82673         * modules/xalloc (Depends-on): Add xalloc-die.
82674         * modules/xvasprintf (Depends-on): Add xalloc-die.
82675
82676 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82677
82678         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82679         with a minor change.
82680
82681 2005-07-15  Bruno Haible  <bruno@clisp.org>
82682
82683         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82684         When using lib/poll.c, define poll as rpl_poll.
82685
82686 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82687
82688         * modules/argp (Depends-on): Remove unlocked-io.
82689
82690 2005-07-14  Derek Price  <derek@ximbiot.com>
82691
82692         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82693         for glob symlink bug.
82694
82695 2005-07-14  Bruno Haible  <bruno@clisp.org>
82696
82697         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82698         Instead, test for *_unlocked function declarations directly.
82699
82700 2005-07-11  Simon Josefsson  <jas@extundo.com>
82701
82702         * modules/size_max: New file.
82703
82704         * modules/xsize: Depend on size_max module for size_max.m4.
82705
82706 2005-07-11  Simon Josefsson  <jas@extundo.com>
82707
82708         * lib/size_max.h: New file.
82709
82710 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82711
82712         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82713         copyright symbol and the year.
82714         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82715         (version_etc_va): Use parameterized copyright notice.
82716         Reword to conform to the current GNU coding standards.
82717
82718 2005-07-11  Karl Berry  <karl@gnu.org>
82719
82720         * doc/gnulib.texi (Quoting): new node.
82721         (Initial import): more info, from Patrice.
82722
82723 2005-07-11  Bruno Haible  <bruno@clisp.org>
82724
82725         * gnulib-tool (func_usage): Document option --avoid.
82726         (Command line options): Handle --avoid.
82727         (func_acceptable): New function.
82728         (func_modules_transitive_closure): Use it.
82729
82730 2005-07-11  Bruno Haible  <bruno@clisp.org>
82731
82732         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82733         Reported by Jim Meyering.
82734
82735 2005-07-10  Bruno Haible  <bruno@clisp.org>
82736
82737         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82738         Needed when size_t is smaller than 'unsigned int'.
82739         Reported by Paul Eggert.
82740
82741 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82742
82743         * modules/argp (Depends-on): Add unlocked-io
82744
82745 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82746
82747         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82748         block of defines.
82749
82750 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82751
82752         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82753         fix now.
82754
82755 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82756         and Paul Eggert  <eggert@cs.ucla.edu>
82757
82758         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82759         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82760
82761 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82762
82763         * modules/regex (Files): Add lib/regex_internal.c,
82764         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82765         (Depends-on): Add extensions.
82766         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82767
82768 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82769
82770         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82771         pathconf.
82772         * m4/same.m4 (gl_SAME): Likewise.
82773         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82774
82775         * m4/regex.m4: Adjust to new libc regex implementation.
82776         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82777         all the .c and .h parts of (the new) regex.
82778         Quote the m4 stuff better.
82779         Check for RE_ICASE bug of old gnulib.
82780         Check for REG_STARTEND of recent libc.
82781         Rename local variables from jm_* to gl_*.
82782         Quote operand of "test -f".
82783         Say "recent enough" version of libc, not "version 2".
82784         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82785         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82786         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82787         Remove check for btowc, isascii.
82788         Require AM_LANGINFO_CODESET.
82789
82790 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82791
82792         * lib/regex.c, regex.h: Sync from libc.
82793         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82794         * lib/regexec.c:
82795         New files, synced from libc, except that regex_internal.h
82796         currently has a small porting fix.
82797
82798 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82799
82800         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82801         regex_internal.c, regexec.c.
82802         Add regex_internal.h too, but as a comment, since the libc version
82803         is currently broken in gnulib mode.
82804
82805 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82806
82807         Support programs like Emacs that use gnulib but not gettext.
82808         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82809         * modules/gettext-h: New file.
82810         * modules/gettext (Files): Remove lib/gettext.h.
82811         (Depends-on): Add gettext-h.
82812         (Makefile.am): Remove lib_SOURCES.
82813         * modules/argmatch, modules/c-stack, modules/closeout:
82814         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82815         * modules/execute, modules/file-type, modules/getaddrinfo:
82816         * modules/getopt, modules/human, modules/javacomp:
82817         * modules/javaexec, modules/mkdir-p, modules/obstack:
82818         * modules/openat, modules/pagealign_alloc, modules/pipe:
82819         * modules/quotearg, modules/regex, modules/rpmatch:
82820         * modules/unicodeio, modules/userspec, modules/version-etc:
82821         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82822         * modules/xsetenv:
82823         Depend on gettext-h, not gettext.
82824
82825 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82826
82827         * gnulib-tool (func_import): Add support for 'public domain' license.
82828         * modules/alloca, modules/atexit, modules/memmove:
82829         Now public domain, not GPL.
82830         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82831         * modules/realloc, modules/strerror, modules/strtod:
82832         Now LGPL, not GPL.
82833
82834 2005-07-05  Bruno Haible  <bruno@clisp.org>
82835
82836         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82837         autoconf CVS. Needed for mingw.
82838
82839 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82840
82841         Remove the dependency of the strftime module on the tzset module.
82842         * modules/strftime (Depends-on): Remove dependency on tzset.
82843
82844 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82845
82846         Remove the dependency of the strftime module on the tzset module.
82847         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82848         gl_FUNC_TZSET_CLOBBER.
82849
82850 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82851
82852         Remove the dependency of the strftime module on the tzset module.
82853         * lib/strftime.c (my_strftime)
82854         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82855         Copy the input structure, to work around some of the bug with
82856         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82857         Solaris releases, you should also use the tzset module, but we won't
82858         require it as a dependency any more since we don't want LGPLed code
82859         to depend on GPLed code.
82860
82861 2005-07-02  Jim Meyering  <jim@meyering.net>
82862
82863         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82864         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82865         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82866         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82867
82868 2005-07-02  Jim Meyering  <jim@meyering.net>
82869
82870         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82871
82872 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82873
82874         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82875         declares only 'struct timespec;' (!).
82876
82877 2005-07-01  Jim Meyering  <jim@meyering.net>
82878
82879         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82880         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82881         * lib/save-cwd.c, tempname.c:
82882         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82883         and don't include <sys/file.h>).
82884
82885 2005-06-29  Jim Meyering  <jim@meyering.net>
82886
82887         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82888         type name.  Use the variable name instead.
82889         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82890         Likewise.
82891
82892 2005-06-28  Simon Josefsson  <jas@extundo.com>
82893
82894         * modules/check-version (Files): Add check-version.m4.
82895
82896 2005-06-28  Simon Josefsson  <jas@extundo.com>
82897
82898         * m4/check-version.m4: New file, suggested by Jim Meyering
82899         <jim@meyering.net>.
82900
82901 2005-06-28  Simon Josefsson  <jas@extundo.com>
82902
82903         * lib/check-version.h, lib/check-version.c: New files.
82904
82905 2005-06-28  Simon Josefsson  <jas@extundo.com>
82906
82907         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82908         collision with global variable.  Better indentation.  Don't
82909         increment buffer pointer beyond buffer end.  Based on comments
82910         from Paul Eggert <eggert@cs.ucla.edu>.
82911
82912         * lib/base64.h: Indent.
82913
82914 2005-06-28  Simon Josefsson  <jas@extundo.com>
82915
82916         * doc/gnulib.texi (Library version handling): New section.
82917
82918 2005-06-28  Jim Meyering  <jim@meyering.net>
82919
82920         * check-module (find_included_lib_files): Hard-code another
82921         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82922         but modules/fts-lgpl (correctly) does not list those files.
82923
82924         * modules/canonicalize (Files): Add lib/pathmax.h.
82925
82926 2005-06-25  Simon Josefsson  <jas@extundo.com>
82927
82928         * modules/check-version: New file.
82929
82930 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82931
82932         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82933         initializer of struct addrinfo, as an indication that we don't
82934         care how many members the structure has.
82935
82936 2005-06-24  Derek Price  <derek@ximbiot.com>
82937         and Bruno Haible  <bruno@clisp.org>
82938
82939         Remove stat module & update lstat.
82940         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82941         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82942         * m4/stat.m4: Remove this file.
82943
82944 2005-06-24  Derek Price  <derek@ximbiot.com>
82945         and Bruno Haible  <bruno@clisp.org>
82946
82947         Remove stat module & update lstat.
82948         * lib/stat.c: Remove this file...
82949         (slash_aware_lstat): ...moving this content and its support...
82950         * lib/lstat.c (rpl_lstat): ...into here.
82951         * lib/lstat.h: New file.
82952
82953 2005-06-24  Derek Price  <derek@ximbiot.com>
82954         and Bruno Haible  <bruno@clisp.org>
82955
82956         Remove stat module & update lstat.
82957         * config/srclist.txt (libc sources): Remove stat.
82958
82959 2005-06-24  Derek Price  <derek@ximbiot.com>
82960         and Bruno Haible  <bruno@clisp.org>
82961
82962         Remove stat module & update lstat.
82963         * MODULES.html.sh (stat): Remove.
82964         * MODULES.html: Regenerated.
82965         * modules/lstat (Description): Correct function name.
82966         (Files): Add "lstat.h".
82967         (Depends-on): Remove stat, add xalloc, stat-macros.
82968         * modules/stat: Remove this file.
82969         (Include): Add "lstat.h", remove <sys/stat.h>.
82970
82971 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82972
82973         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82974         (ranged_convert): Don't save conversion in a temporary struct.
82975         This causes a warning with GCC 4.0.0, and anyway in the typical
82976         case it's not worth the extra 100 bytes or so of code.
82977         (ranged_convert, __mktime_internal): When calling a function via a
82978         pointer P, use P () rather than (*P) (), as we now assume C89 or
82979         better.
82980
82981 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82982
82983         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82984         "who -r" failed to give output.  Problem reported by Tim Waugh.
82985
82986         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82987         (xcalloc): Use it to avoid needless tests.
82988         Problem reported by Jim Meyering.
82989
82990 2005-06-20  Derek Price  <derek@ximbiot.com>
82991
82992         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82993         unnecessary for Autoconfs > 2.59c.
82994
82995 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82996
82997         * lib/argp.h (__option_is_short): Check upper limit of
82998         __key. Isprint() requires its argument to have the value
82999         of an unsigned char or EOF.
83000
83001 2005-06-16  Jim Meyering  <jim@meyering.net>
83002
83003         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
83004         when either N or S is zero.
83005
83006 2005-06-16  Derek Price  <derek@ximbiot.com>
83007
83008         * m4/bison.m4: Declare YACC & YFLAGS precious.
83009
83010 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
83011
83012         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
83013         multibyte string or pattern, fall back on unibyte matching.
83014         Problem reported by James Youngman.
83015
83016 2005-06-08  Bruno Haible  <bruno@clisp.org>
83017
83018         * modules/csharpcomp: New file.
83019         * MODULES.html.sh (C#): Add csharpcomp.
83020
83021 2005-06-08  Bruno Haible  <bruno@clisp.org>
83022
83023         * m4/csharpcomp.m4: New file, from GNU gettext.
83024
83025 2005-06-08  Bruno Haible  <bruno@clisp.org>
83026
83027         * lib/csharpcomp.h: New file, from GNU gettext.
83028         * lib/csharpcomp.c: New file, from GNU gettext.
83029         * lib/csharpcomp.sh.in: New file, from GNU gettext.
83030
83031 2005-06-08  Bruno Haible  <bruno@clisp.org>
83032
83033         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
83034         warning on mingw.
83035
83036 2005-06-07  Derek Price  <derek@ximbiot.com>
83037
83038         Sync from CVS.
83039         * lib/glob_.h: Indent nested #ifdef.
83040
83041 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83042
83043         Sync from coreutils.
83044         Use "file name" when talking about file names, instead of "filename"
83045         or "path", as per the GNU coding standards.
83046         * lib/mkdir-p.c: Renamed from makepath.c.
83047         (make_dir_parents): Renamed from make_path.  All callers changed.
83048         * lib/mkdir-p.h: Likewise.  All includers changed.
83049         * lib/filenamecat.c: Renamed from path-concat.c.
83050         (file_name_concat): Renamed from path_concat.  All callers changed.
83051         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
83052         * lib/filenamecat.h: Likewise.  All includers changed.
83053         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
83054         in comments or local variable names.
83055         * lib/basename.c: Likewise.
83056         * lib/canonicalize.c, canonicalize.h: Likewise.
83057         * lib/dirname.c, dirname.h: Likewise.
83058         * lib/euidaccess.c: Likewise.
83059         * lib/exclude.c: Likewise
83060         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
83061         * lib/fsusage.c, fsuage.h: Likewise.
83062         * lib/fts.c, fts_.h: Likewise.
83063         * lib/getcwd.c: Likewise.
83064         * lib/getloadavg.c: Likewise.
83065         * lib/mkstemp.c: Likewise.
83066         * lib/mountlist.c, mountlist.h: Likewise.
83067         * lib/openat.c, openat.h: Likewise.
83068         * lib/readlink-stub.c: Likewise.
83069         * lib/readutmp.c, readutmp.h: Likewise.
83070         * lib/rename.c: Likewise.
83071         * lib/rmdir.c: Likewise.
83072         * lib/same.c: Likewise.
83073         * lib/savedir.c: Likewise.
83074         * lib/stripslash.c: Likewise.
83075         * lib/tempname.c: Likewise.
83076         * lib/xreadlink.c: Likewise.
83077         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
83078         All uses changed.
83079         * lib/exclude.h: Likewise.
83080
83081         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
83082         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83083         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
83084         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83085         * lib/pathmax.h: Include <limits.h> unconditionally, since other
83086         files have been getting away with it for years (MORE/BSD 4.3
83087         is extinct now).
83088         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
83089         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
83090
83091         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
83092         Define to 256, not 255, as per modern POSIX.
83093
83094 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83095
83096         Sync from coreutils.
83097         Use "file name" when talking about file names, instead of "filename"
83098         or "path", as per the GNU coding standards.
83099         * MODULES.html.sh: mkdir-p renamed from makepath.
83100         filenamecat renamed from path-concat.
83101         * modules/filenamecat: Renamed from modules/path-concat.
83102         (Files): filenamecat.h and filenamecat.c renamed from
83103         path-concat.h and path-concat.c.
83104         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
83105         (Include): filenamecat.h, not path-concat.h.
83106         * modules/mkdir-p: Renamed from modules/makepath.
83107         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
83108         makepath.c.
83109         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
83110         (Include): mkdir-p.h, not makepath.h.
83111
83112 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
83113
83114         Sync from coreutils.
83115         * m4/mkdir-p.m4: Renamed from makepath.m4.
83116         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
83117         Rename files from makepath.c to mkdir-p.c, and from
83118         makepath.h to mkdir-p.h.
83119         * m4/filenamecat.m4: Renamed from path-concat.m4.
83120         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
83121         Rename files from path-concat.c to filenamecat.c,
83122         and from path-concat.h to filenamecat.h.
83123         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
83124         "file name" in local variables or comments.
83125         * m4/rename.m4: Likewise.
83126
83127 2005-06-01  Bruno Haible  <bruno@clisp.org>
83128
83129         * modules/csharpexec: New file.
83130         * MODULES.html.sh (C#): New section.
83131
83132 2005-06-01  Bruno Haible  <bruno@clisp.org>
83133
83134         * m4/csharp.m4: New file, from GNU gettext.
83135         * m4/csharpexec.m4: New file, from GNU gettext.
83136
83137 2005-06-01  Bruno Haible  <bruno@clisp.org>
83138
83139         * lib/csharpexec.h: New file, from GNU gettext.
83140         * lib/csharpexec.c: New file, from GNU gettext.
83141         * lib/csharpexec.sh.in: New file, from GNU gettext.
83142
83143 2005-05-31  Derek Price  <derek@ximbiot.com>
83144             Paul Eggert  <eggert@cs.ucla.edu>
83145
83146         Sync from cvs.
83147         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83148
83149 2005-05-31  Derek Price  <derek@ximbiot.com>
83150             Paul Eggert  <eggert@cs.ucla.edu>
83151
83152         Sync from cvs.
83153         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
83154
83155 2005-05-29  Derek Price  <derek@ximbiot.com>
83156
83157         * config/srclist.txt (glob_.h, glob.c): Add these files.
83158
83159 2005-05-29  Derek Price  <derek@ximbiot.com>
83160
83161         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
83162         * modules/glob: New file.
83163         * modules/getlogin_r: Add link to POSIX spec in description.
83164
83165 2005-05-29  Derek Price  <derek@ximbiot.com>
83166             Paul Eggert  <eggert@cs.ucla.edu>
83167
83168         * m4/glob.m4: New file.
83169
83170 2005-05-29  Derek Price  <derek@ximbiot.com>
83171             Paul Eggert  <eggert@cs.ucla.edu>
83172
83173         * lib/glob_.h, lib/glob.c: New files.
83174
83175 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83176
83177         * modules/fts (Files): Remove m4/inttypes-pri.m4.
83178         * modules/fts-lgpl (Depends-on): Remove gettext.
83179
83180 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83181
83182         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
83183         and don't require gt_INTTYPES_PRI.
83184
83185 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
83186
83187         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
83188
83189         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
83190         the configuration hassle isn't worth it.
83191         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
83192         (LONGEST_MODIFIER, PRIuMAX): Remove.
83193
83194 2005-05-27  Bruno Haible  <bruno@clisp.org>
83195
83196         * lib/getlogin_r.h: Remove second include of <stddef.h>.
83197
83198 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
83199
83200         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
83201         _POSIX_PTHREAD_SEMANTICS for Solaris.
83202
83203 2005-05-25  Derek Price  <derek@ximbiot.com>
83204
83205         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
83206
83207 2005-05-25  Derek Price  <derek@ximbiot.com>
83208             Paul Eggert  <eggert@cs.ucla.edu>
83209
83210         * modules/getlogin_r, m4/getlogin_r.m4: New files.
83211         * lib/getlogin_r.c, getlogin_r.h: New files.
83212
83213 2005-05-25  Bruno Haible  <bruno@clisp.org>
83214             Derek Price  <derek@ximbiot.com>
83215
83216         * lib/getlogin_r.h: Simplify API documentation.
83217
83218 2005-05-23  Derek Price  <derek@ximbiot.com>
83219
83220         * modules/minmax (Files): Add m4/minmax.m4.
83221         (configure.ac): Add gl_MINMAX.
83222
83223 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
83224
83225         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
83226         so that unistd-safer.h (GPL'ed code) need not be included.
83227
83228 2005-05-22  Bruno Haible  <bruno@clisp.org>
83229
83230         * m4/minmax.m4: New file.
83231         Based on a patch by Derek Price <derek@ximbiot.com>.
83232
83233 2005-05-22  Bruno Haible  <bruno@clisp.org>
83234
83235         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
83236         (INT64_MIN): Fix definition.
83237         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
83238
83239         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
83240         NEED_SIGNED_INT_TYPES.
83241
83242         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
83243         HAVE_SYSTEM_INTTYPES.
83244
83245 2005-05-22  Bruno Haible  <bruno@clisp.org>
83246
83247         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
83248         Also include <sys/param.h> if it defines MIN, MAX.
83249         Based on a patch by Derek Price <derek@ximbiot.com>.
83250
83251 2005-05-21  Jim Meyering  <jim@meyering.net>
83252
83253         * modules/fts (Files): Add m4/inttypes-pri.m4.
83254         (Depends-on): Add lstat and remove gettext.  Alphabetize.
83255
83256 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83257
83258         New fts module.
83259         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
83260         (setup_dir, free_dir): New functions.
83261         (enter_dir, leave_dir): Define trivial
83262         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
83263         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
83264         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
83265         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
83266         Move to fts-cycle.c.
83267         (fts_open): Use setup_dir.
83268         (fts_close): Use free_dir.
83269         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
83270         This adds a label and some gotos, but the alternatives were messier.
83271         Check for memory allocation failure when entering a dir.
83272         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
83273         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
83274         (FTS): New member fts_cycle, that is a union that contains the
83275         old active_dir_ht and cycle_state.  All uses changed to mention
83276         fts_cycle.ht and fts_cycle.state.
83277         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
83278         fts.c, with the following changes:
83279         (setup_dir, free_dir): New functions.
83280         (enter_dir): Now returns bool.  Return true if successful, false
83281         if memory exhausted.  All callers changed.
83282         Do not bother partly cleaning up on
83283         memory allocation failure; that is free_dir's job.
83284         However, free ad if hash_insert fails, to avoid memory leak.
83285         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
83286         fts->fts_options to see which union member to use.
83287
83288 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83289
83290         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
83291         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
83292
83293 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
83294
83295         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
83296
83297 2005-05-20  Jim Meyering  <jim@meyering.net>
83298
83299         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
83300         Now a macro, to pacify GCC.
83301
83302 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83303
83304         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
83305         of -1.
83306
83307 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
83308
83309         * lib/chown.c (rpl_chown): Return -1 on failure.
83310
83311 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83312
83313         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83314         Don't check for stddef.h.
83315         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83316         don't use its results.
83317         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83318         since we include them unconditionally.  Don't require
83319         AM_STDBOOL_H, since stdbool is a prerequisite.
83320         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83321         since we assume C89 or better.
83322         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83323         as we don't use their results.
83324         Don't check for fchdir, memmove, memset, strrchr, as we use
83325         them unconditionally.
83326         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83327         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83328
83329 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83330
83331         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83332         Include <stddef.h> unconditionally, since we assume C89 now.
83333         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83334         * lib/fts.c: Include fts_.h first, to check interface.
83335         Do not include intprops.h; no longer needed.
83336         Include cycle-check.h and hash.h, since fts_.h no longer does.
83337         Remove unnecessary casts of closedir to void.
83338         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83339         decide whether to decrement nlinks.
83340         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83341         (FTS): Use struct hash_table * instead of Hash_table, so that
83342         we no longer need to include hash.h here.
83343
83344 2005-05-18  Jim Meyering  <jim@meyering.net>
83345
83346         * modules/dirfd (License): Change to LGPL.  Most of the code
83347         is already in the public domain.
83348
83349 2005-05-18  Jim Meyering  <jim@meyering.net>
83350
83351         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83352         Reported by Yoann Vandoorselaere.
83353
83354 2005-05-17  Jim Meyering  <jim@meyering.net>
83355
83356         * m4/fts.m4: New file, from coreutils.
83357
83358 2005-05-17  Jim Meyering  <jim@meyering.net>
83359
83360         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83361
83362 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83363
83364         Sync from coreutils.
83365         * m4/unlinkdir.m4: New file.
83366
83367 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83368
83369         Sync from coreutils.
83370         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83371         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83372         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83373         White space changes only.
83374         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83375         special.
83376         * lib/yesno.c: Include getline.h, not ctype.h.
83377         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83378         Use getline to remove arbitrary restriction on response length.
83379
83380 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83381
83382         * config/srclist-update: Spell out "Street" in FSF postal
83383         mail address; this is the style the FSF seems to prefer.
83384
83385         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83386         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83387         this updates FSF postal mail address.
83388
83389         Sync from coreutils.
83390         * modules/unlinkdir: New file.
83391         * modules/yesno (Depends-on): Add getline.
83392         * MODULES.html.sh (File system functions): Add unlinkdir.
83393
83394 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83395
83396         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83397         lib/strsep.h:
83398         Change the initial comment to refer to GPL, not LGPL.
83399         gnulib-tool will change it to LGPL as needed.
83400
83401         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83402         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83403         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83404         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83405         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83406         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83407         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83408         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83409         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83410         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83411         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83412         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83413         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83414         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83415         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83416         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83417         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83418         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83419         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83420         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83421         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83422         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83423         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83424         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83425         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83426         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83427         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83428         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83429         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83430         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83431         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83432         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83433         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83434         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83435         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83436         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83437         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83438         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83439         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83440         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83441         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83442         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83443         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83444         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83445         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83446         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83447         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83448         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83449         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83450         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83451         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83452         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83453         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83454         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83455         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83456         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83457         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83458         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83459         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83460         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83461         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83462         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83463         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83464         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83465         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83466         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83467         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83468         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83469         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83470         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83471         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83472         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83473         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83474         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83475         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83476         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83477         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83478         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83479         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83480         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83481         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83482         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83483         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83484         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83485         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83486         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83487         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83488         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83489         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83490         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83491         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83492         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83493         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83494         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83495         lib/yesno.c, lib/yesno.h:
83496         Update FSF postal mail address.
83497
83498 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83499
83500         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83501         tests/test-memmem.c, tests/test-stpncpy.c:
83502         Update FSF postal mail address.
83503
83504 2005-05-13  Bruno Haible  <bruno@clisp.org>
83505
83506         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83507         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83508         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83509         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83510         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83511         Add support for 64-bit integers in the MSVC compiler.
83512
83513 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83514
83515         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83516
83517 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83518
83519         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83520
83521 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83522
83523         * doc/getdate.texi (General date syntax): Don't say that date
83524         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83525         Problem reported by Nic Ferrier.
83526
83527 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83528
83529         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83530         specified in ai_socktype. Fix invalid ai_protocol
83531         check. ai_protocol is usually set to 0 or depending on
83532         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83533         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83534         ai_socktype / ai_protocol in the returned addrinfo structure.
83535
83536 2005-05-10  Simon Josefsson  <jas@extundo.com>
83537
83538         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83539         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83540
83541 2005-05-10  Karl Berry  <karl@gnu.org>
83542
83543         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83544         (from http://www.gnu.org/licenses).
83545         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83546         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83547         fdl.texi suffices.
83548
83549 2005-05-10  Karl Berry  <karl@gnu.org>
83550
83551         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83552         (COPYING.DOC): remove.
83553
83554         * config/srclist-update: new FSF address.
83555
83556 2005-05-10  Derek Price  <derek@ximbiot.com>
83557
83558         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83559         possible.
83560
83561 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83562             Bruno Haible  <bruno@clisp.org>
83563
83564         * modules/inet_ntop: New file.
83565         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83566         inet_ntop.
83567
83568 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83569             Bruno Haible  <bruno@clisp.org>
83570
83571         * m4/inet_ntop.m4: New file.
83572
83573 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83574             Bruno Haible  <bruno@clisp.org>
83575
83576         * lib/inet_ntop.h: New file.
83577         * lib/inet_ntop.c: New file, from glibc with modifications.
83578
83579 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83580
83581         * modules/time_r (License): Change to LGPL.
83582         * modules/extensions (License): Change to LGPL.  Actually,
83583         the license is more permissive than that, but currently gnulib-tool
83584         doesn't know how to handle more-permissive licenses.
83585
83586         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83587         Problem reported by Dave Love.
83588
83589 2005-05-08  Jim Meyering  <jim@meyering.net>
83590
83591         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83592         blank.
83593
83594 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83595
83596         * modules/argmatch (Depends-on): Add stdbool.
83597         * modules/backupfile (Depends-on): Likewise.
83598         * modules/chdir-long (Depends-on): Likewise.
83599         * modules/closeout (Depends-on): Likewise.
83600         * modules/cycle-check (Depends-on): Likewise.
83601         * modules/dirname (Depends-on): Likewise.
83602         * modules/fnmatch (Depends-on): Likewise.
83603         * modules/fsusage (Depends-on): Likewise.
83604         * modules/fwriteerror (Depends-on): Likewise.
83605         * modules/getcwd (Depends-on): Likewise.
83606         * modules/getloadavg (Depends-on): Likewise.
83607         * modules/hard-locale (Depends-on): Likewise.
83608         * modules/makepath (Depends-on): Likewise.
83609         * modules/mountlist (Depends-on): Likewise.
83610         * modules/nanosleep (Depends-on): Likewise.
83611         * modules/posixtm (Depends-on): Likewise.
83612         * modules/quotearg (Depends-on): Likewise.
83613         * modules/readtokens (Depends-on): Likewise.
83614         * modules/readtokens0 (Depends-on): Likewise.
83615         * modules/readutmp (Depends-on): Likewise.
83616         * modules/save-cwd (Depends-on): Likewise.
83617         * modules/strftime (Depends-on): Likewise.
83618         * modules/userspec (Depends-on): Likewise.
83619         * modules/utimecmp (Depends-on): Likewise.
83620         * modules/xgetcwd (Depends-on): Likewise.
83621         * modules/xnanosleep (Depends-on): Likewise.
83622         * modules/xstrtod (Depends-on): Likewise.
83623         * modules/yesno (Depends-on): Likewise.
83624
83625 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83626
83627         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83628         needless checks.
83629
83630 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83631
83632         Merge from coreutils.  Among other things,
83633         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83634         * lib/fd-safer.c: New file.
83635         * lib/fcntl-safer.h, open-safer.c: Remove.
83636         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83637         * lib/dup-safer.c: Include unistd-safer.h first.
83638         Don't include errno.h.
83639         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83640         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83641         * lib/file-type.c: Rely on file-type.h change.
83642         * lib/getloadavg.c: Include unistd-safer.h.
83643         (getloadavg): Use safer open.
83644         * lib/getusershell.c: Include "stdio-safer.h".
83645         (getusershell): Use safer fopen.
83646         * lib/long-options.c (long_options): Use NULL rather than 0.
83647         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83648         'free'.
83649         * lib/modechange.c: Likewise.
83650         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83651         (MODE_DONE): New constant.
83652         (struct mode_change): Remove 'next' member.
83653         (make_node_op_equals): New function; like the old one of the
83654         same name, except it allocates an array.
83655         (mode_compile, mode_create_from_ref): Use it.
83656         (mode_compile): Allocate result as an array, not a linked list.
83657         Parse octal string ourself, so that we catch mistakes like "+0".
83658         (mode_adjust): Arg is an array, not a linked list.
83659         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83660         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83661         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83662         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83663         Remove.  This is now stat-macros.h's job.
83664         (talloc): Remove.  All callers replaced by xalloc, so that
83665         our invokers don't have to worry about reporting memory failures.
83666         (make_node_op_equals): Remove.
83667         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83668         New constants.
83669         (struct mode_change): Moved here from modechange.h.
83670         (mode_append_entry): Remove.
83671         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83672         apps to have incorrect behavior.  Use simpler algorithm for head
83673         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83674         Detect more invalid usages rather than having somewhat-random behavior.
83675         Don't insert an "a=" action, as that leads to incorrect behavior.
83676         (mode_compile, mode_create_from_ref): Return NULL on error instead
83677         of an enum, since now there's only one way to have an error.  All
83678         callers changed.
83679         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83680         at the correct time.  Simplify calculation of "+u" and its ilk.
83681         Don't mishandle "+X".
83682         (mode_free): Remove "register" and localize decls.
83683         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83684         (struct mode_change): Move to modechange.c; callers don't
83685         need to see this stuff.
83686         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83687         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83688         (mode_change, mode_adjust): Reflect the new signatures noted above.
83689         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83690         that might redefine system include files.
83691         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83692         (my_usleep): Use NULL rather than (void *) 0.
83693         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83694         Use siginterrupt to specify that system calls should be interrupted.
83695         (rpl_nanosleep): Move initialization of suspended closer to call of
83696         my_usleep.
83697         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83698         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83699         (desirable_utmp_entry): New function.
83700         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83701         using x2nrealloc, to simplify logic.
83702         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83703         size calculation.  Do not assume utmp file is a regular file.
83704         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83705         (READ_UTMP_CHECK_PIDS): New constant.
83706         * lib/save-cwd.c: Include unistd-safer.h.
83707         (save_cwd): Use fd_safer.
83708         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83709         [!_LIBC] Include "stat-macros.h" instead.
83710         * lib/unistd-safer.h (fd_safer): New decl.
83711
83712 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83713
83714         * modules/getloadavg (Depends-on): Add unistd-safer.
83715         * modules/getusershell (Depends-on): Add stdio-safer.
83716         * modules/lstat (Depends-on): Remove xalloc.
83717         * modules/mkstemp (Depends-on): Add stat-macros.
83718         * modules/modechange (Depends-on): Remove xstrtol.
83719         Add stat-macros, xalloc.
83720         * modules/save-cwd (Depends-on): Add unistd-safer.
83721         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83722         * modules/unistd-safer (Files): Add lib/fd-safer.c
83723         (Makefile.am): Remove lib_SOURCES.
83724
83725         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83726         Remove fcntl-safer; unistd-safer supersedes it.
83727
83728 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83729
83730         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83731         AC_HEADER_STAT.
83732         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83733         (gl_PREREQ_CHOWN): Remove.
83734         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83735         it.  Don't require AC_HEADER_STAT.
83736         (gl_PREREQ_LSTAT): Remove.
83737         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83738         Don't require AC_HEADER_STAT.
83739         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83740         (gl_PREREQ_RMDIR): Remove.
83741         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83742         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83743         the stat-macros module a prerequisite.
83744         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83745         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83746         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83747         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83748         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83749         variable names.
83750         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83751         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83752         variable prefixes.
83753         * m4/fcntl-safer.m4: Remove.
83754         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83755         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83756         Invoke gl_PREREQ_FD_SAFER.
83757         (gl_PREREQ_FD_SAFER): New macro.
83758         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83759         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83760         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83761         Remove duplicate call to AC_LIBOBJ(readutmp).
83762         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83763
83764         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83765         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83766
83767 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83768
83769         * MODULES.html.sh (Misc): Add byteswap.
83770
83771 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83772
83773         * modules/getcwd (Depends-on): Add extensions.
83774         * modules/openat (Depends-on): Likewise.
83775
83776 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83777
83778         * modules/byteswap: New file.
83779
83780 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83781
83782         * m4/byteswap.m4: New file.
83783
83784 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83785
83786         * lib/byteswap_.h: New file.
83787
83788 2005-04-25  Karl Berry  <karl@gnu.org>
83789
83790         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83791
83792 2005-04-25  Albert Chin  <china@thewrittenword.com>
83793
83794         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83795         Toolkit C bug.
83796
83797 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83798
83799         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83800         (func_ln_if_changed): Remove forcibly for no error message
83801         in case file does not exist.
83802
83803 2005-04-19  Simon Josefsson  <jas@extundo.com>
83804
83805         * gnulib-tool (Options): Make --symlink mean --symbolic.
83806
83807 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83808
83809         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83810
83811 2005-04-16  Simon Josefsson  <jas@extundo.com>
83812
83813         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83814
83815 2005-04-15  Simon Josefsson  <jas@extundo.com>
83816
83817         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83818
83819 2005-04-15  Simon Josefsson  <jas@extundo.com>
83820
83821         * gnulib-tool: Rename --symlink to --symbolic.
83822
83823 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83824
83825         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83826         symbolic links to files instead of copying/moving.  Add --aux-dir,
83827         specifying directory relative --dir where auxiliary build tools
83828         are placed.
83829
83830 2005-04-14  Bruno Haible  <bruno@clisp.org>
83831
83832         * modules/allocsa (License): Change to LGPL.
83833         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83834
83835 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83836
83837         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83838         that "UTC +1 second" continues to work.  Problem reported
83839         by Dmitry V. Levin.
83840         (relunit_snumber): New rule.
83841         (relunit): Use it.
83842
83843 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83844
83845         * lib/getdate.y (universal_time_zone_table): New constant.
83846         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83847         universal_time_zone_table.
83848         (lookup_zone): Prefer universal_time_zone_table to
83849         local_time_zone_table, so that "GMT" time stamps are allowed in
83850         London during the summer.  Problem reported by Ian Abbott.
83851
83852 2005-04-12  Jim Meyering  <jim@meyering.net>
83853
83854         * lib/human.c (humblock): Set *options even when returning due to
83855         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83856         warning from gcc-4.
83857
83858 2005-04-09  Jim Meyering  <jim@meyering.net>
83859
83860         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83861         -Wuninitialized: initialize tm0.tm_year.
83862
83863 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83864
83865         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83866         count, since there's no maximum.  All uses changed.
83867         Add member dsts_seen.
83868         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83869         not being INT_MAX.
83870         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83871         Use pc_rels_seen to decide whether a date is absolute.
83872
83873         * lib/getdate.y (number): Don't overwrite year.
83874         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83875         check.
83876
83877 2005-04-02  Simon Josefsson  <jas@extundo.com>
83878
83879         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83880         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83881
83882 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83883
83884         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83885         where no absolute path name can be longer than PATH_MAX.
83886
83887 2005-03-27  Jim Meyering  <jim@meyering.net>
83888
83889         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83890
83891 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83892
83893         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83894         "one's complement" -> "ones' complement" in comment, as per Knuth.
83895         "value of type" -> "type or expression" in comment.
83896         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83897
83898 2005-03-26  Jim Meyering  <jim@meyering.net>
83899
83900         Comment nits.
83901         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83902         Correct typos: s/or/of/.
83903
83904 2005-03-26  Jim Meyering  <jim@meyering.net>
83905
83906         * modules/check-include-files: Move to ../ and rename to...
83907         * check-module: ...this.
83908
83909 2005-03-25  Jim Meyering  <jim@meyering.net>
83910
83911         * modules/xvasprintf (Files): Add xalloc.h.
83912
83913 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83914
83915         * modules/gettext (Files): config/config.rpath ->
83916         build-aux/config.rpath
83917         * modules/iconv (Files): Likewise.
83918         Problem reported by Oskar Liljeblad.
83919
83920 2005-03-23  Jim Meyering  <jim@meyering.net>
83921
83922         * modules/check-include-files: New script to check for
83923         missing dependencies, multiple includes, etc.
83924
83925         * modules/c-strtold (Depends-on): Add xalloc.
83926         * modules/c-strtod (Depends-on): Add xalloc.
83927         * modules/hash (Depends-on): Add xalloc.
83928         (Files): Remove lib/xalloc.h.
83929
83930         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83931         * modules/userspec (Files): Add lib/inttostr.h.
83932
83933 2005-03-23  Jim Meyering  <jim@meyering.net>
83934
83935         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83936
83937 2005-03-22  Jim Meyering  <jim@meyering.net>
83938
83939         * modules/stat-macros: New module.
83940         * modules/canonicalize, modules/euidaccess, modules/file-type,
83941         * modules/filemode, modules/lchown, modules/makepath,
83942         * modules/rmdir, modules/stat: Depend on new stat-macros module
83943         rather than listing lib/stat-macros.h manually.
83944         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83945
83946 2005-03-22  Jim Meyering  <jim@meyering.net>
83947
83948         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83949
83950 2005-03-22  Bruno Haible  <bruno@clisp.org>
83951
83952         * config/srclist.txt: Replace target directory 'config' with
83953         'build-aux'.
83954         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83955         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83956         ../build-aux/.
83957
83958 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83959
83960         * modules/chdir-long (Depends-on): Add mempcpy.
83961
83962         * modules/acl, modules/backupfile, modules/c-strtod,
83963         modules/c-strtold, modules/canon-host, modules/canonicalize,
83964         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83965         modules/exclude, modules/exitfail, modules/file-type,
83966         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83967         modules/getdate, modules/getline, modules/getpagesize,
83968         modules/getpass, modules/getugroups, modules/group-member,
83969         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83970         modules/inttostr, modules/long-options, modules/makepath,
83971         modules/md5, modules/memcasecmp, modules/memcoll,
83972         modules/modechange, modules/mountlist, modules/path-concat,
83973         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83974         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83975         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83976         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83977         modules/strftime, modules/strndup, modules/strverscmp,
83978         modules/timespec, modules/unlocked-io, modules/userspec,
83979         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83980         modules/yesno:
83981         Remove lib_SOURCES line from Makefile.am section, as this is now
83982         done automatically by the corresponding Autoconf macro.
83983
83984 2005-03-21  Jim Meyering  <jim@meyering.net>
83985
83986         Changes imported from coreutils.
83987
83988         * lib/cycle-check.c: Don't include xalloc.h.
83989
83990         * lib/path-concat.c: Don't include assert.h.
83991         (path_concat): Remove assertion that would have triggered
83992         for ABASE starting with more than one slash.
83993         Reported by Andreas Schwab.
83994
83995         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83996         properly when ABASE is an absolute file name.
83997         Correct the description of this function.
83998         Include <assert.h>.
83999         Add an assertion and a test driver.
84000         This fixes a bug introduced on 2004-07-02.
84001         Andreas Schwab reported the resulting failure of cp --parents:
84002         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
84003
84004 2005-03-21  Jim Meyering  <jim@meyering.net>
84005
84006         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
84007         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
84008
84009 2005-03-21  Jim Meyering  <jim@meyering.net>
84010         and  Paul Eggert  <eggert@cs.ucla.edu>
84011
84012         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
84013         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
84014         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
84015         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
84016         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
84017         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
84018         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
84019         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
84020         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
84021         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
84022         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
84023         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
84024         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
84025         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
84026         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
84027         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
84028         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
84029         for these modules.
84030
84031 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
84032
84033         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
84034         (which shouldn't happen), generate nothing instead of returning 0
84035         immediately, so that nstrftime (NULL, ...) doesn't return 0.
84036
84037 2005-03-16  Bruno Haible  <bruno@clisp.org>
84038
84039         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
84040         HAVE_LONGLONG_64BIT.
84041
84042 2005-03-16  Bruno Haible  <bruno@clisp.org>
84043
84044         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
84045         HAVE_LONGLONG_64BIT.
84046
84047 2005-03-16  Bruno Haible  <bruno@clisp.org>
84048
84049         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
84050         HAVE_LONGLONG_64BIT.
84051
84052 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84053
84054         * lib/strftime.c (my_strftime): Prepend space to format so that we can
84055         reliably distinguish strftime failure from empty output on POSIX
84056         hosts.
84057
84058 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
84059
84060         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
84061         (iconv_string): Don't guess a size-zero buffer, as that might cause
84062         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
84063         result would be 'too large', where 'too large' is (heuristically)
84064         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
84065         overflow concerns.  This will prevent some unwanted malloc failures
84066         when the inputs are very large.
84067
84068 2005-03-15  Karl Berry  <karl@gnu.org>
84069
84070         * config/srclist.txt (config.rpath): from gettext.
84071         * config/config.rpath: update.
84072
84073 2005-03-15  Bruno Haible  <bruno@clisp.org>
84074
84075         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
84076         to 'negate'.
84077
84078         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
84079         variable.
84080
84081         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
84082         results.
84083
84084 2005-03-14  Simon Josefsson  <jas@extundo.com>
84085
84086         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
84087         <fx@gnu.org>.
84088
84089 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
84090
84091         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
84092         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
84093         intprops.h.
84094         * lib/strtol.c: Likewise.
84095
84096 2005-03-14  Jim Meyering  <jim@meyering.net>
84097
84098         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
84099         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
84100         to be nonzero so that we (and caller) can detect the difference
84101         between a valid zero-length expansion and an error return, even
84102         when the underlying strftime fails before writing anything into
84103         that location.
84104
84105 2005-03-14  Bruno Haible  <bruno@clisp.org>
84106
84107         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
84108         Update from GNU gettext 0.14.3.
84109
84110 2005-03-10  Jim Meyering  <jim@meyering.net>
84111
84112         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
84113
84114 2005-03-10  Jim Meyering  <jim@meyering.net>
84115
84116         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
84117         so that this module works on systems without fchdir.
84118
84119 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
84120
84121         Factor int-properties macros into a single file, except for
84122         glibc-related files.
84123         * lib/intprops.h: New file.
84124         * lib/getloadavg.c: Include it instead of limits.h.
84125         (INT_STRLEN_BOUND): Remove.
84126         * lib/human.c: Include intprops.h.
84127         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
84128         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
84129         302/1000.
84130         * lib/inttostr.h: Include intprops.h instead of limits.h.
84131         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
84132         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
84133         for consistency with intprops.h.
84134         (time_t_is_integer, twos_complement_arithmetic): Use them.
84135         * lib/sig2str.h: Include <signal.h>, intprops.h.
84136         (INT_STRLEN_BOUND): Remove.
84137         * lib/strftime.c (TYPE_SIGNED): Remove.
84138         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
84139         * lib/strtol.c: Adjust comments to match intprops.h.
84140         * lib/userspec.c: Include intprops.h.
84141         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
84142         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
84143         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
84144         instead of rolling our own expressions.
84145         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
84146
84147         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
84148         instead of int.
84149         (my_strftime): Do not mishandle years close to INT_MAX, by doing
84150         the right thing even if adding 1900 would overflow.  Similarly
84151         for tm_mon + 1 and tm_yday + 1.
84152         Make %Y always equivalent to %C%y, and similarly for %G and %g.
84153         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
84154         (DO_SIGNED_NUMBER): New macro.
84155         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
84156
84157 2005-03-07  Bruno Haible  <bruno@clisp.org>
84158
84159         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
84160
84161 2005-03-07  Bruno Haible  <bruno@clisp.org>
84162
84163         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
84164
84165 2005-03-04  Derek R. Price  <derek@ximbiot.com>
84166
84167         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
84168         (func_import): Only replace files via --import when they have actually
84169         changed.
84170
84171 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84172
84173         * m4/mmap-anon.m4: New file.
84174         * m4/pagealign_alloc.m4: New file.
84175
84176 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84177             Bruno Haible  <bruno@clisp.org>
84178
84179         * modules/pagealign_alloc: New file.
84180         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
84181
84182 2005-03-03  Derek R. Price  <derek@ximbiot.com>
84183             Bruno Haible  <bruno@clisp.org>
84184
84185         * lib/pagealign_alloc.h: New file.
84186         * lib/pagealign_alloc.c: New file.
84187
84188 2005-03-03  Bruno Haible  <bruno@clisp.org>
84189
84190         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
84191         Use an all-permissive copyright notice, recommended by RMS.
84192
84193 2005-03-02  Bruno Haible  <bruno@clisp.org>
84194
84195         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
84196         of AIX, the replacement has to be done only after <string.h> is
84197         included, therefore not in config.h. stpncpy.h does the replacement,
84198         and stpncpy.c uses it.
84199
84200 2005-03-02  Bruno Haible  <bruno@clisp.org>
84201
84202         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
84203         stpncpy.c uses it.
84204
84205 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84206
84207         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
84208         The workaround isn't strictly needed for POSIX conformance, and
84209         it's too much of a pain to configure and maintain.  We'll ask
84210         people to fix their kernels instead.
84211         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
84212         (NANOSLEEP_BUG_WORKAROUND): Remove.
84213         (xnanosleep): Remove the workaround.
84214
84215 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84216
84217         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
84218         Reported by Derek Price.
84219         (Include): Add "timespec.h".
84220
84221         * modules/xnanosleep (Depends-on): Remove gethrxtime.
84222
84223 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
84224
84225         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
84226         to detect nanosleep bug.
84227
84228 2005-03-01  Bruno Haible  <bruno@clisp.org>
84229
84230         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
84231
84232 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
84233
84234         * modules/gethrxtime: New file.
84235         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
84236         (Depends-on): Add gethrxtime.
84237         (configure.ac): Add gl_XNANOSLEEP.
84238         (Makefile.am): Remove lib_SOURCES line.
84239
84240 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84241
84242         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
84243         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
84244
84245 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
84246
84247         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
84248         * lib/timespec.h (gettime): Return void, since it always
84249         succeeds now.  All uses changed.
84250         * lib/gettime.c (gettime): Likewise.
84251         [HAVE_NANOTIME]: Prefer nanotime.
84252         Assume gettimeofday succeeds, as POSIX requires.
84253         Assime time () succeeds, since other code already does.
84254         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
84255         (timespec_subtract): Remove.
84256         (NANOSLEEP_BUG_WORKAROUND): New constant.
84257         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
84258         things considerably.  Use it only on GNU/Linux hosts, since the
84259         workaround shouldn't be needed elsewhere.
84260
84261 2005-02-24  Bruno Haible  <bruno@clisp.org>
84262
84263         * modules/gettext (Files): Add m4/glibc2.m4.
84264
84265 2005-02-24  Bruno Haible  <bruno@clisp.org>
84266
84267         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
84268         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
84269         * m4/progtest.m4:
84270         Update from GNU gettext 0.14.2.
84271         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
84272
84273 2005-02-24  Bruno Haible  <bruno@clisp.org>
84274
84275         * lib/localcharset.c: Update from GNU gettext 0.14.2.
84276         * lib/config.charset: Update from GNU gettext 0.14.2.
84277
84278 2005-02-24  Bruno Haible  <bruno@clisp.org>
84279
84280         * lib/gettext.h: Update from GNU gettext 0.14.2.
84281
84282 2005-02-23  Simon Josefsson  <jas@extundo.com>
84283
84284         * m4/iconvme.m4: New file.
84285
84286 2005-02-23  Jim Meyering  <jim@meyering.net>
84287
84288         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
84289         change.
84290         Thanks to Bruno Haible for catching it.
84291
84292 2005-02-22  Simon Josefsson  <jas@extundo.com>
84293
84294         * modules/iconvme: New file.
84295
84296         * MODULES.html.sh: Add iconvme.
84297
84298 2005-02-22  Simon Josefsson  <jas@extundo.com>
84299
84300         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
84301
84302 2005-02-22  Simon Josefsson  <jas@extundo.com>
84303
84304         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
84305
84306 2005-02-22  Jim Meyering  <jim@meyering.net>
84307
84308         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
84309         s/ifndef/ifdef/.
84310
84311 2005-02-20  Neil Conway  <neilc@samurai.com>
84312
84313         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84314         returned by OSX/Darwin if the specified buffer is not large
84315         enough for the hostname.
84316
84317 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84318
84319         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84320         pass it to _help, otherwise the latter coredumps trying to
84321         dereference state.root_argp.
84322
84323 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84324
84325         * modules/chdir-long (Depends-on): Add memrchr.
84326         * modules/memrchr (Files): Add lib/memrchr.h.
84327         (Include): "memrchr.h".
84328
84329 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84330
84331         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84332
84333 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84334
84335         * lib/memrchr.h: New file.
84336         * lib/chdir-long.c: Include it.
84337         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84338         Don't bother including stddef.h.
84339
84340 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84341
84342         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84343         inclusion.
84344         Include <sys/types.h>, for dev_t.
84345         (ME_DUMMY, ME_REMOTE): Move from here....
84346         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84347         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84348         Dmitry V. Levin.
84349         Include mountlist.h first, to test the interface.
84350
84351 2005-01-29  Bruno Haible  <bruno@clisp.org>
84352
84353         * lib/progname.c (program_name): Initialize.
84354         Needed when linking statically on MacOS X.
84355
84356 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84357
84358         Sync from coreutils.
84359         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84360         (Depends-on): Add c-strtod.
84361         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84362
84363 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84364
84365         Sync from coreutils.
84366         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84367
84368         Remove files that are specific to coreutils.
84369         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84370
84371 2005-01-28  Bruno Haible  <bruno@clisp.org>
84372
84373         * modules/javacomp: New file.
84374         * MODULES.html.sh (Java): Add javacomp.
84375
84376 2005-01-28  Bruno Haible  <bruno@clisp.org>
84377
84378         * m4/javacomp.m4: New file, from GNU gettext.
84379
84380 2005-01-28  Bruno Haible  <bruno@clisp.org>
84381
84382         * lib/javacomp.sh.in: New file, from GNU gettext.
84383         * lib/javacomp.h: New file, from GNU gettext.
84384         * lib/javacomp.c: New file, from GNU gettext.
84385
84386 2005-01-26  Simon Josefsson  <jas@extundo.com>
84387
84388         * lib/gai_strerror.c: Use GPL in header.
84389
84390 2005-01-26  Bruno Haible  <bruno@clisp.org>
84391
84392         * modules/javaexec: New file.
84393         * MODULES.html.sh (Java): Add javaexec.
84394
84395 2005-01-26  Bruno Haible  <bruno@clisp.org>
84396
84397         * m4/javaexec.m4: New file, from GNU gettext.
84398
84399 2005-01-26  Bruno Haible  <bruno@clisp.org>
84400
84401         * lib/javaexec.sh.in: New file, from GNU gettext.
84402         * lib/javaexec.h: New file, from GNU gettext.
84403         * lib/javaexec.c: New file, from GNU gettext.
84404
84405 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84406
84407         * modules/lchown (Depends-on): Remove lchown.h
84408
84409 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84410
84411         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84412         must be defined if the header file was not found, in order
84413         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84414
84415 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84416
84417         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84418         initializers for struct pentry_state.
84419         (__argp_error): Check return value of __asprintf
84420         (__argp_failure): Translate error message
84421
84422         * lib/argp-parse.c: Removed braces around the expansion of N_()
84423
84424 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84425
84426         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84427         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84428         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84429         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84430         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84431         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84432         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84433         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84434         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84435         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84436         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84437         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84438         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84439         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84440         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84441         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84442         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84443         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84444         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84445         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84446         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84447         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84448         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84449         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84450         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84451         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84452         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84453         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84454         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84455         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84456         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84457         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84458         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84459         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84460         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84461         Use an all-permissive copyright notice, recommended by RMS.
84462
84463 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84464
84465         * modules/chdir-long (Depends-on): Remove mempcpy.
84466
84467 2005-01-21  Jim Meyering  <jim@meyering.net>
84468
84469         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84470         same value as for Solaris 9.
84471
84472         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84473         component length.  This included changing the parameter to be
84474         of type `char *' rather than `char const *'.
84475         * lib/chdir-long.h (chdir_long): Update prototype.
84476
84477         * lib/openat.c (fdopendir, fstatat): New functions.
84478         * lib/openat.h: Include headers required for use of DIR and struct
84479         stat.
84480         [AT_SYMLINK_NOFOLLOW]: Define.
84481         (fdopendir, fstatat): Add prototypes.
84482
84483 2005-01-21  Bruno Haible  <bruno@clisp.org>
84484
84485         * modules/classpath: New file.
84486         * MODULES.html.sh (Java): Add classpath.
84487
84488 2005-01-21  Bruno Haible  <bruno@clisp.org>
84489
84490         * lib/classpath.h: New file, from GNU gettext.
84491         * lib/classpath.c: New file, from GNU gettext.
84492
84493 2005-01-20  Simon Josefsson  <jas@extundo.com>
84494
84495         * modules/version-etc-fsf: New file.
84496
84497 2005-01-20  Simon Josefsson  <jas@extundo.com>
84498
84499         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84500         * lib/version-etc.c: Remove version_etc_copyright.
84501         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84502         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84503
84504 2005-01-20  Simon Josefsson  <jas@extundo.com>
84505
84506         * lib/base64.h (isbase64): Add.
84507
84508         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84509         using a unsigned prototype, don't inline.
84510         (base64_decode): Use it.
84511
84512 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84513
84514         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84515         it.
84516
84517 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84518
84519         * lib/save-cwd.c (save_cwd): Remove code to support the case
84520         where fchdir is missing or flaky.
84521
84522 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84523
84524         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84525
84526 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84527
84528         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84529         AC_LIBSOURCES now does this.
84530         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84531         with new ullong_max module.
84532
84533 2005-01-19  Bruno Haible  <bruno@clisp.org>
84534
84535         * modules/sh-quote: New file.
84536         * MODULES.html.sh (Executing programs): Add sh-quote.
84537
84538 2005-01-19  Bruno Haible  <bruno@clisp.org>
84539
84540         * lib/sh-quote.h: New file, from GNU gettext.
84541         * lib/sh-quote.c: New file, from GNU gettext.
84542
84543 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84544
84545         Merge from coreutils.
84546         * m4/ullong_max.m4: New file.
84547         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84548         (gl_MACROS): Assume localeconv exists.
84549
84550 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84551
84552         Merge changes from coreutils, as described below in several
84553         changelogs dated today.
84554
84555         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84556         (O_DIRECTORY): Remove; not needed here, since "." must be
84557         a directory.  All uses removed.
84558         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84559         universal on Suns, and we also need to test for IRIX.
84560         Revamp code to use 'if' rather than '#if'.
84561         Avoid unnecessary comparison of cwd->desc to 0.
84562
84563         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84564         for known valid error numbers rather than observed invalid ones.
84565
84566 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84567
84568         * modules/ullong_max: New file.
84569
84570         * modules/chdir-long, modules/openat: New files.
84571         * modules/save-cwd (Depends-on): Depend on chdir-long.
84572         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84573
84574 2005-01-18  Jim Meyering  <jim@meyering.net>
84575
84576         Merge from coreutils.
84577         * m4/chdir-long.m4, m4/openat.m4: New files.
84578         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84579         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84580         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84581         is sane and DOES follow symlinks.  Besides, testing 20 different
84582         systems found no broken chown implementations.
84583         Prompted by a change in rsync's copy of this macro.
84584         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84585
84586         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84587
84588         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84589         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84590         NULL-means-set-to-current-time semantics.
84591         Remove temporary file immediately, rather than waiting
84592         for configure's at-exit trap code to do it.
84593
84594 2005-01-18  Jim Meyering  <jim@meyering.net>
84595
84596         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84597
84598         * lib/utimens.c (futimens): Account for the fact that futimes
84599         can also fail with errno == ENOSYS or errno == ENOENT.
84600         Patch from Dmitry V. Levin.
84601
84602         Change the name of the robust chdir function from chdir to chdir_long.
84603         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84604         (restore_cwd): Use chdir_long, not chdir.
84605         * lib/chdir-long.c: Renamed from chdir.c.
84606         * lib/chdir-long.h: Renamed from chdir.h.
84607         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84608         Hurd.
84609
84610 2005-01-18  Bruno Haible  <bruno@clisp.org>
84611
84612         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84613         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84614         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84615         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84616         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84617         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84618         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84619         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84620         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84621         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84622         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84623         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84624         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84625         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84626         Use an all-permissive copyright notice, recommended by RMS.
84627
84628 2005-01-18  Bob Proulx  <bob@proulx.com>
84629
84630         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84631         simplify offsetof() macro construct to avoid compile failure with
84632         native HP-UX 11.0 ANSI C compiler.
84633
84634 2005-01-17  Bruno Haible  <bruno@clisp.org>
84635
84636         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84637         redundant because stpncpy.m4 takes care of it.
84638
84639 2005-01-17  Bruno Haible  <bruno@clisp.org>
84640
84641         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84642
84643 2005-01-17  Bruno Haible  <bruno@clisp.org>
84644
84645         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84646         used.
84647
84648 2005-01-17  Bruno Haible  <bruno@clisp.org>
84649
84650         * lib/fwriteerror.h (fwriteerror): Change specification to include
84651         fclose.
84652         * lib/fwriteerror.c: Include <stdbool.h>.
84653         (fwriteerror): At the end, close the file stream. Record whether
84654         stdout was already closed.
84655
84656 2005-01-17  Bruno Haible  <bruno@clisp.org>
84657
84658         * lib/execute.c (environ): Declare if needed.
84659         * lib/pipe.c (environ): Likewise.
84660         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84661
84662 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84663
84664         * modules/argp: Depend on vsnprintf
84665
84666 2005-01-10  Jim Meyering  <jim@meyering.net>
84667
84668         * modules/closeout (Depends-on): Add atexit.
84669
84670 2005-01-06  Bruno Haible  <bruno@clisp.org>
84671
84672         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84673
84674 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84675
84676         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84677         definitions to be after all include files, to avoid collisions.
84678         Problem reported by Bob Proulx.
84679
84680 2005-01-04  Jim Meyering  <jim@meyering.net>
84681
84682         Changes imported from coreutils.
84683         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84684         as the mkstemp template, use a temporary directory and an
84685         8.3-friendly template to avoid trouble on systems like DJGPP.
84686         Reported by Juan M. Guerrero via Stepan Kasal.
84687         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84688         close. Remove the temporary directory right away, rather than waiting
84689         for configure's at-exit trap code to do it.
84690         Suggestion from Stepan Kasal.
84691
84692 2005-01-01  Simon Josefsson  <jas@extundo.com>
84693
84694         * gnulib-tool: Print #include directives when --import'ing.
84695
84696 2004-12-28  Simon Josefsson  <jas@extundo.com>
84697
84698         * tests/test-base64.c: Include required header files.  Remove
84699         unused variables.
84700
84701 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84702
84703         * modules/error (Depends-on): Remove gettext.
84704
84705 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84706
84707         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84708         not needed.  This removes a dependency on the gettext module.
84709         [defined _LIBC]: Do not include <libintl.h>; not needed.
84710
84711 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84712
84713         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84714         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84715
84716 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84717
84718         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84719         HAVE_DECL_STRTOLD.
84720
84721 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84722
84723         * modules/getdate (Depends-on): Remove alloca-opt.
84724
84725 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84726
84727         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84728
84729 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84730
84731         * lib/argp-parse.c: Include <stddef.h>.
84732         (alignof, alignto): New macros.
84733         (parser_init): Don't assume that void * is aligned sufficiently
84734         for struct option.
84735
84736         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84737         need to extend the stack.
84738         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84739         large.
84740
84741 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84742
84743         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84744
84745 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84746
84747         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84748         (2004-10-24) change.  Apparently this was a false alarm.
84749
84750         * modules/getdate: Depend on alloca-opt, not alloca.
84751
84752 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84753
84754         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84755         Remove now-obsolete comment about AIX.
84756         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84757         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84758         (YYMAXDEPTH): New macro.
84759
84760 2004-12-18  Simon Josefsson  <jas@extundo.com>
84761
84762         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84763
84764 2004-12-18  Bruno Haible  <bruno@clisp.org>
84765
84766         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84767
84768 2004-12-18  Bruno Haible  <bruno@clisp.org>
84769
84770         * lib/fatal-signal.c (fatal_signals): Make non-const.
84771         (init_fatal_signals): New function.
84772         (uninstall_handlers, install_handlers): Ignore signals that were set to
84773         SIG_IGN.
84774         (at_fatal_signal): Call init_fatal_signals.
84775         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84776         SIG_IGN.
84777         Reported by Paul Eggert.
84778
84779 2004-12-18  Bruno Haible  <bruno@clisp.org>
84780
84781         * doc/alloca.texi: New file.
84782         * doc/alloca-opt.texi: New file.
84783
84784 2004-12-17  Jim Meyering  <jim@meyering.net>
84785
84786         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84787         Otherwise, install-sh could exit with improper exit status when
84788         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84789
84790 2004-12-16  Simon Josefsson  <jas@extundo.com>
84791
84792         * tests/test-base64.c: Add license.
84793
84794 2004-12-15  Stepan Kasal  <address@hidden>
84795
84796         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84797
84798 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84799
84800         * modules/getcwd (Files): Add m4/d-ino.m4.
84801         Suggested by Mark D. Baushke.
84802
84803 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84804
84805         * lib/getdate.y (textint): New member "negative".
84806         (time_zone_hhmm): New function.
84807         Expect 14 shift-reduce conflicts, not 13.
84808         (o_colon_minutes): New rule.
84809         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84810         (yylex): Set the "negative" member of signed numbers.
84811
84812 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84813
84814         * doc/getdate.texi (Time of day items, Time zone items):
84815         Describe new formats +00:00, UTC+00:00.
84816
84817 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84818
84819         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84820         spurious "-l"s.  Problem reported by Stepan Kasal.
84821
84822 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84823
84824         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84825         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84826
84827 2004-12-04  Simon Josefsson  <jas@extundo.com>
84828
84829         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84830         Vandoorselaere <yoann@prelude-ids.org>.
84831
84832 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84833
84834         Changes imported from coreutils.
84835         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84836         exist.
84837         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84838
84839 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84840
84841         Changes imported from coreutils.
84842         * lib/hard-locale.c: Assume <locale.h> exists.
84843         Include "strdup.h".
84844         (GLIBC_VERSION): New macro.
84845         (hard_locale): Assume setlocale exists.
84846         Rewrite to avoid #ifdef.
84847         Use strdup rather than malloc + strcpy.
84848         * lib/human.c: Assume <locale.h> exists.
84849         (human_readable): Assume localeconv exists.
84850
84851 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84852
84853         * modules/hard-locale (Depends-on): Add strdup.
84854
84855 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84856
84857         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84858         convert T2, not T.  (Imported from libc.)
84859
84860 2004-11-30  Simon Josefsson  <jas@extundo.com>
84861
84862         * modules/restrict (License): Change to LGPL.
84863
84864 2004-11-30  Simon Josefsson  <jas@extundo.com>
84865
84866         * m4/restrict.m4: Add copyright and copying conditions.
84867
84868 2004-11-30  Simon Josefsson  <jas@extundo.com>
84869
84870         * m4/base64.m4: New file.
84871
84872 2004-11-30  Simon Josefsson  <jas@extundo.com>
84873
84874         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84875         base64.
84876
84877         * tests/test-base64.c: New file.
84878
84879         * modules/base64: New file.
84880
84881 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84882
84883         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84884         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84885
84886         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84887
84888 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84889
84890         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84891         (__getcwd.c): Don't restore errno; glibc doesn't.
84892         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84893         first, falling back to our code only if its results look suspicious.
84894         Ensure that the resulting buffer is only as large as necessary.
84895
84896         * lib/readutmp.c: Include readutmp.h first.
84897         Include <errno.h>, since readutmp.h no longer does that.
84898         * lib/readutmp.h: Don't include <errno.h>,
84899         <sys/param.h>, <time.h>; not needed to establish interface.
84900         (errno): Remove decl.
84901         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84902         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84903         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84904
84905 2004-11-28  Simon Josefsson  <jas@extundo.com>
84906
84907         * lib/base64.h, base64.c: New file.
84908
84909 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84910
84911         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84912
84913 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84914
84915         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84916         (Depends-on): Remove pathmax, same.  Add mempcpy.
84917         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84918         (Makefile.am): Append getcwd.h to lib_SOURCES.
84919         (Include): Add getcwd.h.
84920         (Maintainer): Change from Jim Meyering to "all, glibc",
84921         since getdate now uses intended-for-glibc code.
84922         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84923         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84924
84925 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84926
84927         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84928         HP's ANSI C compiler.
84929         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84930         Declaring int functions causes warnings on some modern systems and
84931         shouldn't be needed to compile on ancient ones.
84932         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84933         defined.
84934
84935         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84936         with the following changes.
84937         (__set_errno): Parenthesize properly.
84938         Include <stdbool.h>.
84939         (MIN, MAX, MATCHING_INO): New macros.
84940         (__getcwd): Define with prototype, not K&R form.
84941         Use heuristics to allocate default buffer on stack if possible.
84942         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84943         behavior, and to avoid the PATH_MAX limit when computing
84944         ../../../../...
84945         Use MATCHING_INO to compare inode number to file.
84946         Check for arithmetic overflow in size calculations.
84947         Fix bug in reallocation of dot array that caused getcwd to fail
84948         on directories nested deeper than 75.
84949         Be more careful about saving errno on error.
84950         Do not use realloc; use only free+malloc, as this is a bit
84951         more flexible and avoids a needless copy operation.
84952         Do not inspect st_dev and st_ino for symbolic links; POSIX
84953         doesn't specify the latter.
84954         Check for closedir errors.
84955         Avoid needless casts.
84956         Use "#ifdef weak_alias" around weak_alias, to be like other
84957         glibc code.
84958         The following changes to getcwd.c have effect only when used in
84959         gnulib; they have no effect inside glibc proper.
84960         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84961         as alloca isn't used.
84962         (alloca, __alloca): Likewise.
84963         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84964         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84965         unconditionally, as gnulib assumes C89 or better.
84966         Do not include <sys/param.h>.
84967         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84968         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84969         better.
84970         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84971         Include <dirent.h> in a way that is compatible with modern Autoconf.
84972         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84973         New macros, if not already defined.
84974         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84975         Use "_LIBC", not "defined _LIBC", for consistency.
84976         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84977         a mempcpy module.
84978         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84979         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84980         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84981         credit only to Jim Meyering and adjust the copyright dates.
84982         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84983         <stdlib.h>, <unistd.h>, "pathmax.h".
84984         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84985         (INITIAL_BUFFER_SIZE): Remove.
84986         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84987
84988 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84989
84990         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84991         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84992         Use the _ONCE methods, for efficiency.
84993         Check for fcntl.h.  In test program, include <errno.h>
84994         and <fcntl.h> if available.  Remove old K&R cruft from
84995         test program.  Check for common errors in GNU/Linux,
84996         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84997         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84998         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84999         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
85000         name accordingly.
85001         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
85002         accommodate new getcwd.c.
85003         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
85004         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
85005         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
85006         that's all we need now.
85007
85008 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85009
85010         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
85011         argp-parse.c depends on getopt internals, that means we should
85012         always use our getopt, to be on the safe side.
85013         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
85014         order not to spoil the result of an eventual previous invocation
85015         of gl_GETOPT_SUBSTITUTE.
85016
85017 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85018
85019         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
85020         redefinition warnings. To avoid them, include the defines
85021         in `#if !defined __need_getopt ... #endif'. The only place
85022         where __getopt_argv_const is used is in definitions
85023         of getopt_long and getopt_long_only below, which are as well
85024         protected by `#ifndef __need_getopt'.
85025         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
85026         __need_getopt after including <stdio.h> and <unistd.h> These
85027         headers might have defined it.
85028
85029 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85030
85031         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
85032
85033 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
85034
85035         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
85036         (futimens): New function, which uses futimes if available.
85037         (futimens, utimens): Support timespec==NULL, with same semantics
85038         as utime and utimens.
85039         * lib/utimens.h (futimens): New decl.
85040
85041 2004-11-23  Jim Meyering  <jim@meyering.net>
85042
85043         * lib/getopt_.h: Remove trailing blanks.
85044
85045 2004-11-23  Jim Meyering  <jim@meyering.net>
85046
85047         * lib/__fpending.c: Add comment.
85048
85049 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
85050
85051         * modules/canonicalize (Depends-on): Add xreadlink.
85052         Problem reported by James Youngman.
85053
85054 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
85055
85056         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
85057         New macros.
85058         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
85059         optopt): Use them instead of invoking ## directly; otherwise, the
85060         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
85061
85062 2004-11-19  Bruno Haible  <bruno@clisp.org>
85063
85064         * lib/strtok_r.c: Move comments from here...
85065         * lib/strtok_r.h: ... to here.
85066
85067 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85068
85069         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
85070         implementations that mishandle size_t overflow.
85071
85072 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
85073
85074         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
85075         might fail.  Problem reported by Yoann Vandoorselaere.
85076         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
85077         implementations that mishandle size_t overflow.
85078
85079 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85080
85081         * modules/canon-host (Depends-on): Add strdup.
85082
85083 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85084
85085         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
85086
85087 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85088
85089         * lib/canon-host.c: Include "strdup.h".
85090         (canon_host): Use getaddrinfo if available, so that IPv6 works.
85091         Use strdup instead of malloc/strcpy to duplicate strings.
85092
85093         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
85094         (human_space_before_unit): New constant.
85095         * lib/human.c (human_readable): Support it.
85096
85097         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
85098         (xgetcwd): Set errno correctly when failing.
85099         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
85100         the failure is actually due to a PATH_MAX problem.
85101
85102         Further getopt changes to make it more likely that glibc will
85103         buy the changes back.
85104         * lib/getopt.c (POSIXLY_CORRECT): New constant.
85105         (getopt): Use it, so to preserve glibc semantic
85106         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
85107         when compiling for libc.
85108         * lib/getopt_.h (__getopt_argv_const): Bring it back.
85109         (getopt_long, getopt_long_only): Use it.
85110
85111         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85112         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
85113         (getopt): Argv is now char * const *, as per standard.
85114         (_getopt_internal_r, _getopt_internal): Argv is now char **,
85115         not char *__getopt_argv_const *.
85116         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85117         _getopt_long_only_r): Likewise.
85118         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
85119         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85120         _getopt_long_r, _getopt_long_only_r): Likewise.
85121         * lib/getopt_.h (__getopt_argv_const): Remove.
85122         (getopt): Argv is now char * const *, as per standard.
85123
85124         * lib/getdate.y (tORDINAL): New token.
85125         (day, relunit): Allow it for relative times.
85126         (relative_time_table): Use tORDINAL for ordinals.
85127
85128 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
85129
85130         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
85131         Document that "second" isn't allowed as an ordinal number.
85132
85133 2004-11-16  Jim Meyering  <jim@meyering.net>
85134
85135         * modules/closeout (Depends-on): Add fpending.
85136
85137 2004-11-15  Jim Meyering  <jim@meyering.net>
85138
85139         * lib/closeout.c: Include "__fpending.h" once again.
85140         Include <stdbool.h>.
85141         (close_stdout): Don't fail just because stdout was closed initially,
85142         since some programs don't write to stdout in the normal course of
85143         operation (other than --version and --help), and we don't want this
85144         function to make e.g. `touch file >&-' fail.
85145         But do fail if it was closed and someone has tried to write to it.
85146         E.g., `printf foo >&-' must fail.
85147
85148 2004-11-13  Jim Meyering  <jim@meyering.net>
85149
85150         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
85151
85152 2004-11-12  Simon Josefsson  <jas@extundo.com>
85153
85154         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
85155         small doc fix is still pending.
85156
85157 2004-11-11  Simon Josefsson  <jas@extundo.com>
85158
85159         * modules/strtok_r: New file.
85160
85161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85162         strtok_r.
85163
85164 2004-11-11  Simon Josefsson  <jas@extundo.com>
85165
85166         * m4/strtok_r.m4: New file.
85167
85168         * m4/getopt.m4: Replace opterr.
85169
85170 2004-11-11  Simon Josefsson  <jas@extundo.com>
85171
85172         * lib/strtok_r.h, strtok_r.c: New file.
85173
85174 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85175
85176         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
85177         of replacing opterr, getopt, etc.  This should handle the
85178         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
85179
85180 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
85181
85182         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
85183         we can stop lying to compilers about the constness of argv when we
85184         are compiled outside glibc.
85185         (getopt, getopt_long, getopt_long_only): Use it.
85186         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
85187         _getopt_internal, getopt): Likewise.
85188         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
85189         _getopt_long_only_r): Likewise.
85190         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
85191         _getopt_long_r, _getopt_long_only_r): Likewise.
85192
85193         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
85194         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
85195         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
85196         the other external symbols.
85197         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
85198         declaration, since the above renaming now works around collisions.
85199
85200 2004-11-11  Jim Meyering  <jim@meyering.net>
85201
85202         * lib/linebreak.c: Remove trailing blanks.
85203         * lib/alloca_.h: Likewise.
85204         * lib/acosl.c: Likewise.
85205         * lib/euidaccess.c: Likewise.
85206         * lib/allocsa.h: Likewise.
85207
85208 2004-11-10  Simon Josefsson  <jas@extundo.com>
85209
85210         * m4/getaddrinfo.m4: New file.
85211
85212 2004-11-10  Simon Josefsson  <jas@extundo.com>
85213
85214         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
85215
85216 2004-11-10  Simon Josefsson  <jas@extundo.com>
85217
85218         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85219         getaddrinfo.
85220
85221         * modules/getaddrinfo: New file.
85222
85223 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85224
85225         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
85226
85227 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
85228
85229         * lib/mktime.c (SHR): New macro, which is a portable
85230         substitute for >> that should work even on Crays.
85231         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
85232         Problem reported by Mark D. Baushke in
85233         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
85234         * lib/getdate.y (SHR): Likewise.
85235         (tm_diff): Use it.
85236         * lib/strftime.c (SHR): Likewise.
85237         (tm_diff): Use it.
85238         * lib/quotearg.c (struct quoting_options): Use unsigned int for
85239         quote_these_too, so that right shifts are well defined.  All uses
85240         changed.
85241
85242 2004-11-10  Jim Meyering  <jim@meyering.net>
85243
85244         Ensure that no close failure goes unreported.
85245         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
85246         return early when it seems there's nothing to flush.
85247         Don't include __fpending.h.
85248
85249 2004-11-10  Jim Meyering  <jim@meyering.net>
85250
85251         * modules/closeout (Depends-on): Remove fpending.
85252
85253 2004-11-10  Jim Meyering  <jim@meyering.net>
85254
85255         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
85256
85257 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85258
85259         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
85260         gl_FUNC_STRFTIME.
85261         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
85262         and AC_REQUIRE when possible, to avoid duplicate checks.
85263         Check for <wchar.h>.
85264
85265 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
85266
85267         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
85268
85269 2004-11-09  Bruno Haible  <bruno@clisp.org>
85270
85271         * m4/sockpfaf.m4: New file.
85272
85273 2004-11-05  Bruno Haible  <bruno@clisp.org>
85274
85275         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
85276         Reported by Mark D. Baushke <mdb@cvshome.org>.
85277
85278 2004-11-04  Bruno Haible  <bruno@clisp.org>
85279
85280         2004-09-11  Bruno Haible  <bruno@clisp.org>
85281                 * allocsa.valgrind: New file.
85282         2004-02-06  Bruno Haible  <bruno@clisp.org>
85283                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
85284                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
85285                 Reported by Christopher Seip <chris.seip@hp.com>.
85286
85287 2004-11-04  Bruno Haible  <bruno@clisp.org>
85288
85289         * modules/allocsa (Files): Add lib/allocsa.valgrind.
85290         (Makefile.am): Distribute it.
85291
85292 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
85293
85294         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
85295         with errno == ERANGE if the buffer is too small.
85296         Problem reported by Mark D. Baushke.
85297
85298 2004-11-03  Albert Chin  <china@thewrittenword.com>
85299             Paul Eggert  <eggert@cs.ucla.edu>
85300
85301         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
85302         equivalent, substitute $ac_type for equivalent type rather than
85303         blindly using uint32_t *always* which won't work if uint32_t is not
85304         available.  Define _UINT32_T to work around typedef of uint32_t if
85305         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
85306         2.5.1.
85307
85308 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85309
85310         * m4/jm-macros.m4: Sync from coreutils.
85311         (gl_MACROS): Check for mbrlen, for pathchk.
85312         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85313
85314 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85315
85316         * lib/xreadlink.c (MAXSIZE): New macro.
85317         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85318         size does not exceed MAXSIZE.  Avoid cast.
85319         As suggested by Mark D. Baushke in
85320         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85321         if readlink fails with buffer size just under MAXSIZE, try again
85322         with MAXSIZE.
85323
85324 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85325
85326         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85327
85328 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85329         and  Paul Eggert  <eggert@cs.ucla.edu>
85330
85331         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85332         (get_date): Overparenthesize to avoid GCC warning.
85333
85334 2004-11-02  Bruno Haible  <bruno@clisp.org>
85335
85336         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85337         returns void.
85338
85339 2004-11-02  Bruno Haible  <bruno@clisp.org>
85340
85341         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85342         function returns void.
85343
85344 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85345
85346         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85347         fflush_unlocked, flockfile, funlockfile, funlockfile,
85348         fputs_unlocked, putc_unlocked.
85349
85350 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85351
85352         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85353         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85354         already declared.
85355
85356 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85357
85358         * modules/getdate (Files): Add doc/getdate.texi.
85359         (Depends-on): Add setenv, xalloc.
85360
85361 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85362
85363         * lib/getdate.y: Add support for TZ="foo" within a date string.
85364         Fix some bugs near time_t boundaries.  Reject dates with
85365         out-of-range components, e.g., "Sept 31".
85366         Include <stdlib.h>, "setenv.h", "xalloc.h".
85367         (ISDIGIT_LOCALE): Remove; unused.
85368         Note that the TZ and time functions used here are not reentrant.
85369         (mktime_ok, get_tz): New functions.
85370         (TZBUFSIZE): New constant.
85371         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85372         This requires that we sometimes generate our own TZ="XXX..." setting.
85373
85374 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85375
85376         * doc/getdate.texi: New file, from coreutils with modifications for
85377         the new TZ parsing.
85378
85379 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85380
85381         * lib/mktime.c (not_equal_tm): Remove redundant check.
85382
85383 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85384
85385         * modules/regex (lib_SOURCES): Add regex.c.
85386         Reported by James Youngman in
85387         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85388
85389 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85390
85391         * lib/getdate.y: Use Bison 1.875 features, and some minor
85392         code cleanups.  This change does not affect semantics.
85393         Don't include <stdlib.h>; no longer needed.
85394         Don't include unlocked-io.h; only the "#if TEST" code uses
85395         stdio, and performance isn't crucial there.
85396         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85397         Bison 1.875 features as described below.
85398         All uses of "PC." replaced by "pc->".
85399         (YYSTYPE): Add a forward declaration.
85400         (yylex, yyerror): Use full prototypes in forward decls.
85401         Use "%pure-parser" rather than obsolescent "%pure_parser".
85402         Use %parse-param and %lex-param instead of obsolescent
85403         YYPARSE_PARAM and YYLEX_PARAM.
85404         (meridian_table, month_and_day_table, time_units_table,
85405         relative_time_table, time_zone_table, military_table,
85406         lookup_zone, lookup_word, get_date):
85407         Use NULL instead of 0 where appropriate.
85408         (to_hour): Avoid abort (), to avoid a dependency on
85409         stdlib.h.
85410         (yyerror, yylex): Now accepts parser_control * arg.
85411         (main) [TEST]: Use '\0' rather than 0 for char.
85412
85413 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85414
85415         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85416
85417 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85418
85419         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85420         It's now the caller's responsibility to handle the case where
85421         !HAVE_GETPAGESIZE && !defined getpagesize.
85422
85423         * lib/mktime.c (leapyear): Arg is long int, not int.
85424
85425 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85426
85427         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85428
85429 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85430
85431         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85432         missing.  Problem reported by James Youngman.
85433
85434 2004-10-16  Simon Josefsson  <jas@extundo.com>
85435
85436         * gnulib-tool: Fix comments.  Fix parse problem.
85437         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85438
85439 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85440
85441         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85442         implementation of getopt_long.  Problem reported by Alexander Taler in:
85443         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85444
85445 2004-10-15  Bruno Haible  <bruno@clisp.org>
85446
85447         * gnulib-tool: Untabify. Initialize supplied_libname.
85448         (func_usage): More homogenous output.
85449         (func_modules_transitive_closure, func_modules_to_filelist,
85450         func_emit_lib_Makefile_am): New functions.
85451         (func_import): New function, extracted from big case statement. Use
85452         func_get_license, func_modules_transitive_closure,
85453         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85454         opt_lgpl. Don't use test -a, as it's not portable.
85455         (func_create_testdir): Use func_modules_transitive_closure,
85456         func_modules_to_filelist, func_emit_lib_Makefile_am.
85457
85458 2004-10-15  Bruno Haible  <bruno@clisp.org>
85459
85460         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85461
85462 2004-10-15  Bruno Haible  <bruno@clisp.org>
85463
85464         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85465         the portions belonging to each module.
85466         Suggested by Derek Robert Price <derek@ximbiot.com>.
85467
85468 2004-10-12  Simon Josefsson  <jas@extundo.com>
85469
85470         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85471         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85472         to real functions.
85473
85474 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85475
85476         * modules/vsnprintf: New file.
85477
85478 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85479
85480         * m4/vsnprintf.m4: New file.
85481
85482 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85483
85484         * lib/vsnprintf.h: New file.
85485         * lib/vsnprintf.c: New file.
85486
85487 2004-10-11  Bruno Haible  <bruno@clisp.org>
85488
85489         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85490         vsnprintf.
85491
85492 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85493
85494         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85495
85496 2004-10-07  Bruno Haible  <bruno@clisp.org>
85497
85498         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85499         fits into the provided buffer.
85500
85501 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85502
85503         * lib/diacrit.c, diacrit.h: Add GPL notice.
85504
85505         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85506         notice.
85507         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85508         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85509         This avoids a potential constant-folding bug.
85510
85511 2004-10-05  Bruno Haible  <bruno@clisp.org>
85512
85513         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85514         for the declaration of strsep.
85515
85516 2004-10-05  Bruno Haible  <bruno@clisp.org>
85517
85518         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85519
85520 2004-10-04  Simon Josefsson  <jas@extundo.com>
85521
85522         * modules/memmem: New file.
85523         * tests/test-memmem.c: New file.
85524         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85525
85526 2004-10-04  Simon Josefsson  <jas@extundo.com>
85527
85528         * m4/memmem.m4: New file.
85529
85530 2004-10-04  Simon Josefsson  <jas@extundo.com>
85531
85532         * lib/memmem.h: New file.
85533         * lib/memmem.c: New file, taken from glibc.
85534
85535 2004-10-04  Simon Josefsson  <jas@extundo.com>
85536
85537         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85538         '#ifdef USE_UNLOCKED_IO'.
85539
85540 2004-10-04  Simon Josefsson  <jas@extundo.com>
85541
85542         * config/srclist.txt: Add memmem from glibc.
85543
85544 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85545
85546         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85547
85548         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85549         modules/exclude, modules/getdate, modules/getline,
85550         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85551         modules/getusershell, modules/linebuffer, modules/md5,
85552         modules/mountlist, modules/posixtm, modules/readtokens,
85553         modules/readutmp, modules/regex, modules/sha1,
85554         modules/version-etc, modules/yesno:
85555         Remove dependency on unlocked-io.
85556
85557 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85558
85559         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85560
85561         * m4/unlocked-io.m4: Add copyright notice.
85562         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85563
85564 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85565
85566         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85567         * lib/xmalloc.c (xmemdup): Likewise.
85568         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85569         XFREE): Remove these long-obsolescent macros.
85570         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85571         * lib/xstrdup.c: Remove.
85572
85573         * lib/regex.c (re_comp): Cast gettext return value to char *,
85574         Problem reported by Martin Neitzel via Mark D. Baushke.
85575
85576 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85577
85578         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85579         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85580         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85581         regex.c, sha1.c, version-etc.c, yesno.c:
85582         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85583         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85584         the includer's responsibility.
85585
85586         Sync from coreutils.
85587
85588         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85589         points to the start of a string, as the C Standard says the
85590         resulting behavior is undefined.
85591
85592         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85593         simple -> simple_backups, numbered_existing ->
85594         numbered_existing_backups, numbered -> numbered_backups
85595         to avoid shadowing problems.  All uses changed.
85596         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85597         * lib/backupfile.c (check_extension, numbered_backup):
85598         Rename locals to avoid shadowing 'basename'.
85599         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85600         once.
85601
85602         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85603         * lib/.cvsignore: Add getopt.h.
85604
85605 2004-10-04  Bruno Haible  <bruno@clisp.org>
85606
85607         * modules/README: New file.
85608         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85609         not a module.
85610
85611 2004-10-02  Jim Meyering  <jim@meyering.net>
85612
85613         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85614
85615 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85616
85617         * modules/strsep: New file.
85618
85619 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85620
85621         * m4/strsep.m4: New file.
85622
85623 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85624
85625         * lib/strsep.h: New file.
85626         * lib/strsep.c: New file.
85627
85628 2004-10-01  Simon Josefsson  <jas@extundo.com>
85629
85630         * lib/snprintf.c (snprintf): Handle size==0.
85631
85632 2004-10-01  Simon Josefsson  <jas@extundo.com>
85633             Bruno Haible  <bruno@clisp.org>
85634
85635         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85636         (snprintf): Declare 'args'.
85637
85638 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85639
85640         * lib/snprintf.c: Remove comments as to why each header is needed.
85641
85642 2004-10-01  Bruno Haible  <bruno@clisp.org>
85643
85644         * MODULES.html.sh: Add strsep.
85645
85646 2004-09-30  Simon Josefsson  <jas@extundo.com>
85647
85648         * modules/snprintf: New file.
85649
85650 2004-09-30  Simon Josefsson  <jas@extundo.com>
85651
85652         * m4/snprintf.m4: New file.
85653
85654 2004-09-30  Simon Josefsson  <jas@extundo.com>
85655
85656         * lib/snprintf.h, lib/snprintf.c: New files.
85657
85658 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85659
85660         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85661         (hol_entry_help): Never translate an empty string.
85662         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85663         * lib/argp.h (OPTION_NO_TRANS): New option.
85664
85665 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85666
85667         * modules/argp (Maintainer): Replace Simon Josefsson
85668         by Sergey Poznyakoff.
85669
85670 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85671
85672         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85673         changes merged back into glibc.
85674
85675 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85676
85677         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85678
85679 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85680
85681         * lib/xvasprintf.c: Include xalloc.h.
85682         (xvasprintf): Use xalloc_die, not xmalloc_die.
85683
85684 2004-09-29  Bruno Haible  <bruno@clisp.org>
85685
85686         * modules/alloca-opt: New file, derived from modules/alloca.
85687         * modules/allocsa: Depend on alloca-opt instead of alloca.
85688         * modules/setenv: Likewise.
85689         * modules/vasnprintf: Likewise.
85690         * MODULES.html.sh: Add alloca-opt.
85691
85692 2004-09-28  Simon Josefsson  <jas@extundo.com>
85693
85694         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85695         LGPL, and to replace license template from GPL to LGPL.
85696
85697 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85698
85699         * modules/dummy: Change license to LGPL.
85700
85701 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85702
85703         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85704
85705 2004-09-24  Simon Josefsson  <jas@extundo.com>
85706
85707         * modules/minmax (License): Change from GPL to LGPL.
85708
85709 2004-09-23  Simon Josefsson  <jas@extundo.com>
85710
85711         * gnulib-tool (--import): Typo.
85712
85713 2004-09-23  Simon Josefsson  <jas@extundo.com>
85714
85715         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85716
85717 2004-09-22  Bruno Haible  <bruno@clisp.org>
85718
85719         * modules/*: Add 'License' field.
85720         * gnulib-tool: Accept --extract-license option.
85721         (func_get_license): New function.
85722
85723 2004-09-21  Bruno Haible  <bruno@clisp.org>
85724
85725         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85726         Reported by Simon Josefsson.
85727
85728 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85729
85730         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85731         gl_AC_TYPE_LONG_LONG.
85732
85733 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85734
85735         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85736
85737 2004-09-18  Simon Josefsson  <jas@extundo.com>
85738         and  Paul Eggert  <eggert@cs.ucla.edu>
85739
85740         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85741         calls with autoreconf.  Define GL_LIB.
85742
85743 2004-09-14  Karl Berry  <karl@gnu.org>
85744
85745         * config/srclist.txt: unsync setenv.c, sigh.
85746
85747 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85748
85749         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85750         Problem reported by Bruno Haible in:
85751         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85752
85753 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85754
85755         * config/srclist.txt: Comment out argp-pvh.c.
85756
85757 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85758
85759         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85760         in case some system header has #define'd it.  Problem reported by
85761         Soeren D. Schulze in
85762         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85763
85764 2004-09-09  Karl Berry  <karl@gnu.org>
85765
85766         * regex.[ch]: delete from the root.  These were supposed to be
85767                 synced with emacs cvs, but this has not happened for about
85768                 a year, and anyway nothing else uses emacs regex.[ch].
85769                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85770                 lib/regex[.ch] is untouched.
85771
85772 2004-09-09  Bruno Haible  <bruno@clisp.org>
85773
85774         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85775
85776 2004-09-09  Bruno Haible  <bruno@clisp.org>
85777
85778         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85779         modifications.
85780         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85781
85782 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85783
85784         * modules/xvasprintf: New file.
85785         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85786
85787 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85788
85789         * lib/xvasprintf.h: New file.
85790         * lib/xvasprintf.c: New file.
85791         * lib/xasprintf.c: New file.
85792
85793 2004-09-08  Bruno Haible  <bruno@clisp.org>
85794
85795         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85796
85797 2004-09-08  Bruno Haible  <bruno@clisp.org>
85798
85799         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85800         length is > INT_MAX.
85801         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85802         more.
85803
85804 2004-09-08  Bruno Haible  <bruno@clisp.org>
85805
85806         * lib/stdint_.h: New file, taken from GNU clisp.
85807
85808 2004-09-08  Bruno Haible  <bruno@clisp.org>
85809             Oskar Liljeblad  <oskar@osk.mine.nu>
85810
85811         * modules/stdint: New file.
85812         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85813
85814 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85815
85816         Import from coreutils.
85817         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85818         strings on unbounded length.  alloca's performance benefits aren't
85819         that important here.
85820         (V_STRDUP): Remove.
85821         (parse_with_separator): New function, with most of the internals
85822         of the old parse_user_spec.  Allow user to omit both user and group,
85823         for compatibility with FreeBSD.
85824         Clone only the user name, not the entire spec.
85825         Do not set *uid, *gid unless entirely successful.
85826         Avoid memory leak in some failing cases.
85827         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85828         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85829         (parse_user_spec): Rewrite to use parse_with_separator.
85830
85831 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85832
85833         * modules/userspec: Don't depend on alloca.
85834
85835 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85836
85837         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85838
85839 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85840
85841         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85842         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85843         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85844
85845 2004-08-16  Simon Josefsson  <jas@extundo.com>
85846
85847         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85848         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85849         Add --dry-run for --import.
85850         Let user provided command line parameters override configure.ac
85851         settings.
85852
85853 2004-08-12  Simon Josefsson  <jas@extundo.com>
85854
85855         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85856         as discussed with Paul Eggert in threads rooted at
85857         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85858         and
85859         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85860         Before, the test was empty, and relied on ELIDE_CODE in source
85861         code.)
85862         (gl_PREREQ_GETOPT): New macro.
85863         (gl_GETOPT): Use them.
85864
85865 2004-08-12  Simon Josefsson  <jas@extundo.com>
85866
85867         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85868         * lib/getopt_.h: Renamed from getopt.h.
85869
85870 2004-08-12  Simon Josefsson  <jas@extundo.com>
85871
85872         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85873         Change default library name from libfoo to libgnu.
85874         Now, if you have a configure.ac that says:
85875                 gl_SOURCE_BASE(gl)
85876                 gl_M4_BASE(gl/m4)
85877                 gl_MODULES(error getopt etcetera)
85878                 gl_INIT
85879         you can import all you need by running:
85880                 ../gnulib/gnulib-tool --import
85881
85882         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85883         (Makefile.am): Rewrite, use logic from argz.
85884         (Include): Use <getopt.h> instead of "getopt.h".
85885
85886 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85887
85888         * modules/argp (Files): Add m4/unlocked-io.m4.
85889         (Depends-on): Add extensions.
85890
85891 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85892
85893         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85894         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85895         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85896         Check for program_invocation_name, program_invocation_short_name,
85897         flockfile, funlockfile, features.h, _getopt_long_only_r.
85898
85899 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85900
85901         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85902         its complicated substitute.
85903         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85904         and program_invocation_name.
85905         (__argp_basename) [!_LIBC]: Remove; the only use was
85906         replaced by its body.
85907         (__argp_short_program_name): Change condition from
85908         !defined __argp_short_program_name to
85909         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85910         to match argp-namefrob.h.
85911         (__argp_failure): Don't assume strerror_r returns char *.
85912         * lib/argp-parse.c (N_): Define unconditionally.
85913         (argp_default_options): Fill out initializers with 0 to avoid
85914         gcc warnings.
85915
85916 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85917
85918         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85919         getopt1.c.
85920
85921 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85922
85923         Merge from coreutils.
85924
85925         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85926
85927         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85928         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85929
85930 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85931
85932         Merge from coreutils.
85933
85934         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85935         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85936         for Reliant Unix 5.43.
85937
85938         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85939         (union fooround): Use uintmax_t, not long int.
85940         The rest is a merge from libc:
85941         [defined _LIBC]: Include <shlib-compat.h>.
85942         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85943
85944         * lib/settime.c (settime): Recode to avoid warning with
85945         Sun Forte C 6U2.
85946
85947         * lib/strverscmp.c: Convert to UTF-8.
85948
85949 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85950
85951         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85952         m4/uintmax_t.m4.
85953
85954 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85955
85956         * modules/xalloc-die: New file.
85957         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85958
85959         * modules/md5 (Files): Add m4/uint32_t.m4.
85960         * modules/sha1: Renamed from modules/sha.
85961         (Files):
85962         Rename lib/sha.h to lib/sha1.h.
85963         Rename lib/sha.c to lib/sha1.c.
85964         Rename m4/sha.m4 to m4/sha1.m4.
85965         (lib_SOURCES): Likewise.
85966         (configure.ac): Rename gl_SHA to gl_SHA1.
85967         (Include): sha.h -> sha1.h.
85968
85969 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85970
85971         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85972         * m4/sha1.m4: Renamed from sha.m4.
85973         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85974
85975 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85976
85977         * lib/obstack.h (obstack_empty_p):
85978         Don't assume that chunk->contents is suitably aligned.
85979         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85980         Likewise. Problem reported by Benno in
85981         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85982
85983         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85984         readable.  This could be improved further but it'd take some work.
85985
85986 2004-08-08  Simon Josefsson  <jas@extundo.com>
85987
85988         * modules/xgethostname (Depends-on): Remove exit and error (not
85989         used).
85990
85991         * modules/getpass-gnu: Add getpass.h.
85992         (Depends-on): Add stdbool.
85993         * modules/getpass: Add getpass.h.
85994
85995 2004-08-08  Simon Josefsson  <jas@extundo.com>
85996
85997         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85998         Check getpass declaration.
85999
86000 2004-08-08  Simon Josefsson  <jas@extundo.com>
86001
86002         * lib/xgethostname.c: Don't include error.h (not used).
86003
86004         * lib/getpass.h: Add.
86005         * lib/getpass.c: Include getpass.h first.
86006
86007 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
86008
86009         * lib/xalloc-die.c: New file.
86010         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
86011         All uses removed.
86012         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
86013         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
86014         xalloc-die.c.
86015         (_, N_, xalloc_die): Move to xalloc-die.c.
86016         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
86017         so that we needn't mess with xalloc_msg_memory_exhausted.
86018
86019         * lib/sha1.h: Renamed from sha.h.
86020         (SHA1_H): Renamed from _SHA_H.
86021         (sha1_ctx): Renamed from sha_ctx.
86022         (sha1_init_ctx): Renamed from sha_init_ctx.
86023         (sha1_process_block): Renamed from sha_process_block.
86024         (sha1_process_bytes): Renamed from sha_process_bytes.
86025         (sha1_finish_ctx): Renamed from sha_finish_ctx.
86026         (sha1_read_ctx): Renamed from sha_read_ctx.
86027         (sha1_stream): Renamed from sha_stream.
86028         (sha1_buffer): Renamed from sha_buffer.
86029         * lib/sha1.c: Likewise; renamed from sha.c.
86030         Do not include <sys/types.h>.
86031         Include <stddef.h> rather than <stdlib.h>.
86032
86033 2004-08-08  Bruno Haible  <bruno@clisp.org>
86034
86035         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
86036         FILESYSTEM_PREFIX_LEN.
86037         * lib/progreloc.c: Likewise.
86038         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
86039
86040 2004-08-06  Simon Josefsson  <jas@extundo.com>
86041
86042         * modules/progname (Depends-on): Don't depend on stdbool.
86043
86044 2004-08-06  Simon Josefsson  <jas@extundo.com>
86045
86046         * modules/getsubopt: New file.
86047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86048         getsubopt.
86049
86050 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86051
86052         More merge from coreutils.
86053
86054         * m4/utimens.m4, m4/utimecmp.m4: New files.
86055         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
86056         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
86057         prereq.m4, sha.m4: Import changes from coreutils.
86058
86059 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86060
86061         More merge from coreutils.
86062         * modules/raise, modules/readtokens0, modules/utimens:
86063         * modules/utimecmp, module/xnanosleep: New files.
86064         * modules/strftime: Add lib/strftime.h.
86065         Change include from <time.h> to "strftime.h".
86066         * modules/yesno: Add lib/yesno.h.
86067         * modules/backupfile: Remove lib/addext.c.
86068         * modules/euidaccess: Add stat-macros.h.
86069         * modules/canonicalize, modules/euidaccess,
86070         modules/filemode, modules/lchown, modules/makepath,
86071         modules/rmdir, modules/stat: Likewise.
86072
86073 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86074
86075         Merge from tar.
86076         * lib/argp-help.c (make_hol, hol_append): Don't assume that
86077         SIZE_MAX is a valid preprocessor constant.
86078         (__argp_basename): Change from "#ifndef _LIBC"
86079         to "#ifndef __argp_short_program_name", so that
86080         we don't compile these functions for tar.
86081
86082         More merges from coreutils.
86083         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
86084         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
86085         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
86086         * lib/addext.c: Remove; no longer needed.
86087         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
86088         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
86089         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
86090         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
86091         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
86092         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
86093         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
86094         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
86095         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
86096         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86097         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
86098         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
86099         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
86100         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
86101         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
86102         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
86103         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
86104         Import changes from coreutils.
86105
86106 2004-08-05  Simon Josefsson  <jas@extundo.com>
86107
86108         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
86109
86110 2004-08-05  Simon Josefsson  <jas@extundo.com>
86111
86112         * m4/getsubopt.m4: New file.
86113
86114 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86115
86116         Merge from coreutils.
86117
86118         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
86119         * m4/getcwd-path-max.m4: New files.
86120
86121         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
86122         FILESYSTEM_PREFIX_LEN ->
86123         FILE_SYSTEM_PREFIX_LEN.
86124         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
86125         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
86126         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
86127         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
86128
86129         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
86130         prerequisite modules now handle the DOS stuff.
86131         Don't check for unistd.h.
86132
86133 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86134
86135         Merge from coreutils.
86136
86137         * lib/.gdb-history: Remove; this doesn't belong here.
86138
86139         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
86140         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
86141         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
86142         * lib/getcwd.c: New files.
86143
86144         * lib/dirname.h: Include <stdbool.h>.
86145         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
86146         for consistency with POSIX terminology.  All uses changed.
86147         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
86148         (strip_trailing_slashes): Use bool for booleans.
86149         * lib/stripslash.c (strip_trailing_slashes): Likewise.
86150
86151         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
86152         sometimes returns a positive errno value even when it succeeds.
86153         (print_errno_message) [!LIBC]: Fall back on strerror if
86154         __strerror_r fails.
86155
86156         * lib/path-concat.c (mempcpy): Don't define if a system header defines
86157         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
86158         (longest_relative_suffix): New function.
86159         (path_concat): Use it.  Assume first argument is not NULL.
86160         Port to DOS.  Omit redundant separators.
86161         Report an error instead of returning NULL.
86162         Use mempcpy instead of memcpy.
86163         (xpath_concat): Remove: not declared or used.
86164
86165         * lib/same.h: Include <stdbool.h>
86166         (same_name): Return bool, not int.
86167         * lib/same.c (same_name): Likewise.
86168         (errno): Don't declare; we assume C89 or better now.
86169
86170         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
86171         if not already defined.
86172
86173         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
86174         * lib/dup-safer.c (errno): Likewise.
86175
86176 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
86177
86178         Merge from coreutils.
86179         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
86180         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
86181         * modules/path-concat: Don't depend on strdup.
86182
86183 2004-08-03  Simon Josefsson  <jas@extundo.com>
86184
86185         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
86186         * lib/progname.h: Don't include stdbool.h.
86187
86188 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86189
86190         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
86191         * MODULES.html.sh (func_all_modules): Remove fatal.
86192
86193 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86194
86195         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
86196
86197 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
86198
86199         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
86200         working.
86201
86202 2004-08-02  Simon Josefsson  <jas@extundo.com>
86203
86204         * lib/getsubopt.h: New file, with comments from Bruno Haible.
86205         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
86206         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
86207
86208 2004-08-01  Simon Josefsson  <jas@extundo.com>
86209
86210         * lib/xgetdomainname.c: Include stdlib.h, for free().
86211
86212 2004-07-19  Bruno Haible  <bruno@clisp.org>
86213
86214         * MODULES.html.sh (func_all_modules): Add dummy.
86215
86216 2004-07-16  Simon Josefsson  <jas@extundo.com>
86217
86218         * modules/dummy: New file.
86219
86220 2004-07-16  Simon Josefsson  <jas@extundo.com>
86221
86222         * lib/dummy.c: New file.
86223
86224 2004-07-16  Bruno Haible  <bruno@clisp.org>
86225
86226         * lib/backupfile.h: Add extern "C" for C++.
86227         * lib/closeout.h: Likewise.
86228         * lib/copy-file.h: Likewise.
86229         * lib/findprog.h: Likewise.
86230         * lib/full-write.h: Likewise.
86231         * lib/pathname.h: Likewise.
86232         * lib/progname.h: Likewise.
86233         * lib/stpcpy.h: Likewise.
86234         * lib/stpncpy.h: Likewise.
86235         * lib/strcase.h: Likewise.
86236         * lib/strstr.h: Likewise.
86237         * lib/xalloc.h: Likewise.
86238
86239         * lib/mbswidth.h: Add extern "C" for C++.
86240         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
86241
86242 2004-07-13  Robert Millan  <robertmh@gnu.org>
86243
86244         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
86245
86246 2004-07-09  Simon Josefsson  <jas@extundo.com>
86247
86248         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
86249         failed without this.)
86250
86251 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86252
86253         * modules/chown (Files): Add lib/fchown-stub.c, since
86254         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
86255
86256 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
86257
86258         * lib/fchown-stub.c: New file.
86259
86260 2004-06-24  Jim Meyering  <jim@meyering.net>
86261
86262         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
86263
86264 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86265
86266         * modules/argz: Omit "#include".
86267
86268         * MODULES.html.sh (func_all_modules): Add calloc, to match
86269         2004-06-01 addition of calloc module.
86270
86271 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86272
86273         * m4/argz.m4: New file, which is autoupdated from libtool.
86274
86275 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86276
86277         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
86278         libtool.
86279
86280 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86281
86282         * config/srclist-update: Don't insist on "USA." before the
86283         close-comment, as libtool omits the period and puts the */ on a
86284         separate line.
86285         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
86286         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
86287
86288 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
86289
86290         * modules/argz: New file.
86291         * MODULES.html.sh (func_all_modules): Add argz.
86292
86293 2004-06-12  Jim Meyering  <jim@meyering.net>
86294         and  Paul Eggert  <eggert@cs.ucla.edu>
86295
86296         * modules/hash (Files): Add lib/xalloc.h.
86297         * modules/pipe (Depends-on): Add wait-process.
86298         * modules/stat (Depends-on): Add xalloc.
86299         * modules/userspec (Files): Add lib/userspec.h.
86300         * modules/xstrto
86301
86302         Upgrade from gettext-0.13.
86303         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
86304         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
86305         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
86306
86307 2004-06-10  Jim Meyering  <jim@meyering.net>
86308
86309         * lib/calloc.c: New file.
86310
86311 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86312
86313         * lib/getdate.y (yylex): Allow space between sign and number.
86314         Problem reported by Dan Jacobson.
86315
86316 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86317
86318         Merge from coreutils CVS.
86319
86320         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86321         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86322         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86323         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86324         xstrtol.m4: Fix copyright date and/or serial number.
86325
86326         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86327         See if we need an fchown replacement.
86328         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86329         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86330         and use the replacement function if we detect either defect.
86331
86332         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86333         gl_UTIMECMP.
86334
86335 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86336         and  Jim Meyering  <jim@meyering.net>
86337
86338         Merge from coreutils CVS.
86339
86340         * lib/stat-macros.h: New file, with contents from file-type.h
86341         and coreutils' system.h.
86342         * lib/file-type.c: Include "stat-macros.h".
86343         * lib/file-type.h (file_type): Move all macro definitions to new file,
86344         stat-macros.h.
86345
86346         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86347         Wrap old code with this conditional.
86348         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86349         function that does not dereference symlinks.
86350         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86351
86352         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86353         dependency problems.
86354         (xreadlink): Accept new arg SIZE, for efficiency.
86355         All decls and uses changed.
86356         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86357
86358         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86359         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86360
86361         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86362         sysexits.h.
86363
86364 2004-06-01  Jim Meyering  <jim@meyering.net>
86365
86366         * m4/calloc.m4: New file.
86367
86368 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86369
86370         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86371         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86372         Also, fix a typo in a diagnostic.
86373
86374 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86375
86376         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86377         or AC_FUNC_REALLOC.
86378
86379 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86380
86381         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86382         macros to be defined.
86383         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86384         the allocator returns NULL because the requested size is zero.
86385
86386 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86387
86388         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86389         var.  Add comment explaining why libc still defines it.  This
86390         merges the following patch from glibc:
86391         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86392
86393 2004-05-20  Andreas Schwab  <schwab@suse.de>
86394
86395         * m4/free.m4: Replace free if it not known to work, not the other
86396         way round.
86397
86398 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86399
86400         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86401         present in glibc since revision 1.1 of this file.
86402         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86403         obstack_alignment_mask, obstack_alloc, obstack_base,
86404         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86405         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86406         obstack_grow0, obstack_init, obstack_int_grow,
86407         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86408         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86409         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86410         nonexistent functions.
86411
86412 2004-05-18  Karl Berry  <karl@gnu.org>
86413
86414         * config/srclist.txt: break link for vasnprintf.c.
86415
86416 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86417
86418         Port obstack to the AS/400, where pointers are 16 bytes wide and
86419         you cannot cast an integer to a valid pointer.  This patch is
86420         currently waiting to be integrated into glibc; see
86421         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86422
86423         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86424         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86425         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86426         (struct obstack): temp member is now a union of a pointer and
86427         an integer, instead of an integer.  All integer uses changed.
86428         This does not affect the physical layout of struct obstack,
86429         except on hosts (like the AS/400) where the size or alignment of
86430         void * is greater than that of ptrdiff_t.
86431         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86432         __STDC__)]: Store temporary in pointer member of union, not
86433         integer member.
86434         * lib/obstack.c: Include <stddef.h>, for offsetof.
86435         (struct fooalign): Remove; it doesn't need a name.
86436         (union fooround): Change double to long double, and add void *.
86437         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86438         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86439         not a macro.  Hence the values are always int; so remove all
86440         casts-to-int in uses.
86441
86442 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86443
86444         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86445         we can get this patch merged into glibc.
86446
86447 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86448             Paul Eggert  <eggert@cs.ucla.edu>
86449
86450         * m4/argp: Depend on alloca.
86451
86452 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86453             Paul Eggert  <eggert@cs.ucla.edu>
86454
86455         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86456         freecoding.
86457
86458 2004-05-17  Bruno Haible  <bruno@clisp.org>
86459
86460         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86461         precision that consists of a '.' followed by an empty digit string.
86462         Patch by Tor Lillqvist <tml@iki.fi>.
86463
86464 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86465
86466         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86467         for backward compatibility with older code.  We need our own
86468         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86469         it under some other name, and our alloca.h will define it.
86470
86471 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86472             Derek Price  <derek@ximbiot.com>
86473
86474         * lib/alloca.c: Include <alloca.h>, to get our interface.
86475         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86476         include <alloca.h> first.  Use C89 prototype for alloca; this
86477         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86478         Use #elif for simplicity, since we can assume C89 now.
86479         Don't try to source the system alloca.h since it will not be found
86480         and to prevent recursively including its replacement.
86481         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86482         * lib/regex.c: Likewise.
86483
86484 2004-05-16  Derek Price  <derek@ximbiot.com>
86485             Paul Eggert  <eggert@cs.ucla.edu>
86486
86487         getline cleanup.  This changes the getndelim2 API: both order of
86488         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86489         no delimiter).
86490
86491         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86492         interface does that.
86493         (getline): Always use getdelim, so that we don't have two
86494         copies of this code.
86495         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86496         if available.
86497         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86498         (GETNDELIM2_MAXIMUM): New macro.
86499         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86500         instead of the old practice of delim2==0.  All callers changed.
86501         Return -1 on overflow, instead of returning junk.
86502         Do not set *linesize unless allocation succeeds.
86503         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86504         that we include sys/types.h.
86505         * lib/getnline.h: Likewise.
86506         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86507         (getndelim2): Reorder arguments.
86508         * lib/getnline.c (getnline, getndelim):
86509         Don't discard the NMAX argument.
86510         (getnline): Invoke getndelim, to avoid code duplication.
86511         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86512         of (size_t) -1 by callers of the getnline family.
86513
86514 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86515
86516         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86517         Check for gettimeofday.
86518         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86519         Check for settimeofday, stime.
86520
86521 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86522
86523         * lib/nanosleep.c (suspended): Change its type from int to
86524         sig_atomic_t volatile.
86525         (first_call): Make it private to rpl_nanosleep, and have it
86526         be zero initially as that's a bit faster.
86527         (my_usleep): Round up fractional times instead of truncating them,
86528         as this is the usual meaning for 'sleep'.
86529
86530         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86531         doesn't work.
86532         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86533         (ENOSYS): Define if not defined.
86534         (settime): Fall back on stime if it exists and settimeofday fails.
86535         But don't bother with fallbacks if a method fails with errno == EPERM.
86536
86537 2004-05-11  Jim Meyering  <jim@meyering.net>
86538
86539         Prior to this change, the save_cwd caller required read access to the
86540         current directory on most systems (ones with the fchdir function).
86541
86542         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86543         fails, try write-only, and finally, resort to using xgetcwd.
86544
86545 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86546
86547         * lib/obstack.c, obstack.h: Import changes from libc.
86548
86549 2004-04-28  Bruno Haible  <bruno@clisp.org>
86550
86551         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86552         also implicitly appends .exe to executables.
86553         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86554         accepts Windows pathnames.
86555         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86556         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86557         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86558         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86559         Reported by Derek Robert Price <derek@ximbiot.com>.
86560
86561 2004-04-21  Karl Berry  <karl@gnu.org>
86562
86563         * config/srclist.txt (localcharset.c): break sync.
86564
86565 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86566
86567         * m4/host-os.m4: Add a copyright notice.
86568
86569 2004-04-20  Jim Meyering  <jim@meyering.net>
86570
86571         Change UTILS_ to gl_ in AC_DEFINE'd names.
86572         Change utils_- and jm_-prefixed variables, too.
86573         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86574         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86575         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86576
86577         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86578         Don't emit trailing blanks.
86579         Also rename jm_-prefixed variables to have gl_ prefix.
86580
86581         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86582         Also rename jm_-prefixed variables to have gl_ prefix.
86583
86584         * m4/jm-macros.m4: Reflect the renamings.
86585         * m4/prereq.m4: Likewise.
86586
86587 2004-04-20  Jim Meyering  <jim@meyering.net>
86588
86589         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86590         memory.
86591
86592 2004-04-20  Jim Meyering  <jim@meyering.net>
86593             Bruno Haible  <bruno@clisp.org>
86594
86595         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86596         memory when realloc fails.
86597
86598 2004-04-19  Jim Meyering  <jim@meyering.net>
86599
86600         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86601         now that readutmp.c may call `free (0)'.
86602
86603 2004-04-19  Bruno Haible  <bruno@clisp.org>
86604
86605         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86606         * m4/inttypes_h.m4: Likewise.
86607         * m4/stdint_h.m4: Likewise.
86608         * m4/intmax_t.m4: Likewise.
86609         * m4/uintmax_t.m4: Likewise.
86610
86611 2004-04-18  Jim Meyering  <jim@meyering.net>
86612
86613         * m4/prereq.m4: Don't forbid jm_ prefix.
86614
86615         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86616         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86617         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86618         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86619         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86620         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86621         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86622         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86623         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86624         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86625         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86626         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86627         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86628         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86629         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86630         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86631         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86632         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86633         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86634
86635 2004-04-18  Jim Meyering  <jim@meyering.net>
86636
86637         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86638         failure, don't leak memory and do call END_UTMP_ENT.
86639
86640 2004-04-16  Jim Meyering  <jim@meyering.net>
86641
86642         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86643         coreutils' stat program.
86644         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86645
86646 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86647
86648         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86649         C89.
86650         (CHAR_BIT): Remove, since we assume C89.
86651         Include <stdint.h> if available, as per current Autoconf CVS advice.
86652
86653 2004-03-31  Jim Meyering  <jim@meyering.net>
86654
86655         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86656         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86657         * m4/xalloc.m4: Likewise.
86658
86659 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86660
86661         Merge from coreutils.
86662
86663         * m4/inttostr.m4: New file.
86664         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86665         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86666         Require gl_CLOCK_TIME.
86667         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86668
86669 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86670
86671         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86672         not bool, to be more consistent with Unix conventions.
86673         Suggested by Bruno Haible.
86674
86675         Merge from coreutils.
86676
86677         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86678         * lib/umaxtostr.c: New files.
86679
86680         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86681         the usual <time.h> dance.
86682         (get_date): Change signature to support fractional time stamps.
86683         All callers changed.
86684         * lib/getdate.y: Include "getdate.h" first, as we can now
86685         assume C89 and don't need to worry about 'const'.
86686         Similarly, include "unlocked-io.h" near start, not in middle.
86687         Include <limits.h>.
86688         (textint.value): Use long int rather than int.
86689         (textint.digits): Use size_t rather than int.
86690         (BILLION, LOG10_BILLION): New constants.
86691         (parser_control): New member rel_ns.  Members day_ordinal,
86692         time_zone, month, day, hour, minutes, rel_year, rel_month,
86693         rel_day, rel_hour, rel_minutes, rel_seconds
86694         are now long int, not int.  Member seconds is now struct timespec,
86695         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86696         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86697         not int.
86698         (%union.intval): Now long int, not int.
86699         New member timespec.
86700         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86701         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86702         (spec): Now is a timespec or an item list.
86703         (timespec, items): New nonterminals.
86704         (time, rel, relunit, number, get_date):
86705         Add support for fractional seconds.
86706         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86707         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86708         (to_hour): First arg is now long int, not int.
86709         (to_year): Returns long int, not int.
86710         Don't treat year -70 like 70.
86711         (tm_diff): Returns long int, not int.
86712         (lookup_word): Use bool instead of int when appropriate.
86713         (yylex): Use size_t for count, not int.
86714         Detect overflow when parsing large integer constants.
86715         Add support for fractions.
86716         (get_date): Make pointers 'const' if possible.
86717         Use more-portable code to detect integer overflow.
86718         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86719         Don't use ctime; it's not reliable if the year has >4 digits.
86720
86721         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86722         This is for compatibility with BSD.
86723
86724         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86725         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86726         From coreutils' system.h.
86727
86728         * lib/userspec.c: Don't include "posixver.h".
86729         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86730         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86731         compatible extension.  Simplify code by removing a boolean int
86732         that was always nonzero if a string was nonnull.
86733
86734 2004-03-30  Jim Meyering  <jim@meyering.net>
86735
86736         Merge from coreutils.
86737
86738         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86739         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86740         on some systems one must include <grp.h> before it.
86741         Reported by Christian Krackowizer.
86742
86743 2004-03-30  Jim Meyering  <jim@meyering.net>
86744
86745         Merge from coreutils.
86746
86747         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86748
86749         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86750         an empty input stream.
86751
86752         * lib/readtokens.c: Include <stdbool.h>.
86753         (readtoken): Use `size_t' rather than int/long.
86754         All callers adjusted.
86755         Use `bool' rather than `int' where appropriate.
86756         Use memset rather than an explicit loop.
86757         Use x2nrealloc rather than xrealloc.
86758         Allow the use of `\0' as a delimiter.
86759         (readtokens): Likewise.
86760         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86761
86762 2004-03-30  Jim Meyering  <jim@meyering.net>
86763
86764         * m4/realloc.m4: Remove file, since now it does no more than
86765         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86766         the `configure.ac' section of module/realloc.
86767         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86768
86769 2004-03-30  Bruno Haible  <bruno@clisp.org>
86770
86771         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86772         nonnull.
86773
86774 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86775
86776         Merge changes to getloadavg.c from coreutils and Emacs.
86777
86778         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86779         Define to an expression, not to the empty string.
86780         Include cloexec.h and xalloc.h.
86781         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86782         Use set_cloexec_flag rather than rolling our own.
86783         * lib/cloexec.c, lib/cloexec.h: New files.
86784
86785 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86786
86787         * m4/cloexec.m4: New file.
86788
86789 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86790
86791         * lib/getopt.h: Sync with libc CVS.
86792
86793 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86794             Bruno Haible  <bruno@clisp.org>
86795
86796         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86797         mbswidth.
86798
86799 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86800             Bruno Haible  <bruno@clisp.org>
86801
86802         * lib/mbswidth.h: Include <wchar.h> only if
86803         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86804         <wchar.h>.
86805         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86806
86807 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86808
86809         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86810         Sync with libc CVS.
86811         * lib/getopt_int.h: New file, also synced from libc.
86812
86813 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86814
86815         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86816         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86817         Bring back getopt.c, getopt.h, getopt1.c.
86818
86819 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86820
86821         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86822         All uses changed.  Check for sa_sigaction member; this fixes
86823         a bug first reported by Jason Andrade in
86824         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86825
86826 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86827
86828         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86829         '#if' expressions.  Unlike the code it replaces, it does not
86830         depend on (defined _SC_PAGESIZE).  However, it does depend on
86831         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86832         first reported by Jason Andrade in
86833         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86834
86835 2004-02-25  Simon Josefsson  <jas@extundo.com>
86836
86837         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86838
86839 2004-02-25  Simon Josefsson  <jas@extundo.com>
86840
86841         * lib/strdup.h: New file.
86842         * lib/strdup.c: Include it.
86843         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86844         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86845
86846 2004-02-23  Karl Berry  <karl@gnu.org>
86847
86848         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86849         (from fencepost.gnu.org:/gd/gnuorg).
86850
86851 2004-02-23  Karl Berry  <karl@gnu.org>
86852
86853         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86854         * config/srclist.txt: add maintain/standards documents.
86855
86856 2004-02-18  Bruno Haible  <bruno@clisp.org>
86857
86858         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86859         Reported by Derek Robert Price <derek@ximbiot.com>.
86860
86861 2004-02-16  Karl Berry  <karl@gnu.org>
86862
86863         * config/mkinstalldirs, install-sh: update from automake.
86864
86865 2004-02-06  Karl Berry  <karl@gnu.org>
86866
86867         * m4/po.m4: update from gettext 0.14.1.
86868
86869 2004-02-06  Karl Berry  <karl@gnu.org>
86870
86871         * lib/config.charset: update from gettext 0.14.1.
86872
86873 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86874
86875         Add comments and code, prompted by suggestions from Bruno Haible
86876         for sh-quote.
86877         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86878         describing the enum quoting_style values.
86879         * lib/quotearg.c (quotearg_alloc): New function.
86880         (quotearg_buffer_restyled): Treat lone { and } as special.
86881         Treat = as special.  Work around bug with older shells
86882         that "see" a '\' that is really the 2nd byte of a multibyte char.
86883         Quote empty string with shell_quoting_style.
86884
86885 2004-02-03  Bruno Haible  <bruno@clisp.org>
86886
86887         * m4/pipe.m4: New file, from GNU gettext.
86888
86889 2004-02-03  Bruno Haible  <bruno@clisp.org>
86890
86891         * lib/pipe.h: New file, from GNU gettext.
86892         * lib/pipe.c: New file, from GNU gettext.
86893
86894 2004-01-27  Bruno Haible  <bruno@clisp.org>
86895
86896         * m4/execute.m4: New file, from GNU gettext.
86897
86898 2004-01-27  Bruno Haible  <bruno@clisp.org>
86899
86900         * lib/execute.h: New file, from GNU gettext.
86901         * lib/execute.c: New file, from GNU gettext.
86902         * lib/w32spawn.h: New file, from GNU gettext.
86903
86904 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86905
86906         Merge from diffutils.
86907
86908         * lib/file-type.c (file_type): Add typed memory objects.
86909         * lib/file-type.h (S_TYPEISTMO): New macro.
86910
86911         * lib/c-stack.h (c_stack_action): Remove argv argument.
86912         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86913         (die): Don't calculate message unless segv_action returns.
86914         (get_stack_location, min_address_from_argv, max_address_from_argv,
86915         volatile stack_base, volatile_stack_size): Remove.
86916         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86917         that every segmentation violation is a stack overflow.  (Ouch!)
86918         See Debian bug 136249 (still outstanding) for more info about why
86919         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86920
86921 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86922
86923         Exit-status fix from coreutils.
86924
86925         Use exit_failure consistently in place of EXIT_FAILURE,
86926         so that program exit statuses are consistent on failure.
86927
86928         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86929         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86930         * lib/argmatch.h: Comment fix to match the above.
86931         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86932         Now a macro referring to exit_failure, instead of a separate
86933         variable.  Include "exitfail.h" to get it.
86934         * lib/xstrtol.h: Include "exitfail.h".
86935         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86936
86937         * lib/long-options.c (parse_long_options): Use prototype
86938         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86939         for clarity.
86940
86941 2004-01-21  Jim Meyering  <jim@meyering.net>
86942
86943         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86944         so as not to conflict with a different-sized __mktime_internal
86945         function in GNU libc.
86946         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86947         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86948
86949 2004-01-20  Karl Berry  <karl@gnu.org>
86950
86951         * config/config.guess: update from config.
86952
86953         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86954
86955 2004-01-20  Bruno Haible  <bruno@clisp.org>
86956
86957         Safer stack allocation.
86958         * lib/setenv.c: Include allocsa.h.
86959         (alloca): Remove fallback definition.
86960         (freea): Remove macro.
86961         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86962         instead of freea.
86963
86964 2004-01-20  Bruno Haible  <bruno@clisp.org>
86965
86966         * m4/eealloc.m4: New file, from GNU gettext.
86967
86968 2004-01-20  Bruno Haible  <bruno@clisp.org>
86969
86970         * m4/allocsa.m4: New file, from GNU gettext.
86971
86972 2004-01-20  Bruno Haible  <bruno@clisp.org>
86973
86974         * lib/xallocsa.h: New file, from GNU gettext.
86975         * lib/xallocsa.c: New file, from GNU gettext.
86976
86977 2004-01-20  Bruno Haible  <bruno@clisp.org>
86978
86979         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86980
86981 2004-01-20  Bruno Haible  <bruno@clisp.org>
86982
86983         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86984         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86985         specially.
86986
86987 2004-01-20  Bruno Haible  <bruno@clisp.org>
86988
86989         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86990         patch.
86991
86992 2004-01-20  Bruno Haible  <bruno@clisp.org>
86993
86994         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86995
86996 2004-01-20  Bruno Haible  <bruno@clisp.org>
86997
86998         * lib/eealloc.h: New file.
86999
87000 2004-01-20  Bruno Haible  <bruno@clisp.org>
87001
87002         * lib/binary-io.h: Avoid warnings on Cygwin.
87003
87004 2004-01-20  Bruno Haible  <bruno@clisp.org>
87005
87006         * lib/allocsa.h: New file, from GNU gettext.
87007         * lib/allocsa.c: New file, from GNU gettext.
87008
87009 2004-01-18  Karl Berry  <karl@gnu.org>
87010
87011         * doc/gpl.texi, doc/lgpl.texi: new files.
87012
87013 2004-01-18  Karl Berry  <karl@gnu.org>
87014
87015         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
87016         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
87017
87018 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87019
87020         Merge from coreutils.
87021
87022         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
87023         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
87024         (gl_DEFAULT_POSIX2_VERSION): Move
87025         the documentation from 'configure' into 'config.hin',
87026         so that 'configure --help' isn't burdened by it and
87027         we don't have to worry about its formatting there.
87028         Reword the documentation so that it's more succinct
87029         and can be run together into a single paragraph.
87030         * m4/same.m4 (gl_SAME): Check for pathconf.
87031
87032 2004-01-15  Paul Eggert  <eggert@twinsun.com>
87033
87034         Merge from coreutils.
87035
87036         * lib/posixver.c: Include posixver.h.
87037
87038         * lib/same.c: Include <stdbool.h>, <limits.h>.
87039         (_POSIX_NAME_MAX): Define if not defined.
87040         (MIN): New macro.
87041         (same_name): If file names are silently truncated, report
87042         that the file names are the same if they are the same after
87043         the silent truncation.
87044
87045         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
87046         conversion function.
87047         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
87048         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
87049         longer needed.
87050
87051 2004-01-15  Jim Meyering  <jim@meyering.net>
87052
87053         Merge from coreutils.
87054
87055         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
87056         if no library is required.
87057         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
87058         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
87059         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
87060         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
87061         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
87062         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
87063         value, $ac_cv_search_crypt, if it's "none required".
87064         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
87065         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
87066         not gl_FUNC_GETLOADAVG.
87067         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
87068         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
87069
87070 2004-01-15  Jim Meyering  <jim@meyering.net>
87071
87072         Merge from coreutils.
87073
87074         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
87075         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
87076         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
87077
87078         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
87079         optional configure-time default.
87080
87081         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87082
87083         * lib/xreadlink.c (xreadlink): Correct outdated comment.
87084
87085 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
87086
87087         Merge from coreutils.
87088
87089         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
87090         value, $ac_cv_search_nanosleep, if it's "none required".
87091
87092 2004-01-14  Paul Eggert  <eggert@twinsun.com>
87093
87094         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
87095         with like-named macro in fnmatch.c.
87096         (EXT): Use an internal constant instead.
87097
87098         Merge fnmatch patches from glibc.
87099         * lib/fnmatch.c (mbsinit): Remove define.
87100         Add libc_hidden_ver (__fnmatch, fnmatch).
87101         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
87102         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
87103
87104 2004-01-14  Karl Berry  <karl@gnu.org>
87105
87106         * config/install-sh: update from automake.
87107
87108 2004-01-13  Karl Berry  <karl@gnu.org>
87109
87110         * config/install-sh: update from automake.
87111
87112 2004-01-09  Karl Berry  <karl@gnu.org>
87113
87114         * config/install-sh: update from automake.
87115
87116 2004-01-05  Karl Berry  <karl@gnu.org>
87117
87118         * config/config.{sub,guess}: update from config.
87119
87120 2003-12-31  Karl Berry  <karl@gnu.org>
87121
87122         * config/depcomp: update from automake.
87123
87124 2003-12-14  Karl Berry  <karl@gnu.org>
87125
87126         * lib/config.charset: update from gettext-runtime.
87127
87128 2003-12-03  Paul Eggert  <eggert@twinsun.com>
87129
87130         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
87131         Bug reported by Alfred M. Szmidt.
87132
87133 2003-12-03  Bruno Haible  <bruno@clisp.org>
87134
87135         * m4/gettext.m4: Upgrade from gettext-0.13.
87136         * m4/po.m4: Upgrade from gettext-0.13.
87137         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
87138         * m4/intmax.m4: New file, from gettext-0.13.
87139         * m4/printf-posix.m4: New file, from gettext-0.13.
87140
87141 2003-11-29  Karl Berry  <karl@gnu.org>
87142
87143         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
87144
87145 2003-11-25  Paul Eggert  <eggert@twinsun.com>
87146             Bruno Haible  <bruno@clisp.org>
87147
87148         * lib/printf-parse.h: Don't include sys/types.h.
87149         (ARG_NONE): New macro.
87150         (char_directive): Change type of *arg_index fields to size_t.
87151         * lib/printf-parse.c: Don't include sys/types.h.
87152         (SSIZE_MAX): Remove macro.
87153         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
87154         Remove unnecessary overflow check.
87155         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
87156         fields.
87157
87158 2003-11-25  Bruno Haible  <bruno@clisp.org>
87159
87160         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
87161
87162 2003-11-25  Bruno Haible  <bruno@clisp.org>
87163
87164         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
87165         gt_TYPE_SSIZE_T.
87166
87167 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87168
87169         * modules/alloca: Remove dependency on xalloc.
87170
87171 2003-11-24  Paul Eggert  <eggert@twinsun.com>
87172
87173         * lib/alloca.c: Remove dependency on xalloc module.
87174         (xalloc_die): Remove.
87175         (memory_full) [!defined emacs]: New macro.
87176         [!defined emacs]: Don't include xalloc.h.
87177         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
87178         address arithmetic overflows.  Change datatypes a bit to avoid
87179         unnecessary casts.
87180
87181 2003-11-22  Jim Meyering  <jim@meyering.net>
87182
87183         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
87184         s/size/size_t/.
87185
87186 2003-11-21  Karl Berry  <karl@gnu.org>
87187
87188         * config/config.{sub,guess}: update from config.
87189
87190 2003-11-18  Karl Berry  <karl@gnu.org>
87191
87192         * config/config.{sub,guess}: update from config.
87193
87194         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
87195
87196 2003-11-17  Paul Eggert  <eggert@twinsun.com>
87197
87198         * README: Mention that S+T cannot overflow if S is the size of
87199         an existing object and T is sufficiently small.
87200
87201 2003-11-17  Jim Meyering  <jim@meyering.net>
87202
87203         On systems without utime and without a utimes function capable of
87204         dealing with a NULL struct utimbuf* argument, this utime replacement
87205         could -- in unusual circumstances -- leak a file descriptor.
87206         * lib/utime.c: Include <unistd.h> and <errno.h>.
87207         (utime_null): Be sure to close `fd' and to preserve errno.
87208         Reported by Geoff Collyer via Arnold Robbins.
87209
87210 2003-11-17  Bruno Haible  <bruno@clisp.org>
87211
87212         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
87213         (Depends-on): Add xsize.
87214
87215 2003-11-17  Bruno Haible  <bruno@clisp.org>
87216
87217         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
87218
87219 2003-11-17  Bruno Haible  <bruno@clisp.org>
87220
87221         * lib/vasnprintf.c (alloca): Remove fallback definition.
87222         (freea): Remove definition.
87223         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
87224         Reported by Paul Eggert.
87225
87226 2003-11-16  Paul Eggert  <eggert@twinsun.com>
87227             Bruno Haible  <bruno@clisp.org>
87228
87229         Protect against address arithmetic overflow.
87230         * lib/printf-args.h: Include stddef.h.
87231         (arguments): Change type of field 'count' to size_t.
87232         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
87233         'unsigned int' where appropriate.
87234         * lib/printf-parse.h: Include sys/types.h.
87235         (char_directive): Change type of *arg_index fields to ssize_t.
87236         (char_directives): Change type of fields 'count', max_*_length to
87237         size_t.
87238         * lib/printf-parse.c: Include sys/types.h and xsize.h.
87239         (SSIZE_MAX): Define fallback value.
87240         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
87241         instead of 'int' where appropriate. Check a_allocated, d_allocated
87242         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
87243         * lib/vasnprintf.c: Include xsize.h.
87244         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
87245         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
87246         overflow. Avoid wraparound when converting a width or precision from
87247         decimal to binary.
87248
87249 2003-11-16  Bruno Haible  <bruno@clisp.org>
87250
87251         Update from GNU gettext.
87252         * lib/printf-parse.c: Generalize to it can be compiled for wide
87253         strings.
87254         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
87255         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
87256         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
87257         SNPRINTF): New macros.
87258         Don't include <alloca.h> if the file is used inside libintl.
87259         (local_wcslen): New function, for Solaris 2.5.1.
87260         (VASNPRINTF): Use it instead of wcslen.
87261
87262 2003-11-16  Bruno Haible  <bruno@clisp.org>
87263
87264         * lib/xsize.h (xmax): New function.
87265         (xsum, xsum3, xsum4): Declare as "pure" functions.
87266
87267 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87268
87269         * modules/xalloc (Files): Undo latest change, since xalloc.h
87270         no longer needs SIZE_MAX or PTRDIFF_MAX.
87271
87272 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87273
87274         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
87275         gl_PTRDIFF_MAX.
87276
87277 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87278
87279         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
87280         "return", to pacify some unknown compiler.  Problem reported
87281         by Joerg Schilling.
87282
87283 2003-11-12  Paul Eggert  <eggert@twinsun.com>
87284
87285         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
87286         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
87287         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
87288         heuristic is just as accurate as far as we know, and it removes a
87289         dependency on size_max.m4 and ptrdiff_max.m4.
87290
87291 2003-11-11  Bruno Haible  <bruno@clisp.org>
87292
87293         * modules/xsize (Files): Add m4/size_max.m4.
87294         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
87295
87296 2003-11-11  Bruno Haible  <bruno@clisp.org>
87297
87298         * m4/size_max.m4: New file.
87299         * m4/ptrdiff_max.m4: New file.
87300         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
87301         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
87302         (gl_XALLOC): Invoke it.
87303
87304 2003-11-11  Bruno Haible  <bruno@clisp.org>
87305
87306         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
87307         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
87308         defined.
87309
87310 2003-11-10  Paul Eggert  <eggert@twinsun.com>
87311
87312         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87313         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87314         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87315         From Bruno Haible.
87316         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87317         not (size_t) -1, since it's defined here.
87318
87319 2003-11-09  Karl Berry  <karl@gnu.org>
87320
87321         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87322
87323 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87324
87325         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87326         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87327         Reject sizes of exactly SIZE_MAX bytes.
87328         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87329         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87330
87331 2003-11-05  Bruno Haible  <bruno@clisp.org>
87332
87333         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87334         SIZE_MAX defined in <limits.h> on Solaris.
87335
87336 2003-11-04  Jim Meyering  <jim@meyering.net>
87337
87338         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87339         variable names, rather than @VAR@.
87340         * modules/poll: Likewise.
87341
87342 2003-11-04  Bruno Haible  <bruno@clisp.org>
87343
87344         * modules/xsize: New file.
87345         * modules/linebreak: Depend on xsize.
87346         * MODULES.html.sh (func_all_modules): Add xsize.
87347
87348 2003-11-04  Bruno Haible  <bruno@clisp.org>
87349
87350         * m4/xsize.m4: New file.
87351
87352 2003-11-04  Bruno Haible  <bruno@clisp.org>
87353
87354         * lib/xsize.h: New file.
87355         * lib/linebreak.c: Include xsize.h.
87356         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87357         argument for overflow.
87358         Suggested by Paul Eggert.
87359
87360 2003-11-03  Karl Berry  <karl@gnu.org>
87361
87362         * config/config.{guess,sub}: update from config.
87363
87364 2003-11-03  Jim Meyering  <jim@meyering.net>
87365
87366         * modules/userspec (lib_SOURCES): Add userspec.h.
87367         (Include): Add "userspec.h".
87368         Improve description.
87369
87370 2003-11-03  Jim Meyering  <jim@meyering.net>
87371
87372         * lib/userspec.c: Include "userspec.h".
87373         * lib/userspec.h: New file.
87374
87375 2003-11-03  Bruno Haible  <bruno@clisp.org>
87376
87377         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87378
87379 2003-11-03  Bruno Haible  <bruno@clisp.org>
87380
87381         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87382         available, to avoid (extremely rare) race condition.
87383         Suggested by Paul Eggert.
87384
87385 2003-11-02  Karl Berry  <karl@gnu.org>
87386
87387         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87388
87389 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87390
87391         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87392         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87393         (read_filesystem_list): Set and use me_type_malloced.
87394         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87395         whatever the type happens to be), for brevity and consistency.
87396         Check for size calculation overflow on Alphas running OSF/1.
87397
87398 2003-10-31  Jim Meyering  <jim@meyering.net>
87399
87400         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87401
87402         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87403
87404 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87405             Bruno Haible  <bruno@clisp.org>
87406
87407         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87408         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87409
87410 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87411
87412         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87413         netbsd*-gnu*.  Suggested by Robert Millan.
87414
87415 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87416
87417         * modules/group-member: Depend on stdbool.
87418
87419 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87420
87421         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87422
87423 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87424
87425         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87426         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87427         after the 'gnu' in these cases.  This fixes some bugs in the
87428         previous change, and is based on suggestions by Robert Millan.
87429
87430 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87431
87432         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87433         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87434         no longer needed.
87435         * lib/quotearg.c (quotearg_n_options): Use it.
87436         * lib/group-member.c: Include <stdbool.h>.
87437         (free_group_info): Arg is now const *; don't free arg.
87438         (get_group_info): Now returns bool and accepts struct group_info *,
87439         rather than returning a malloc'ed struct group_info *.
87440         All uses changed.  Check for overflow in internal size calculation.
87441
87442         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87443         rather than xmalloc/xrealloc.
87444         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87445         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87446         conformance bug: the old code used a pointer after freeing the
87447         storage that it addressed.
87448         * lib/hash.c (hash_initialize): Simplify the code by using
87449         xalloc_oversized rather than doing it by hand.
87450         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87451         the buffer preserved.  Use free and xmalloc instead.
87452         * lib/quotearg.c (quotearg_n_options): Likewise.
87453         Use a simpler test for size overflow.  Don't use xalloc_oversized
87454         because unsigned int might be wider than size_t (!); this suggests
87455         that we should switch from unsigned int to size_t for slot numbers.
87456
87457 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87458
87459         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87460         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87461         NetBSD kernels.  Requested by Richard Stallman.
87462
87463 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87464
87465         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87466         to allocate the returned structure.  Do not allocate a subarray,
87467         as x2nrealloc will do that.
87468         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87469         instead of xnrealloc.
87470         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87471
87472 2003-10-27  Bruno Haible  <bruno@clisp.org>
87473
87474         * lib/stdbool_.h: Better support for BeOS.
87475
87476 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87477
87478         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87479         now uses inline.
87480
87481 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87482
87483         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87484         callers that want to do their own size-overflow checking.  Include
87485         <stdbool.h>, since xalloc_oversized returns bool.
87486         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87487         to use xalloc_oversized.
87488
87489         Add two functions x2realloc, x2nrealloc, for programs that grow
87490         arrays dynamically by doubling their sizes.
87491         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87492         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87493         New functions.
87494
87495         Port to C99 semantics for 'inline' of external functions.
87496         Bug reported by Bruno Haible.
87497         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87498         with the old contents of xnmalloc.
87499         (xnmalloc, xmalloc): Use it.
87500         (xnrealloc_inline): New static inline function,
87501         with the old contents of xnrealloc.
87502         (xnrealloc, xrealloc): Use it.
87503
87504         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87505         that.
87506
87507 2003-10-26  Karl Berry  <karl@gnu.org>
87508
87509         * config/srclist.txt (COPYING.DOC): no longer available from
87510         /gd/gnuorg; don't know where the ultimate source is.
87511
87512 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87513
87514         Fix several address-calculation bugs in the hash modules,
87515         plus some minor code cleanup.
87516
87517         * lib/hash.h: Include <stdbool.h>, for bool.
87518         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87519         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87520         hash_get_n_entries, hash_get_max_bucket_length,
87521         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87522         hash_rehash): Use size_t rather than unsigned.
87523         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87524         hash_get_n_buckets_used, hash_get_n_entries,
87525         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87526         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87527         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87528         Likewise.
87529         (SIZE_MAX): Define if not defined.
87530         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87531         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87532         hash_print):
87533         Use const * when possible.
87534         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87535         (check_tuning): Fix bug: if tuning parameters were very close to
87536         0 or 1, rounding errors could have caused subscript violations.
87537         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87538         (hash_initialize): Add 'fail:' label
87539         to free table and return NULL, and use it to simplify code.
87540         Use calloc rather than clearing the storage ourself.
87541         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87542         buffer size calculations.
87543         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87544         Include <stddef.h>, for size_t.
87545         * lib/hash-pjw.c (hash_pjw): Likewise.
87546         Switch to method described by Bruno Haible.
87547         Include <limits.h>, for CHAR_BIT.
87548         (SIZE_BITS): New macro.
87549
87550 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87551
87552         * m4/getline.m4 (AM_FUNC_GETLINE):
87553         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87554         hosts.  Problem reported by Derek Robert Price in
87555         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87556         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87557         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87558
87559 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87560
87561         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87562         ceiling the allocation at NMAX bytes rather than silently
87563         discarding input bytes before NMAX is reached.  This makes
87564         a difference only if NMAX exceeds SIZE_MAX / 2.
87565
87566         * lib/obstack.c: Merge from glibc.
87567         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87568         Add libc_hidden_def (_obstack_newchunk).
87569         (_obstack_free) [! defined _LIBC]: Remove.
87570         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87571         a clone of the function body.
87572         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87573         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87574
87575         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87576         glibc.
87577         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87578         arg to memcpy.
87579
87580         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87581         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87582         Don't use lvalue casts, as GCC plans to remove support for them
87583         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87584         was also present in the non-GCC version, indicating that this
87585         code had always been buggy and had never been widely used.
87586         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87587         Use the fast variant of each macro, rather than copying the
87588         definiens of the fast variant; that way, we'll be more likely to
87589         catch future bugs in the fast variants.
87590
87591 2003-10-20  Bruno Haible  <bruno@clisp.org>
87592
87593         * modules/wait-process: New file.
87594         * MODULES.html.sh (func_all_modules): Add wait-process.
87595
87596 2003-10-20  Bruno Haible  <bruno@clisp.org>
87597
87598         * m4/wait-process.m4: New file.
87599
87600 2003-10-20  Bruno Haible  <bruno@clisp.org>
87601
87602         * lib/wait-process.h: New file, from GNU gettext.
87603         * lib/wait-process.c: New file, from GNU gettext.
87604
87605 2003-10-19  Jim Meyering  <jim@meyering.net>
87606
87607         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87608         HPUX 10.20.
87609
87610 2003-10-18  Karl Berry  <karl@gnu.org>
87611
87612         * config/config.guess: update from config.
87613
87614 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87615
87616         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87617         (getgroups): First arg is int, not size_t.
87618         Don't let 'free' mangle errno.
87619
87620 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87621
87622         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87623
87624 2003-10-16  Karl Berry  <karl@gnu.org>
87625
87626         * config/config.{guess,sub}: update from config.
87627
87628 2003-10-16  Jim Meyering  <jim@meyering.net>
87629
87630         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87631         memcpy.
87632
87633 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87634
87635         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87636         (SIZE_MAX): Remove.
87637         (new_exclude, add_exclude_file): Initial size no longer needs to
87638         be a power of 2.
87639         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87640         our own address arithmetic overflow checking.
87641
87642         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87643         (fnmatch): Do not alloca more than 2000 wide characters;
87644         instead, use malloc for large buffers.
87645         Check for address arithmetic overflow, and return -1
87646         with errno set to ENOMEM in that case.
87647         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87648         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87649         instead, return -1.  Check for address arithmetic overflow.
87650
87651 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87652
87653         Handle invalid suffixes and overflow independently, so that
87654         callers can treat them independently as needed.  Fix some bugs in
87655         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87656         suffix for a human-readable blocksize.  The major caller-visible
87657         change is the addition of a new
87658         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87659         that both overflow and suffix chars were found.
87660
87661         * lib/human.c (humblock): Don't check separately for invalid suffix
87662         char; that is xstrtoumax's job (now that its bug is fixed).
87663         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87664         INTMAX_MAX]: New macros.
87665         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87666         TYPE_MAXIMUM): New macros.
87667         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87668         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87669         if overflow occurs, as it's what __strtol does and it's more useful
87670         in practice.
87671         (__xstrtol): If __strtol reports some error other than ERANGE,
87672         reflect it to the caller as LONGINT_INVALID.  If it reports
87673         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87674         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87675         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87676         value.
87677         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87678         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87679         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87680         [defined UINTMAX_MAX]: New macros.
87681
87682 2003-10-14  Bruno Haible  <bruno@clisp.org>
87683
87684         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87685
87686 2003-10-14  Bruno Haible  <bruno@clisp.org>
87687
87688         * m4/sig_atomic_t: New file, from GNU gettext.
87689         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87690
87691 2003-10-14  Bruno Haible  <bruno@clisp.org>
87692
87693         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87694         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87695         Also use volatile where needed.
87696
87697 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87698
87699         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87700         Change maintainer from Bruno Haible to 'all'.
87701
87702 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87703
87704         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87705
87706 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87707
87708         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87709         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87710         and define in terms of the other primitives.
87711         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87712         (SIZE_MAX): Define if not already defined.
87713         (array_size_overflow): New function.
87714         (xalloc_die): Abort instead of exiting if 'error' returns.
87715         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87716         (xmalloc, xrealloc): Use them.
87717         (xcalloc): Check for address arithmetic overflow.
87718         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87719         a bit faster than strcpy.
87720
87721 2003-10-10  Simon Josefsson  <jas@extundo.com>
87722
87723         * modules/argp (Depends-on): Add restrict and strcase.
87724
87725 2003-10-10  Simon Josefsson  <jas@extundo.com>
87726
87727         * m4/argp.m4: Add AC_C_INLINE.
87728
87729 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87730
87731         Merge getpass from libc, plus a few fixes.
87732
87733         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87734         Include <stdbool.h>.
87735         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87736         __fsetlocking to empty.
87737         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87738         do include <bits/libc-lock.h>.
87739         Do not include <fcntl.h>; not needed.
87740         [_LIBC]: Include <wchar.h>.
87741         (NOTCANCEL_MODE): New macro.
87742         (flockfile, funlockfile) [_LIBC]: New macros.
87743         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87744         [!_LIBC]: New macros.
87745         (call_fclose): New function.
87746         (getpass): Use it.  Save tty stream separately; this simplifies the
87747         code and makes it more reliable if stdin happens to equal stdout.
87748         Invoke __fsetlocking on tty.
87749         Handle thread cancellation if needed.
87750         Namespace cleanup (use __tcgetattr, __getline).
87751         Use bool for Booleans.
87752         [USE_IN_LIBIO]: Handle wide streams.
87753         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87754         stream might go where.
87755
87756         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87757         doesn't have to include <stdio.h> before us.
87758         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87759         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87760         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87761         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87762         if not declared, so that we can use getpass.c code from libc without
87763         rewriting it.
87764         (flockfile, ftrylockfile, funlockfile): New macros.
87765
87766 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87767
87768         * modules/getpass: Depend on stdbool.
87769
87770 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87771
87772         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87773
87774 2003-10-07  Karl Berry  <karl@gnu.org>
87775
87776         * config/config.{guess,sub}: update from config.
87777
87778 2003-10-06  Jim Meyering  <jim@meyering.net>
87779             Bruno Haible  <bruno@clisp.org>
87780
87781         This lets translators provide better translations for the
87782         "Written by ..." part of --version output.
87783         * lib/version-etc.h: Include stdarg.h.
87784         (version_etc_copyright): Declare as readonly.
87785         (version_etc): Make this function variadic with a NULL-terminated list
87786         of author name strings.
87787         (version_etc_va): New declaration.
87788         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87789         (version_etc_copyright): Declare as readonly.
87790         (version_etc_va): New function. Provide a different translatable string
87791         for each possible number of authors < 10. Abbreviate when there are 10
87792         authors or more.
87793         (version_etc): Make this function variadic. Call version_etc_va.
87794         Suggestion from Gary V. Vaughan.
87795
87796         * lib/long-options.h (parse_long_options): Change prototype: the
87797         authors string is moved to the end and becomes variadic.
87798         * lib/long-options.c: Include stdarg.h.
87799         (parse_long_options): Make this function variadic, too.
87800         Call version_etc_va, not version_etc.
87801
87802 2003-10-06  Bruno Haible  <bruno@clisp.org>
87803
87804         * modules/version-etc-2: Remove file.
87805         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87806
87807 2003-10-06  Bruno Haible  <bruno@clisp.org>
87808
87809         * modules/fatal-signal: New file.
87810         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87811
87812 2003-10-06  Bruno Haible  <bruno@clisp.org>
87813
87814         * m4/fatal-signal.m4: New file.
87815         * m4/signalblocking.m4: New file, from GNU gettext.
87816
87817 2003-10-06  Bruno Haible  <bruno@clisp.org>
87818
87819         * lib/version-etc-2.h: Remove file.
87820         * lib/version-etc-2.c: Remove file.
87821
87822 2003-10-06  Bruno Haible  <bruno@clisp.org>
87823
87824         * lib/fatal-signal.h: New file, from GNU gettext.
87825         * lib/fatal-signal.c: New file, from GNU gettext.
87826
87827 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87828
87829         * README: Rework advice for preventing empty .o files.
87830         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87831         not <sys/types.h>.
87832
87833 2003-10-04  Karl Berry  <karl@gnu.org>
87834
87835         * lib/argp*: update from libc.
87836
87837 2003-10-04  Karl Berry  <karl@gnu.org>
87838
87839         * config/config.{guess,sub}: update from config.
87840
87841 2003-10-02  Bruno Haible  <bruno@clisp.org>
87842
87843         * modules/lchown (Include): Add lchown.h.
87844         * modules/time_r (Include): Use "..." syntax.
87845         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87846
87847 2003-10-01  Simon Josefsson  <jas@extundo.com>
87848
87849         * MODULES.html.sh (func_all_modules): Move gethostname from section
87850         'based on' to section 'lacking' POSIX:2001.
87851
87852 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87853
87854         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87855         to output mode on the same stream.
87856
87857 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87858
87859         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87860         Fix arg typo in previous patch.
87861
87862 2003-09-28  Jim Meyering  <jim@meyering.net>
87863
87864         * lib/error.c: Correct cpp indentation.
87865
87866 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87867
87868         * modules/free: New file.
87869
87870 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87871
87872         * m4/free.m4: New file.
87873
87874 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87875
87876         * lib/minmax.h (MIN, MAX)
87877         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87878         Omit the special code that used __typeof__, since we worry that
87879         it could be more trouble than it's worth.  See:
87880         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87881         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87882
87883         * lib/free.c: New file.
87884
87885 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87886
87887         Trivial fixes to Makefile.am parts of module listings.
87888         * modules/strstr: Append strstr.h to lib_SOURCES.
87889         * modules/strcase: Likewise, for strcase.h.
87890
87891 2003-09-27  Karl Berry  <karl@gnu.org>
87892
87893         * config/mkinstalldirs: update from automake.
87894
87895 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87896
87897         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87898         (error_tail): Do not loop, reallocating temporary buffer, since
87899         the output cannot contain more wide characters than the input
87900         contains bytes, the size must be big enough already.  This avoids
87901         one potential size overflow calculation.  Check for size overflow
87902         when calculating temporary buffer size.  Free temporary buffer
87903         when done, if it was allocated with malloc; this plugs a memory
87904         leak.  Remove casts from void * to pointers, that are no longer
87905         needed now that we're assuming C89 or better.
87906
87907         Merge error changes from glibc.
87908
87909         * lib/error.c, error.h: Update copyright notice header to match glibc.
87910         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87911         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87912         Disable cancellation while printing error.
87913         * lib/error.h: Prepend __ to parameter names.
87914
87915 2003-09-26  Jim Meyering  <jim@meyering.net>
87916
87917         * lib/error.c (error_tail): Move some declarations
87918         into inner scope where the local variables are used.
87919
87920 2003-09-26  Bruno Haible  <bruno@clisp.org>
87921
87922         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87923         stpncpy().
87924         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87925
87926 2003-09-26  Bruno Haible  <bruno@clisp.org>
87927
87928         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87929         (stpncpy): Define as alias for gnu_stpncpy.
87930         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87931
87932 2003-09-25  Simon Josefsson  <jas@extundo.com>
87933
87934         * lib/xgetdomainname.h: New file.
87935         * lib/xgetdomainname.c: New file.
87936
87937 2003-09-25  Simon Josefsson  <jas@extundo.com>
87938             Bruno Haible  <bruno@clisp.org>
87939
87940         * modules/getdomainname: New file.
87941         * modules/xgetdomainname: New file.
87942         * MODULES.html.sh (func_all_modules): Add getdomainname,
87943         xgetdomainname.
87944
87945 2003-09-25  Simon Josefsson  <jas@extundo.com>
87946             Bruno Haible  <bruno@clisp.org>
87947
87948         * m4/getdomainname.m4: New file.
87949
87950 2003-09-25  Simon Josefsson  <jas@extundo.com>
87951             Bruno Haible  <bruno@clisp.org>
87952
87953         * lib/getdomainname.h: New file.
87954         * lib/getdomainname.c: New file.
87955
87956 2003-09-25  Karl Berry  <karl@gnu.org>
87957
87958         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87959
87960 2003-09-25  Karl Berry  <karl@gnu.org>
87961
87962         * config/install-sh: update from automake.
87963
87964 2003-09-25  Bruno Haible  <bruno@clisp.org>
87965
87966         * modules/version-etc-2: New file, from modules/version-etc with
87967         modifications.
87968         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87969
87970 2003-09-25  Bruno Haible  <bruno@clisp.org>
87971
87972         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87973         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87974
87975 2003-09-24  Simon Josefsson  <jas@extundo.com>
87976
87977         * modules/xgethostname: Add xgethostname.h.
87978
87979 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87980
87981         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87982         the buffer associated with the argument.  Bug reported by
87983         Simon Josefsson.
87984
87985 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87986
87987         * README: Document assumptions that 'int' is at least 32 bits
87988         wide, that integer arithmetic is 2's complement without overflow,
87989         that there are no holes in integer values, that adding sizes of
87990         two nonoverlapping objects can't overflow, and that all-bits-zero
87991         yields scalar zero.  Fix spelling and capitalization typos.
87992
87993 2003-09-19  Karl Berry  <karl@gnu.org>
87994
87995         * lib/argp.h: update from libc.
87996
87997 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87998
87999         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
88000         to avoid spurious warnings like "AC_RUN_IFELSE was called before
88001         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
88002
88003 2003-09-17  Paul Eggert  <eggert@twinsun.com>
88004
88005         * gnulib-tool: Use "test -h", not "test -L", for portability
88006         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
88007         (tags_regexp): Remove, since \| doesn't conform to POSIX.
88008         (sed_extract_prog): Issue s commands one-by-one, rather than
88009         using \| in one s command.
88010
88011 2003-09-16  Paul Eggert  <eggert@twinsun.com>
88012
88013         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
88014         input error, instead of returning NULL the next time we are called
88015         (and therefore losing track of errno).
88016
88017 2003-09-16  Bruno Haible  <bruno@clisp.org>
88018
88019         * gnulib-tool (func_create_testdir): Warn about duplicated
88020         dependencies.
88021
88022 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88023
88024         * modules/argmatch, modules/fatal, modules/obstack,
88025         modules/xalloc, modules/xgethostname: Sort dependencies by
88026         importance, not alphabetically.
88027
88028 2003-09-15  Paul Eggert  <eggert@twinsun.com>
88029
88030         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
88031         fails, so that the caller gets the proper errno.
88032
88033         * lib/readutmp.c (read_utmp): Likewise.
88034         Check for fstat error.  Close stream and free storage
88035         when failing.
88036
88037 2003-09-14  Karl Berry  <karl@gnu.org>
88038
88039         * config/srclist.txt (strdup.c): disable for c89 changes.
88040
88041 2003-09-14  Jim Meyering  <jim@meyering.net>
88042
88043         * lib/getloadavg.c: Correct cpp indentation.
88044         * lib/strdup.c: Likewise.
88045         * lib/vasnprintf.c: Likewise.
88046
88047 2003-09-14  Bruno Haible  <bruno@clisp.org>
88048
88049         * modules/fwriteerror: New file.
88050         * MODULES.html.sh (func_all_modules): Add fwriteerror.
88051
88052 2003-09-14  Bruno Haible  <bruno@clisp.org>
88053
88054         * lib/fwriteerror.h: New file.
88055         * lib/fwriteerror.c: New file.
88056
88057 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88058
88059         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
88060         modules/xgethostname, modules/xalloc: Depend on exit.
88061
88062 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88063
88064         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
88065
88066         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
88067         and AC_MINIX, too, so that their extensions are available.
88068
88069         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
88070         This macro has been superseded by gl_BACKUPFILE.
88071
88072         More patches to assume C89 or better.
88073
88074         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
88075
88076         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
88077         unconditionally.
88078         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
88079         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
88080         Include <string.h>, <stdlib.h> unconditionally.
88081         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
88082         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
88083         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
88084         headers or for string.h.
88085         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
88086         or strtoul.
88087
88088         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
88089         headers.
88090         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
88091         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88092         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
88093         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
88094         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88095         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
88096         memcpy, memset.
88097         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
88098         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
88099         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
88100         strtol.
88101         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
88102         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
88103         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
88104         strtoul.
88105
88106 2003-09-12  Paul Eggert  <eggert@twinsun.com>
88107
88108         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
88109         * lib/obstack.c [!defined _LIBC]: Likewise.
88110         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
88111         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
88112         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
88113
88114         More changes to assume C89 or better.
88115
88116         * lib/error.c (error_tail): Assume vprintf.
88117
88118         * lib/argmatch.c (getenv): Remove decl.
88119         * lib/progreloc.c (get_full_program_name): Define via prototype.
88120         * lib/setenv.c (clearenv): Likewise.
88121         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
88122         needed.
88123         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
88124         (malloc, memcpy): Remove decls.
88125         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
88126         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
88127         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88128         (memcpy): Remove macro.
88129         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
88130         (__P): Remove.  All uses removed.
88131         (PTR): Remove.  All uses changed to void *.
88132         (CHAR_BIT, NULL): Remove.
88133         (spaces, zeros, memset_space, memset_zero)
88134         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
88135         Remove.
88136         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
88137         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
88138         Define with prototype.
88139         Remove now-unnecessary prototype decl.
88140         (extra_args_spec): Assume ANSI C.  All uses changed.
88141         (extra_args_spec_iso): Remove.
88142         (my_strftime, emacs_strftimeu): Define via prototype.
88143         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
88144         unconditionally.
88145         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
88146         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
88147         (strtoul, strtol): Remove decls.
88148         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
88149         LONG_MAX): Remove.
88150         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
88151         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
88152         (LOCALE_PARAM_PROTO): New macro.
88153         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
88154         (INTERNAL (strtol), strtol): Define with a prototype.
88155         (PARAMS): Remove.  All uses removed.
88156         * lib/tempname.c: Include <string.h> unconditionally.
88157         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
88158         * lib/xgethostname.c (main): Define with a prototype.
88159         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
88160         Include <stdlib.h> unconditionally.
88161         (calloc, malloc, realloc, free): Remove decls.
88162         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
88163         Include <stdlib.h> unconditionally.  Sort include file names.
88164         (strtod): Remove.
88165         (xstrtod): Define with a prototype.
88166         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
88167         (strtol, strtoul): Remove decls.
88168
88169 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88170
88171         More patches to assume C89 or better.
88172         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
88173         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
88174         string.h, memchr, STDC_HEADERS.
88175
88176 2003-09-11  Paul Eggert  <eggert@twinsun.com>
88177
88178         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
88179         Include <stdlib.h>, <string.h> unconditionally.
88180         Remove now-unnecessary cast to char *.
88181         * lib/strnlen.c: Include <string.h> unconditionally.
88182         * lib/yesno.c (yesno): Define with a prototype.
88183
88184 2003-09-11  Bruno Haible  <bruno@clisp.org>
88185
88186         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
88187
88188 2003-09-10  Jim Meyering  <jim@meyering.net>
88189
88190         * lib/error.c: Correct indentation of cpp directives.
88191
88192 2003-09-10  Bruno Haible  <bruno@clisp.org>
88193
88194         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
88195         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
88196         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
88197         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
88198         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
88199         <stdlib.h> and <string.h> checks.
88200         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
88201         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
88202
88203 2003-09-10  Bruno Haible  <bruno@clisp.org>
88204
88205         * lib/strcspn.c: Include <string.h> unconditionally.
88206         * lib/strpbrk.c: Include <string.h> unconditionally.
88207         * lib/strstr.c: Include <string.h> unconditionally.
88208         * lib/unicodeio.c: Include <string.h> unconditionally.
88209         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
88210         * lib/unsetenv.c: Likewise.
88211         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
88212         * lib/yesno.c: Include <stdlib.h> unconditionally.
88213         (rpmatch): Add prototype.
88214
88215 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88216
88217         More patches to assume C89 or better.
88218         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
88219         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
88220         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
88221         or for string.h.
88222         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
88223         stdlib.h.
88224         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
88225         C headers.
88226         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
88227         string.h.
88228         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
88229         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
88230         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
88231         or for string.h.
88232         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
88233         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
88234         C headers.
88235         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
88236         memcpy.
88237         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
88238         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
88239         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
88240         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
88241         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
88242         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
88243         string.h, free.
88244         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
88245         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
88246         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
88247         C headers, or for string.h.
88248         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
88249         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
88250         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
88251         headers, memory.h, stdlib.h, string.h, strings.h.
88252         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
88253         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
88254         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
88255         strchr.
88256         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
88257         headers, memory.h, string.h.
88258         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
88259         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
88260         free.
88261         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
88262         headers.
88263         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
88264         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
88265         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
88266         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
88267         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
88268
88269 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88270
88271         More K&R removal.
88272
88273         * lib/acosl.c (main): Use a prototype.
88274         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
88275         tanl.c: Likewise.
88276
88277         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
88278
88279         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
88280         (getopt, etopt_long, getopt_long_only, _getopt_internal)
88281         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
88282         with a prototype.
88283         * lib/getopt.c (const): Remove macro.
88284         Include <string.h> unconditionally.
88285         (my_index): Remove; all uses changed to strchr.
88286         (strlen): Remove decl.
88287         (exchange): Remove forward decl; no longer needed.
88288         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
88289         Define with prototype.
88290         * lib/getopt1.c (const): Remove macro.
88291         (getopt_long, getopt_long_only, main): Define with prototype.
88292
88293         * lib/getugroups.c: Include <string.h> unconditionally.
88294
88295         * lib/getusershell.c: Include <stdlib.h> unconditionally.
88296         (getusershell, setusershell, endusershell, readname, main):
88297         Define with prototypes.
88298
88299         * lib/group-member.c: Include group-member.h first.
88300         Include <stdlib.h> unconditionally.
88301
88302         * lib/hard-locale.c: Include hard-locale.h first.
88303         Include <stdlib.h>, <string.h> unconditionally.
88304
88305         * lib/hash.c (free, malloc): Remove decls.
88306         Include <stdlib.h> unconditionally.
88307
88308         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
88309         (getenv): Do not declare.
88310
88311         * lib/idcache.c: Include <string.h> unconditionally.
88312
88313         * lib/long-options.c: Include long-options.h first, to test interface.
88314         Include <stdlib.h> unconditionally.
88315
88316         * lib/makepath.c: Include makepath.h first, to test interface.
88317         Include <stdlib.h> and <string.h> unconditionally.
88318
88319         * lib/linebuffer.c: Include <stdlib.h>.
88320         (free): Remove decl.
88321
88322         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88323         stddef.h. rpl_malloc returns void *, not char *.
88324         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88325         prototype.
88326
88327         * lib/md5.h: Include <limits.h> unconditionally.
88328         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88329         (__P): Remove; all uses removed.
88330         * lib/md5.c: Include "md5.h" first.
88331         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88332         md5_buffer, md5_process_bytes, md5_process_block):
88333         Define with prototypes.
88334         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88335         * lib/sha.c: Include "sha.h" first.
88336         Include <stdlib.h>, <string.h> unconditionally.
88337
88338         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88339         * lib/memcmp.c (__ptr_t): Likewise.
88340         * lib/memrchr.c (__ptr_t): Likewise.
88341         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88342         Include <string.h> unconditionally.
88343         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88344         * lib/memchr.c: Include <stdlib.h> unconditionally.
88345         * lib/memchr.c (LONG_MAX): Remove.
88346         * lib/memrchr.c (LONG_MAX): Likewise.
88347         * lib/memchr.c (__memchr): Define via a prototype.
88348         * lib/memrchr.c (__memrchr): Likewise.
88349         * lib/memcmp.c (__P): Remove, and remove all uses.
88350         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88351         Remove forward decls; no longer needed.
88352         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88353         Use types required by C89 in prototype.
88354
88355         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88356         * lib/savedir.c: Likewise.
88357         * lib/mkdir.c (free): Remove decl.
88358         * lib/rmdir.c (rmdir): Define with a prototype.
88359         * lib/savedir.c: Include savedir.h first, to test interface.
88360
88361         * lib/mktime.c (STDC_HEADERS): Remove.
88362         Include <stdlib.h>, <string.h> unconditionally.
88363
88364         * lib/modechange.c: Include <stdlib.h> unconditionally.
88365         (malloc): Remove decl.
88366
88367         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88368         (free): Remove decl.
88369
88370         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88371         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88372         (This type really should be intptr_t, but that's a C99ism.)
88373         (_obstack_memcpy): Remove: all uses changed to memcpy.
88374         Include <string.h> unconditionally.
88375         (struct obstack): Assume __STDC__ for types of members
88376         chunkfun, freefun, extra_arg.
88377         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88378         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88379         obstack_begin, obstack_specify_allocation,
88380         obstack_specify_allocation_with_arg, obstack_chunkfun,
88381         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88382         Remove unprototyped decls and the macros that use them.
88383         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88384         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88385         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88386         (defined __STDC__ && __STDC__)]:
88387         Remove nonprototyped code.
88388         Include <stdlib.h> unconditionally.
88389         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88390         _obstack_allocated_p, _obstack_free, obstack_free,
88391         _obstack_memory_used, print_and_abort):
88392         Define using prototypes.
88393         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88394         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88395         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88396         obstack_next_free, obstack_object_size, obstack_room) [0]:
88397         Remove unused, unprototyped code.
88398
88399         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88400
88401         * lib/physmem.c (physmem_total, physmem_available, main): Define
88402         with prototypes.
88403
88404         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88405         (main): Define with a prototype.
88406
88407         * lib/posixver.c (getenv): Remove decl.
88408
88409         * lib/putenv.c (malloc): Returns void *, not char *.
88410         Include <string.h> unconditionally.
88411         (strchr, memcpy, NULL): Do not define.
88412
88413         * lib/readtokens.c: Include readtokens.h first, to test interface.
88414         Include <stdlib.h>, <string.h> unconditionally.
88415         (init_tokenbuffer): Define with a prototype.
88416
88417         * lib/regex.c (PARAMS): Remove.  All uses removed.
88418         All uses of _RE_ARGS removed, too.
88419         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88420         unconditionally.
88421         (bzero): Assume memset exists.
88422         (memcmp, memcpy, NULL): Remove.
88423         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88424         char, or assignments to local vars of type signed char.
88425         (init_syntax_once, PREFIX(extract_number_and_incr),
88426         PREFIX(print_partial_compiled_pattern),
88427         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88428         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88429         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88430         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88431         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88432         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88433         wcs_compile_range, byte_compile_range, truncate_wchar,
88434         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88435         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88436         count_mbs_length, wcs_re_match_2_internal,
88437         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88438         PREFIX(alt_match_null_string_p),
88439         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88440         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88441         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88442         now-unnecessary declaration, if any.
88443         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88444         regcomp, regexec):
88445         Remove now-unnecessary casts among pointer types.
88446         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88447
88448         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88449         (free): Remove decl.
88450
88451         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88452
88453         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88454         (free): Remove decl.
88455
88456         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88457         * lib/xgetcwd.c: Likewise.
88458
88459         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88460         (free): Remove decl.
88461
88462         * lib/strchrnul.c (strchrnul): Define with a prototype.
88463         Fix bug: c_in was not converted to char before searching.
88464
88465         The following changes are not K&R related:
88466
88467         * lib/group-member.h: Include <sys/types.h>, so that this file is
88468         self-contained.
88469         * lib/makepath.h: Likewise.
88470
88471         * lib/getusershell.c (readname, default_index, line_size, readname):
88472         Use size_t, not int, for sizes.
88473         (readname): If the size overflows, report an error instead of
88474         looping forever.
88475
88476 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88477
88478         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88479         libc.
88480
88481 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88482
88483         * README: New section: portability guidelines.
88484
88485 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88486
88487         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88488         C89 spec.
88489
88490 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88491
88492         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88493
88494 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88495
88496         Assume C89 or better; remove K&R cruft.
88497         A few of these changes were first proposed by Derek Robert Price
88498         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88499
88500         * lib/addext.c: Include <string.h> unconditionally.
88501         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88502         Don't declare getenv or malloc.
88503
88504         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88505         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88506         (NULL): Remove.
88507         (find_stack_direction, alloca): Use prototypes.
88508
88509         * lib/atexit.c (atexit): Define using a prototype.
88510
88511         * lib/basename.c, dirname.c, stripslash.c:
88512         Include <string.h> unconditionally.
88513
88514         * lib/bcopy.c: Include <stddef.h>.
88515         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88516
88517         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88518
88519         * lib/error.h (error, error_at_line, error_print_progname)
88520         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88521         * lib/error.c: Include error.h first, to check interface.
88522         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88523         (VA_START): Remove; all uses changeed to va_start.
88524         (exit, strerror): Remove decls.
88525         (error_print_progname): Prototype uncondionally.
88526         Don't include <errno.h>; no longer needed.
88527         (private_strerror): Remove.
88528         (error_tail): Always define.
88529         (error, error_at_line): Assume C89 or better; always use prototypes.
88530         * lib/fatal.c: Include "fatal.h" first, to test interface.
88531         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88532         (VA_START): Remove; all uses changed to va_start.
88533         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88534         this case.
88535         (exit): Remove decl.
88536         (fatal): Prototype unconditionally.  Assume va_start works.
88537         Abort at end, to pacify gcc.
88538
88539         * lib/euidaccess.c (main): Define with a prototype.
88540
88541         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88542
88543         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88544
88545         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88546         prototypes.
88547         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88548         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88549         (getenv): Remove decl.
88550         (fnmatch): Define using a prototype.
88551         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88552         (FCT): Define using a prototype.
88553
88554         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88555
88556         * lib/gethostname.c: Include <stddef.h>.
88557         (gethostname): Define with prototype.  Length is size_t, not int.
88558
88559 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88560
88561         Assume C89 or better; remove K&R cruft.
88562         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88563         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88564         string.h, getenv, malloc.
88565         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88566         headers.
88567         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88568         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88569         do not check for strerror.
88570         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88571         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88572         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88573         do not check for doprnt or vprintf.
88574         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88575         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88576
88577 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88578
88579         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88580         getversion.c should have been removed then, but was accidentally
88581         preserved.
88582
88583         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88584         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88585
88586 2003-09-08  Karl Berry  <karl@gnu.org>
88587
88588         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88589                 config, forget about prep.
88590
88591         * config/depcomp, missing: update from automake.
88592
88593 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88594
88595         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88596         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88597
88598 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88599
88600         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88601         copy_tm_result.  Bug reported by Simon Josefsson in
88602         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88603
88604 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88605
88606         * m4/time_r.m4: New file.
88607         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88608         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88609         is. Check for timegm declaration.
88610         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88611         Do not check for gmtime_r.
88612         Replace mktime if __mktime_internal does not exist and if mktime
88613         hasn't been replaced already.
88614
88615 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88616
88617         * lib/time_r.c, lib/time_r.h: New files.
88618
88619         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88620         __localtime_r.
88621         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88622         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88623
88624         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88625         __gmtime_r.
88626         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88627         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88628         Include <time_r.h>.
88629
88630         * lib/timegm.c: Switch to glibc implementation, with the following
88631         changes:
88632         [defined HAVE_CONFIG_H]: Include <config.h>.
88633         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88634         (__mktime_internal) [!defined _LIBC]: New decl.
88635         (__gmtime_r) [!defined _LIBC]: New macro and function.
88636         (timegm): Use a prototype, since gnulib assumes C89.
88637         Do not bother declaring tmp to be const, as it's not really usefu.
88638         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88639         (timegm): Declare only if HAVE_DECL_TIMEGM.
88640
88641 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88642
88643         * MODULES.html.sh (func_all_modules): Add time_r.
88644         * modules/time_r: New file.
88645         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88646         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88647
88648 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88649
88650         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88651         Bug reported by Lute Kamstra in
88652         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88653
88654         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88655         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88656         course with correspondingly smaller numbers for tomorrow and
88657         yesterday.  From Tadayoshi Funaba.  Originally installed into
88658         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88659         coreutils merge?).
88660
88661 2003-08-31  Simon Josefsson  <jas@extundo.com>
88662
88663         * modules/timegm: New file.
88664         * MODULES.html.sh (func_all_modules): Add timegm.
88665
88666 2003-08-31  Simon Josefsson  <jas@extundo.com>
88667
88668         * m4/timegm.m4: New file.
88669
88670 2003-08-31  Simon Josefsson  <jas@extundo.com>
88671
88672         * lib/timegm.h: New file.
88673         * lib/timegm.c: New file.  Based on
88674         wget-1.8.2/src/http.c:mktime_from_utc.
88675
88676 2003-08-31  Karl Berry  <karl@gnu.org>
88677
88678         * lib/argp.h: update from libc.
88679
88680 2003-08-28  Bruno Haible  <bruno@clisp.org>
88681
88682         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88683         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88684         followed by '#define fnmatch fnmatch_posix' gives an error.
88685
88686 2003-08-28  Bruno Haible  <bruno@clisp.org>
88687
88688         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88689         warning on QNX, which defines O_BINARY to 000000.
88690
88691 2003-08-27  Jim Meyering  <jim@meyering.net>
88692
88693         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88694         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88695         would fail after 32.  Reported by Danny Levinson.  Details here:
88696         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88697
88698 2003-08-24  Bruno Haible  <bruno@clisp.org>
88699
88700         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88701         MSVC7 <stdio.h> is included later.
88702
88703 2003-08-22  Simon Josefsson  <jas@extundo.com>
88704
88705         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88706
88707 2003-08-20  Karl Berry  <karl@gnu.org>
88708
88709         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88710
88711 2003-08-20  Bruno Haible  <bruno@clisp.org>
88712
88713         * modules/progname: New file.
88714         * MODULES.html.sh (func_all_modules): Add progname.
88715
88716 2003-08-20  Bruno Haible  <bruno@clisp.org>
88717
88718         * lib/progname.h: New file, from GNU gettext.
88719         * lib/progname.c: New file, from GNU gettext.
88720         * lib/progreloc.c: New file, from GNU gettext.
88721
88722 2003-08-19  Jim Meyering  <jim@meyering.net>
88723
88724         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88725         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88726
88727 2003-08-19  Bruno Haible  <bruno@clisp.org>
88728
88729         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88730         more.
88731
88732 2003-08-19  Bruno Haible  <bruno@clisp.org>
88733
88734         * lib/xstrdup.c: Assume <string.h> exists.
88735
88736 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88737
88738         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88739         in makefile rules.
88740
88741 2003-08-18  Jim Meyering  <jim@meyering.net>
88742
88743         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88744         * m4/lib-ld.m4: Likewise.
88745
88746 2003-08-18  Jim Meyering  <jim@meyering.net>
88747
88748         * lib/setenv.h: Indent nested cpp directive.
88749         * lib/vasnprintf.c: Remove trailing blanks.
88750
88751 2003-08-17  Simon Josefsson  <jas@extundo.com>
88752
88753         * modules/xstrndup: New file.
88754         * MODULES.html.sh (func_all_modules): Add xstrndup.
88755
88756 2003-08-17  Simon Josefsson  <jas@extundo.com>
88757
88758         * modules/argp: Fix autoconf macro name. Add more dependencies.
88759
88760 2003-08-17  Simon Josefsson  <jas@extundo.com>
88761
88762         * m4/xstrndup.m4: New file.
88763
88764 2003-08-17  Simon Josefsson  <jas@extundo.com>
88765
88766         * m4/argp.m4: New file.
88767
88768 2003-08-17  Simon Josefsson  <jas@extundo.com>
88769             Bruno Haible  <bruno@clisp.org>
88770
88771         * lib/xstrndup.h: New file.
88772         * lib/xstrndup.c: New file.
88773
88774 2003-08-17  Bruno Haible  <bruno@clisp.org>
88775
88776         * modules/strndup (Files, Include): Add lib/strndup.h.
88777
88778 2003-08-17  Bruno Haible  <bruno@clisp.org>
88779
88780         * modules/euidaccess (Files): Add lib/euidaccess.h.
88781
88782 2003-08-17  Bruno Haible  <bruno@clisp.org>
88783
88784         * lib/strndup.h: New file.
88785
88786 2003-08-17  Bruno Haible  <bruno@clisp.org>
88787
88788         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88789         like AC_GNU_SOURCE.
88790         * modules/extensions (configure.ac): Comment out the invocation of
88791         gl_USE_SYSTEM_EXTENSIONS.
88792
88793 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88794
88795         Merges from coreutils, etc.
88796         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88797         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88798         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88799         fixing a typo.
88800         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88801         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88802
88803 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88804
88805         Document merge from coreutils.
88806         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88807         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88808         * modules/utime: Add m4/utimes-null.m4.
88809
88810 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88811
88812         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88813         space, undoing this 2003-08-12 change:
88814         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88815
88816 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88817
88818         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88819         strtoul.c from libc, undoing this 2003-08-12 change:
88820         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88821
88822 2003-08-16  Jim Meyering  <jim@meyering.net>
88823
88824         Merges from coreutils.
88825         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88826         prefix.  Adjust cache variables similarly.  Create 500 rather than
88827         just 300 files, to exercise bug on Darwin6.5, too.
88828         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88829         $missing_dir.
88830         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88831         AM_SYS_POSIX_TERMIOS.
88832         Reported by mkc@mathdogs.com.
88833         Also change use of $am_cv_sys_posix_termios
88834         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88835         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88836         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88837         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88838         in /proc/mounts until it finds one with matching device number.  This
88839         is unnecessary when the FILE argument *is* a mount point.  No stat call
88840         is necessary in that case.  So, disable the statvfs-testing code on
88841         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88842         as RedHat bug# 84846.
88843         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88844         to 1MB, so as not to render systems with no stack size limit (e.g.,
88845         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88846         Include <unistd.h>.  On some systems,
88847         it is required for the definition of _SC_PAGESIZE.
88848
88849 2003-08-16  Jim Meyering  <jim@meyering.net>
88850
88851         Merge from coreutils.
88852         * lib/xstrtoimax.c: #else #if -> #elif.
88853         * lib/xstrtoumax.c: Likewise.
88854
88855 2003-08-16  Jim Meyering  <jim@meyering.net>
88856
88857         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88858         * m4/utimes.m4: Removed.
88859         * m4/utimes-null.m4: Renamed from utimes.m4.
88860
88861         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88862         to 1MB, so as not to render systems with no stack size limit (e.g.,
88863         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88864         Include <unistd.h>.  On some systems,
88865         it is required for the definition of _SC_PAGESIZE.
88866
88867 2003-08-16  Jim Meyering  <jim@meyering.net>
88868         and Paul Eggert  <eggert@cs.ucla.edu>
88869
88870         Merges from coreutils, etc.
88871
88872         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88873         using the latest version from cvs.  This avoids problems with #line
88874         directives using a vendor (Sun) compiler.
88875         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88876         Don't set GETGROUPS_LIB here; now it's
88877         done via getgroups.m4's wrapper function.
88878         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88879         rather than just in sh-util/configure.in, so that the
88880         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88881         same.
88882         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88883         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88884         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88885         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88886         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88887         Remove code that is now done by the newly-required macros.
88888         Append $(EXEEXT) to DF_PROG.
88889         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88890         Do not invoke or require the following here,
88891         since prereq.m4 or some gnulib .m4 now does this for us:
88892         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88893         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88894         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88895         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88896         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88897         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88898         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88899         AC_FUNC_OBSTACK.
88900         Do not replace the following functions, as this is now the job
88901         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88902         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88903         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88904         atexit getpass, strdup, getpagesize.
88905         Replace 'raise'.
88906         Do not check for the following functions, as this is now the job
88907         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88908         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88909         setregid.
88910         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88911         Check for sys/sysctl.h.
88912         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88913         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88914         of checking for ssize_t ourselves.
88915
88916         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88917         Require every macro that gnulib/modules/* suggests for us.
88918         (jm_PREREQ_ADDEXT): New macro.
88919         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88920         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88921
88922         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88923         (gl_PHYSMEM): Use it.
88924         Also check for `table' function.
88925         Check for new headers and functions.
88926         Add check for sys/sysmp.h.
88927         With suggestions from Kaveh Ghazi.
88928         Ignore headers that are present but cannot be compiled.  This
88929         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88930         C 5.4.
88931
88932 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88933
88934         Document merge from coreutils.
88935         * modules/userspec: Depend on posixver.
88936         * modules/strftime: Depend on tzset.
88937
88938 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88939
88940         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88941         rather than tab, after '#' in shell-script copyright notices.
88942         Suggested by Bruno Haible.
88943
88944 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88945
88946         * config/srclist-update: Use three spaces, rather than tab, after '#'
88947         in shell-script copyright notices.  Suggested by Bruno Haible.
88948         Remove unnecessary parenthesization in regular expression.
88949
88950 2003-08-15  Jim Meyering  <jim@meyering.net>
88951
88952         Merge from coreutils.
88953         * lib/xgethostname.c: Include <stdlib.h>.
88954         (xghostname): Don't exit for anything other than memory-related
88955         failure; just return NULL.
88956         * lib/userspec.c: Include "posixver.h".
88957         (parse_user_spec): Accept `.' as a separator only
88958         in pre-POSIX-200112 mode.
88959         * lib/strtoimax.c: Use #elif rather than #else #if.
88960         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88961         Remove function, now that we can rely on a working tzset function.
88962         [!_LIBC]: Ensure that the required autoconf test has been run.
88963         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88964         Use underlying_strftime for %r.
88965         * lib/sha.c: Merge in some clean-up and optimization changes from
88966         glibc.
88967         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88968         Ensure that it is a multiple of 64.
88969         Rearrange loop exit tests so as to avoid performing an
88970         additional fread after encountering an error or EOF.
88971         * lib/realloc.c: Update copyright date.
88972
88973 2003-08-15  Jim Meyering  <jim@meyering.net>
88974         and Paul Eggert  <eggert@twinsun.com>
88975
88976         Merge from coreutils.
88977         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88978         member but strut utmpx does not.  Needed for AIX 4.3.3.
88979         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88980
88981 2003-08-15  Jim Meyering  <jim@meyering.net>
88982         and Paul Eggert  <eggert@cs.ucla.edu>
88983
88984         Merges from coreutils, etc.
88985         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88986         Require gl_FUNC_TZSET_CLOBBER.
88987         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88988         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88989         members.
88990
88991 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88992
88993         Help the merge from coreutils.
88994         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88995         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88996         * m4/tzset.m4: Use it too.
88997
88998 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88999
89000         * modules/tzset: New file.
89001
89002 2003-08-14  Jim Meyering  <jim@meyering.net>
89003
89004         Merges from coreutils.
89005         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
89006         variable names, rather than @FNMATCH_H@.
89007         * modules/alloca: Likewise for $(ALLOCA_H).
89008
89009         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
89010         the three copies of the literal target, `fnmatch.h'.
89011         * modules/alloca (alloca.h): Likewise.
89012
89013 2003-08-14  Jim Meyering  <jim@meyering.net>
89014
89015         Merge from coreutils.
89016         * m4/tzset.m4: New file.
89017         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
89018         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
89019         otherwise, AIX 5.1 systems would end up using the latter.
89020         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
89021         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
89022         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
89023         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
89024
89025 2003-08-14  Jim Meyering  <jim@meyering.net>
89026
89027         Merge from coreutils.
89028         * lib/obstack.h: Whitespace changes.
89029         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
89030         and xcalloc return values.
89031         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
89032         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
89033         hang on OSF/1 5.1 for DIR on both local and remote file systems.
89034         Reported by (and fix confirmed by) Nelson H. F. Beebe.
89035         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89036         error from mntctl.
89037         Use mntctl's return value to drive the entry-processing loop, since
89038         we can't rely on the value of the vmt_length member in the last
89039         entry.  On some systems doing so could result in exhausting
89040         virtual memory.  Based in part on a patch from Mike Jetzer.
89041
89042 2003-08-14  Jim Meyering  <jim@meyering.net>
89043         and Paul Eggert  <eggert@twinsun.com>
89044
89045         Merges from coreutils, plus other fixes.
89046         * lib/physmem.c: Merge in portability changes from gcc/libiberty
89047         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
89048         for credits and details.  Thanks to Kaveh Ghazi for helping
89049         to keep these files in sync.
89050         (ARRAY_SIZE): Define it.
89051         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
89052         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
89053         (memcasecmp): Don't assume size_t fits in unsigned int.
89054         Remove casts and duplicate code.
89055         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
89056         (memcpy): Remove definition.
89057         Merge in some clean-up and optimization changes from glibc.
89058         [BLOCKSIZE]: Move definition to top of file.
89059         Ensure that it is a multiple of 64.
89060         Rearrange loop exit tests so as to avoid performing an
89061         additional fread after encountering an error or EOF.
89062         * lib/md5.h (md5_uintptr): Define.
89063         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
89064         return to the initial working directory.  Preserve errno
89065         for caller.
89066         * lib/idcache.c: Include "xalloc.h".
89067         (xmalloc, xrealloc): Remove decls.
89068         (getuser): Remove casts no longer required in C89.
89069         * lib/human.c: Include stdio.h, for sprintf.
89070         * lib/group-member.c: Include "xalloc.h".
89071         (xmalloc, xrealloc): Remove decls.
89072         (get_group_info): Remove casts no longer required in C89.
89073         * lib/getusershell.c (readname): Remove casts no longer required in
89074         C89.
89075         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
89076         * lib/getline.c: Whitespace fix, from coreutils.
89077
89078 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89079
89080         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
89081         Check for isascii.
89082
89083         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89084         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89085         Undo previous (whitespace-only) change.
89086
89087 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89088
89089         * lib/exclude.c: Include <ctype.h>
89090         (IN_CTYPE_DOMAIN): New macro.
89091         (is_space): New fn.
89092         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
89093         and empty lines.
89094
89095         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89096         Undo previous (whitespace-only) change.
89097
89098 2003-08-13  Paul Eggert  <eggert@twinsun.com>
89099
89100         * config/srclist-update: Change update back to the old behavior,
89101         leaving whitespace alone.  Use one 'sed' command rather than a
89102         pipeline.
89103         (fixlicense): Now a variable, not a function.
89104         (remove_trailing_blanks): Remove.
89105         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
89106         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89107         Undo previous (whitespace-only) change.
89108
89109 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89110
89111         Merge from coreutils.
89112         * modules/euidaccess: Add lib_SOURCES, include for new
89113         file euidaccess.h
89114
89115 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89116
89117         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
89118         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
89119         Normalize leading white space and remove trailing white space.
89120
89121         Merge from coreutils
89122         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
89123
89124         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
89125         0.12.1.  These files are now being upgraded automatically by
89126         ../config/srclist-update.
89127
89128 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89129
89130         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
89131         Normalize leading white space and remove trailing white space.
89132         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
89133         notice, as per ../config/srclist-update.
89134
89135         Merge from coreutils.
89136         * lib/euidaccess.h: New file.
89137         * lib/euidaccess.c: Include it.
89138         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
89139         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
89140         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
89141
89142 2003-08-12  Paul Eggert  <eggert@twinsun.com>
89143
89144         * config/srclist-update: Add copyright notice.
89145         (remove_id_lines, remove_trailing_blanks): New constants.
89146         (fixfile): Use them to normalize spacing a bit in copied files.
89147         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
89148         Normalize leading white space and remove trailing white space.
89149
89150         * config/texinfo.tex: Sync with texinfo.
89151
89152         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
89153         strtoul.c from libc, to merge coreutils whitespace changes.
89154
89155         * config/srclist.txt: Get the following m4 files from gettext:
89156         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
89157         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
89158         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
89159         wint_t.m4.
89160
89161 2003-08-12  Karl Berry  <karl@gnu.org>
89162
89163         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
89164         been made.
89165
89166 2003-08-11  Paul Eggert  <eggert@twinsun.com>
89167
89168         * modules/gnu-source, m4/gnu-source.m4:
89169         Remove; we're assuming Autoconf 2.54 or later now.
89170         Suggested by Bruno Haible.
89171         * MODULES.html.sh (func_all_modules): Remove gnu-source.
89172
89173 2003-08-11  Bruno Haible  <bruno@clisp.org>
89174
89175         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
89176
89177 2003-08-11  Bruno Haible  <bruno@clisp.org>
89178
89179         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
89180         (vasnprintf): Use it instead of wcslen.
89181
89182 2003-08-11  Bruno Haible  <bruno@clisp.org>
89183
89184         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
89185         value to ensure that _Bool promotes to int. Use #define for _Bool when
89186         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
89187
89188 2003-08-10  Karl Berry  <karl@gnu.org>
89189
89190         * lib/regex.h: update from libc (whitespace fix).
89191
89192 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89193
89194         Merge some files from coreutils.  These changes were
89195         originally made by Jim Meyering.
89196         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
89197         many older Unixes require this.
89198         * lib/alloca.c (alloca): Remove cast to argument of free;
89199         no longer needed in C89.
89200         * lib/alloca_.h, regex.h: Fix white space to match
89201         what GNU indent does.
89202
89203 2003-08-09  Paul Eggert  <eggert@twinsun.com>
89204
89205         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
89206         apparently Emacs's Unicode mode got confused before my 2003-08-05
89207         checkin.
89208
89209 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89210
89211         * m4/extensions.m4: New file.
89212         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
89213         Require gl_USE_SYSTEM_EXTENSIONS.
89214         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
89215         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
89216
89217 2003-08-08  Paul Eggert  <eggert@twinsun.com>
89218
89219         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
89220         * modules/extensions, modules/gnu-source: New files.
89221         * modules/timespec, modules/unlocked-io: Depend on extensions.
89222
89223 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89224
89225         * modules/restrict: New file.
89226         * MODULES.html.sh (func_all_modules): Add restrict.
89227         * modules/regex: Depend on restrict.
89228
89229 2003-08-07  Paul Eggert  <eggert@twinsun.com>
89230
89231         * m4/restrict.m4: New file.
89232         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
89233
89234 2003-08-07  Bruno Haible  <bruno@clisp.org>
89235
89236         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
89237         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
89238
89239 2003-08-07  Bruno Haible  <bruno@clisp.org>
89240
89241         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
89242         makes the module 'getndelim2' compatible with the module 'getline'.
89243
89244 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89245
89246         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
89247         byte with "\201" to avoid glitches when editing that source file
89248         with multi-gnome-terminal.
89249
89250 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89251
89252         * lib/bumpalloc.h: Remove.
89253
89254 2003-08-05  Paul Eggert  <eggert@twinsun.com>
89255
89256         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
89257         * modules/bumpalloc: Remove.
89258
89259 2003-08-04  Paul Eggert  <eggert@twinsun.com>
89260
89261         * lib/getloadavg.c: Change copyright notice and spacing to conform to
89262         GNU coding style.
89263
89264         Merge from coreutils.
89265         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
89266         1. From glibc.
89267         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
89268         from Karl Berry, implemented by Jim Meyering.
89269         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
89270         from Dmitry V. Levin.
89271         Remove anachronistic cast of xrealloc.
89272         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
89273         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
89274         type. Otherwise, it wouldn't compile with at least /bin/cc on
89275         ymp-cray-unicos9.0.2.X.
89276         Combine two mostly-identical uses of alloca into one.
89277         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
89278
89279 2003-08-04  Dave Love  <d.love@dl.ac.uk>
89280
89281         [From Emacs.]
89282
89283         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
89284         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
89285         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
89286         obsolete NLIST_NAME_UNION.
89287         [__GNU__]: Undef BSD and FSCALE.
89288         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
89289
89290 2003-08-03  Paul Eggert  <eggert@twinsun.com>
89291
89292         * lib/stdbool_.h (_Bool): Make it signed char, instead of
89293         an enum type, so that it's guaranteed to promote to int.  See:
89294         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
89295
89296 2003-08-03  Karl Berry  <karl@gnu.org>
89297
89298         * config/depcomp: update from automake.
89299
89300 2003-07-31  Paul Eggert  <eggert@twinsun.com>
89301
89302         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
89303         (strerror): Don't assume that a printable int fits in 14 bytes.
89304
89305 2003-07-31  Bruno Haible  <bruno@clisp.org>
89306
89307         * modules/getpass-gnu: New file.
89308         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
89309
89310 2003-07-31  Bruno Haible  <bruno@clisp.org>
89311
89312         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89313
89314 2003-07-24  Karl Berry  <karl@gnu.org>
89315
89316         * config/missing: update from automake.
89317
89318 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89319             Bruno Haible  <bruno@clisp.org>
89320
89321         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89322         * lib/getline.c (getline, getdelim): Likewise.
89323         Remove _GNU_SOURCE define; now it's defined in config.h through
89324         m4/getline.m4.
89325
89326 2003-07-23  Karl Berry  <karl@gnu.org>
89327
89328         * config/config.sub: update from prep.
89329
89330 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89331
89332         * modules/xalloc (Depends-on): Add exitfail.
89333         * modules/xmemcoll: Likewise.
89334
89335 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89336
89337         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89338         over-parenthesization in macros.
89339
89340         Sync with coreutils.
89341
89342         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89343         required by C99.
89344
89345         Use `exit_failure' for xalloc and xmemcoll instead of their own
89346         private exit-failure variables.
89347         * lib/xalloc.h (xalloc_exit_failure): Remove.
89348         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89349         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89350         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89351         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89352         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89353
89354 2003-07-20  Jim Meyering  <jim@meyering.net>
89355
89356         * modules/closeout (Depends-on): Add exitfail.
89357         Suggestion from Bruno Haible.
89358
89359 2003-07-19  Karl Berry  <karl@gnu.org>
89360
89361         * config/config.sub: update from prep.
89362
89363 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89364
89365         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89366         Remove.
89367         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89368         to test that it can stand by itself.  Include "exitfail.h".
89369         Clients should set exit_failure instead.
89370         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89371
89372 2003-07-18  Bruno Haible  <bruno@clisp.org>
89373
89374         * modules/getndelim2: New file.
89375         * modules/getline: Share files with module getndelim2.
89376         * modules/getnline: Depend on getndelim2 instead of sharing files with
89377         it. Add getnline.c to lib_SOURCES.
89378         * MODULES.html.sh (func_all_modules): Add getndelim2.
89379
89380 2003-07-18  Bruno Haible  <bruno@clisp.org>
89381
89382         * m4/getndelim2.m4: New file.
89383         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89384         invoke gl_PREREQ_GETNDELIM2.
89385         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89386         gl_PREREQ_GETNDELIM2.
89387         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89388         gl_GETNDELIM2.
89389
89390 2003-07-18  Bruno Haible  <bruno@clisp.org>
89391
89392         * lib/getndelim2.h: New file.
89393         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89394         getndelim2.h.
89395         (getndelim2): Make non-static. Change return type to ssize_t.
89396         * lib/getline.h: Change argument names.
89397         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89398         * lib/getnline.c: Include getndelim2.h.
89399
89400 2003-07-18  Andreas Schwab  <schwab@suse.de>
89401
89402         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89403
89404 2003-07-17  Karl Berry  <karl@gnu.org>
89405
89406         * config/config.sub: update from prep.
89407
89408 2003-07-17  Bruno Haible  <bruno@clisp.org>
89409
89410         * modules/getnline: New file.
89411         * modules/getline: Add lib/getndelim2.c to source file list.
89412         * MODULES.html.sh (func_all_modules): Add getnline.
89413
89414 2003-07-17  Bruno Haible  <bruno@clisp.org>
89415
89416         * m4/getnline.m4: New file.
89417
89418 2003-07-17  Bruno Haible  <bruno@clisp.org>
89419
89420         * m4/Makefile.am.in: Remove file.
89421         * m4/Makefile.am: Remove file.
89422         * m4/Makefile.in: Remove file.
89423
89424 2003-07-17  Bruno Haible  <bruno@clisp.org>
89425
89426         * lib/getnline.h: New file.
89427         * lib/getnline.c: New file.
89428         * lib/getndelim2.c: New file, extracted from getline.c.
89429         (getndelim2): Renamed from getdelim2, with added nmax argument.
89430         * lib/getline.c: Include getndelim2.c.
89431         (getdelim2): Moved out to getndelim2.c.
89432         (getline, getdelim): Update.
89433
89434 2003-07-17  Bruno Haible  <bruno@clisp.org>
89435
89436         * lib/Makefile.am: Remove file.
89437         * lib/Makefile.in: Remove file.
89438
89439 2003-07-17  Bruno Haible  <bruno@clisp.org>
89440
89441         * configure.in: Remove file.
89442         * Makefile.in: Remove file.
89443
89444 2003-07-17  Bruno Haible  <bruno@clisp.org>
89445
89446         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89447
89448 2003-07-16  Karl Berry  <karl@gnu.org>
89449
89450         * config/srclist-update: was running fixlicense twice, which caused
89451                 texinfo.tex to be nullified for some reason.  Simplify,
89452                 $gplsrc is no longer needed as far as I can see?
89453
89454 2003-07-16  Jim Meyering  <jim@meyering.net>
89455
89456         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89457
89458 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89459
89460         * config/srclist.txt: Get the following files from gettext-runtime/intl
89461         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89462         ref-del.sin.  From Bruno Haible.
89463         * config/srclist-update (fixfile): Change grep pattern again, since the
89464         previous fix didn't work (there was another trailing $).  Use
89465         '[$]' to escape the $s.
89466
89467 2003-07-15  Karl Berry  <karl@gnu.org>
89468
89469         * lib/vasnprintf.c: update from gettext.
89470
89471 2003-07-15  Karl Berry  <karl@gnu.org>
89472
89473         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89474         gets expanded when surrounded by '$'.
89475
89476 2003-07-15  Jim Meyering  <jim@meyering.net>
89477
89478         * modules/save-cwd: Don't depend on error.  From Derek Price.
89479
89480 2003-07-15  Jim Meyering  <jim@meyering.net>
89481
89482         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89483
89484 2003-07-14  Simon Josefsson  <jas@extundo.com>
89485
89486         * modules/mempcpy: New file.
89487         * MODULES.html.sh (func_all_modules): Add mempcpy.
89488
89489 2003-07-14  Simon Josefsson  <jas@extundo.com>
89490
89491         * m4/mempcpy.m4: New file.
89492
89493 2003-07-14  Simon Josefsson  <jas@extundo.com>
89494
89495         * lib/mempcpy.h: New file.
89496         * lib/mempcpy.c: New file.
89497
89498 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89499
89500         * modules/getdate, modules/posixtm: Depend on mktime.
89501
89502 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89503
89504         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89505         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89506         unicodeio.c, unicodeio.h, unlocked-io.h:
89507         Switch from LGPL to GPL.
89508
89509 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89510
89511         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89512         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89513         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89514         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89515         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89516         updated automatically by ../config/srclist-update.  This changes
89517         their license from LPGL to GPL.
89518
89519 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89520
89521         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89522         assumed to refer to the root of the most recent stable gettext version.
89523         * config/srclistvars.sh: Add defaults for eggert.
89524         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89525         Match "This program" as well as "The program".  This is needed
89526         for gettext.
89527
89528 2003-07-14  Jim Meyering  <jim@meyering.net>
89529
89530         Don't emit diagnostics.  Let callers do that.
89531         * lib/save-cwd.c: Don't include "error.h".
89532         (save_cwd): Don't call error.  Ensure that errno is valid
89533         when returning nonzero.
89534
89535         * lib/save-cwd.h (restore_cwd): Update prototype.
89536         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89537         Simplify.  Don't call error upon failure.  Let callers do that.
89538         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89539         when auditing is enabled.  But don't bother updating the #if.
89540
89541 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89542
89543         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89544         it breaks C++ compilation.
89545         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89546
89547 2003-07-10  Simon Josefsson  <jas@extundo.com>
89548
89549         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89550
89551 2003-07-10  Jim Meyering  <jim@meyering.net>
89552
89553         * m4/clock_time.m4: Remove trailing blank.
89554         * m4/intmax_t.m4: Likewise.
89555
89556 2003-07-10  Jim Meyering  <jim@meyering.net>
89557
89558         * lib/vasnprintf.c: Remove trailing blanks.
89559         Make cpp indentation consistent.
89560
89561 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89562
89563         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89564         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89565         Switch from LGPL to GPL.
89566
89567 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89568
89569         * config/srclist.txt: Sort sublists.  Add
89570         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89571         that differ from gnulib for one reason or another; we'd like this list
89572         to be smaller but for now let's document what we have.
89573
89574 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89575
89576         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89577         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89578         and sweeter "eval x=$x".
89579         * config/srclist.txt: Get lib/argp* from glibc.
89580
89581 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89582
89583         * lib/mktime.c: Fix some boundary cases and remove need for floating
89584         point.
89585
89586         Issue a compile-time diagnostic if time_t is floating point, or if
89587         two's complement arithmetic is not in effect, or if arithmetic
89588         right shift does not propagate the sign.  These assumptions were
89589         all in the original code but they weren't checked.
89590
89591         (TIME_T_MIDPOINT, verify): New macros.
89592         (__isleap): Remove; it has integer overflow problems.
89593         (leapyear): New function, without those problems.
89594         (ydhms_tm_diff): Remove; splitting into two parts.
89595         (ydhms_diff): New function, containing the arithmetic part of
89596         the old ydhms_tm_diff function.  Issue a compile-time
89597         diagnostic if we are not using C99 integer division.
89598         Avoid casts when possible.
89599         (guess_time_tm): New function, containing the checking part of
89600         the old ydhms_tm_diff function.  Return the new value, rather than
89601         the difference between it and the old.  Accept a new argument T
89602         so that *T specifies the old value.  Check for overflow in the result.
89603
89604         (__mktime_internal): Use a time_t offset, not a long int offset.
89605         This undoes the 2003-06-04 change, which is no longer needed now
89606         that we have better overflow checking.
89607         (localtime_offset): Likewise.
89608
89609         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89610         and long are 64-bit but int is only 32-bit.
89611         (ydhms_diff): Use long int to store year1 and yday1.
89612         Issue a compile-time diagnostic if long int is not wide enough.
89613
89614         (__mktime_internal): Use long int to store adjusted year and yday.
89615         Use plain C rather than preprocessor commands, if that doesn't
89616         affect efficiency.
89617         Check for overflow (and try to repair) after each probe
89618         rather than checking only at the very end.  This avoids some bugs
89619         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89620         does not equal GMT offset at maximum time).
89621         Use integer to check for overflow rather than floating point; this
89622         is more portable to non-IEEE hosts, and is a tad faster.
89623         When we detect that we are oscillating between two values,
89624         don't check whether tm_isdst has the requested value, since
89625         we already know the answer.  When tm_isdst has the wrong value,
89626         use a different heuristic to find the right one, based on the
89627         extreme values actually observed in practice in tz2003a,
89628         rather than the (overly optimistic) "previous 3 calendar quarters".
89629
89630         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89631         "T const" to accommodate glibc style.
89632         (check_result): Use less-confusing report format.  "long" -> "long int.
89633         (main): Likewise.
89634         Don't loop if the iteration overflows time_t.
89635         Allow a negative step in the iteration.
89636
89637 2003-07-06  Karl Berry  <karl@gnu.org>
89638
89639         * config/depcomp: update from automake.
89640         * config/config.sub: update from prep.
89641
89642 2003-07-03  Karl Berry  <karl@gnu.org>
89643
89644         * config/config.guess: update from prep.
89645
89646 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89647
89648         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89649         xreadlink.c now includes it unconditionally.
89650
89651 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89652
89653         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89654         having it depend on HAVE_SYS_TYPES_H.
89655
89656 2003-07-01  Bruno Haible  <bruno@clisp.org>
89657
89658         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89659         <sys/types.h> should be sufficient.
89660         Reported by Paul Eggert.
89661
89662 2003-06-26  Karl Berry  <karl@gnu.org>
89663
89664         * config/depcomp: update from automake.
89665
89666 2003-06-26  Bruno Haible  <bruno@clisp.org>
89667
89668         * modules/human: Depend on module stdbool.
89669
89670 2003-06-25  Bruno Haible  <bruno@clisp.org>
89671
89672         * modules/readlink: New file.
89673         * modules/xreadlink: Depend on it.
89674         * MODULES.html.sh (func_all_modules): Add readlink.
89675
89676 2003-06-25  Bruno Haible  <bruno@clisp.org>
89677
89678         * m4/readlink.m4: New file.
89679
89680 2003-06-25  Bruno Haible  <bruno@clisp.org>
89681
89682         * lib/readlink.c: New file.
89683
89684 2003-06-22  Karl Berry  <karl@gnu.org>
89685
89686         * config/srclist.txt: update mkinstalldirs from automake.
89687         * config/mkinstalldirs: update.
89688
89689 2003-06-22  Bruno Haible  <bruno@clisp.org>
89690
89691         Portability to mingw32.
89692         * m4/ssize_t.m4: New file, from GNU gettext.
89693         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89694         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89695
89696 2003-06-22  Bruno Haible  <bruno@clisp.org>
89697
89698         * modules/safe-read: Add m4/ssize_t.m4.
89699         * modules/xreadlink: Add m4/ssize_t.m4.
89700
89701 2003-06-20  Bruno Haible  <bruno@clisp.org>
89702
89703         Assume C89, so PARAMS isn't needed.
89704         * lib/unicodeio.h (PARAMS): Remove.
89705         * lib/unicodeio.c: Don't use PARAMS.
89706
89707 2003-06-18  Karl Berry  <karl@gnu.org>
89708
89709         * config/config.{guess,sub}: update from prep.
89710
89711 2003-06-18  Jim Meyering  <jim@meyering.net>
89712
89713         Merge changes from coreutils.
89714         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89715         Remove explicit declarations of xmalloc and realloc.
89716         Include xalloc.h.
89717         (read_utmp): Remove anachronistic cast of xmalloc.
89718
89719 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89720
89721         Assume C89, so PARAMS isn't needed.
89722         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89723         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89724         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89725         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89726         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89727         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89728         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89729         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89730         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89731         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89732         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89733         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89734         no longer needed. Anyway, config.h should always be included before any
89735         other file.
89736
89737 2003-06-11  Simon Josefsson  <jas@extundo.com>
89738
89739         * modules/sysexits: New file.
89740         * MODULES.html.sh (func_all_modules): Add sysexits.
89741
89742 2003-06-11  Simon Josefsson  <jas@extundo.com>
89743
89744         * lib/sysexit_.h: New file.
89745
89746 2003-06-11  Derek Price  <derek@ximbiot.com>
89747
89748         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89749         necessary.
89750
89751 2003-06-11  Bruno Haible  <bruno@clisp.org>
89752
89753         * m4/sysexits.m4: New file.
89754
89755 2003-06-10  Simon Josefsson  <jas@extundo.com>
89756
89757         * lib/argp.h: New file, from glibc.
89758         * lib/argp-ba.c: New file, from glibc.
89759         * lib/argp-eexst.c: New file, from glibc.
89760         * lib/argp-fmtstream.c: New file, from glibc.
89761         * lib/argp-fmtstream.h: New file, from glibc.
89762         * lib/argp-fs-xinl.c: New file, from glibc.
89763         * lib/argp-help.c: New file, from glibc.
89764         * lib/argp-namefrob.h: New file, from glibc.
89765         * lib/argp-parse.c: New file, from glibc.
89766         * lib/argp-pv.c: New file, from glibc.
89767         * lib/argp-pvh.c: New file, from glibc.
89768         * lib/argp-xinl.c: New file, from glibc.
89769
89770 2003-06-10  Simon Josefsson  <jas@extundo.com>
89771
89772         * modules/strchrnul: New file.
89773
89774 2003-06-10  Simon Josefsson  <jas@extundo.com>
89775
89776         * modules/argp: New file.
89777
89778 2003-06-10  Simon Josefsson  <jas@extundo.com>
89779
89780         * m4/strchrnul.m4: New file.
89781
89782 2003-06-10  Simon Josefsson  <jas@extundo.com>
89783
89784         * lib/strchrnul.h: New file.
89785         * lib/strchrnul.c: New file.
89786
89787 2003-06-10  Bruno Haible  <bruno@clisp.org>
89788
89789         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89790
89791 2003-06-07  Karl Berry  <karl@gnu.org>
89792
89793         * config/config.{guess,sub}: update from prep.
89794
89795 2003-06-07  Jim Meyering  <jim@meyering.net>
89796
89797         * modules/strtod: Use $(...) notation, not @...@ for
89798         AC_REPLACE'd variables.
89799         * modules/localcharset: Likewise.
89800
89801 2003-06-07  Jim Meyering  <jim@meyering.net>
89802
89803         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89804         in place of my name in the copyright comment.
89805         Remove definition and uses of __P.
89806
89807         From coreutils.
89808         * lib/stat.c: Don't declare xmalloc explicitly.
89809         Instead, include "xalloc.h".
89810         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89811         xrealloc, and xcalloc return values.
89812         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89813         Improve comment.
89814         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89815
89816 2003-06-07  Bruno Haible  <bruno@clisp.org>
89817
89818         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89819         avoid AC_CONFIG_LINKS.
89820         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89821         fnmatch.h, to avoid AC_CONFIG_LINKS.
89822         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89823
89824 2003-06-07  Bruno Haible  <bruno@clisp.org>
89825
89826         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89827         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89828         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89829         directory.
89830         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89831         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89832         directory.
89833
89834 2003-06-06  Jim Meyering  <jim@meyering.net>
89835
89836         Merge from coreutils.
89837         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89838         Consolidate declarations and initializations of *_base* locals.
89839
89840         Merge from coreutils.
89841         This avoids a core dump on systems without GNU putenv,
89842         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89843         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89844         (unsetenv): New static function, from GNU libc.
89845         (rpl_putenv): Use it.
89846
89847         * lib/modechange.c: Remove trailing blanks.
89848
89849         Merge from coreutils.
89850         * lib/fsusage.c: Remove declaration of statfs.
89851         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89852
89853         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89854
89855 2003-06-06  Jim Meyering  <jim@meyering.net>
89856
89857         * lib/stdbool_.h: Renamed from stdbool.h.in.
89858
89859 2003-06-06  Jim Meyering  <jim@meyering.net>
89860             Bruno Haible  <bruno@clisp.org>
89861
89862         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89863         Adjust Makefile.am snippet not to redirect directly to target.
89864         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89865
89866 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89867
89868         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89869         mismatch, look in future quarters as well as past.  This fixes a
89870         bug when processing fall-backwards gaps immediately after a long
89871         period of daylight-saving time.
89872
89873         * lib/mktime.c: Assume freestanding C89 or better.
89874         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89875         (__P): Remove; not used.
89876         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89877         (mktime, not_equal_tm, print_tm, check_result,
89878         main): Use prototypes.  Use const * where appropriate.
89879         (main): Fix typo in testing code that uncovered by above changes.
89880         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89881
89882 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89883
89884         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89885         locale.h, localeconv.  This merges changes from coreutils.
89886
89887         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89888         It can be removed after the next Autoconf is released.
89889         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89890         needed.
89891
89892 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89893
89894         * lib/mktime.c: Fix Debian bug 177940
89895         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89896         (localtime_offset): Now long int, not time_t, because we want it
89897         to be guaranteed to be signed.  All uses changed.
89898         (__mktime_internal): If overflow would occur when adding offset,
89899         don't add it.
89900
89901         Merge 'human' changes from coreutils.  Rewrite to support
89902         locale-specific notations like thousands separators.
89903         * lib/human.c: Simplify authorship notice.
89904         Include human.h immediately after config.h.
89905         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89906         <limits.h>: Do not include, since human.h does.
89907         (SIZE_MAX, UINTMAX_MAX): New macros.
89908         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89909         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89910         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89911         (power_letter): Renamed from suffixes.
89912         (generate_suffix_backwards): Remove.
89913         (adjust_value): Now takes int style (because of human.h changes)
89914         and long double value (for greater precision on some platforms).
89915         (group_number): New function.
89916         (human_readable): Use it.  Use integer options, not enum.
89917         Put the options before the sizes in the arg list.
89918         Support all the new options.
89919         The old human_readable function has been removed;
89920         use inttostr.h instead.
89921         (human_readable, default_block_size, humblock):
89922         Use uintmax_t, not int, for block sizes.
89923         (human_readable_inexact, block_size_types): Remove.
89924         (block_size_opts): New constant.
89925         (human_options): Renamed from human_block_size, with new signature
89926         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89927         * lib/human.h: Add copyright and authorship notice.
89928         Include <limits.h> and <stdbool.h> unconditionally.
89929         (PARAMS): Remove.  All uses removed.
89930         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89931         (enum human_inexact_style): Remove tag; now a nameless enum.
89932         (human_floor, human_ceiling, human_round_to_even): Now have
89933         values 2, 0, 1 rather than -1, 1, 0.
89934         (human_group_digits, human_suppress_point_zero, human_autoscale,
89935         human_base_1024, human_SI, human_B): New constants.
89936         (human_readable_inexact, human_block_size): Remove.
89937         (human_readable): Size args are now uintmax_t, not int.
89938         (human_options): New decl.
89939
89940         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89941         unnecessary now that we assume C89 or better.  This change
89942         imported from coreutils.
89943
89944         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89945         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89946         in the 2003-05-30 sync from glibc.
89947
89948         .h files should stand alone, but we shouldn't include <sys/types.h>
89949         if we can get away with just <stddef.h>.
89950
89951         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89952         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89953         rather than <sys/types.h>, as we merely need size_t.
89954         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89955         to get size_t.
89956         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89957         Include <stdio.h>, to get FILE.
89958         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89959         memcasecmp.h has included <stddef.h> and all we need is size_t.
89960         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89961         our interface, instead of including <sys/types.h>
89962
89963 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89964
89965         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89966         now, as glibc mktime is buggy on non-glibc systems.
89967
89968 2003-06-03  Karl Berry  <karl@gnu.org>
89969
89970         * config/config.sub: update from prep.
89971
89972 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89973
89974         [from coreutils]
89975         Fix some minor time-related bugs with POSIX time arguments.
89976         Some valid time stamps were being rejected (notably -1, and
89977         time stamps before 1900 on 64-bit hosts).  And some invalid
89978         time stamps were being accepted, e.g. September 31.
89979
89980         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89981         that we can return (time_t) -1 successfully.
89982         * lib/posixtm.c: Likewise.
89983         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89984         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89985         (t): Remove static var.
89986         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89987         of static var.  All uses changed.
89988         (year): Do not reject years before 1900; they can occur with
89989         64-bit time_t.
89990         (posix_time_parse): Do not check for out-of-range components;
89991         that is now the caller's responsibility, since our checks were
89992         only approximations.
89993         (posixtime): Use mktime to check for out-of-range components,
89994         since it knows them exactly.
89995         If mktime returns (time_t) -1, check whether an error actually occurred
89996         by invoking localtime on -1.
89997         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89998         posixtime failures better.
89999         Improve the test data (in comments only).
90000
90001 2003-06-02  Karl Berry  <karl@gnu.org>
90002
90003         * config/mkinstalldirs (version): new variable.
90004         (--version): new option.
90005         (usage): improve message.
90006
90007 2003-05-30  Karl Berry  <karl@gnu.org>
90008
90009         * lib/mktime.c: update from libc.
90010
90011 2003-05-30  Bruno Haible  <bruno@clisp.org>
90012
90013         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
90014         * config/config.rpath: Upgrade to gettext-0.12.1.
90015
90016 2003-05-30  Bruno Haible  <bruno@clisp.org>
90017
90018         * m4/gettext.m4: Upgrade to gettext-0.12.1.
90019         * m4/nls.m4: New file, from gettext-0.12.1.
90020         * m4/po.m4: New file, from gettext-0.12.1.
90021         * m4/progtest.m4: Upgrade to gettext-0.12.1.
90022
90023 2003-05-30  Bruno Haible  <bruno@clisp.org>
90024
90025         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
90026         * lib/localcharset.h: Likewise.
90027         * lib/localcharset.c: Likewise.
90028
90029 2003-05-29  Karl Berry  <karl@gnu.org>
90030
90031         * config/config.rpath: update from gettext.
90032
90033 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90034
90035         Assume the headers required for C89 freestanding compilers.
90036         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
90037         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
90038         * m4/human.m4 (gl_HUMAN): Likewise.
90039         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
90040         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
90041         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90042         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
90043         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90044         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
90045
90046 2003-05-28  Paul Eggert  <eggert@twinsun.com>
90047
90048         Assume the headers required for C89 freestanding compilers.
90049         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
90050         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
90051         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
90052         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
90053         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
90054         define, since <limits.h> is guaranteed to do that.
90055         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
90056         * lib/exclude.c: Include <stdbool.h> unconditionally.
90057         * lib/tempname.c: Include <stddef.h> unconditionally.
90058         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
90059         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
90060         <stddef.h> does that.
90061         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
90062         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
90063         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
90064         needed.
90065         * lib/xstrtol.c: Likewise.
90066         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
90067         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
90068
90069         * lib/addext.c (addext): Use assignment rather than cast, to avoid
90070         warnings on some platforms.
90071
90072         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
90073         arbitrarily.
90074
90075 2003-05-26  Jim Meyering  <jim@meyering.net>
90076
90077         Merge in a change from coreutils:
90078         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
90079         that is guaranteed to be `no'.  Use `no_such_member' to indicate
90080         that condition, rather than `-1' which is slightly misleading.
90081         Change the name of the cache variable to have the gl_ prefix.
90082         Prompted by a patch from Richard Dawe for DJGPP.
90083
90084 2003-05-24  Karl Berry  <karl@gnu.org>
90085
90086         * config/config.guess: update from prep.
90087
90088 2003-05-22  Karl Berry  <karl@gnu.org>
90089
90090         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
90091
90092 2003-05-20  Karl Berry  <karl@gnu.org>
90093
90094         * config/config.guess: update from prep.
90095
90096 2003-05-18  Karl Berry  <karl@gnu.org>
90097
90098         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
90099         might actually be set by the user.
90100
90101         * config/depcomp, install-sh, mdate-sh: update from automake.
90102
90103 2003-05-17  Bruno Haible  <bruno@clisp.org>
90104
90105         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
90106         invalid expansion for AC_EGREP_CPP.
90107         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
90108         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
90109         Suggested by Akim Demaille <akim@epita.fr> in
90110         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
90111
90112 2003-05-12  Jim Meyering  <jim@meyering.net>
90113
90114         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
90115         the space-padded-by-default conversion specifiers, %e, %k, %l.
90116
90117 2003-05-12  Bruno Haible  <bruno@clisp.org>
90118
90119         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
90120         the string is longer than 4 KB.
90121
90122 2003-05-11  Karl Berry  <karl@gnu.org>
90123
90124         * config/config.{guess,sub}: update from prep.
90125
90126 2003-05-09  Bruno Haible  <bruno@clisp.org>
90127
90128         * modules/error: Add m4/strerror_r.m4 to file list.
90129
90130 2003-05-03  Bruno Haible  <bruno@clisp.org>
90131
90132         Upgrade to Unicode-4.0.
90133         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
90134         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
90135         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
90136         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
90137         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
90138         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
90139         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
90140         Change width of U+E0100..U+E01EF from 1 to 0.
90141
90142 2003-04-25  Jim Meyering  <jim@meyering.net>
90143
90144         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
90145         of type size_t, not int.
90146
90147 2003-04-25  Bruno Haible  <bruno@clisp.org>
90148
90149         * lib/copy-file.c: Include <stddef.h>, for size_t.
90150
90151 2003-04-21  Paul Eggert  <eggert@twinsun.com>
90152
90153         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
90154         code which expansion is under static control.  Patch imported from
90155         Akim Demaille's patch to Bison; see
90156         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
90157
90158 2003-04-14  Bruno Haible  <bruno@clisp.org>
90159
90160         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
90161
90162 2003-04-11  Jim Meyering  <jim@meyering.net>
90163
90164         Merge changes from Coreutils.
90165
90166         2003-03-22  Jim Meyering  <jim@meyering.net>
90167
90168         * lib/strftime.c (widen): Cast alloca return value to proper type.
90169
90170         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
90171
90172         From GNU libc.
90173         * lib/strftime.c (my_strftime): Handle very large width
90174         specifications for numeric values correctly.  Improve checks for
90175         overflow.
90176
90177         2003-01-19  Jim Meyering  <jim@meyering.net>
90178
90179         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
90180         definitions.
90181         (nl_get_alt_digit) [! defined my_strftime]: Define.
90182         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
90183         _nl_get_alt_digit and _nl_get_walt_digit.
90184
90185         * lib/strftime.c (my_strftime): Merge in locale-related changes from
90186         libc. These changes have no effect outside of _LIBC.
90187
90188 2003-04-10  Bruno Haible  <bruno@clisp.org>
90189
90190         * modules/findprog: New file.
90191         * MODULES.html.sh (func_all_modules): Add it.
90192
90193 2003-04-10  Bruno Haible  <bruno@clisp.org>
90194
90195         * m4/findprog.m4: New file.
90196         * m4/eaccess.m4: New file.
90197
90198 2003-04-10  Bruno Haible  <bruno@clisp.org>
90199
90200         * lib/findprog.h: New file, from GNU gettext.
90201         * lib/findprog.c: New file, from GNU gettext.
90202
90203 2003-04-05  Jim Meyering  <jim@meyering.net>
90204
90205         Merge changes from Coreutils.
90206
90207         * lib/exclude.h (PARAMS): Remove definition and uses.
90208         * lib/exclude.c: Remove uses of `PARAMS'.
90209
90210         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
90211         Add test-cases for DOS filenames. Declare program_name.
90212         (main): Set up program_name.  Patch by Rich Dawe.
90213
90214         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90215         error from mntctl.
90216         Use mntctl's return value to drive the entry-processing loop, since
90217         we can't rely on the value of the vmt_length member in the last
90218         entry.  On some systems doing so could result in exhausting
90219         virtual memory.  Based in part on a patch from Mike Jetzer.
90220
90221 2003-04-04  Bruno Haible  <bruno@clisp.org>
90222
90223         * modules/linebreak: New file.
90224         * MODULES.html.sh (func_all_modules): Add it.
90225
90226 2003-04-04  Bruno Haible  <bruno@clisp.org>
90227
90228         * m4/linebreak.m4: New file.
90229
90230 2003-04-04  Bruno Haible  <bruno@clisp.org>
90231
90232         * lib/linebreak.h: New file, from GNU gettext.
90233         * lib/linebreak.c: New file, from GNU gettext with slight
90234         modifications.
90235         * lib/lbrkprop.h: New file, from GNU gettext.
90236
90237 2003-04-03  Bruno Haible  <bruno@clisp.org>
90238
90239         * modules/utf8-ucs4: New file.
90240         * modules/utf16-ucs4: New file.
90241         * modules/ucs4-utf8: New file.
90242         * modules/ucs4-utf16: New file.
90243         * MODULES.html.sh (func_all_modules): Add them.
90244
90245 2003-04-03  Bruno Haible  <bruno@clisp.org>
90246
90247         * m4/utf-ucs4.m4: New file.
90248         * m4/ucs4-utf.m4: New file.
90249
90250 2003-04-03  Bruno Haible  <bruno@clisp.org>
90251
90252         * lib/utf8-ucs4.h: New file, from GNU gettext.
90253         * lib/utf16-ucs4.h: New file, from GNU gettext.
90254         * lib/ucs4-utf8.h: New file, from GNU gettext.
90255         * lib/ucs4-utf16.h: New file, from GNU gettext.
90256
90257 2003-04-02  Bruno Haible  <bruno@clisp.org>
90258
90259         * modules/binary-io: New file.
90260         * MODULES.html.sh (func_all_modules): Add it.
90261
90262 2003-04-02  Bruno Haible  <bruno@clisp.org>
90263
90264         * lib/binary-io.h: New file, from GNU gettext.
90265
90266 2003-04-01  Bruno Haible  <bruno@clisp.org>
90267
90268         * modules/pathname: New file.
90269         * MODULES.html.sh (func_all_modules): Add it.
90270
90271 2003-04-01  Bruno Haible  <bruno@clisp.org>
90272
90273         * lib/pathname.h: New file, from GNU gettext.
90274         * lib/concatpath.c: New file, from GNU gettext.
90275
90276 2003-03-30  Bruno Haible  <bruno@clisp.org>
90277
90278         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
90279
90280 2003-03-30  Bruno Haible  <bruno@clisp.org>
90281
90282         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
90283         function chown() doesn't exist.
90284
90285 2003-03-28  Bruno Haible  <bruno@clisp.org>
90286
90287         * modules/copy-file: New file.
90288         * MODULES.html.sh (func_all_modules): Add it.
90289
90290 2003-03-28  Bruno Haible  <bruno@clisp.org>
90291
90292         * m4/copy-file.m4: New file.
90293
90294 2003-03-28  Bruno Haible  <bruno@clisp.org>
90295
90296         * lib/copy-file.h: New file, from GNU gettext.
90297         * lib/copy-file.c: New file, from GNU gettext.
90298
90299 2003-03-18  Jim Meyering  <jim@meyering.net>
90300
90301         * lib/quote.c (quote_n): Fix typo in comment.
90302
90303 2003-03-18  Bruno Haible  <bruno@clisp.org>
90304
90305         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
90306         checking.
90307         * m4/onceonly_2_57.m4: Likewise.
90308
90309 2003-03-17  Bruno Haible  <bruno@clisp.org>
90310
90311         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90312         (m4_quote): Remove macro.
90313         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90314
90315 2003-03-14  Jim Meyering  <jim@meyering.net>
90316
90317         Merge changes from Coreutils.
90318         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90319         to be const, in order to avoid warnings.
90320         (obstack_room): Likewise.
90321         (obstack_empty_p): Likewise.
90322
90323 2003-03-14  Bruno Haible  <bruno@clisp.org>
90324
90325         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90326         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90327
90328 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90329
90330         Merge changes from Bison.
90331         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90332         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90333         when compiling Bison 1.875's `bitset bset = obstack_alloc
90334         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90335         * lib/hash.c: Include <stdbool.h> unconditionally.
90336
90337 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90338
90339         * m4/onceonly.m4 (m4_quote): New macro.
90340         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90341         Quote AC_FOREACH variable-expansions properly.
90342
90343 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90344
90345         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90346
90347 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90348
90349         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90350         Reported by Bruce Becker; see:
90351         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90352
90353 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90354             Bruno Haible  <bruno@clisp.org>
90355
90356         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90357         Reported by John Hughes, see
90358         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90359
90360 2003-02-20  Bruno Haible  <bruno@clisp.org>
90361
90362         * MODULES.html.sh (func_all_modules): Add poll.
90363
90364 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90365
90366         * modules/poll: New file.
90367
90368 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90369
90370         * lib/poll_.h: New file.
90371         * lib/poll.c: New file.
90372
90373 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90374
90375         * m4/poll.m4: New file.
90376
90377 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90378
90379         * modules/mathl: New file.
90380
90381 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90382
90383         * lib/mathl.h: New file.
90384         * lib/acosl.c: New file.
90385         * lib/asinl.c: New file.
90386         * lib/atanl.c: New file.
90387         * lib/ceill.c: New file.
90388         * lib/cosl.c: New file.
90389         * lib/expl.c: New file.
90390         * lib/floorl.c: New file.
90391         * lib/frexpl.c: New file.
90392         * lib/ldexpl.c: New file.
90393         * lib/logl.c: New file.
90394         * lib/sincosl.c: New file.
90395         * lib/sinl.c: New file.
90396         * lib/sqrtl.c: New file.
90397         * lib/tanl.c: New file.
90398         * lib/trigl.c: New file.
90399         * lib/trigl.h: New file.
90400
90401 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90402
90403         * m4/mathl.m4: New file.
90404
90405 2003-02-18  Bruno Haible  <bruno@clisp.org>
90406
90407         * MODULES.html.sh (func_all_modules): Add mathl.
90408
90409 2003-02-17  Bruno Haible  <bruno@clisp.org>
90410
90411         * modules/mkdtemp: New module.
90412         * MODULES.html.sh (func_all_modules): Add it.
90413
90414 2003-02-17  Bruno Haible  <bruno@clisp.org>
90415
90416         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90417
90418 2003-02-17  Bruno Haible  <bruno@clisp.org>
90419
90420         * lib/mkdtemp.h: New file, from GNU gettext.
90421         * lib/mkdtemp.c: New file, from GNU gettext.
90422
90423 2003-02-02  Jim Meyering  <jim@meyering.net>
90424
90425         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90426         e.g. glibc-2.2.93.
90427
90428 2003-01-31  Bruno Haible  <bruno@clisp.org>
90429
90430         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90431         'rpl_rename'.
90432         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90433         'rpl_strnlen'.
90434         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90435         'rpl_strtod'.
90436         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90437         'rpl_utime'.
90438
90439 2003-01-31  Bruno Haible  <bruno@clisp.org>
90440
90441         * lib/rename.c: #undef rename before defining rpl_rename.
90442         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90443
90444 2003-01-30  Bruno Haible  <bruno@clisp.org>
90445
90446         * modules/vasnprintf, modules/vasprintf: New modules.
90447         * MODULES.html.sh (func_all_modules): Add them.
90448
90449 2003-01-30  Bruno Haible  <bruno@clisp.org>
90450
90451         * m4/signed.m4: New file, from GNU gettext.
90452         * m4/longdouble.m4: New file, from GNU gettext.
90453         * m4/wchar_t.m4: New file, from GNU gettext.
90454         * m4/wint_t.m4: New file, from GNU gettext.
90455         * m4/vasnprintf.m4: New file.
90456         * m4/vasprintf.m4: New file.
90457
90458 2003-01-30  Bruno Haible  <bruno@clisp.org>
90459
90460         * lib/printf-args.h: New file, from GNU gettext.
90461         * lib/printf-args.c: New file, from GNU gettext.
90462         * lib/printf-parse.h: New file, from GNU gettext.
90463         * lib/printf-parse.c: New file, from GNU gettext.
90464         * lib/vasnprintf.h: New file, from GNU gettext.
90465         * lib/vasnprintf.c: New file, from GNU gettext.
90466         * lib/asnprintf.c: New file, from GNU gettext.
90467         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90468         * lib/vasprintf.c: New file, from GNU gettext.
90469         * lib/asprintf.c: New file, from GNU gettext.
90470
90471 2003-01-29  Bruno Haible  <bruno@clisp.org>
90472
90473         * modules/stpncpy: New module.
90474         * MODULES.html.sh (func_all_modules): Add it.
90475
90476 2003-01-29  Bruno Haible  <bruno@clisp.org>
90477
90478         * m4/stpncpy.m4: New file.
90479
90480 2003-01-29  Bruno Haible  <bruno@clisp.org>
90481
90482         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90483         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90484
90485 2003-01-28  Bruno Haible  <bruno@clisp.org>
90486
90487         * modules/c-ctype: New module.
90488         * MODULES.html.sh (func_all_modules): Add it.
90489
90490 2003-01-28  Bruno Haible  <bruno@clisp.org>
90491
90492         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90493         Paul Eggert.
90494         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90495         Paul Eggert.
90496
90497 2003-01-27  Bruno Haible  <bruno@clisp.org>
90498
90499         * modules/xsetenv: New module.
90500         * MODULES.html.sh (func_all_modules): Add it.
90501
90502 2003-01-27  Bruno Haible  <bruno@clisp.org>
90503
90504         * lib/xsetenv.h: New file, from GNU gettext.
90505         * lib/xsetenv.c: New file, from GNU gettext.
90506
90507 2003-01-23  Jim Meyering  <jim@meyering.net>
90508
90509         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90510         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90511
90512 2003-01-23  Bruno Haible  <bruno@clisp.org>
90513
90514         * modules/minmax: New module.
90515         * MODULES.html.sh (func_all_modules): Add it.
90516
90517 2003-01-23  Bruno Haible  <bruno@clisp.org>
90518
90519         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90520         Eggert.
90521
90522 2003-01-22  Bruno Haible  <bruno@clisp.org>
90523
90524         * modules/exit: New module.
90525         * MODULES.html.sh (func_all_modules): Add it.
90526
90527 2003-01-22  Bruno Haible  <bruno@clisp.org>
90528
90529         * lib/exit.h: New file, from GNU gettext.
90530
90531 2003-01-19  Bruno Haible  <bruno@clisp.org>
90532
90533         * gnulib-tool: Recognize option --extract-maintainer.
90534         (func_get_maintainer): New function.
90535         * modules/*: Add Maintainer entry.
90536
90537 2003-01-16  Jim Meyering  <jim@meyering.net>
90538
90539         * m4/regex.m4: The `regex' struct is both input and output.
90540         Initialize it before each use.  Patch by Tim Waugh.
90541
90542 2003-01-16  Bruno Haible  <bruno@clisp.org>
90543
90544         * MODULES.html.sh: Add a table of contents. Add the module name as
90545         leftmost column. Add hyperlinks.
90546
90547 2003-01-15  Bruno Haible  <bruno@clisp.org>
90548
90549         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90550
90551 2003-01-15  Bruno Haible  <bruno@clisp.org>
90552
90553         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90554         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90555         suffix.
90556
90557 2003-01-15  Bruno Haible  <bruno@clisp.org>
90558
90559         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90560
90561 2003-01-15  Bruno Haible  <bruno@clisp.org>
90562
90563         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90564         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90565
90566 2003-01-14  Jim Meyering  <jim@meyering.net>
90567
90568         * lib/same.c (same_name): Tweak a comment.
90569
90570 2003-01-14  Bruno Haible  <bruno@clisp.org>
90571
90572         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90573         when a string comparison is sufficient.
90574
90575 2003-01-14  Bruno Haible  <bruno@clisp.org>
90576
90577         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90578         'unsigned int'.
90579
90580 2003-01-14  Bruno Haible  <bruno@clisp.org>
90581
90582         * lib/hash-pjw.c: Add comment about low quality of this function.
90583
90584 2003-01-13  Bruno Haible  <bruno@clisp.org>
90585
90586         * modules/stpcpy: Distribute lib/stpcpy.h.
90587         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90588
90589 2003-01-13  Bruno Haible  <bruno@clisp.org>
90590
90591         * modules/*: Add a description.
90592         * modules/strpbrk: Fix Makefile.am snippet.
90593         * modules/strtoimax: Fix dependencies.
90594         * modules/strtoumax: Likewise.
90595
90596 2003-01-13  Bruno Haible  <bruno@clisp.org>
90597
90598         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90599         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90600         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90601
90602 2003-01-13  Bruno Haible  <bruno@clisp.org>
90603
90604         * gnulib-tool (func_create_testdir): Store config/* files in the main
90605         directory.
90606         * config.rpath: Move to ...
90607         * config/config.rpath: ... here.
90608         * modules/gettext: Contains config/config.rpath, not config.rpath.
90609         * modules/iconv: Likewise.
90610
90611 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90612
90613         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90614         to avoid collisions with libcurses and libreadline.
90615
90616         * m4/getstr.m4: Remove.
90617         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90618
90619 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90620
90621         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90622         to avoid collisions with libcurses and libreadline.
90623
90624         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90625         * lib/getstr.h, getstr.c: Remove.
90626         * lib/getline.c: Include "getline.h", to check interface.
90627         Move body of old getstr.c here: this defines MIN_CHUNK and
90628         declares getdelim2, which is renamed from getstr.
90629         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90630
90631         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90632         All uses changed.
90633         * lib/linebuffer.h: Likewise.
90634         (readline): Remove backward-compatibility macro.
90635
90636 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90637
90638         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90639         to avoid collisions with libcurses and libreadline.
90640         * getstr: Remove.
90641         * MODULES.html.sh: Remove getstr.
90642         * modules/getline: Depend on unlocked-io, not getstr.
90643
90644 2003-01-12  Jim Meyering  <jim@meyering.net>
90645
90646         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90647
90648 2003-01-10  Bruno Haible  <bruno@clisp.org>
90649
90650         * modules/alloca: Change Makefile.am requirements. Simplify Include
90651         requirements. Add lib/alloca_.h to file list.
90652
90653 2003-01-10  Bruno Haible  <bruno@clisp.org>
90654
90655         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90656
90657 2003-01-10  Bruno Haible  <bruno@clisp.org>
90658
90659         * lib/alloca_.h: New file.
90660         * lib/getdate.y: Unconditionally include alloca.h.
90661         * lib/makepath.c: Likewise.
90662         * lib/setenv.c: Likewise.
90663         * lib/userspec.c: Likewise.
90664
90665 2003-01-09  Karl Berry  <karl@gnu.org>
90666
90667         * MODULES.html.sh: include `dirname $0` in PATH, to find
90668         gnulib-tool.
90669
90670 2003-01-09  Bruno Haible  <bruno@clisp.org>
90671
90672         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90673         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90674
90675 2003-01-09  Bruno Haible  <bruno@clisp.org>
90676
90677         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90678
90679 2003-01-09  Bruno Haible  <bruno@clisp.org>
90680
90681         * lib/stdbool.h.in: New file.
90682
90683 2003-01-09  Bruno Haible  <bruno@clisp.org>
90684
90685         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90686         * MODULES.html.sh: Likewise.
90687
90688 2003-01-08  Jim Meyering  <jim@meyering.net>
90689
90690         * lib/full-write.c: Undefine and define-away `const' after inclusion
90691         of errno.h, not before.  Suggestion from Bruno Haible.
90692
90693 2003-01-08  Bruno Haible  <bruno@clisp.org>
90694
90695         * modules/full-read: Depend on full-write.
90696
90697 2003-01-08  Bruno Haible  <bruno@clisp.org>
90698
90699         * lib/safe-read.c: Include specification header first, to ensure its
90700         selfcontainedness.
90701         * lib/full-write.c: Likewise.
90702
90703 2003-01-07  Jim Meyering  <jim@meyering.net>
90704
90705         * lib/full-write.c: Rework so that it may serve to define full_read,
90706         too.
90707         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90708
90709 2003-01-07  Bruno Haible  <bruno@clisp.org>
90710
90711         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90712         <inttypes.h>.
90713         * lib/xstrtol.h: Likewise.
90714         * lib/xstrtoimax.c: Likewise.
90715         * lib/xstrtoumax.c: Likewise.
90716         * lib/human.h: Likewise.
90717
90718         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90719         on systems that have <inttypes.h> but not <stdint.h>.
90720
90721 2003-01-07  Bruno Haible  <bruno@clisp.org>
90722
90723         * MODULES.html.sh: Add copyright notice.
90724         (missed_files): Omit CVS directory entries.
90725         (func_module): Make it work with sed-3.02.
90726         * MODULES.txt: Remove file.
90727
90728 2003-01-06  Jim Meyering  <jim@meyering.net>
90729
90730         * lib/version-etc.c: Update year in translatable copyright string.
90731
90732 2003-01-03  Karl Berry  <karl@gnu.org>
90733
90734         * config/config.{guess,sub}: update from prep.
90735
90736 2003-01-02  Karl Berry  <karl@gnu.org>
90737
90738         * doc/COPYING.DOC: belatedly updated to 1.2.
90739
90740 2003-01-01  Karl Berry  <karl@gnu.org>
90741
90742         * gnulib-tool (func_verify_module): report module name $module in
90743         error message, not $1.
90744         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90745         be created, only if it doesn't exist.
90746         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90747
90748 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90749
90750         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90751
90752 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90753
90754         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90755         memcmp if strcoll doesn't work.
90756
90757 2002-12-31  Bruno Haible  <bruno@clisp.org>
90758
90759         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90760         nonempty.
90761
90762 2002-12-31  Bruno Haible  <bruno@clisp.org>
90763
90764         * lib/memcoll.c (STRCOLL): New macro.
90765         (memcoll): Use it.
90766
90767 2002-12-31  Bruno Haible  <bruno@clisp.org>
90768
90769         * lib/localcharset.h: New file.
90770         * lib/localcharset.c: Include it.
90771         * lib/unicodeio.c: Likewise.
90772
90773 2002-12-31  Bruno Haible  <bruno@clisp.org>
90774
90775         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90776         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90777
90778 2002-12-31  Bruno Haible  <bruno@clisp.org>
90779
90780         * lib/getline.h: Include <stddef.h>, for size_t.
90781
90782         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90783         * lib/unicodeio.c: Don't include <stddef.h>.
90784
90785 2002-12-31  Bruno Haible  <bruno@clisp.org>
90786
90787         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90788         HAVE_TM_ZONE.
90789
90790 2002-12-24  Karl Berry  <karl@gnu.org>
90791
90792         * config/config.guess: update from prep.
90793
90794 2002-12-24  Bruno Haible  <bruno@clisp.org>
90795
90796         General infrasructure.
90797         * m4/README: Rewritten.
90798         * m4/onceonly.m4: New file.
90799         * m4/onceonly_2_57.m4: New file.
90800
90801         Module atexit.
90802         * m4/atexit.m4: New file.
90803
90804         Module strtod.
90805         * m4/strtod.m4: New file.
90806
90807         Module strtol.
90808         * m4/strtol.m4: New file.
90809
90810         Module strtoul.
90811         * m4/strtoul.m4: New file.
90812
90813         Module memchr.
90814         * m4/memchr.m4: New file.
90815
90816         Module memcmp.
90817         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90818         (jm_FUNC_MEMCMP): Invoke it.
90819
90820         Module memcpy.
90821         * m4/memcpy.m4: New file.
90822
90823         Module memmove.
90824         * m4/memmove.m4: New file.
90825
90826         Module memset.
90827         * m4/memset.m4: New file.
90828
90829         Module strcspn.
90830         * m4/strcspn.m4: New file.
90831
90832         Module strpbrk.
90833         * m4/strpbrk.m4: New file.
90834
90835         Module strstr.
90836         * m4/strstr.m4: New file.
90837
90838         Module strerror.
90839         * m4/strerror.m4: New file.
90840
90841         Module mktime.
90842         * m4/mktime.m4: Renamed from jm-mktime.m4.
90843         (gl_PREREQ_MKTIME): New macro.
90844         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90845
90846         Module malloc.
90847         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90848         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90849         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90850
90851         Module realloc.
90852         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90853         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90854         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90855
90856         Module strftime.
90857         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90858         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90859         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90860         gl_TM_GMTOFF.
90861         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90862
90863         Module xalloc.
90864         * m4/xalloc.m4: New file.
90865
90866         Module alloca.
90867         * m4/alloca.m4: New file.
90868
90869         Module putenv.
90870         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90871         (jm_FUNC_PUTENV): Invoke it.
90872
90873         Module setenv.
90874         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90875         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90876         when invoked twice.
90877         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90878         gt_FUNC_SETENV.
90879
90880         Module memrchr.
90881         * m4/memrchr.m4: New file.
90882
90883         Module stpcpy.
90884         * m4/stpcpy.m4: New file.
90885
90886         Module strcase.
90887         * m4/strcase.m4: New file.
90888
90889         Module strdup.
90890         * m4/strdup.m4: New file.
90891
90892         Module strnlen.
90893         * m4/strnlen.m4: New file.
90894
90895         Module strndup.
90896         * m4/strndup.m4: New file.
90897
90898         Module xstrtod.
90899         * m4/xstrtod.m4: New file.
90900
90901         Module xstrtol.
90902         * m4/xstrtol.m4: New file.
90903
90904         Module getdate.
90905         * m4/getdate.m4: New file.
90906
90907         Module unlocked-io.
90908         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90909         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90910         * m4/jm-glibc-io.m4n: Remove file.
90911
90912         Module long-options.
90913         * m4/long-options.m4: New file.
90914
90915         Module md5.
90916         * m4/md5.m4: New file.
90917
90918         Module sha.
90919         * m4/sha.m4: New file.
90920
90921         Module getstr.
90922         * m4/getstr.m4: New file.
90923
90924         Module getline.
90925         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90926         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90927         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90928         simply getline. Infoke gl_PREREQ_GETLINE.
90929
90930         Module obstack.
90931         * m4/obstack.m4: New file.
90932
90933         Module hash.
90934         * m4/hash.m4: New file.
90935
90936         Module readtokens.
90937         * m4/readtokens.m4: New file.
90938
90939         Module strverscmp.
90940         * m4/strverscmp.m4: New file.
90941
90942         Module stdbool.
90943         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90944         OSF/1.
90945
90946         Module strtoll.
90947         * m4/strtoll.m4: New file.
90948
90949         Module strtoull.
90950         * m4/strtoull.m4: New file.
90951
90952         Module strtoimax.
90953         * m4/strtoimax.m4: New file.
90954
90955         Module strtoumax.
90956         * m4/strtoumax.m4: New file.
90957
90958         Module xstrtoimax.
90959         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90960         jm_AC_PREREQ_XSTRTOIMAX.
90961         Moved the strtol prerequisites to strtol.m4.
90962         Moved the strtoll prerequisites to strtoll.m4.
90963         Moved the strtoimax prerequisites to strtoimax.m4.
90964
90965         Module xstrtoumax.
90966         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90967         jm_AC_PREREQ_XSTRTOUMAX.
90968         Moved the strtoul prerequisites to strtoul.m4.
90969         Moved the strtoull prerequisites to strtoull.m4.
90970         Moved the strtoumax prerequisites to strtoumax.m4.
90971
90972         Module chown.
90973         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90974         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90975
90976         Module dup2.
90977         * m4/dup2.m4: New file.
90978
90979         Module ftruncate.
90980         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90981         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90982
90983         Module getgroups.
90984         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90985         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90986
90987         Module gettimeofday.
90988         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90989         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90990         gl_PREREQ_GETTIMEOFDAY.
90991
90992         Module mkdir.
90993         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90994         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90995
90996         Module mkstemp.
90997         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90998         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90999         jm_AC_TYPE_UINTMAX_T.
91000         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
91001
91002         Module stat.
91003         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
91004         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
91005
91006         Module lstat.
91007         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
91008         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
91009
91010         Module timespec.
91011         * m4/timespec.m4 (gl_TIMESPEC): New macro.
91012         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
91013         * m4/st_mtim.m4: Indentation.
91014
91015         Module nanosleep.
91016         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
91017         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
91018         gl_PREREQ_NANOSLEEP.
91019
91020         Module regex.
91021         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
91022         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
91023         (gl_REGEX): New macro.
91024
91025         Module rename.
91026         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
91027         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
91028
91029         Module rmdir.
91030         * m4/rmdir.m4: New file.
91031
91032         Module utime.
91033         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
91034         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
91035         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
91036
91037         Module dirname.
91038         * m4/dirname.m4: New file.
91039
91040         Module getopt.
91041         * m4/getopt.m4: New file.
91042
91043         Module unistd-safer.
91044         * m4/unistd-safer.m4: New file.
91045
91046         Module fnmatch.
91047         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
91048         declaration.
91049         (gl_PREREQ_FNMATCH_EXTRA): New macro.
91050         (gl_FUNC_FNMATCH_POSIX): New macro.
91051         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
91052         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
91053         simply fnmatch.
91054
91055         Module exclude.
91056         * m4/exclude.m4: New file.
91057
91058         Module human.
91059         * m4/human.m4: New file.
91060
91061         Module acl.
91062         * m4/acl.m4: Nop.
91063
91064         Module backupfile.
91065         * m4/backupfile.m4: New file.
91066         * m4/d-ino.m4: Indentation.
91067
91068         Module fsusage.
91069         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
91070         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
91071         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
91072
91073         Module dirfd.
91074         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
91075         requirements.
91076
91077         Module euidaccess.
91078         * m4/euidaccess.m4: New file.
91079
91080         Module file-type.
91081         * m4/file-type.m4: New file.
91082
91083         Module fileblocks.
91084         * m4/fileblocks.m4: New file.
91085
91086         Module filemode.
91087         * m4/filemode.m4: New file.
91088
91089         Module isdir.
91090         * m4/isdir.m4: New file.
91091
91092         Module lchown.
91093         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
91094         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
91095
91096         Module makepath.
91097         * m4/makepath.m4: New file.
91098
91099         Module modechange.
91100         * m4/modechange.m4: New file.
91101
91102         Module mountlist.
91103         * m4/mountlist.m4: New file.
91104         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
91105         Indentation.
91106
91107         Module path-concat.
91108         * m4/path-concat.m4: New file.
91109
91110         Module pathmax.
91111         * m4/pathmax.m4: New file.
91112
91113         Module same.
91114         * m4/same.m4: New file.
91115
91116         Module save-cwd.
91117         * m4/save-cwd.m4: New file.
91118
91119         Module savedir.
91120         * m4/savedir.m4: New file.
91121
91122         Module xgetcwd.
91123         * m4/xgetcwd.m4: New file.
91124         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
91125
91126         Module xreadlink.
91127         * m4/xreadlink.m4: New file.
91128
91129         Module safe-read.
91130         * m4/safe-read.m4: New file.
91131
91132         Module safe-write.
91133         * m4/safe-write.m4: New file.
91134
91135         Module closeout.
91136         * m4/closeout.m4: New file.
91137
91138         Module stdio-safer.
91139         * m4/stdio-safer.m4: New file.
91140
91141         Module getpass.
91142         * m4/getpass.m4: New file.
91143
91144         Module getugroups.
91145         * m4/getugroups.m4: New file.
91146
91147         Module group-member.
91148         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
91149         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
91150
91151         Module idcache.
91152         * m4/idcache.m4: New file.
91153
91154         Module userspec.
91155         * m4/userspec.m4: New file.
91156
91157         Module gettime.
91158         * m4/clock_time.m4: New file.
91159         * m4/gettime.m4: New file.
91160
91161         Module settime.
91162         * m4/settime.m4: New file.
91163
91164         Module posixtm.
91165         * m4/posixtm.m4: New file.
91166
91167         Module gethostname.
91168         * m4/gethostname.m4: New file.
91169
91170         Module canon-host.
91171         * m4/canon-host.m4: New file.
91172
91173         Module gettext.
91174         * m4/codeset.m4: New file, from gettext-0.11.5.
91175         * m4/gettext.m4: New file, from gettext-0.11.5.
91176         * m4/glibc21.m4: New file, from gettext-0.11.5.
91177         * m4/iconv.m4: New file, from gettext-0.11.5.
91178         * m4/intdiv0.m4: New file, from gettext-0.11.5.
91179         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
91180         * m4/inttypes.m4: New file, from gettext-0.11.5.
91181         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
91182         * m4/isc-posix.m4: New file, from gettext-0.11.5.
91183         * m4/lcmessage.m4: New file, from gettext-0.11.5.
91184         * m4/lib-ld.m4: New file, from gettext-0.11.5.
91185         * m4/lib-link.m4: New file, from gettext-0.11.5.
91186         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
91187         * m4/progtest.m4: New file, from gettext-0.11.5.
91188         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
91189         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
91190         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
91191
91192         Module localcharset.
91193         * m4/localcharset.m4: New file.
91194
91195         Module hard-locale.
91196         * m4/hard-locale.m4: New file.
91197
91198         Module mbswidth.
91199         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
91200         onceonly macros.
91201         * m4/mbrtowc.m4: Add comment.
91202
91203         Module memcasecmp.
91204         * m4/memcasecmp.m4: New file.
91205
91206         Module memcoll.
91207         * m4/memcoll.m4: New file.
91208
91209         Module unicodeio.
91210         * m4/unicodeio.m4: New file.
91211
91212         Module rpmatch.
91213         * m4/rpmatch.m4: New file.
91214
91215         Module yesno.
91216         * m4/yesno.m4: New file.
91217
91218         Module exitfail.
91219         * m4/exitfail.m4: New file.
91220
91221         Module c-stack.
91222         * m4/c-stack.m4 (gl_C_STACK): New macro.
91223         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
91224
91225         Module error.
91226         * m4/error.m4 (gl_ERROR): New macro.
91227         (jm_PREREQ_ERROR): Use onceonly macros.
91228
91229         Module fatal.
91230         * m4/fatal.m4: New file.
91231
91232         Module getloadavg.
91233         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
91234         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
91235
91236         Module getpagesize.
91237         * m4/getpagesize.m4: New file.
91238
91239         Module getusershell.
91240         * m4/getusershell.m4: New file.
91241
91242         Module physmem.
91243         * m4/physmem.m4: New file.
91244
91245         Module posixver.
91246         * m4/posixver.m4: New file.
91247
91248         Module quotearg.
91249         * m4/quotearg.m4: New file.
91250
91251         Module quote.
91252         * m4/quote.m4: New file.
91253
91254         Module readutmp.
91255         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
91256
91257         Module sig2str.
91258         * m4/sig2str.m4: New file.
91259
91260         Other.
91261         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
91262         ulonglong.m4.
91263         * m4/intmax_t.m4: New file.
91264         * m4/d-type.m4: Indentation.
91265         * m4/jm-macros.m4: Update.
91266         * m4/prereq.m4 (jm_PREREQ): Update.
91267         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
91268         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
91269         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
91270         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
91271         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
91272         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
91273         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
91274         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
91275         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
91276         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
91277         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
91278         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
91279         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
91280         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
91281         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
91282         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
91283         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
91284         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
91285         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
91286
91287 2002-12-24  Bruno Haible  <bruno@clisp.org>
91288
91289         * MODULES.txt: Update according to m4/ changes.
91290
91291         Module gettext.
91292         * config.rpath: New file, from gettext-0.11.5.
91293
91294         * modules/*: New module descriptions.
91295         * gnulib-tool: New file.
91296         * MODULES.html.sh: New file.
91297
91298 2002-12-21  Karl Berry  <karl@gnu.org>
91299
91300         * doc/fdl.texi: update to version 1.2.
91301
91302 2002-12-19  Karl Berry  <karl@gnu.org>
91303
91304         * config/config.guess: update from prep.
91305
91306 2002-12-18  Bruno Haible  <bruno@clisp.org>
91307
91308         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
91309         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
91310
91311 2002-12-17  Bruno Haible  <bruno@clisp.org>
91312
91313         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91314         stdlib.h, string.h.
91315
91316 2002-12-17  Bruno Haible  <bruno@clisp.org>
91317
91318         * lib/canon-host.c (strdup): Remove unused declaration.
91319
91320         * lib/fsusage.c: Include full_read.h.
91321         (get_fs_usage): Use full_read instead of safe_read.
91322
91323         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91324
91325 2002-12-12  Karl Berry  <karl@gnu.org>
91326
91327         * config/config.guess: update from prep.
91328
91329 2002-12-11  Bruno Haible  <bruno@clisp.org>
91330
91331         * m4/setenv.m4: New file, from gettext-0.11.5.
91332
91333 2002-12-11  Bruno Haible  <bruno@clisp.org>
91334
91335         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91336         not unsetenv().
91337         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91338         modifications:
91339
91340         2002-12-11  Bruno Haible  <bruno@clisp.org>
91341
91342                 * setenv.c (alloca): Fall back to malloc.
91343                 (freea): New macro.
91344                 (setenv): Use freea() to free memory allocated with alloca().
91345
91346         2002-11-13  Bruno Haible  <bruno@clisp.org>
91347
91348                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91349                 function declarations.
91350                 * unsetenv.c (unsetenv): Likewise.
91351
91352         2002-03-04  Bruno Haible  <bruno@clisp.org>
91353
91354                 Portability to AIX 4.3.3.
91355                 * unsetenv.c: New file, extracted from setenv.c.
91356                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91357
91358         2001-12-20  Bruno Haible  <bruno@clisp.org>
91359
91360                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91361                 use malloc instead. For SunOS 4.
91362
91363         2001-12-11  Bruno Haible  <bruno@clisp.org>
91364
91365                 * setenv.c: Declare alloca.
91366                 (compar_fn_t): New typedef.
91367                 (KNOWN_VALUE, STORE_VALUE): Use it.
91368
91369         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91370         setenv.h.
91371
91372 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91373
91374         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91375         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91376         Choose values that are less likely to collide with system fnmatch
91377         options.
91378         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91379         defined (e.g., a pure POSIX system).
91380         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91381         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91382
91383 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91384
91385         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91386         a pain in practice to deal with generated m4 files.  This change
91387         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91388
91389         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91390         and jm-glibc-io.m4, as they are no longer a special case.
91391         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91392         kludge and the auto-generation stuff.  Check only whether the
91393         functions are declared, not whether they exist, since older hosts
91394         that don't declare the functions can't use the optimization anyway.
91395
91396 2002-12-06  Jim Meyering  <jim@meyering.net>
91397
91398         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91399
91400         Merge in changes from libc's misc/error.c, in preparation
91401         for the merge of gnulib's changes back into libc.
91402
91403         * lib/error.c (_): Define only if not already defined.
91404         Move definition to follow all #include directives.
91405         Include unlocked-io.h only if !_LIBC.
91406         [_LIBC]: Include <libio/libioP.h>.
91407         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91408         (fflush): Tweak definition to use INTUSE.
91409         (putc): Define.
91410
91411 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91412
91413         * lib/alloca.c [defined emacs]: Include "lisp.h".
91414         (xalloc_die) [defined emacs]: New macro.
91415         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91416         [! defined emacs]: Include <xalloc.h>.
91417         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91418         (pointer): Typedef to POINTER_TYPE *.
91419         (malloc): Remove decl; we now always use xmalloc.
91420         (alloca): Use old-style definition, since Emacs needs this.
91421         Check for arithmetic overflow when computing combined size.
91422
91423 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91424
91425         Do not generate unlocked-io.h automatically, since it's easier to
91426         maintain it by hand.
91427
91428         * lib/unlocked-io.h: New file, from GNU diffutils,
91429         but with proper copyright notice and attribution.
91430         * lib/gen-uio: Remove.
91431         * lib/Makefile.am: Add copyright notice.
91432         (libfetish_a_SOURCES): Add unlocked-io.h.
91433         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91434         (DISTCLEANFILES, io_functions): Remove macros.
91435         (EXTRA_DIST): Remove gen_uio.
91436         (unlocked-io.h): Remove rule.
91437
91438 2002-12-04  Jim Meyering  <jim@meyering.net>
91439
91440         Reflect the fact that stat.c and lstat.c are no longer generated.
91441         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91442         (DISTCLEANFILES): Likewise.
91443         (EXTRA_DIST): Likewise.
91444         (all_local): Don't depend on stat.c or lstat.c.
91445         (stat.c, lstat.c): Remove rules.
91446         (EXTRA_DIST): Remove xstat.in.
91447
91448         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91449         * lib/stat.c: New file.  Contents mostly from xstat.in.
91450         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91451         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91452
91453         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91454         too.
91455         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91456
91457 2002-12-03  Jim Meyering  <jim@meyering.net>
91458
91459         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91460         but not semantics, to minimize the differences between these two files.
91461         (safe_read): Change comment to mention SAFE_READ_ERROR.
91462
91463         * lib/safe-read.c (IS_EINTR): Define.
91464         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91465
91466 2002-12-02  Jim Meyering  <jim@meyering.net>
91467
91468         * lib/safe-read.c (EINTR): Define.
91469         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91470         (INT_MAX): Provide fallback.
91471         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91472
91473         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91474
91475 2002-12-02  Bruno Haible  <bruno@clisp.org>
91476
91477         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91478         Define, taken from safe-read.c.
91479         (INT_MAX): Provide fallback.
91480         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91481         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91482
91483         * lib/safe-read.c (EINTR): Remove definition.
91484         (safe_read): Don't use EINTR if it is absent.
91485
91486 2002-12-01  Jim Meyering  <jim@meyering.net>
91487
91488         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91489         zero.
91490         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91491
91492 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91493
91494         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91495         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91496         with `if (! (value < limit)) abort ();', for readability.
91497
91498 2002-11-26  Karl Berry  <karl@gnu.org>
91499
91500         * lib/strdup.c: copy from libc again, with jim's ok.
91501         * lib/.cppi-disable: re-add strdup.c
91502
91503 2002-11-25  Karl Berry  <karl@gnu.org>
91504
91505         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91506         instead of "strtol.c".
91507
91508 2002-11-25  Karl Berry  <karl@gnu.org>
91509
91510         * config/install-sh: update from automake for variable quoting, $0 in
91511         error msgs, etc.
91512
91513         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91514         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91515         entry.
91516
91517 2002-11-25  Jim Meyering  <jim@meyering.net>
91518
91519         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91520
91521 2002-11-24  Karl Berry  <karl@gnu.org>
91522
91523         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91524         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91525
91526 2002-11-24  Jim Meyering  <jim@meyering.net>
91527
91528         Update from coreutils:
91529
91530         * lib/mktime.c: Merge in changes from libc.
91531
91532         Avoid a link-time failure on some Linux systems.
91533         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91534         (otherwise).
91535         (__mon_yday): Declare with the STATIC attribute.
91536         (__mktime_internal): Likewise.
91537         Based on a report from Greg Schafer.
91538
91539 2002-11-23  Jim Meyering  <jim@meyering.net>
91540
91541         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91542         Use `unsigned', not `int', as type of index.
91543
91544         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91545
91546         * lib/fsusage.c: Remove unneeded parentheses around operands of
91547         `defined'.
91548
91549 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91550
91551         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91552         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91553         so that we can be included first.
91554         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91555         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91556         No need to include stddef.h or sys/types.h any more.
91557         Surround local include files with "", not "<>".
91558         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91559         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91560         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91561         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91562         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91563         (ISPRINT): Remove; no longer needed now that we assume C89.
91564
91565         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91566         Preserve errno.
91567
91568         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91569         quotearg_char): Use SIZE_MAX rather than
91570         (size_t) -1 when we are talking about "infinity".
91571
91572         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91573
91574 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91575
91576         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91577         hint that one should use `if (! x) abort ();' rather than `assert
91578         (x);', and anyway it's one less thing to worry about configuring.
91579         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91580         hash_rehash, hash_insert): Use abort rather than assert.
91581
91582 2002-11-22  Bruno Haible  <bruno@clisp.org>
91583
91584         * lib/safe-read.h: Assume C89. Add comments.
91585         (safe_read): Change return type to size_t.
91586         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91587         byte counts > SSIZE_MAX correctly.
91588         * lib/safe-write.h: New file.
91589         * lib/safe-write.c: New file.
91590         * lib/full-read.h: New file.
91591         * lib/full-read.c: New file.
91592         * lib/full-write.h: Assume C89. Add comments.
91593         * lib/full-write.c: Include safe-write.h.
91594         (full_write): Rewritten to use safe_write.
91595         Suggested by Jim Meyering and Paul Eggert.
91596
91597 2002-11-21  Jim Meyering  <jim@meyering.net>
91598
91599         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91600
91601         Merge in changes from the coreutils.
91602
91603         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91604         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91605         <stdint.h>.
91606         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91607         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91608         int.  Work more efficiently if X is the same width as uintmax_t.
91609         Do not compare X to -1, to avoid bogus compiler warning.
91610         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91611         Don't assume that f_frsize and f_bsize are the same type.
91612
91613         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91614         warning on FreeBSD.
91615
91616         * lib/makepath.c (make_path): Restore umask *before* creating the final
91617         component.
91618         (make_path): Minor reformatting.
91619
91620         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91621         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91622         HAVE_MALLOC/HAVE_REALLOC.
91623
91624         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91625         dummy ones.  At least on GNU/Linux systems, `auto' means something
91626         else.
91627         From Michael Stone.
91628
91629 2002-11-21  Bruno Haible  <bruno@clisp.org>
91630
91631         Remove case insensitive option matching.
91632         * lib/argmatch.h (argcasematch): Remove declaration.
91633         (ARGCASEMATCH): Remove macro.
91634         (__xargmatch_internal): Remove case_sensitive argument.
91635         (XARGMATCH): Update.
91636         (XARGCASEMATCH): Remove macro.
91637         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91638         case_sensitive argument.
91639         (argcasematch): Remove function.
91640         (__xargmatch_internal): Remove case_sensitive argument.
91641         (main): Use XARGMATCH instead of XARGCASEMATCH.
91642
91643         * lib/xmalloc.c: Change compile-time error message. Add comment about
91644         required autoconf version.
91645
91646 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91647
91648         Merge argmatch cleanups from Bison.  Assume C89.
91649
91650         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91651         Include stdlib.h, for EXIT_FAILURE.
91652         Always include <string.h>, since we assume C89.
91653         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91654         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91655         Include <stddef.h> instead, since it's all we need for size_t.
91656         (PARAMS): Remove.  All uses removed.
91657         (ARRAY_CARDINALITY): Do not bother to #undef.
91658         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91659         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91660         Remove unnecessary parentheses.
91661         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91662         Insert necessary parentheses.
91663         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91664         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91665
91666 2002-11-19  Bruno Haible  <bruno@clisp.org>
91667
91668         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91669         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91670
91671         * lib/mbswidth.h (PARAMS): Remove macro.
91672         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91673         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91674
91675         * lib/gcd.h (PARAMS): Remove macro.
91676         (gcd): Use ANSI C function declarations.
91677         * lib/gcd.c (gcd): Likewise.
91678
91679 2002-11-15  Bruno Haible  <bruno@clisp.org>
91680
91681         * lib/strcspn.c: Include <stddef.h>.
91682         (strcspn): Use ANSI C function declaration. Change return type to
91683         size_t. Use NULL.
91684         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91685         (strpbrk): Use NULL.
91686         * lib/strpbrk.h (PARAMS): Remove macro.
91687         (strpbrk): Use ANSI C function declaration.
91688         * lib/strstr.c: Don't include <sys/types.h>.
91689         * lib/strstr.h (PARAMS): Remove macro.
91690         (strstr): Use ANSI C function declarations.
91691
91692 2002-11-14  Karl Berry  <karl@gnu.org>
91693
91694         * config/mkinstalldirs: `do' on separate line, instead of
91695         `for var; do'.
91696
91697 2002-11-06  Bruno Haible  <bruno@clisp.org>
91698
91699         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91700         * lib/gcd.c (gcd): Likewise.
91701
91702 2002-11-05  Bruno Haible  <bruno@clisp.org>
91703
91704         * lib/gcd.h: New file, from gettext-0.11.5.
91705         * lib/gcd.c: New file, from gettext-0.11.5.
91706
91707 2002-11-05  Bruno Haible  <bruno@clisp.org>
91708
91709         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91710         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91711         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91712         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91713
91714         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91715         <libintl.h>.
91716         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91717         <libintl.h>.
91718
91719         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91720         * lib/human.c: Include gettext.h instead of <libintl.h>.
91721         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91722         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91723         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91724         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91725         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91726         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91727         (textdomain): Remove definition.
91728         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91729
91730         * lib/long-options.c: Remove include of <libintl.h> and definition of
91731         _.
91732         * lib/same.c: Remove include of <libintl.h> and definition of _.
91733
91734 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91735
91736         * lib/config.charset: A few additions for Solaris.
91737
91738 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91739
91740         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91741         * lib/localcharset.c (locale_charset): Declare as extern "C".
91742
91743 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91744
91745         * lib/config.charset: msdos in uk_UA uses CP1125.
91746
91747 2002-11-04  Bruno Haible  <bruno@clisp.org>
91748
91749         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91750         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91751         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91752         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91753         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91754
91755 2002-11-04  Bruno Haible  <bruno@clisp.org>
91756
91757         * lib/localcharset.c (locale_charset): Don't return an empty string.
91758
91759 2002-11-04  Bruno Haible  <bruno@clisp.org>
91760
91761         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91762         aliases.
91763
91764 2002-11-04  Bruno Haible  <bruno@clisp.org>
91765
91766         * lib/config.charset: Update for newest glibc. Add canonical names
91767         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91768
91769 2002-11-04  Bruno Haible  <bruno@clisp.org>
91770
91771         * lib/config.charset: Add support for NetBSD.
91772
91773 2002-11-04  Bruno Haible  <bruno@clisp.org>
91774
91775         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91776
91777 2002-11-01  Bruno Haible  <bruno@clisp.org>
91778
91779         * configure.in: Add AC_CONFIG_AUX_DIR call.
91780         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91781         test/Makefile.
91782         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91783
91784 2002-09-28  Karl Berry  <karl@gnu.org>
91785
91786         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91787         installed automake until the next release, since changes have been
91788         made.
91789
91790 2002-09-25  Karl Berry  <karl@gnu.org>
91791
91792         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91793         * lib/getopt*: copy from libc/posix.
91794         * lib/gettext.h: copy from gettext.
91795         * lib/.cppi-disable: add strdup.c, gettext.h.
91796
91797 2002-09-25  Karl Berry  <karl@gnu.org>
91798
91799         * config/srclist.txt: enable gettext.h check.
91800         * config/config.{guess,sub}: update from prep.
91801         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91802                 from automake 1.6.3.
91803         See srclist*.
91804
91805 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91806
91807         * regex.c (PATFETCH): Remove the translating fetch.
91808         (PATFETCH_RAW): Rename to PATFETCH.
91809         (set_image_of_range): New fun.
91810         (SET_RANGE_TABLE_WORK_AREA): Use it.
91811         (regex_compile): Don't translate the pattern chars so eagerly.
91812         Only do it when inserting an `exactn' bytecode or when handling
91813         a char-range.
91814         (mutually_exclusive_p): Avoid empty statement.
91815
91816 2002-07-06  Jim Meyering  <meyering@lucent.com>
91817
91818         * m4/README: Don't mention Makefile.am.in.
91819         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91820
91821 2002-07-01  Jim Meyering  <meyering@lucent.com>
91822
91823         * lib/c-stack.c: Include sys/time.h.
91824         From Volker Borchert.
91825
91826 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91827
91828         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91829
91830 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91831
91832         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91833         New macro.  Use it uniformly instead of
91834         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91835         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91836         reported by Vin Shelton.
91837
91838 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91839
91840         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91841         Do not assume SA_SIGINFO behavior.
91842         Bug reported by Jim Meyering on NetBSD 1.5.2.
91843
91844 2002-06-22  Jim Meyering  <meyering@lucent.com>
91845
91846         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91847         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91848
91849         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91850         now that configure.ac uses AC_GNU_SOURCE.
91851         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91852         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91853
91854         Update to latest tools.  Suggestions from Paul Eggert.
91855         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91856         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91857         * m4/fnmatch.m4: Likewise.
91858         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91859         to AC_HEADER_STDBOOL
91860
91861 2002-06-22  Jim Meyering  <meyering@lucent.com>
91862
91863         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91864         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91865
91866 2002-06-22  Jim Meyering  <meyering@lucent.com>
91867
91868         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91869
91870         * lib/exitfail.c, exitfail.h: Likewise.
91871         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91872
91873         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91874         of fnmatch.h.
91875         (EXTRA_DIST): Add fnmatch_loop.c.
91876         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91877
91878         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91879         * lib/fnmatch.c: Update from diffutils-2.8.2.
91880         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91881         * lib/fnmatch.h: Remove file.
91882
91883 2002-06-21  Jim Meyering  <meyering@lucent.com>
91884
91885         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91886         * m4/mbrtowc.m4: Likewise.
91887
91888         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91889         * m4/mbswidth.m4: Reflect name change:
91890         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91891         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91892
91893         * m4/lib-link.m4: Update from gettext-0.11.2.
91894         * m4/gettext.m4: Likewise.
91895
91896         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91897         From Alfred M. Szmidt.
91898
91899 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91900
91901         * lib/file-type.h: Report an error if neither S_ISREG nor
91902         S_IFREG is defined, instead of using a test specific to glibc
91903         2.2.  This should be safe, since POSIX requires S_ISREG and
91904         Unix Version 7 had S_IFREG.  We don't need to check for
91905         <sys/types.h> since we don't use any symbols that it defines.
91906
91907 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91908
91909         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91910         $@-t, so that each temporary file name is unique and valid in the first
91911         8 characters, for operation under DOS.
91912
91913 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91914
91915         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91916
91917 2002-06-15  Jim Meyering  <meyering@lucent.com>
91918
91919         Work even with DJGPP 2.03, which lacks support for symlinks.
91920         From Richard Dawe.
91921         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91922         is defined.
91923         * lib/lchown.c (S_ISLNK): Likewise.
91924
91925 2002-06-15  Jim Meyering  <meyering@lucent.com>
91926
91927         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91928         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91929         have been included before this file.
91930
91931 2002-06-14  Jim Meyering  <meyering@lucent.com>
91932
91933         * lib/file-type.h: Use the version from diffutils-2.8.2.
91934         * lib/file-type.c: Likewise.
91935
91936 2002-06-07  Jim Meyering  <meyering@lucent.com>
91937
91938         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91939         They're needed at least for NetBSD 1.5.2.
91940         ($statxfs_includes): Include those same headers.
91941         ($statxfs_includes): Include sys/vfs.h if available.
91942         ($statxfs_includes): Likewise for sys/statvfs.h.
91943         Check for the following members in both structs statfs and statvfs:
91944         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91945
91946 2002-06-01  Jim Meyering  <meyering@lucent.com>
91947
91948         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91949         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91950
91951 2002-05-28  Jim Meyering  <meyering@lucent.com>
91952
91953         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91954         Reported by Volker Borchert.
91955
91956 2002-05-27  Jim Meyering  <meyering@lucent.com>
91957
91958         Fix a problem seen only on nonconforming systems whereby ls.c's
91959         use of localtime, and then of gettimeofday would cause trouble:
91960         the localtime call used to initialize rpl_gettimeofday's save
91961         mechanism would clobber ls's current local time information so
91962         that in any long listing the first file would always be listed
91963         with date 1970-01-01.  Analysis by Volker Borchert.
91964
91965         * lib/gettimeofday.c (localtime): Undefine.
91966         (rpl_localtime): New function.
91967
91968 2002-05-27  Jim Meyering  <meyering@lucent.com>
91969
91970         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91971         localtime.
91972
91973         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91974         use the replacement function; it wouldn't resolve at link time.
91975         Reported by Volker Borchert.
91976
91977 2002-05-22  Jim Meyering  <meyering@lucent.com>
91978
91979         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91980         file-type.h.
91981         * lib/file-type.h: New file.
91982         * lib/file-type.c (file_type): New file/function.  Extracted from
91983         diffutils.
91984
91985 2002-04-30  Jim Meyering  <meyering@lucent.com>
91986
91987         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91988
91989 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91990
91991         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91992
91993 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91994
91995         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91996         Do not check for alloca.h (no longer used) or stdbool.h (was never
91997         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91998
91999 2002-04-29  Paul Eggert  <eggert@twinsun.com>
92000
92001         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
92002
92003 2002-04-29  Jim Meyering  <meyering@lucent.com>
92004
92005         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
92006         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
92007         Use AC_FUNC_STRNLEN here instead.
92008
92009         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
92010         With autoconf-2.53a, it's part of AC_PROG_CC.
92011
92012 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92013
92014         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
92015         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
92016
92017 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92018
92019         * lib/sig2str.h, lib/sig2str.c: New files.
92020         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
92021
92022 2002-04-28  Paul Eggert  <eggert@twinsun.com>
92023
92024         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
92025         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
92026         of 127, since 64 is the largest conceivable number for ancient
92027         nonstandard hosts.
92028         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
92029
92030 2002-04-28  Jim Meyering  <meyering@lucent.com>
92031
92032         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
92033
92034 2002-04-24  Jim Meyering  <meyering@lucent.com>
92035
92036         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
92037         (jm_PREREQ): Use it.
92038
92039         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
92040         mach/mach.h fcntl.h.
92041         Check for this function: setlocale.
92042
92043 2002-04-24  Jim Meyering  <meyering@lucent.com>
92044
92045         * lib/gettext.h: New file, from Gettext.
92046         * lib/Makefile.am (INCLUDES): Remove -I../intl.
92047         (libfetish_a_SOURCES): Add gettext.h.
92048
92049 2002-04-16  Jim Meyering  <meyering@lucent.com>
92050
92051         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
92052         ut_pid, ut_id, ut_exit.
92053
92054 2002-04-16  Jim Meyering  <meyering@lucent.com>
92055
92056         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
92057         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
92058         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
92059
92060 2002-04-12  Jim Meyering  <meyering@lucent.com>
92061
92062         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
92063         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
92064         existence of the getmntinfo function.  Needed for Darwin 5.3.
92065
92066         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
92067         This is necessary at least on Darwin 5.3.
92068
92069         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
92070         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
92071         strnlen.o in the library, and that makes some versions of ranlib
92072         object.
92073
92074 2002-04-12  Jim Meyering  <meyering@lucent.com>
92075
92076         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
92077
92078 2002-04-09  Jim Meyering  <meyering@lucent.com>
92079
92080         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
92081         to be more precise.  Rather than saying we're checking whether the
92082         function `works', say what we're testing.
92083         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
92084         Reported by Bruno Haible.
92085
92086 2002-03-10  Jim Meyering  <meyering@lucent.com>
92087
92088         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
92089         Suggestion from Santiago Vila.
92090
92091 2002-03-08  Jim Meyering  <meyering@lucent.com>
92092
92093         * lib/rename.c: Mention that this wrapper is needed also on
92094         mips-dec-ultrix4.4 systems.
92095
92096 2002-03-02  Jim Meyering  <meyering@lucent.com>
92097
92098         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
92099         not HAVE_CLOCK_SETTIME.
92100
92101 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92102
92103         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
92104         Check for clock_settime.
92105
92106 2002-02-27  Paul Eggert  <eggert@twinsun.com>
92107
92108         * lib/nanosleep.h: Rename to....
92109         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
92110
92111         * lib/gettime.c: New file.
92112         * lib/settime.c: New file.
92113         * lib/stime.c: Remove.
92114
92115         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
92116         timespec.h.  Remove nanosleep.h.
92117
92118 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92119
92120         * m4/acl.m4: New file.
92121         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
92122         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
92123
92124 2002-02-25  Paul Eggert  <eggert@twinsun.com>
92125
92126         * lib/acl.c, lib/acl.h: New files.
92127         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
92128
92129 2002-02-24  Jim Meyering  <meyering@lucent.com>
92130
92131         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
92132         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
92133         cause trouble.  Reported by Nelson Beebe.
92134
92135 2002-02-23  Paul Eggert  <eggert@twinsun.com>
92136
92137         * lib/path-concat.c (xpath_concat): Reorder code to pacify
92138         compilers that don't know that xalloc_die never returns.
92139
92140 2002-02-20  Jim Meyering  <meyering@lucent.com>
92141
92142         * lib/getdate.c: Regenerate using bison-1.33.
92143
92144 2002-02-17  Jim Meyering  <meyering@lucent.com>
92145
92146         * config/config.guess (main): Don't use `head -1'; it's no longer
92147         portable. Use `sed 1q' instead.
92148
92149 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
92150
92151         * m4/codeset.m4: Upgrade to gettext-0.11.
92152         * m4/gettext.m4: Upgrade to gettext-0.11.
92153         * m4/glibc21.m4: Upgrade to gettext-0.11.
92154         * m4/iconv.m4: Upgrade to gettext-0.11.
92155         * m4/isc-posix.m4: Upgrade to gettext-0.11.
92156         * m4/lcmessage.m4: Upgrade to gettext-0.11.
92157         * m4/lib-ld.m4: New file, from gettext-0.11.
92158         * m4/lib-link.m4: New file, from gettext-0.11.
92159         * m4/lib-prefix.m4: New file, from gettext-0.11.
92160         * m4/progtest.m4: Upgrade to gettext-0.11.
92161
92162 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92163
92164         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
92165         (jm_PREREQ): Use it.
92166
92167 2002-02-15  Paul Eggert  <eggert@twinsun.com>
92168
92169         * lib/posixver.c, lib/posixver.h: New files.
92170         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92171
92172 2002-02-02  Paul Eggert  <eggert@twinsun.com>
92173             Bruno Haible  <bruno@clisp.org>
92174
92175         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
92176         (fwrite_success_callback): New declaration.
92177         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
92178         print_unicode_char. Call failure callback instead of error.
92179         (fwrite_success_callback): New function.
92180         (exit_failure_callback): New function.
92181         (fallback_failure_callback): New function.
92182         (print_unicode_char): Call unicode_to_mb.
92183
92184 2002-01-26  Jim Meyering  <meyering@lucent.com>
92185
92186         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
92187         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
92188
92189 2002-01-26  Jim Meyering  <meyering@lucent.com>
92190
92191         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
92192
92193 2002-01-22  Paul Eggert  <eggert@twinsun.com>
92194
92195         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
92196
92197 2002-01-22  Jim Meyering  <meyering@lucent.com>
92198
92199         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
92200         Otherwise, some versions of automake would omit the rule that makes
92201         Makefile from Makefile.in.
92202
92203 2002-01-21  Paul Eggert  <eggert@twinsun.com>
92204
92205         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
92206         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
92207         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
92208         (memcoll): Set errno to zero if there is no error.
92209
92210         * lib/quotearg.c (quotearg_buffer_restyled):
92211         Fix bug with quoting buffers containing NUL when backslashing escapes.
92212         This bug was exposed by the other changes in this patch.
92213         (quotearg_n_options): New arg ARGSIZE.
92214         All callers changed.
92215         (quoting_options_from_style): New function.
92216         (quotearg_n_style): Use it.
92217         (quotearg_n_style_mem): New function.
92218
92219         * lib/quotearg.h (quotearg_n_style_mem): New function.
92220
92221 2002-01-19  Jim Meyering  <meyering@lucent.com>
92222
92223         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
92224         Remove useless quotes: DF_PROG="df".
92225         * m4/strnlen.m4: New file.
92226
92227 2002-01-16  Paul Eggert  <eggert@twinsun.com>
92228
92229         * lib/backupfile.c (ISDIGIT): Comment fix.
92230         * lib/getdate.y (ISDIGIT): Likewise.
92231         * lib/posixtm.c (ISDIGIT, year): Likewise.
92232         * lib/strverscmp.c (ISDIGIT): Likewise.
92233         * lib/userspec.c (ISDIGIT): Likewise.
92234
92235 2002-01-16  Jim Meyering  <meyering@lucent.com>
92236
92237         * lib/getdate.y: Add three semicolons, each just before a closing
92238         brace. Bison (as of version 1.31) no longer papers over that mistake.
92239
92240 2002-01-05  Jim Meyering  <meyering@lucent.com>
92241
92242         * lib/version-etc.c (version_etc_copyright): Update copyright year.
92243
92244 2001-12-19  Paul Eggert  <eggert@twinsun.com>
92245
92246         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
92247         not silently exit merely because the output buffer happens to
92248         have nothing pending.
92249
92250 2001-12-18  Paul Eggert  <eggert@twinsun.com>
92251
92252         See the big note in ../ChangeLog.
92253         * lib/human.c (suffixes): Prefer K to k for 1024.
92254         (generate_suffix_backwards): New function.
92255         (human_readable_inexact): Use it.
92256         * lib/xstrtol.c (__xstrtol): If there is no number but there
92257         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
92258         Accept 'K' as well as 'k'.
92259
92260 2001-12-15  Jim Meyering  <meyering@lucent.com>
92261
92262         * lib/regex.h (__restrict_arr): Update from libc.
92263
92264         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
92265         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
92266         (STREQ): Define.
92267
92268 2001-12-14  Jim Meyering  <meyering@lucent.com>
92269
92270         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
92271         Suggestion from Bruno Haible.
92272
92273 2001-12-10  Jim Meyering  <meyering@lucent.com>
92274
92275         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
92276         xrealloc, Instead, include "xalloc.h".
92277         (initbuffer): Don't cast xmalloc return value to char*.
92278         (readline): Reword comment.
92279         Don't cast xrealloc return value to char*
92280         Return NULL, not 0.
92281
92282 2001-12-09  Jim Meyering  <meyering@lucent.com>
92283
92284         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
92285         about `signed and unsigned type in conditional expression'.
92286         * lib/posixtm.c (posix_time_parse): Likewise.
92287
92288         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
92289
92290         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
92291         to avoid a pedantic warning.
92292
92293         * lib/getstr.c: Don't include assert.h.
92294         (getstr): Remove warning-evoking assertions.
92295         Return -1 if offset parameter is out of bounds.
92296         Change the type of a local from int to size_t.
92297
92298         * lib/strftime.c (my_strftime_localtime_r): Include this function
92299         definition in the `#if ! HAVE_TM_GMTOFF' block.
92300
92301         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
92302         Include xalloc.h instead.
92303
92304 2001-12-02  Jim Meyering  <meyering@lucent.com>
92305
92306         * lib/tempname.c: Don't declare getenv, thus reverting the change of
92307         2001-11-18.  It's no longer necessary, now that stdlib.h is always
92308         included.
92309
92310         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
92311         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92312
92313 2001-11-30  Akim Demaille  <akim@epita.fr>
92314
92315         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92316         before being defined.
92317
92318 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92319
92320         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92321         First arg is int, not unsigned.
92322         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92323         (SIZE_MAX, UINT_MAX): New macros.
92324         (quotearg_n_options): Abort if N is negative.
92325         Avoid overflow check on hosts where size_t is 64 bits and int
92326         is 32 bits, as overflow is impossible there.
92327         Fix off-by-one typo that caused unnecessary reallocation.
92328
92329 2001-11-27  Jim Meyering  <meyering@lucent.com>
92330
92331         * lib/tempname.c: Merge with version from libc.
92332         * lib/regex.c: Likewise.
92333
92334         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92335         systems for which STDC_HEADERS is 0, it was not included, resulting in
92336         a warning about an integer-to-pointer conversion problem with getenv.
92337         Reported by Volker Borchert.
92338
92339 2001-11-26  Jim Meyering  <meyering@lucent.com>
92340
92341         * lib/gtod.h: Remove file.
92342         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92343         * lib/gettimeofday.c: Don't include gtod.h.
92344         (GTOD_init): Remove function.
92345         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92346         Suggestion from Volker Borchert.
92347
92348 2001-11-23  Jim Meyering  <meyering@lucent.com>
92349
92350         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92351         it.
92352         * lib/hash.c (struct hash_table): Define it here instead.
92353
92354 2001-11-22  Jim Meyering  <meyering@lucent.com>
92355
92356         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92357
92358 2001-11-20  Jim Meyering  <meyering@lucent.com>
92359
92360         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92361         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92362
92363 2001-11-19  Jim Meyering  <meyering@lucent.com>
92364
92365         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92366         directory.  Use "conftestXXXXXX" as the template.
92367         Suggestion from Paul Eggert.
92368
92369         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92370         immediately, so the test doesn't mistakenly hit the max-open-files
92371         limit.
92372
92373 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92374
92375         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92376         (TEMPORARIES): New macro.
92377         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92378         removes an artificial limitation (e.g. HP-UX 10.20, where
92379         TMP_MAX is 17576).
92380
92381 2001-11-18  Jim Meyering  <meyering@lucent.com>
92382
92383         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92384
92385 2001-11-18  Jim Meyering  <meyering@lucent.com>
92386
92387         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92388         on SunOS 4.
92389
92390         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92391         files will be created before anything else.
92392
92393 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92394
92395         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92396         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92397
92398 2001-11-17  Jim Meyering  <meyering@lucent.com>
92399
92400         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92401         Prompted by a report from Bob Proulx.
92402
92403         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92404         Instead, require UTILS_FUNC_MKSTEMP.
92405
92406 2001-11-17  Jim Meyering  <meyering@lucent.com>
92407
92408         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92409         Now, that's done as part of AC_FUNC_STRTOD.
92410
92411 2001-11-17  Jim Meyering  <meyering@lucent.com>
92412
92413         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92414         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92415         rather than group writable.  Patch by Juan F. Codagnone.
92416
92417         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92418         xrealloc, Instead, include "xalloc.h".
92419
92420         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92421         Remove explicit declarations of xmalloc, xrealloc,
92422         and xstrdup.  Instead, include "xalloc.h".
92423
92424         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92425         unlocked-io.h.
92426         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92427         Likewise.
92428         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92429
92430         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92431         Reported by Padraig Brady.
92432
92433         * lib/mkstemp.c: #undef mkstemp.
92434         Include config.h.
92435         (rpl_mkstemp): Rename from mkstemp.
92436         Protoize.
92437
92438 2001-11-16  Jim Meyering  <meyering@lucent.com>
92439
92440         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92441         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92442         determine the amount of total physical memory, use pstat_getstatic.
92443         HPUX-11 doesn't define _SC_PHYS_PAGES.
92444         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92445         If sysconf couldn't be used to determine the amount of available
92446         physical memory, use both pstat_getstatic and pstat_getdynamic.
92447         Based on a patch from Bob Proulx.
92448
92449 2001-11-10  Jim Meyering  <meyering@lucent.com>
92450
92451         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92452         (jm_PREREQ): Use it.
92453
92454 2001-11-09  Jim Meyering  <meyering@lucent.com>
92455
92456         * m4/jm-macros.m4: Require autoconf-2.52f.
92457         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92458         Use these AC_-prefixed names, not the AM_-prefixed ones.
92459
92460         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92461
92462 2001-11-05  Jim Meyering  <meyering@lucent.com>
92463
92464         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92465
92466 2001-11-04  Jim Meyering  <meyering@lucent.com>
92467
92468         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92469         $DEFS.
92470
92471 2001-11-03  Jim Meyering  <meyering@lucent.com>
92472
92473         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92474         of AC_DEFUN.
92475
92476         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92477         know the name of the variable in the macro definition.
92478
92479 2001-11-03  Jim Meyering  <meyering@lucent.com>
92480
92481         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92482         in argmatch_to_argument call.
92483
92484         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92485         argument.
92486
92487         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92488         e.g., a fault due to an attempt to free a NULL pointer.
92489
92490 2001-11-01  Jim Meyering  <meyering@lucent.com>
92491
92492         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92493         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92494
92495 2001-11-01  Jim Meyering  <meyering@lucent.com>
92496
92497         * lib/dirfd.c, lib/dirfd.h: New files.
92498         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92499
92500         * lib/hash.c (hash_print) [TESTING]: Clean up.
92501
92502 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92503
92504         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92505         to avoid a warning if -Wall.
92506
92507 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92508
92509         * README: New file
92510         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92511         (per RMS's instructions, this is now the canonical source)
92512         * lgpl/, gpl/: New directories.
92513
92514 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92515
92516         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92517
92518 2001-10-21  Jim Meyering  <meyering@lucent.com>
92519
92520         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92521         this code would end up calling gettext even in packages built
92522         with --disable-nls.
92523         * lib/getopt.c (_): Likewise.
92524         * lib/regex.c (_): Likewise.
92525
92526 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92527
92528         * m4/error.m4 (jm_PREREQ_ERROR):
92529         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92530         AC_FUNC_STRERROR_R does that.
92531         Check for strerror declaration.
92532
92533         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92534         are supposed to have them these days.
92535         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92536         Merge changes from latest Autoconf CVS.
92537         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92538         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92539         POSIX decided to standardize on the int flavor of strerror_r.
92540
92541 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92542
92543         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92544         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92545         Use strerror_r that is only a macro, even if it is not a function.
92546         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92547         (private_strerror): Use prototypes, not old-style function definition.
92548         (print_errno_message): New function.
92549         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92550         char*-flavored one.
92551         (error_tail, error, error_at_line): Use it.
92552
92553 2001-10-11  Jim Meyering  <meyering@lucent.com>
92554
92555         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92556         and quote_n (1, ... to avoid clobbering a buffer.
92557
92558 2001-10-05  Jim Meyering  <meyering@lucent.com>
92559
92560         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92561         hash-pjw.h.
92562         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92563         * lib/hash-pjw.h: New file.
92564
92565 2001-09-30  Jim Meyering  <meyering@lucent.com>
92566
92567         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92568         `struct fsstat' has the `f_fstypename' member.
92569         Use that to define FS_TYPE, which is now used to make
92570         the getfsstat link test tighter.
92571
92572 2001-09-30  Jim Meyering  <meyering@lucent.com>
92573
92574         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92575         Include <sys/ucred.h>, for Apple Darwin.
92576         Include sys/mount.h and sys/fs_types.h only if available.
92577         (FS_TYPE): Define.
92578         (read_filesystem_list): Use FS_TYPE.
92579
92580 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92581
92582         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92583         a boolean context.
92584
92585 2001-09-29  Jim Meyering  <meyering@lucent.com>
92586
92587         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92588         [one-argument getmntent function]): Include stdio.h before mntent.h.
92589         SunOS 4.1.x needs it for the declaration of `FILE'.
92590         Patch by Volker Borchert.
92591
92592         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92593         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92594         sys/fs_types.h, and make the link-test for getfsstat guard #include
92595         directives with appropriate #if HAVE_*_H tests so that we can
92596         detect getfsstat on Apple Darwin1.3.7 systems.
92597         Reported by Nelson Beebe.
92598         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92599
92600 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92601
92602         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92603         #defines strtoimax.  Also treat the other strto* functions
92604         like strtoimax.
92605
92606         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92607         Check for strtoul and strtoumax,
92608         as those declarations are made even in the signed case.
92609         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92610         Likewise, for strtol and strtoimax.
92611
92612 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92613
92614         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92615         #defines strtoimax.  Also treat the other strto* functions
92616         like strtoimax.
92617
92618         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92619         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92620         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92621
92622 2001-09-26  Jim Meyering  <meyering@lucent.com>
92623
92624         Most macros in unlocked-io.h had the wrong number of arguments.
92625         * lib/gen-uio: New script.
92626         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92627         * lib/unlocked-io.hin: Remove file.
92628         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92629         rather than trying to embed it here.
92630         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92631         Reported by Padraig Brady.
92632
92633 2001-09-25  Volker Borchert  <bt@teknon.de>
92634
92635         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92636         `result'.
92637
92638 2001-09-24  Jim Meyering  <meyering@lucent.com>
92639
92640         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92641
92642 2001-09-23  Jim Meyering  <meyering@lucent.com>
92643
92644         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92645         instead of the mere test for existence of mntent.h.  The latter
92646         would get a false-positive on AIX 3.4 systems.
92647         In the outer getmntent if-block, don't die if neither of the getmntent
92648         tests succeeds.  Instead, just fall through and continue with the
92649         remaining tests.
92650
92651 2001-09-23  Jim Meyering  <meyering@lucent.com>
92652
92653         * lib/mountlist.c: Remove useless parentheses in #if directives.
92654         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92655         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92656
92657 2001-09-22  Jim Meyering  <meyering@lucent.com>
92658
92659         * m4/gettext.m4: New file.  From gettext.
92660         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92661         * m4/progtest.m4: Likewise
92662         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92663         * m4/glibc21.m4: Likewise.
92664
92665         * m4/libintl.m4: Remove.  No longer used.
92666
92667 2001-09-22  Jim Meyering  <meyering@lucent.com>
92668
92669         * lib/localcharset.c: Update from latest gettext.
92670         * lib/config.charset: Likewise.
92671
92672 2001-09-20  Jim Meyering  <meyering@lucent.com>
92673
92674         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92675         strtoimax.
92676         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92677         strtoumax.
92678
92679 2001-09-20  Jim Meyering  <meyering@lucent.com>
92680
92681         * lib/xstrtol.c (strtoimax): Guard declaration with
92682         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92683         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92684         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92685         (strtoumax): Likewise, for completeness (it wasn't necessary).
92686
92687 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92688
92689         * lib/strtoimax.c (HAVE_LONG_LONG):
92690         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92691         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92692         to work around bug in IBM C compiler.
92693
92694 2001-09-17  Jim Meyering  <meyering@lucent.com>
92695
92696         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92697         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92698         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92699         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92700         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92701         whenever the right hand side need not be expanded by the shell.
92702
92703 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92704
92705         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92706         library.  It's not correct, as some older glibcs are buggy.
92707         fnmatch wasn't fixed until glibc 2.2.
92708
92709         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92710         special shell magic here.
92711
92712 2001-09-16  Jim Meyering  <meyering@lucent.com>
92713
92714         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92715         * m4/jm-macros.m4: Require it.
92716
92717 2001-09-16  Jim Meyering  <meyering@lucent.com>
92718
92719         * lib/mkdir.c: New file.
92720
92721 2001-09-15  Jim Meyering  <meyering@lucent.com>
92722
92723         * m4/jm-macros.m4: Check for help2man.
92724
92725 2001-09-11  Jim Meyering  <meyering@lucent.com>
92726
92727         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92728         The body, by Paul Eggert, was moved here from configure.in.
92729         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92730
92731 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92732
92733         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92734         (jm_PREREQ): Use it.
92735
92736 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92737
92738         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92739         Use ssize_t, not int, to store result of readlink.
92740         Check for ssize_t overflow as well as size_t overflow,
92741         as POSIX says the result of readlink is implementation-defined
92742         when ssize_t overflows.
92743         Remove unnecessary cast to char*.
92744         Use free+malloc instead of realloc, as the storage doesn't need
92745         to be preserved and it's clearer and can be more efficient that way.
92746         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92747         * lib/xreadlink.h (xreadlink): Update prototype.
92748
92749 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92750
92751         * lib/xgetcwd.c: Revert some of the previous change; intead,
92752         fix the HAVE_GETCWD_NULL code to behave more like the
92753         !HAVE_GETCWD_NULL code used to.
92754
92755         Include "xalloc.h".
92756         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92757         invoke xalloc_die.
92758
92759 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92760
92761         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92762         sys/param.h, as pathmax.h includes them.
92763
92764 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92765
92766         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92767         (jm_PREREQ_XGETCWD): New macro.
92768
92769         * m4/getcwd.m4: New file.
92770
92771 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92772
92773         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92774         like the HAVE_GETCWD_NULL code.
92775         Include pathmax.h if not HAVE_GETCWD.
92776         Do not include xalloc.h.
92777         (INITIAL_BUFFER_SIZE): New symbol.
92778         Do not use xmalloc / xrealloc, since the caller is responsible for
92779         handling errors.  Preserve errno around `free' during failure.
92780         Do not overrun buffer when using getwd.
92781
92782 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92783
92784         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92785         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92786         getcwd (NULL, 0).
92787
92788 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92789
92790         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92791         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92792         spotted by Jim Meyering.
92793
92794 2001-09-03  Jim Meyering  <meyering@lucent.com>
92795
92796         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92797         failure.
92798
92799 2001-09-02  Jim Meyering  <meyering@lucent.com>
92800
92801         * lib/error.c: Update from GNU libc.
92802
92803 2001-09-01  Jim Meyering  <meyering@lucent.com>
92804
92805         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92806         Used by df.
92807
92808 2001-09-01  Jim Meyering  <meyering@lucent.com>
92809
92810         * lib/xreadlink.c: New file.
92811         * lib/xreadlink.h: New file.
92812         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92813         xreadlink.h.
92814
92815         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92816         doesn't conflict with sparc Solaris 7's definition in
92817         /usr/include/sys/int_types.h.
92818
92819         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92820         files.
92821         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92822         and strncasecmp as r-values.  Unixware didn't have declarations.
92823
92824 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92825
92826         * lib/xstrtol.h: Add copyright notice.
92827         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92828         LONGINT_INVALID_SUFFIX_CHAR.
92829
92830 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92831
92832         * lib/xstrtol.c (strtoimax): New decl.
92833
92834 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92835
92836         * lib/xgetcwd.c: Don't include pathmax.h.
92837         Include stdlib.h and unistd.h if available.
92838         Include xalloc.h.
92839         (xmalloc, xstrdup, free): Remove decls.
92840         (xgetcwd): Don't assume sizes fit in unsigned.
92841         Check for overflow when computing sizes.
92842         Simplify reallocation code.
92843
92844 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92845
92846         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92847         a directory's st_size can have an arbitrary value, so the old
92848         usage could waste an arbitrary amount of memory.  All uses
92849         changed.
92850         * lib/savedir.h: Update prototype.
92851
92852 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92853
92854         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92855
92856         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92857         old strtoimax.c.
92858
92859         Also, make the following further changes to make this file's
92860         configuration more similar to that of strtol.c:
92861         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92862         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92863         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92864         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92865         changed to signed values.
92866
92867         And make the following changes as well:
92868         Fix copyright notice, as 1999 was missing.
92869         (verify): New macro.
92870         (strtoimax): Check sizes at compile-time, not run-time.
92871         Prefer strtol to strtoll if both work.
92872         (main): Remove; it was not that useful and was a pain to maintain.
92873
92874         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92875
92876 2001-08-31  Jim Meyering  <meyering@lucent.com>
92877
92878         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92879         Use an initial, malloc'd, buffer of length 128 rather than
92880         a statically allocated one of length 1024.
92881
92882 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92883
92884         Simplify code, partly by assuming autoconf 2.52 semantics.
92885
92886         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92887
92888         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92889         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92890         All uses removed.
92891         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92892         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92893         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92894         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92895         jm_AC_HEADER_INTTYPES_H.
92896         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92897
92898         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92899
92900         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92901         Quote first arg of AC_DEFUN.
92902         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92903         since they are needed to parse the include file even if we need
92904         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92905         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92906         but with opposite signedness.
92907
92908 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92909
92910         Merge 'exclude' changes from tar 1.13.22.
92911         This fixes one or two unlikely storage allocation overflow bugs,
92912         but doesn't change user-visible behavior otherwise.
92913
92914 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92915
92916         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92917         (jm_PREREQ_EXCLUDE): New macro.
92918
92919 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92920
92921         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92922         tm to be declared.
92923
92924 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92925
92926         * lib/hash.c: Remove '2001' from copyright notice.
92927
92928 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92929
92930         * lib/full-write.h: New file.
92931         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92932         * lib/full-write.c: Correct credits, as cccp.c no longer
92933         exists and anyway it was so heavily changed from the old cccp
92934         code as to be unrecognizable.  Include full-write.h.
92935         (full_write): Return size_t, with short writes meaning failure.
92936         All callers changed.  This fixes a bug with large buffers
92937         on 64-bit hosts.
92938         * lib/utime.c: Include full-write.h.
92939
92940 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92941
92942         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92943         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92944         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92945         Include if available.
92946         (<xalloc.h>): Include
92947         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92948         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92949         collide with FNM macros.
92950         (struct patopts): New struct.
92951         (struct exclude): Use it, as exclude patterns now come with options.
92952         (new_exclude): Support above changes.
92953         (new_exclude, add_exclude_file):
92954         Initial size must now be a power of two to simplify overflow checking.
92955         (free_exclude, fnmatch_no_wildcards): New function.
92956         (excluded_filename): No longer requires options arg, as the options
92957         are determined by add_exclude.  Now returns bool, not int.
92958         (excluded_filename, add_exclude):
92959         Add support for the fancy new exclusion options.
92960         (add_exclude, add_exclude_file): Now takes int options arg.
92961         Check for arithmetic overflow when computing sizes.
92962         (add_exclude_file): xrealloc might modify errno, so don't
92963         realloc until after errno might be used.
92964
92965         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92966         New macros.
92967         (free_exclude): New decl.
92968         (add_exclude, add_exclude_file): Now takes int options arg.
92969         (excluded_filename): No longer requires options arg, as the options
92970         are determined by add_exclude.  Now returns bool, not int.
92971
92972 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92973
92974         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92975
92976 2001-08-27  Jim Meyering  <meyering@lucent.com>
92977
92978         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92979
92980         * lib/version-etc.c (N_): Remove definition.
92981         Revert most of last change.
92982         Instead, simply don't mark the `Copyright...' string for translation.
92983         Based on advice from Paul Eggert.
92984
92985         * lib/strtoxmax.c: Tweak comment.
92986
92987 2001-08-26  Jim Meyering  <meyering@lucent.com>
92988
92989         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92990
92991         * m4/xstrtoimax.m4: New file.
92992         * m4/xstrtoumax.m4: Add comments explaining why we
92993         AC_REPLACE_FUNCS(strtol).
92994
92995 2001-08-26  Jim Meyering  <meyering@lucent.com>
92996
92997         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92998         of copyright with `%s' so translators don't get an untranslated
92999         message in 2002.
93000         (COPYRIGHT_YEAR): Define.
93001         (version_etc): Use fprintf rather than fputs.
93002         Suggestion from Ulrich Drepper.
93003
93004         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
93005
93006         * lib/strtoll.c: New file, from GNU libc.
93007         * lib/xstrtoimax.c: New file.
93008
93009         * lib/xstrtol.h: Add xstrtoimax.
93010         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
93011         * lib/strtoimax.c: New file.  Likewise, but first define
93012         STRTOUXMAX_SIGNED.
93013
93014         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
93015         ...
93016         * lib/strtoxmax.c: ... then renamed to this.
93017
93018 2001-08-18  Paul Eggert  <eggert@twinsun.com>
93019
93020         * m4/inttypes.m4: Add AC_PREREQ(2.13).
93021         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
93022         (jm_AC_TYPE_INTMAX_T): New macro.
93023         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
93024
93025         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
93026
93027         * m4/longlong.m4: Renamed from ulonglong.m4.
93028         * m4/inttypes.m4: Renamed from inttypes_h.m4.
93029         * m4/uintmax_t.m4: Removed.
93030
93031 2001-08-13  Paul Eggert  <eggert@twinsun.com>
93032
93033         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
93034         Port to Solaris 8, where 'sed' requires a space after the 'r'
93035         command, and where sh dislikes "$/".  Clean up the spacing a bit.
93036         Redirect output to $tmp just once.
93037
93038 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
93039
93040         * lib/addext.c (<errno.h>): Include.
93041         (errno): Declare if not defined.
93042         (addext): Work correctly when pathconf returns -1 and leaves
93043         errno alone because there is no limit.  Also, work even if
93044         pathconf returns a value greater than SIZE_MAX.
93045
93046 2001-08-12  Jim Meyering  <meyering@lucent.com>
93047
93048         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
93049         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
93050         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
93051         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
93052         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
93053         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
93054         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
93055         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
93056         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
93057         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
93058         utime.m4, utimes.m4, xstrtoumax.m4:
93059         Quote the first argument in each use of AC_DEFUN.
93060
93061 2001-08-12  Jim Meyering  <meyering@lucent.com>
93062
93063         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
93064         Simply `return getcwd (NULL, 0);'.
93065         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
93066         Use 1300 as initial value for length, not PATH_MAX.
93067
93068         * lib/pathmax.h: Clean up cpp syntax.
93069
93070 2001-08-12  Jim Meyering  <meyering@lucent.com>
93071
93072         * lib/gettimeofday.c: New file.
93073         * lib/gtod.h: New file.
93074         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
93075
93076 2001-08-05  Jim Meyering  <meyering@lucent.com>
93077
93078         * m4/jm-macros.m4: Require autoconf-2.52.
93079
93080 2001-08-04  Jim Meyering  <meyering@lucent.com>
93081
93082         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
93083         stmt, to get in sync with glibc.
93084
93085 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93086
93087         The following changes are from gettext 0.10.39 as maintained by
93088         Bruno Haible.
93089
93090         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
93091         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
93092         with inverted sense.  All uses changed.
93093
93094         * lib/mbswidth.c: Don't include <limits.h>.
93095         Include <stdlib.h> and <string.h> unconditionally.
93096         (iswcntrl, mbsinit, ISCNTRL): New macros.
93097         (mbsnwidth): Use K&R style function declarations.
93098         Don't bother checking for MB_LEN_MAX == 1, since the compiler
93099         can optimize it when MB_CUR_MAX == 1.
93100         The width of control characters is zero, not 1.
93101
93102 2001-08-03  Paul Eggert  <eggert@twinsun.com>
93103
93104         The following changes are from gettext 0.10.39 as maintained by
93105         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
93106
93107         * m4/codeset.m4: Upgrade to serial AM1.
93108         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
93109         all uses changed.  Quote first arg of AC_DEFUN.
93110         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
93111
93112         * m4/iconv.m4: Upgrade to serial AM2.
93113         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
93114         Add --with-libconv-prefix.
93115         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
93116         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
93117         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
93118         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
93119         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
93120
93121         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
93122         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
93123         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
93124         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
93125         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
93126         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
93127         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
93128         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
93129         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
93130
93131         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
93132         string.h any more.
93133
93134         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
93135         not the default value.
93136
93137         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
93138         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
93139         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
93140         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
93141         Also check for iswcntrl, used for wcwidth fallback.
93142         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
93143         to Autoconf 2.13.
93144
93145 2001-08-03  Jim Meyering  <meyering@lucent.com>
93146
93147         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
93148         as it was in the original.  Reported by Paul Eggert.
93149
93150 2001-07-16  Jim Meyering  <meyering@lucent.com>
93151
93152         * m4/gettimeofday.m4: New file.
93153         Prompted by a report from Bernhard Baehr.
93154
93155 2001-07-15  Jim Meyering  <meyering@lucent.com>
93156
93157         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
93158         stuff. Now it's in ../Makefile.cfg.
93159
93160 2001-07-15  Jim Meyering  <meyering@lucent.com>
93161
93162         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
93163         (BUILT_SOURCES): Add unlocked-io.h.
93164         (io_functions): Define.
93165         (unlocked-io.h): New rule.
93166         (DISTCLEANFILES): Add unlocked-io.h.
93167         (all-local): Depend on unlocked-io.h, to ensure it is created.
93168
93169         * lib/unlocked-io.hin: New file
93170
93171         * lib/regex.c: Update from glibc.
93172
93173 2001-07-05  Jim Meyering  <meyering@lucent.com>
93174
93175         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
93176         recommendation.
93177         (libfetish_a_SOURCES): Put all .h files here instead.
93178         Remove a thus-exposed (better checks in automake) duplicate and
93179         two unnecessary .h files.
93180
93181 2001-07-04  Jim Meyering  <meyering@lucent.com>
93182
93183         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
93184         that generates jm-glibc-io.m4 so that it doesn't trigger any make
93185         distcheck failure.
93186
93187 2001-07-02  Jim Meyering  <meyering@lucent.com>
93188
93189         The following changes were prompted by suggestions from Bruno Haible.
93190
93191         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
93192         is now generated.
93193         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
93194         definition of EXTRA_DIST.
93195         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
93196         ensure that the generated file is created/updated whenever the list
93197         of $(unlocked_functions) is changed.
93198         (jm-glibc-io.m4): New rule.
93199         (unlocked-io.h): New rule -- currently unused.
93200
93201 2001-06-24  Jim Meyering  <meyering@lucent.com>
93202
93203         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
93204         unmatched right bracket, rather than kludging it with an extra,
93205         falsely-matching quote in a comment.  Patch by Akim Demaille.
93206
93207 2001-06-11  Jim Meyering  <meyering@lucent.com>
93208
93209         * lib/regex.c: Update from GNU libc.
93210
93211 2001-05-27  Jim Meyering  <meyering@lucent.com>
93212
93213         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
93214         Check for ut_type in struct utmp.
93215
93216 2001-05-27  Jim Meyering  <meyering@lucent.com>
93217
93218         * lib/readutmp.h (UT_TYPE): Define.
93219
93220 2001-05-24  Jim Meyering  <meyering@lucent.com>
93221
93222         * lib/argmatch.c: Include "quote.h".
93223         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
93224         quote function.  Reported by Göran Uddeborg.
93225
93226 2001-05-22  Jim Meyering  <meyering@lucent.com>
93227
93228         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
93229         now that we use the package-supplied version unconditionally.
93230         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
93231
93232 2001-05-21  Jim Meyering  <meyering@lucent.com>
93233
93234         * m4/regex.m4: Change a couple backticks to single quotes to avoid
93235         shell syntax errors.
93236
93237 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93238
93239         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
93240
93241 2001-05-20  Paul Eggert  <eggert@twinsun.com>
93242
93243         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
93244         Don't bother to check library strftime, since
93245         we'll be using our own my_strftime function anyway.
93246         Define my_strftime instead of strftime.
93247
93248 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
93249
93250         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
93251         which is not yet declared.
93252
93253 2001-05-15  Jim Meyering  <meyering@lucent.com>
93254
93255         * m4/regex.m4: Use proper quoting so brackets appear in the test
93256         program.
93257         Reported by, and with help from, Bruno Haible.
93258
93259 2001-05-13  Jim Meyering  <meyering@lucent.com>
93260
93261         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
93262         undefined.
93263
93264 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93265
93266         dirname code cleanup.  base_name now behaves more compatibly
93267         with POSIX basename when given file names that have trailing
93268         slashes, and similarly for dir_name.  Add new primitives
93269         base_len and dir_len.  Put the directory-name-related decls
93270         into dirname.h.
93271
93272         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
93273         * lib/backupfile.c (base_name): Likewise.
93274         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
93275         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
93276         * lib/makepath.c (strip_trailing_slashes): Likewise.
93277         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
93278         ISSLASH): Likewise.
93279         * lib/rename.c (strip_trailing_slashes): Likewise.
93280         * lib/same.c (base_name): Likewise.
93281         * lib/stripslash.c (ISSLASH): Likewise.
93282
93283         * lib/addext.c: Include <dirname.h> after size_t is defined.
93284         * lib/backupfile.c: Likewise.
93285
93286         * lib/addext.c (addext): Use base_len to trim redundant
93287         trailing slashes instead of doing it ourselves.
93288         But do not trim the last slash if it is not redundant.
93289
93290         * lib/backupfile.c (find_backup_file_name,
93291         max_backup_version): Use base_len instead of rolling it ourselves.
93292         Handle the case of "" and (on DOS) "C:" correctly.
93293
93294         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
93295         needed. Include <string.h>, <dirname.h>.
93296         (base_name): Allow file names ending in slashes, other than names
93297         that are all slashes.  In this case, return the basename followed
93298         by the slashes.  This is more general, and can be used in places
93299         where the original base_name purposely had an assertion failure.
93300         (base_len): New function.
93301
93302         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
93303         Do not include <assert.h>; no longer needed.
93304         Include xalloc.h.
93305         (memrchr): Remove decl.
93306         (dir_name_r): Remove.
93307         (dir_len): Renamed from dirlen.  All callers changed.
93308         Rewrite in terms of base_name, for simplicity and consistency.
93309         (dir_name): Never return NULL.  All callers changed.
93310         Do not include <stdlib.h> in test program; no longer needed.
93311         return 0; is fine for test program.
93312
93313         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93314         New macros.
93315         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93316
93317         * lib/path-concat.c (path_concat): Use base_len to compute
93318         base length, not strlen; this means we cannot rely on memcpy
93319         to null-terminate.
93320
93321         * lib/same.c (STREQ): Remove.
93322         (same_name): Handle the case where the basename ends in trailing '/'.
93323
93324         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93325         a slash was stripped.  Do not strip the last slash after a
93326         file system prefix.
93327
93328 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93329
93330         * lib/Makefile.am (libfetish_a_SOURCES):
93331         Add strftime.c, since we now compile it on all hosts.
93332
93333         * lib/strftime.c (my_strftime):
93334         Define to nstrftime if emacs, but only if my_strftime is not defined.
93335         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93336         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93337         Add one more extra argument: a nanoseconds value.
93338         All uses changed.
93339         (ns): New macro.
93340         (my_strftime function): Add %N format.
93341         (emacs_strftimeu): Renamed from emacs_strftime,
93342         with extra ut argument.
93343
93344 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93345
93346         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93347
93348 2001-04-21  Jim Meyering  <meyering@lucent.com>
93349
93350         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93351         doesn't interfere.
93352
93353 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93354
93355         * m4/ftruncate.m4: Check for chsize.
93356         Link with ftruncate.o unconditionally if ftruncate is missing.
93357         This was required when cross-compiling to i586-mingw32msvc.
93358
93359 2001-04-08  Jim Meyering  <meyering@lucent.com>
93360
93361         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93362         recomputed; that's necessary when the offset spans a DST transition.
93363         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93364
93365 2001-04-02  Jim Meyering  <meyering@lucent.com>
93366
93367         * lib/regex.h, regex.c: Update from GNU libc.
93368
93369 2001-03-24  Jim Meyering  <meyering@lucent.com>
93370
93371         * m4/jm-macros.m4: Require autoconf-2.49d.
93372
93373 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93374
93375         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93376
93377 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93378
93379         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93380
93381 2001-03-17  Jim Meyering  <meyering@lucent.com>
93382
93383         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93384         now that the version in autoconf is equivalent.
93385         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93386
93387         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93388         Suggestion from Akim Demaille.
93389
93390         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93391         (jm_PREREQ_TEMPNAME): New function.
93392
93393 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93394
93395         * lib/tempname.c (uint64_t): Define to uintmax_t if
93396         not defined, and if UINT64_MAX is not defined.
93397         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93398         Reported by John David Anglin.
93399
93400 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93401
93402         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93403         resolve alias if codeset is empty.
93404         * lib/config.charset (BeOS): Use wildcard syntax.
93405
93406 2001-03-13  Jim Meyering  <meyering@lucent.com>
93407
93408         * lib/path-concat.c (path_concat)
93409         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93410         concatenating e.g., `C:' and `foo'.
93411         From Bruno Haible.
93412
93413 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93414
93415         * lib/localcharset.c (locale_charset): Don't use
93416         setlocale(LC_CTYPE,NULL). Don't return NULL.
93417         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93418
93419 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93420
93421         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93422         support for DOS/DJGPP.
93423
93424 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93425
93426         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93427         lacks mkstemp.  Compile our own tempname.c if we compile our own
93428         mkstemp.c, as mkstemp relies on tempname.
93429
93430 2001-03-01  Jim Meyering  <meyering@lucent.com>
93431
93432         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93433         AH_VERBATIM really does output its argument verbatim.
93434
93435 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93436
93437         * lib/Makefile.am (libfetish_a_SOURCES):
93438         Add dup-safer.c, fopen-safer.c.
93439         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93440
93441         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93442         * lib/unistd-safer.h: New files.
93443
93444 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93445
93446         The mkstemp replacement is taken from glibc 2.2.2, with some
93447         portability fixes for use outside glibc, as follows:
93448
93449         * lib/tempname.c (struct_stat64): New macro.
93450         (direxists, __gen_tempname): Use it.
93451         This avoids a portability problem with Solaris 8.
93452
93453         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93454         (<stddef.h>, <stdint.h>, <string.h>):
93455         Include only if STDC_HEADERS || _LIBC.
93456         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93457         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93458         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93459         (__set_errno): Define this macro if <errno.h> doesn't.
93460         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93461         Define these macros if <stdio.h> doesn't.
93462         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93463         Define these macros if <sys/stat.h>
93464         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93465         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93466         __xstat64): Define if not _LIBC.
93467         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93468         (__gen_tempname): Invoke gettimeofday only if
93469         HAVE_GETTIMEOFDAY || _LIBC;
93470         otherwise, fall back on plain "time".
93471         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93472
93473         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93474
93475         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93476
93477 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93478
93479         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93480
93481 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93482
93483         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93484         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93485         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93486         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93487
93488 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93489
93490         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93491         Remove workaround macros for hosts that have mbrtowc but not
93492         mbstate_t, as we now insist on proper declarations for both
93493         before using mbrtowc.
93494
93495 2001-02-17  Jim Meyering  <meyering@lucent.com>
93496
93497         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93498         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93499         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93500         UnixWare 7.1.1.
93501
93502         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93503         rather than AC_CACHE_VAL.
93504
93505 2001-02-17  Jim Meyering  <meyering@lucent.com>
93506
93507         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93508         around included file name.
93509
93510         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93511
93512         * lib/strftime.c: Update from GNU libc (the only changes were to
93513         comments).
93514
93515 2001-02-17  Jim Meyering  <meyering@lucent.com>
93516
93517         * lib/regex.c: Update from libc.
93518
93519 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93520
93521         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93522         clash.
93523
93524 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93525
93526         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93527         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93528         Reported by Mark Hounschell via Paul Eggert.
93529
93530 2001-02-07  Jim Meyering  <meyering@lucent.com>
93531
93532         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93533
93534 2001-02-05  Jim Meyering  <meyering@lucent.com>
93535
93536         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93537         it includes the patch required for `large file' support with at least
93538         HP-UX's 10.20 /bin/cc.
93539
93540 2001-02-03  Jim Meyering  <meyering@lucent.com>
93541
93542         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93543         AS_IF, now that it works once again (mysteriously).
93544         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93545
93546 2001-01-30  Jim Meyering  <meyering@lucent.com>
93547
93548         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93549         * m4/chown.m4: Rename conftestchown to conftest.chown.
93550         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93551         s/conftestdir2/conftest.d2/.
93552         * m4/utimes.m4: s/conftestdata/conftest.data/
93553         Inspired by Pavel Roskin's change in autoconf.
93554
93555 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93556
93557         * lib/config.charset: Update for FreeBSD 4.2.
93558
93559 2001-01-27  Jim Meyering  <meyering@lucent.com>
93560
93561         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93562         a use of AS_IF.
93563         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93564
93565 2001-01-26  Jim Meyering  <meyering@lucent.com>
93566
93567         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93568         quotearg.c includes it.
93569
93570 2001-01-26  Jim Meyering  <meyering@lucent.com>
93571
93572         * lib/quotearg.c: Include stddef.h.
93573         * lib/quote.c: Include stddef.h.
93574         Reported by Axel Kittenberger.
93575
93576         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93577         line in double quotes so that it evokes a better diagnostic.
93578         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93579         Reported by Axel Kittenberger.
93580
93581 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93582
93583         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93584         as if it was a `charset'.
93585
93586 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93587
93588         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93589         has const.
93590
93591 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93592
93593         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93594         to avoid a warning.  Add back 'const' to inptr.
93595
93596 2001-01-20  Jim Meyering  <meyering@lucent.com>
93597
93598         Be sure that headers are checked before used in code compiled
93599         for the type checks.
93600         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93601         In place of that, invoke jm_CHECK_ALL_TYPES.
93602         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93603         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93604         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93605         The check for ssize_t was mistakenly run before the test for unistd.h.
93606
93607         The configure-time check for stdbool.h was missing.
93608         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93609         (jm_PREREQ_HASH): New function.
93610
93611 2001-01-17  Jim Meyering  <meyering@lucent.com>
93612
93613         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93614         for autoconf-2.49c.
93615         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93616
93617 2001-01-16  Jim Meyering  <meyering@lucent.com>
93618
93619         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93620         From Bruno Haible.
93621
93622 2001-01-14  Jim Meyering  <meyering@lucent.com>
93623
93624         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93625         foo and bar.  Create conftestdir/ in the script, not in the C code.
93626         Remove directories in the script, not in the C code.
93627         Remove conftestdir{,2} before trying to create the directory.
93628         Make the entire configure script fail if the mkdir fails.
93629
93630 2001-01-14  Jim Meyering  <meyering@lucent.com>
93631
93632         * lib/rename.c: New file.  From Volker Borchert.
93633         Include stdlib.h, string.h or strings.h, and xalloc.h.
93634         Use strip_trailing_slashes rather than open-coding it.
93635
93636 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93637
93638         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93639
93640 2001-01-03  Jim Meyering  <meyering@lucent.com>
93641
93642         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93643         of local `inptr' to avoid warning with some system declarations of
93644         iconv.
93645
93646 2001-01-02  Volker Borchert  <bt@teknon.de>
93647
93648         * m4/rename.m4: New file.
93649         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93650
93651 2001-01-01  Jim Meyering  <meyering@lucent.com>
93652
93653         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93654         even on systems with utmpx.h.  It's necessary for the declaration of
93655         utmp's ut_user member.  Reported by Andreas Jaeger.
93656
93657         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93658         available. They are required for the declarations of getgrgid and
93659         getpwuid resp.
93660         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93661         Reported by Andreas Jaeger.
93662
93663 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93664
93665         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93666         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93667         so `make install' also works in VPATH builds.
93668
93669 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93670
93671         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93672         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93673         can be used in subdirectories.
93674
93675 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93676
93677         * lib/modechange.c: Do not assume that mode_t uses the
93678         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93679         the other-execute bit of FOO even if S_IXOTH != 1.
93680
93681         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93682         WOTH, XOTH, ALLM): New macros.
93683         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93684          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93685         Use them.
93686         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93687         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93688         (mode_compile):
93689         No need to use uintmax_t; unsigned long is long enough.
93690         Don't bother to get suffix since we don't use it.
93691
93692 2000-12-26  Jim Meyering  <meyering@lucent.com>
93693
93694         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93695         better with autoheader.
93696
93697 2000-12-24  Jim Meyering  <meyering@lucent.com>
93698
93699         * lib/hash.c (is_prime): Return explicit boolean values.
93700         (hash_get_first): Return NULL to appease Irix5.6's 89.
93701         Reported by Nelson Beebe.
93702
93703 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93704
93705         * lib/localcharset.c (locale_charset): Add support for Win32.
93706
93707 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93708
93709         * lib/physmem.h, lib/physmem.c: New files.
93710
93711         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93712         (noinst_HEADERS): Add physmem.h.
93713
93714         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93715         't' for compatibility with Solaris 8 sort.
93716
93717 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93718
93719         * lib/config.charset: Add support for BeOS.
93720
93721 2000-12-17  Jim Meyering  <meyering@lucent.com>
93722
93723         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93724         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93725
93726 2000-12-16  Jim Meyering  <meyering@lucent.com>
93727
93728         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93729         N and M) would have treated it like `chown N:N FILE'.
93730
93731         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93732
93733 2000-12-16  Jim Meyering  <meyering@lucent.com>
93734
93735         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93736         SHELLS_FILE to a file name that's useful on djgpp systems.
93737         Include stdlib.h.
93738         (ADDITIONAL_DEFAULT_SHELLS): Define.
93739         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93740         Based mostly on a patch from Prashant TR.
93741
93742 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93743
93744         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93745         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93746         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93747
93748 2000-12-08  Andreas Schwab  <schwab@suse.de>
93749
93750         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93751         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93752
93753 2000-12-07  Jim Meyering  <meyering@lucent.com>
93754
93755         * lib/stripslash.c (ISSLASH): Define.
93756         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93757         `/'.
93758         From Prashant TR.
93759
93760         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93761         (dir_name_r): Declare this function as static.
93762         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93763         manifest itself on a name containing a mix of slashes and
93764         backslashes.
93765         Make this function work with names starting with a DOS-style
93766         drive letter and colon prefix.
93767         (dir_name): Append `.' if necessary.
93768         Based mostly on patches from Prashant TR and Eli Zaretskii.
93769
93770         * lib/dirname.h (dir_name_r): Remove prototype.
93771
93772 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93773
93774         * m4/off_t-format.m4: Remove this file.
93775         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93776
93777 2000-12-06  Jim Meyering  <meyering@lucent.com>
93778
93779         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93780         replacement strtoull, we may well need the replacement strtoul, too.
93781         Check for declarations of strtoul and strtoull.
93782         Check for strtol.  Mainly as a cue to cause automake to include
93783         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93784         Check for limits.h -- strtol.c needs it.
93785
93786 2000-12-05  Jim Meyering  <meyering@lucent.com>
93787
93788         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93789
93790 2000-12-04  Jim Meyering  <meyering@lucent.com>
93791
93792         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93793         Also include memory.h, stdlib.h, unistd.h if appropriate.
93794         Reported by Andreas Jaeger (conflicting declaration of malloc).
93795
93796 2000-12-02  Jim Meyering  <meyering@lucent.com>
93797
93798         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93799         * m4/jm-macros.m4 (jm_MACROS): require it.
93800
93801 2000-12-02  Jim Meyering  <meyering@lucent.com>
93802
93803         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93804
93805 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93806
93807         * lib/memrchr.c: Include <config.h> before any system include file.
93808
93809 2000-11-30  Jim Meyering  <meyering@lucent.com>
93810
93811         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93812
93813 2000-11-30  Jim Meyering  <meyering@lucent.com>
93814
93815         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93816
93817 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93818
93819         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93820
93821 2000-11-26  Jim Meyering  <meyering@lucent.com>
93822
93823         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93824
93825 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93826
93827         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93828         size of (size_t) -1; it's not portable.
93829
93830 2000-11-17  Jim Meyering  <meyering@lucent.com>
93831
93832         * lib/strstr.c: Update from GNU libc.
93833
93834 2000-11-17  Akim Demaille  <akim@epita.fr>
93835
93836         * lib/obstack.h: Formatting changes.
93837         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93838         prevent type checking.
93839         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93840         cast the value to (void *): assigning a `foo *' to a `void *'
93841         variable is valid.
93842         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93843
93844 2000-11-16  Jim Meyering  <meyering@lucent.com>
93845
93846         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93847
93848 2000-11-11  Jim Meyering  <meyering@lucent.com>
93849
93850         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93851
93852 2000-11-10  Jim Meyering  <meyering@lucent.com>
93853
93854         * lib/obstack.h: Update from GNU libc.
93855         * lib/obstack.c: Likewise.
93856
93857 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93858
93859         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93860
93861 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93862
93863         * lib/getusershell.c (setusershell): Use rewind rather than
93864         fseek/fseeko, to avoid configuration hassles with fseeko.
93865         Don't bother opening SHELLS_FILE if shellstream is NULL;
93866         it's not necessary.
93867
93868 2000-11-05  Jim Meyering  <meyering@lucent.com>
93869
93870         * lib/makepath.h (make_dir): Declare.
93871         * lib/makepath.c (make_dir): Remove `static' attribute.
93872         Tweak a comment.
93873
93874 2000-11-04  Jim Meyering  <meyering@lucent.com>
93875
93876         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93877
93878 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93879
93880         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93881         last one in a bucket, advance to the next bucket.
93882
93883 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93884
93885         * lib/fnmatch.c: Do not comment out all the code if we are using
93886         the GNU C library, because in some cases we are replacing buggy
93887         code in the GNU C library itself.
93888
93889 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93890
93891         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93892         (regex_compile): Catch bogus \(\1\).
93893
93894 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93895
93896         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93897         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93898         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93899
93900 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93901
93902         * lib/error.h, getline.h, modechange.h:
93903         Remove "2000" from Copyright line, as the file hasn't been
93904         changed this year other than in the copyright notice.
93905
93906         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93907         was changed this year.
93908
93909 2000-10-29  Jim Meyering  <meyering@lucent.com>
93910
93911         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93912         renaming.
93913         * m4/ls-mntd-fs.m4: Likewise
93914
93915 2000-10-29  Jim Meyering  <meyering@lucent.com>
93916
93917         * lib/xstat.in: Fix grammar in comment.
93918
93919 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93920
93921         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93922         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93923         doesn't define __restrict_arr.
93924
93925 2000-10-28  Jim Meyering  <meyering@lucent.com>
93926
93927         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93928         (jm_PREREQ_MEMCHR): New function.
93929
93930 2000-10-28  Jim Meyering  <meyering@lucent.com>
93931
93932         * lib/memchr.c: Update from libc.
93933         Adjust for portability:
93934         [HAVE_STDLIB_H]: Include stdlib.h.
93935         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93936         Undef __memchr, too.
93937         [!weak_alias]: Define __memchr to memchr.
93938
93939         * lib/regex.c: Update from libc.
93940         * lib/regex.h: Likewise.
93941         * lib/getopt1.c: Likewise.
93942         * lib/memcmp.c: Likewise.
93943
93944         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93945         Avoid using fseek, when possible -- it's broken by design.
93946         Patch by Ulrich Drepper.
93947
93948 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93949
93950         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93951         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93952         Giving in to popular pressure to shut up the compiler with casts.
93953
93954 2000-10-26  Jim Meyering  <meyering@lucent.com>
93955
93956         * lib/strftime.c: Update from libc.
93957
93958 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93959
93960         * regex.c: More `unsigned char' -> `re_char' changes.
93961         Also change several `int' into `re_wchar_t'.
93962         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93963         (PUSH_FAILURE_POINTER): Don't cast any more.
93964         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93965         We want GCC to complain, since this piece of code makes
93966         re_match non-reentrant, which *should* be fixed.
93967         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93968         (EXTEND_BUFFER): Use RETALLOC.
93969         (SET_LIST_BIT): Don't cast.
93970         (re_wchar_t): New type.
93971         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93972         that those two functions will always properly return.
93973         (IMMEDIATE_QUIT_CHECK): Cast to void.
93974         (analyse_first): Use recursion rather than an explicit stack.
93975         (re_compile_fastmap): Can't fail anymore.
93976         (re_search_2): Don't check re_compile_fastmap for failure.
93977         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93978         Now also sets the new value (passed in a new argument).
93979         (re_match_2_internal): Use it.
93980         Also, use a new var `reg' of type size_t when looping through regs
93981         rather than reuse the inappropriate `mcnt'.
93982
93983 2000-10-25  Jim Meyering  <meyering@lucent.com>
93984
93985         * lib/obstack.c: Update from libc.
93986
93987 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93988
93989         * regex.c (regex_compile): Change the way of handling a range from
93990         a char less than 256 to a char not less than 256.
93991
93992 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93993
93994         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93995         NT-Emacs only.
93996         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93997         so that re_search functions only quit when callers expect them to.
93998
93999 2000-10-23  Jim Meyering  <meyering@lucent.com>
94000
94001         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
94002         wrong.  That set_locale call must not have any side effects.
94003         From Paul Eggert.
94004
94005 2000-10-22  Jim Meyering  <meyering@lucent.com>
94006
94007         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
94008         [CYCLIC]: Remove now-unused definition.
94009
94010         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
94011         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
94012         Suggestion from Ulrich Drepper.
94013
94014 2000-10-21  Jim Meyering  <meyering@lucent.com>
94015
94016         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
94017         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
94018         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
94019
94020 2000-10-21  Jim Meyering  <meyering@lucent.com>
94021
94022         * lib/dirname.c (memrchr): Declare if necessary.
94023         (dir_name): Remove the restriction that there be no
94024         trailing slashes.  Now, this code skips past them, effectively
94025         ignoring them.
94026         [TEST_DIRNAME] (main): New unit tests.
94027
94028         * lib/memrchr.c: New file from GNU libc.
94029         Undef __memrchr, too.
94030         [!weak_alias]: Define __memrchr to memrchr.
94031         Guard weak_alias use with `#ifdef weak_alias'.
94032
94033 2000-10-21  Jim Meyering  <meyering@lucent.com>
94034
94035         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
94036         (dir_name): Use dir_name_r.
94037         * lib/dirname.h (dir_name_r): Declare it.
94038
94039 2000-10-17  Jim Meyering  <meyering@lucent.com>
94040
94041         * lib/quote.h (PARAMS): Define and use.
94042         Reported by Akim Demaille.
94043
94044         * lib/getopt.c: Update from libc.
94045
94046 2000-10-16  Jim Meyering  <meyering@lucent.com>
94047
94048         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
94049         setlocale.
94050         From Jan Fedak.
94051
94052 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
94053
94054         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
94055
94056 2000-09-25  Jim Meyering  <meyering@lucent.com>
94057
94058         * lib/md5.h (rol): Define (from GnuPG).
94059
94060         * lib/sha.c: Give credit (GnuPG) where due.
94061         (M): Use rol rather than open-coding it.
94062         Add a FIXME comment.
94063
94064 2000-09-21  Jim Meyering  <meyering@lucent.com>
94065
94066         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
94067         Reported by Michael Stone.
94068
94069 2000-09-20  Jim Meyering  <meyering@lucent.com>
94070
94071         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
94072         (noinst_HEADERS): Add sha.h.
94073         Based on code from Scott G. Miller and from GnuPG.
94074
94075 2000-09-18  Jim Meyering  <meyering@lucent.com>
94076
94077         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
94078         LIBS. Otherwise, everyone ends up linking with -lelf for some
94079         configurations.
94080         Reported by Mike Stone.
94081
94082 2000-09-15  Jim Meyering  <meyering@lucent.com>
94083
94084         * lib/regex.c: Update from libc.
94085
94086 2000-09-10  Jim Meyering  <meyering@lucent.com>
94087
94088         * lib/getopt.c (_getopt_internal): Update from glibc.
94089
94090 2000-09-09  Jim Meyering  <meyering@lucent.com>
94091
94092         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
94093         think it should be used as a general replacement for isascii.
94094         * lib/fnmatch.c: Likewise.
94095         * lib/mbswidth.c: Likewise
94096         * lib/regex.c: Likewise.
94097
94098         Don't use atoi.
94099         * lib/userspec.c: Include sys/param.h and limits.h.
94100         Include xstrtol.h.
94101         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94102         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
94103         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
94104         UID, GID.  Check range.
94105
94106 2000-09-06  Jim Meyering  <meyering@lucent.com>
94107
94108         * lib/getopt.c (_getopt_internal): Update from glibc.
94109
94110 2000-08-30  Jim Meyering  <meyering@lucent.com>
94111
94112         * lib/strftime.c: Merge in changes from GNU libc.
94113
94114 2000-08-26  Jim Meyering  <meyering@lucent.com>
94115
94116         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
94117         * m4/fpending.m4: New file.
94118
94119 2000-08-26  Jim Meyering  <meyering@lucent.com>
94120
94121         * lib/closeout.c: Include "__fpending.h".
94122         (close_stdout_status): Return right away if there's nothing to flush.
94123
94124         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
94125         * lib/__fpending.c: New file.
94126         * lib/__fpending.h: New file.
94127
94128 2000-08-20  Jim Meyering  <meyering@lucent.com>
94129
94130         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
94131         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
94132         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
94133
94134 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
94135
94136         Improve fileutils installation on systems where running
94137         programs (like install) can't be unlinked.
94138         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
94139         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
94140
94141 2000-08-07  Paul Eggert  <eggert@twinsun.com>
94142
94143         Standardize on "memory exhausted" instead of "Memory exhausted"
94144         or "virtual memory exhausted".
94145         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
94146         "virtual memory exhausted".
94147         * lib/same.c (same_name): Invoke xalloc_die instead of printing
94148         our own message.
94149         * lib/userspec.c (parse_user_spec): Likewise.
94150         * lib/bumpalloc.h: comment fix
94151         * lib/same.c, userspec.c: Include xalloc.h.
94152
94153         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
94154         not char *const and pointing to a constant array.
94155         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
94156         (xrealloc): Comment fix.
94157
94158         * lib/userspec.c (parse_user_spec):
94159         Don't translate a message until just before returning,
94160         to avoid unnecessary translation.
94161
94162 2000-08-07  Jim Meyering  <meyering@lucent.com>
94163
94164         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
94165         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
94166         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
94167         getgroups.c, gethostname.c, getopt.h, group-member.c,
94168         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
94169         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
94170         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
94171         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
94172         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
94173         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
94174         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
94175         yesno.c: Back out Copyright date changes for each file with no change
94176         this year.  This eases coordination with other programs using the same
94177         source code modules.  From Paul Eggert.
94178
94179 2000-08-06  Paul Eggert  <eggert@twinsun.com>
94180
94181         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
94182         not char, for compatibility with glibc 2.1.3 strftime.c.
94183
94184 2000-08-03  Greg McGary  <greg@mcgary.org>
94185
94186         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
94187         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
94188         (EXTEND_BUFFER): Use them.
94189
94190 2000-08-01  Jim Meyering  <meyering@lucent.com>
94191
94192         * lib/dirname.c (ISSLASH): Define.
94193         (BACKSLASH_IS_PATH_SEPARATOR): Define.
94194         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
94195         both `\' and `/' may be use as path separators.
94196         Based on a patch from Prashant TR.
94197
94198 2000-07-31  Paul Eggert  <eggert@twinsun.com>
94199
94200         * lib/quotearg.c (quotearg_n_options): Don't make the initial
94201         slot vector a constant, since it might get modified.
94202
94203 2000-07-31  Jim Meyering  <meyering@lucent.com>
94204
94205         * lib/xmalloc.c: Use `virtual memory exhausted', not
94206         `Memory exhausted'.
94207         * lib/obstack.c (print_and_abort): Likewise.
94208
94209 2000-07-30  Paul Eggert  <eggert@twinsun.com>
94210
94211         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
94212         buffer, so that the caller can always quote one small
94213         component of a "memory exhausted" message in slot 0.
94214         From a suggestion by Jim Meyering.
94215
94216 2000-07-30  Jim Meyering  <meyering@lucent.com>
94217
94218         * lib/makepath.c (make_path): Quote the other instance, too.
94219
94220         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
94221         (STATIC_BUF_SIZE): Define.
94222         (quotearg_n_options): Use only statically allocated storage when
94223         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
94224         than STATIC_BUF_SIZE.
94225
94226 2000-07-29  Jim Meyering  <meyering@lucent.com>
94227
94228         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
94229         * lib/dirname.c (dir_name): Likewise.
94230
94231         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
94232         `/'.
94233
94234         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
94235         (dir_name): Assert that there are no trailing slashes.
94236
94237 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
94238
94239         * lib/mbswidth.h (mbswidth): Add a flags argument.
94240         (mbswidth): New declaration.
94241         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
94242         * lib/mbswidth.c (mbswidth): Add a flags argument.
94243         (mbsnwidth): New function.
94244
94245 2000-07-24  Jim Meyering  <meyering@lucent.com>
94246
94247         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
94248
94249 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94250
94251         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
94252
94253 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94254
94255         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
94256         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
94257         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
94258         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
94259         invoke multibyte primitives.
94260
94261 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94262
94263         * lib/quotearg.c:
94264         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
94265         so that mbstate_t is always defined.
94266
94267         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
94268         be 1 in at least one GCC installation, and this configuration
94269         error is likely to be common.  Ignoring MB_LEN_MAX hurts
94270         performance on hosts that have mbrtowc but have only unibyte
94271         locales, but I assume these hosts are rare.
94272
94273 2000-07-23  Paul Eggert  <eggert@twinsun.com>
94274
94275         * lib/mbswidth.c (_XOPEN_SOURCE):
94276         Don't define; this causes problems on Solaris 7.
94277         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
94278
94279 2000-07-23  Jim Meyering  <meyering@lucent.com>
94280
94281         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
94282         too: getgrgid, getpwuid, getuid.
94283
94284 2000-07-23  Jim Meyering  <meyering@lucent.com>
94285
94286         * lib/basename.c (base_name): Add an assertion.
94287
94288 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
94289
94290         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
94291         shadow its mbsinit function.
94292
94293 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94294
94295         * lib/mbswidth.h: New file.
94296         * lib/mbswidth.c: New file.
94297         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
94298         (noinst_HEADERS): Add mbswidth.h.
94299
94300 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
94301
94302         * lib/config.charset: Add support for FreeBSD. Improve support for
94303         HP-UX and IRIX 6.
94304
94305 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
94306
94307         * m4/mbswidth.m4: New file.
94308         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
94309
94310 2000-07-15  Jim Meyering  <meyering@lucent.com>
94311
94312         * lib/makepath.c: Include quote.h.
94313         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94314         corresponding argument in a `quote (...)' call.
94315         Give better diagnostics.
94316
94317         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94318         (noinst_HEADERS): Add quote.h.
94319
94320         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94321         from tar's src/misc.c.
94322         * lib/quote.h: New file.  Prototypes for same.
94323
94324 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94325
94326         From a suggestion by Bruno Haible.
94327         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94328         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94329         to decide whether to define the BeOS workaround macro;
94330         this adjusts to the change to AC_MBSTATE_T.
94331
94332 2000-07-14  Jim Meyering  <meyering@lucent.com>
94333
94334         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94335         jm_AC_TYPE_UINTMAX_T.
94336
94337 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94338
94339         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94340
94341         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94342         quotearg_buffer_restyled): Add support for
94343         clocale_quoting_style.  Undo previous change to
94344         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94345         and "{RIGHT QUOTATION MARK}" msgids.
94346
94347 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94348
94349         From a suggestion by Bruno Haible.
94350         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94351         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94352         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94353         and mbstate_t, to a single-part test that simply defines mbstate_t.
94354         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94355         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94356
94357 2000-07-10  Jim Meyering  <meyering@lucent.com>
94358
94359         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94360
94361         * m4/gnu-source.m4: Output to confdefs.h directly.
94362         Suggestion from Akim Demaille.
94363
94364 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94365
94366         The old behavior of quoting `like this' doesn't look good with
94367         newer, ISO-style fonts.  See:
94368         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94369
94370         Instead, quote "like this" by default.  Let the translator
94371         tailor the locale-specific quoting behavior by providing
94372         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94373
94374         * lib/quotearg.c (N_): New macro.
94375         (gettext_default): New function.
94376         (quotearg_buffer_restyled): Use
94377         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94378         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94379
94380 2000-07-09  Jim Meyering  <meyering@lucent.com>
94381
94382         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94383         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94384
94385         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94386         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94387
94388 2000-07-09  Jim Meyering  <meyering@lucent.com>
94389
94390         * lib/Most files: Update copyright dates to include 2000.
94391
94392 2000-07-08  Jim Meyering  <meyering@lucent.com>
94393
94394         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94395         if not defined.
94396         (xgethostname): Remove now-unnecessary #ifdef.
94397         Move declaration of `err' into loop where it's used.
94398
94399 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94400         and Bruno Haible  <haible@clisp.cons.org>
94401
94402         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94403         only if the test for an object-type mbstate_t fails.  This
94404         prevents us from mistakenly reporting that mbstate_t is a
94405         system object type after we "#define mbstate_t int" to work
94406         around its lack.
94407
94408 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94409         and Bruno Haible  <haible@clisp.cons.org>
94410
94411         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94412
94413 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94414
94415         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94416         to strerror_r.
94417         Include <ctype.h> for use of isalpha.
94418
94419 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94420
94421         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94422         by allocating a larger buffer. Test the gethostname return value for
94423         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94424         returns an error and ENAMETOOLONG isn't defined.
94425
94426 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94427
94428         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94429         dimension.
94430
94431 2000-07-04  Jim Meyering  <meyering@lucent.com>
94432
94433         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94434         of the deprecated AC_CHECKING.
94435
94436 2000-07-04  Jim Meyering  <meyering@lucent.com>
94437
94438         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94439         Reported by Bruno Haible.
94440
94441 2000-07-04  Jim Meyering  <meyering@lucent.com>
94442
94443         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94444         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94445         lacks mbrtowc.
94446
94447 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94448
94449         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94450         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94451
94452 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94453         and Bruno Haible  <haible@clisp.cons.org>
94454
94455         * lib/quotearg.c (mbrtowc):
94456         Assign to *pwc, and return 1 only if result is nonzero.
94457         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94458
94459 2000-07-03  Jim Meyering  <meyering@lucent.com>
94460
94461         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94462
94463 2000-07-03  Jim Meyering  <meyering@lucent.com>
94464
94465         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94466         This is necessary to get a definition of e.g., UTMP_FILE on
94467         HP-UX 10.20.
94468         From Bob Proulx.
94469
94470 2000-07-02  Jim Meyering  <meyering@lucent.com>
94471
94472         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94473
94474         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94475         AC_LIBOBJ(function_name).
94476         * m4/chown.m4: Likewise.
94477         * m4/fnmatch.m4: Likewise.
94478         * m4/ftruncate.m4: Likewise.
94479         * m4/getgroups.m4: Likewise.
94480         * m4/getline.m4: Likewise.
94481         * m4/group-member.m4: Likewise.
94482         * m4/jm-macros.m4: Likewise.
94483         * m4/lstat.m4: Likewise.
94484         * m4/malloc.m4: Likewise.
94485         * m4/memcmp.m4: Likewise.
94486         * m4/nanosleep.m4: Likewise.
94487         * m4/putenv.m4: Likewise.
94488         * m4/realloc.m4: Likewise.
94489         * m4/regex.m4: Likewise.
94490         * m4/stat.m4: Likewise.
94491         * m4/strftime.m4: Likewise.
94492
94493 2000-07-02  Jim Meyering  <meyering@lucent.com>
94494
94495         * lib/quotearg.c (mbstate_t): Don't define here.
94496
94497 2000-07-02  Jim Meyering  <meyering@lucent.com>
94498
94499         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94500
94501 2000-07-01  Jim Meyering  <meyering@lucent.com>
94502
94503         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94504
94505 2000-07-01  Jim Meyering  <meyering@lucent.com>
94506
94507         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94508         problem.
94509
94510 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94511
94512         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94513         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94514
94515 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94516
94517         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94518         per change in ../m4/ls-mntd-fs.m4.
94519         (read_filesystem_list): Ignore symbolic links.
94520
94521 2000-06-29  Jim Meyering  <meyering@lucent.com>
94522
94523         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94524         for declaration of strcmp.
94525
94526         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94527
94528         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94529         Avoid warning by casting result to `char *' to remove `const'.
94530
94531 2000-06-28  Jim Meyering  <meyering@lucent.com>
94532
94533         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94534         included by quotearg.c, for which we perform this test.  From
94535         Bruno Haible.
94536
94537 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94538
94539         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94540         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94541         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94542
94543 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94544
94545         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94546
94547 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94548
94549         savedir now sets errno on failure and invokes xmalloc to get memory.
94550         Fix a couple of other minor bugs while we're at it.
94551
94552         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94553         (NAMLEN): Remove macro.
94554         (malloc, realloc): Remove decls.
94555         (stpcpy): Likewise.
94556         ("xalloc.h"): Include.
94557         (NAME_SIZE_DEFAULT): New macro.
94558         (savedir): Use xmalloc / xrealloc to allocate memory.
94559         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94560         Skip "" directory entries.
94561         Use strlen to calculate directory entry length, since the old method
94562         is rarely used these days and isn't worth supporting.
94563         Don't use a pointer after freeing it.
94564         Check for integer overflow when calculating allocation size.
94565         Use memcpy to copy entries, instead of stpcpy.
94566         Set errno properly when returning NULL.
94567         Check for readdir error.
94568
94569 2000-06-26  Jim Meyering  <meyering@lucent.com>
94570
94571         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94572
94573 2000-06-25  Jim Meyering  <meyering@lucent.com>
94574
94575         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94576         Linux header bug when _XOPEN_SOURCE is defined to 500.
94577
94578 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94579
94580         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94581         deficiency.
94582
94583 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94584
94585         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94586         Include xalloc.h.
94587         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94588
94589 2000-06-24  Jim Meyering  <meyering@lucent.com>
94590
94591         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94592         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94593         for which strerror does return char*, but which lacks a conveniently
94594         accessible declaration of the function.  If the compile-test says
94595         strerror_r doesn't work, then resort to a `run'-test that works on
94596         BeOS and segfaults on DEC Unix.
94597
94598 2000-06-24  Jim Meyering  <meyering@lucent.com>
94599
94600         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94601
94602 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94603
94604         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94605         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94606
94607 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94608
94609         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94610         (mbrtowc, mbstate_t): Define substitutes if
94611         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94612         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94613         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94614
94615 2000-06-23  Jim Meyering  <meyering@lucent.com>
94616
94617         * m4/afs.m4: Add missing AC_MSG_RESULT.
94618         Reported by Bruno Haible.
94619
94620         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94621         Suggestion from Bruno Haible.
94622
94623 2000-06-23  Jim Meyering  <meyering@lucent.com>
94624
94625         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94626
94627 2000-06-21  Jim Meyering  <meyering@lucent.com>
94628
94629         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94630
94631 2000-06-21  Jim Meyering  <meyering@lucent.com>
94632
94633         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94634         (noinst_HEADERS): Add getstr.h.
94635
94636         * lib/getline.c (getstr): Move into a separate file.
94637         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94638         the following changes: new parameter, delim2; both delim[12]
94639         parameters have type `int', not `char'.  The latter would lose
94640         with 8-bit delimiters.
94641         * lib/getstr.h: New file.
94642
94643 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94644
94645         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94646         than 1024, return a memory chunk of least possible size, instead
94647         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94648         Use free/xmalloc instead of xrealloc to avoid copying for very long
94649         paths.
94650
94651 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94652
94653         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94654         the empty string.
94655
94656 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94657
94658         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94659         address, not strdup.  Include <stdlib.h> and don't declare free().
94660
94661 2000-06-19  Jim Meyering  <meyering@lucent.com>
94662
94663         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94664
94665 2000-06-18  Jim Meyering  <meyering@lucent.com>
94666
94667         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94668
94669         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94670         `checking whether...' message to be consistent with that of the
94671         lstat test.
94672
94673 2000-06-18  Jim Meyering  <meyering@lucent.com>
94674
94675         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94676         Besides, these days every porting target provides a mkdir function.
94677
94678         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94679         needed. (this snippet comes from src/system.h).
94680
94681 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94682
94683         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94684
94685 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94686
94687         * lib/human.c (adjust_value): New function.
94688         (human_readable_inexact): Apply rounding style even when
94689         printing approximate values.
94690
94691 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94692
94693         * lib/human.c (human_readable_inexact): Allow an input block
94694         size that is not a multiple of the output block size, and vice versa.
94695         Reported by Piergiorgio Sartor.
94696
94697 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94698
94699         * lib/getdate.y (get_date): Apply relative times after time
94700         zone indicator, not before.  Reported by Todd A. Jacobs.
94701
94702 2000-06-13  Jim Meyering  <meyering@lucent.com>
94703
94704         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94705
94706         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94707
94708 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94709
94710         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94711
94712 2000-06-12  Jim Meyering  <meyering@lucent.com>
94713
94714         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94715         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94716         optional argument.
94717         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94718         the optional argument, `lib'.
94719
94720 2000-06-08  Jim Meyering  <meyering@lucent.com>
94721
94722         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94723
94724 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94725
94726         Rewrite largefile configuration so that we don't need to run
94727         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94728         AC_CANONICAL_HOST in configure.in -- jmm]
94729
94730         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94731         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94732         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94733         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94734         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94735         All uses changed.
94736         Instead of inspecting the output of getconf, try to compile the
94737         test program without and with the macro definition.
94738         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94739         for getconf.  Instead, check for the needed flags by compiling
94740         test programs.
94741
94742 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94743
94744         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94745
94746 2000-06-04  Jim Meyering  <meyering@lucent.com>
94747
94748         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94749         SunOS 4.1.4 for which gid_t is an unsigned type.
94750
94751 2000-06-03  Jim Meyering  <meyering@lucent.com>
94752
94753         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94754         now that autoconf requires that.
94755
94756         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94757         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94758         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94759
94760 2000-06-03  Jim Meyering  <meyering@lucent.com>
94761
94762         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94763
94764 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94765
94766         * m4/glibc21.m4: New file.
94767         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94768
94769 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94770
94771         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94772         newer, don't install charset.alias.
94773         * lib/config.charset: Change the Linux/glibc rules so they become empty
94774         on glibc-2.1 or newer.
94775
94776 2000-06-02  Jim Meyering  <meyering@lucent.com>
94777
94778         * lib/mountlist.c: Back out last change.  Instead, do this...
94779         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94780         me_dummy member using the same `ignore'-testing code.
94781         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94782         fs_type strings.
94783         From Mark D. Roth.
94784
94785 2000-05-29  Jim Meyering  <meyering@lucent.com>
94786
94787         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94788         mounts with the `ignore' attribute.  Based on a patch from
94789         Mark D. Roth.
94790
94791 2000-05-28  Jim Meyering  <meyering@lucent.com>
94792
94793         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94794         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94795         * m4/stat.m4: Likewise.
94796         * m4/lstat.m4: Likewise.
94797         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94798
94799         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94800         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94801
94802 2000-05-26  Jim Meyering  <meyering@lucent.com>
94803
94804         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94805
94806 2000-05-24  Jim Meyering  <meyering@lucent.com>
94807
94808         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94809         autoconf requires that.
94810         * m4/lib-check.m4: Likewise.
94811         * m4/jm-macros.m4: Likewise.
94812         * m4/strftime.m4: Likewise.
94813
94814         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94815         AC_CHECK_DECLS, now that autoconf requires that.
94816
94817 2000-05-22  Jim Meyering  <meyering@lucent.com>
94818
94819         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94820         * m4/lstat.m4: Likewise.
94821
94822 2000-05-22  Jim Meyering  <meyering@lucent.com>
94823
94824         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94825
94826 2000-05-20  Jim Meyering  <meyering@lucent.com>
94827
94828         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94829         (jm_PREREQ): Use it.
94830
94831 2000-05-18  Jim Meyering  <meyering@lucent.com>
94832
94833         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94834         back, too, since it may have been modified by allocate_entry.
94835         (hash_delete): Rewrite to use neither the assignment operator
94836         nor the comma operator in an if-expression.
94837
94838 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94839
94840         * lib/closeout.c:
94841         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94842         Remove; no longer needed.
94843         "quotearg.h": Add include.
94844         (file_name): Do not bother to explicitly initialize to NULL; it's less
94845         efficient on some hosts.
94846         (close_stdout_status): Remove test as to whether stdout was already
94847         closed; it breaks for the case "echo x | sort >&-".
94848         Quote file name colons.
94849         Do not assume that _("write error") lacks format strings.
94850
94851 2000-05-15  Jim Meyering  <meyering@lucent.com>
94852
94853         * lib/version-etc.c (version_etc_copyright): Update the copyright
94854         string used in all --version output.
94855
94856 2000-05-14  Jim Meyering  <meyering@lucent.com>
94857
94858         * lib/closeout.c (close_stdout_set_file_name): New function.
94859         (close_stdout_status): Use new file-scoped global.
94860         Return right away if fstat says the stdout file descriptor is invalid.
94861         * lib/closeout.h (close_stdout_set_file_name): Declare.
94862
94863 2000-05-10  Jim Meyering  <meyering@lucent.com>
94864
94865         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94866         (close_stdout_set_status): New function.
94867         * lib/closeout.h (close_stdout_set_status): Declare.
94868
94869 2000-05-09  Jim Meyering  <meyering@lucent.com>
94870
94871         * m4/gettext.m4: Rename this...
94872         * m4/libintl.m4: ...to this.
94873
94874 2000-05-08  Jim Meyering  <meyering@lucent.com>
94875
94876         * lib/long-options.c: Don't include closeout.h.
94877         (parse_long_options): Don't call close_stdout for --version.
94878
94879 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94880
94881         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94882         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94883         2.1.3 bug.  This avoids a clash when files like regex.c define
94884         _GNU_SOURCE.
94885
94886 2000-05-06  Jim Meyering  <meyering@lucent.com>
94887
94888         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94889         (AC_REPLACE_FUNCS): Add strnlen.
94890
94891         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94892         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94893
94894         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94895         AC_SEARCH_LIBS call for nanosleep.
94896         (LIB_NANOSLEEP): Set and AC_SUBST.
94897
94898 2000-05-06  Jim Meyering  <meyering@lucent.com>
94899
94900         * lib/strnlen.c: Undefine __strnlen and strnlen.
94901         [!weak_alias]: Define __strnlen to strnlen.
94902
94903         * lib/atexit.c: New file, from libiberty.
94904
94905 2000-05-06  Jim Meyering  <meyering@lucent.com>
94906
94907         * lib/closeout.c (close_stdout_status): Also check for errors on the
94908         stderr stream.
94909
94910 2000-05-05  Jim Meyering  <meyering@lucent.com>
94911
94912         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94913         AC_SEARCH_LIBS call for clock_gettime.
94914         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94915
94916         * m4/search-libs.m4: Update from autoconf.
94917
94918         su doesn't work on Solaris 2.6.
94919         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94920         <shadow.h>.  Reported by Dragos Harabor.
94921
94922 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94923
94924         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94925         memcpy instead of xmalloc, xrealloc, path_concat.
94926         (locale_charset): Treat empty environment variables as absent.
94927         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94928
94929 2000-05-04  Jim Meyering  <meyering@lucent.com>
94930
94931         * lib/getopt.c: Update from glibc.
94932         * lib/obstack.c: Likewise.
94933         * lib/obstack.h: Likewise.
94934         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94935         file
94936
94937         * lib/regex.h: Likewise.
94938         * lib/strndup.c: Likewise.
94939         * lib/strnlen.c: New file, from glibc.
94940
94941 2000-05-03  Jim Meyering  <meyering@lucent.com>
94942
94943         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94944
94945 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94946
94947         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94948         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94949         compile-time test, rather than inspecting host and OS, to
94950         decide whether to define _LARGEFILE_SOURCE.
94951
94952 2000-05-01  Jim Meyering  <meyering@lucent.com>
94953
94954         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94955
94956         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94957         Based on a patch from Bruno Haible.
94958
94959 2000-05-01  Jim Meyering  <meyering@lucent.com>
94960
94961         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94962
94963 2000-04-29  Jim Meyering  <meyering@lucent.com>
94964
94965         * lib/path-concat.c: Declare strdup only if it's not defined.
94966         * lib/canon-host.c: Likewise.
94967
94968 2000-04-28  Jim Meyering  <meyering@lucent.com>
94969
94970         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94971         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94972         is included first, then limits.h is included by locale.h by libintl.h.
94973         From John David Anglin.
94974
94975 2000-04-25  Jim Meyering  <meyering@lucent.com>
94976
94977         * lib/makepath.c (S_IRWXUGO): Define.
94978         (make_path): Always perform explicit chmod if MODE specifies any
94979         of the `special' permission bits.  Prompted by a bug report against
94980         install from Mate Wierdl and Joost van Baal.
94981
94982 2000-04-18  Jim Meyering  <meyering@lucent.com>
94983
94984         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94985         (jm_PREREQ): Use it.
94986
94987 2000-04-18  Jim Meyering  <meyering@lucent.com>
94988
94989         * lib/README: New file.
94990
94991         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94992         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94993
94994 2000-04-17  Jim Meyering  <meyering@lucent.com>
94995
94996         Get it right :-)
94997         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94998         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94999         Suggestion from Akim Demaille.
95000
95001 2000-04-17  Jim Meyering  <meyering@lucent.com>
95002
95003         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
95004         the definition of it to rpl_strftime also defined-away the system's
95005         declaration.
95006
95007 2000-04-15  Jim Meyering  <meyering@lucent.com>
95008
95009         Use `C' to denote so-called `contiguous' files, the same way
95010         that tar does.
95011         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
95012         (ftypelet): Use S_ISCTG.
95013         From Michael Deutschmann.
95014
95015 2000-04-14  Jim Meyering  <meyering@lucent.com>
95016
95017         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
95018         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
95019         clobbered.
95020
95021 2000-04-14  Jim Meyering  <meyering@lucent.com>
95022
95023         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
95024
95025 2000-04-13  Jim Meyering  <meyering@lucent.com>
95026
95027         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
95028         AH_VERBATIM to insert required #ifndef into config.h.in.
95029         Suggestion from Akim Demaille.
95030
95031 2000-04-12  Jim Meyering  <meyering@lucent.com>
95032
95033         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
95034         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
95035         Christian Krackowizer.
95036
95037         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
95038         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
95039         (AC_SYS_LARGEFILE): Require.
95040         (AM_C_PROTOTYPES): Require.
95041
95042 2000-04-08  Jim Meyering  <meyering@lucent.com>
95043
95044         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
95045         names don't conflict.  Reported by Eli Zaretskii.
95046
95047 2000-04-07  Jim Meyering  <meyering@lucent.com>
95048
95049         * lib/putenv.c: Move inclusion of errno.h so it follows that of
95050         sys/types.h, to work around system header problems on AIX 3.2.5.
95051         From Bruno Haible.
95052
95053 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
95054
95055         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
95056         bug.  Deal with the different error behavior of Irix iconv.
95057
95058 2000-04-05  Paul Eggert  <eggert@twinsun.com>
95059
95060         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
95061         IRIX if the installer said otherwise.
95062
95063 2000-04-05  Jim Meyering  <meyering@lucent.com>
95064
95065         Portability tweaks required for ultrix4.3.
95066         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
95067         (jm_CHECK_DECLS): Add getutent to the list of functions.
95068         (_jm_DECL_HEADERS): Add utmpx.h.
95069         From John David Anglin.
95070
95071         * m4/strftime.m4: Back out the 2000-04-02 change.
95072         Instead of that change, simply undefine putenv in the test program.
95073
95074 2000-04-05  Jim Meyering  <meyering@lucent.com>
95075
95076         Portability tweaks required for ultrix4.3.
95077         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
95078         getutent.
95079         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
95080         * lib/canon-host.c: Declare strdup.
95081         * lib/path-concat.c: Likewise.
95082         From John David Anglin.
95083
95084 2000-04-04  Jim Meyering  <meyering@lucent.com>
95085
95086         Be more DOS 8.3-friendly.
95087         * lib/ref-add.sin: Renamed from ref-add.sed.in.
95088         * lib/ref-del.sin: Renamed from ref-del.sed.in.
95089         * lib/Makefile.am: Reflect renaming.
95090         Reported by Eli Zaretskii.
95091
95092         Use a temporary file name that won't clash with `charset.alias'
95093         in the DOS 8.3 name space.
95094         * lib/Makefile.am (charset_tmp): Define.
95095         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
95096         (uninstall-local): Likewise.
95097         Reported by Eli Zaretskii.
95098
95099 2000-04-03  Jim Meyering  <meyering@lucent.com>
95100
95101         * m4/gettext.m4: Fix typo in comment.
95102
95103         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
95104         textutils/configure.in).  Suggestion from Paul Eggert.
95105         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
95106
95107 2000-04-02  Paul Eggert  <eggert@twinsun.com>
95108
95109         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
95110         variable in the shell rather than using putenv, which isn't
95111         portable.  This avoids the configure-time inter-test dependency
95112         on the potentially-renamed putenv function.
95113
95114 2000-03-30  Paul Eggert  <eggert@twinsun.com>
95115
95116         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
95117         before checking struct stat.st_blksize, so that
95118         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
95119
95120 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95121
95122         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
95123         since strftime.c uses HAVE_STRFTIME to decide whether to use
95124         the underlying strftime.
95125
95126 2000-03-29  Paul Eggert  <eggert@twinsun.com>
95127
95128         * lib/time/strftime.c (my_strftime): Make sure we call the system
95129         strftime, not ourselves, when invoking the underlying strftime.
95130
95131 2000-03-24  Jim Meyering  <meyering@lucent.com>
95132
95133         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
95134         (charset_alias): Define.
95135         (install-exec-local): Factor out common code.
95136         (uninstall-local): Split lines longer than 80.
95137         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
95138         (SUFFIXES): Define.
95139         (.sed.in.sed): New rule.  Don't redirect directly to $@.
95140         (CLEANFILES): Add ref-add.sed and ref-del.sed.
95141
95142 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
95143
95144         * lib/config.charset: Output a line containing "Packages using this
95145         file".
95146         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
95147         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
95148         ref-del.sed): New rules.
95149
95150 2000-03-17  Jim Meyering  <meyering@lucent.com>
95151
95152         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
95153         Otherwise, include <strings.h>
95154
95155 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
95156
95157         * lib/unicodeio.c (utf8_wctomb): New function.
95158         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
95159         format instead of in UCS-4 with platform dependent endianness.
95160
95161 2000-03-10  Jim Meyering  <meyering@lucent.com>
95162
95163         * m4/lib-check.m4: Look for getspnam in -lgen, too.
95164         From Marco Franzen.
95165
95166 2000-03-07  Paul Eggert  <eggert@twinsun.com>
95167
95168         * lib/savedir.c (savedir): Work even if directory size is
95169         negative; this can happen with some screwy NFS configurations.
95170
95171 2000-03-06  Jim Meyering  <meyering@lucent.com>
95172
95173         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
95174         if it's NULL (because we ran out of memory).  From Bruno Haible.
95175
95176 2000-03-05  Jim Meyering  <meyering@lucent.com>
95177
95178         * lib/localcharset.c ("path-concat.h"): Include.
95179         (get_charset_aliases): Use path_concat instead of ANSI string
95180         concatenation.
95181
95182         * lib/unicodeio.h (PARAMS): Define.
95183         Use it to guard prototype.
95184
95185 2000-03-04  Jim Meyering  <meyering@lucent.com>
95186
95187         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
95188         for lib/localcharset.c.
95189
95190 2000-03-04  Jim Meyering  <meyering@lucent.com>
95191
95192         * lib/Makefile.am (install-exec-local): Create $(libdir) before
95193         installing into it.
95194         (uninstall-local): Uncomment this rule so `make distcheck' works
95195         once again.
95196
95197         * lib/unicodeio.c (<errno.h>): Include it.
95198         (errno): Declare if not defined.
95199
95200         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
95201
95202         * lib/config.charset: New version, incorporating remarks from a linux
95203         i18n mailing list.  From Bruno Haible.
95204
95205 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
95206
95207         * m4/codeset.m4: New file.
95208         * m4/iconv.m4: New file.
95209         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
95210
95211 2000-03-03  Jim Meyering  <meyering@lucent.com>
95212
95213         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
95214
95215 2000-03-02  Jim Meyering  <meyering@lucent.com>
95216
95217         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
95218         the messages come out on separate lines.
95219
95220         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
95221         rather than jm_CHECK_DECLARATIONS.
95222         * m4/decl.m4: Remove now-unused file.
95223
95224         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
95225         geteuid.
95226
95227 2000-03-02  Jim Meyering  <meyering@lucent.com>
95228
95229         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
95230
95231 2000-03-01  Jim Meyering  <meyering@lucent.com>
95232
95233         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
95234         * lib/unicodeio.c: Likewise.
95235
95236 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
95237
95238         * lib/config.charset: New file.
95239         * lib/localcharset.c: New file.
95240         * lib/unicodeio.h, lib/unicodeio.c: New files.
95241         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
95242         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
95243         (noinst_HEADERS): Add unicodeio.h.
95244         (all-local, install-exec-local, charset.alias): New targets.
95245
95246 2000-02-28  Paul Eggert  <eggert@twinsun.com>
95247
95248         * lib/quotearg.c (ALERT_CHAR): New macro.
95249         (quotearg_buffer_restyled): Use it.
95250
95251 2000-02-27  Jim Meyering  <meyering@lucent.com>
95252
95253         * m4/check-decl.m4: Add getenv to the list.
95254
95255 2000-02-27  Jim Meyering  <meyering@lucent.com>
95256
95257         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
95258         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
95259
95260         * lib/backupfile.c: Guard inclusion of stdlib.h with
95261         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
95262         Declare malloc if needed.
95263
95264         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
95265         `#ifndef HAVE_DECL..'
95266         now that autoconf always defines the HAVE_DECL_ symbols.
95267         * lib/human.c: Likewise.
95268         * lib/same.c: Likewise.
95269         * lib/strtoumax.c: Likewise.
95270
95271         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
95272         declaration check was not run.
95273         * lib/hash.c: Likewise.
95274         * lib/human.c: Likewise.
95275         * lib/same.c: Likewise.
95276         * lib/strtoumax.c: Likewise.
95277
95278         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
95279         `.', then first look up the entire `.'-containing string as a login
95280         name.
95281
95282 2000-02-23  Jim Meyering  <meyering@lucent.com>
95283
95284         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
95285         in place of my hack.
95286
95287 2000-02-18  Paul Eggert  <eggert@twinsun.com>
95288
95289         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
95290         (textint): New typedef.
95291         (parser_control): Member year changed from int to textint.
95292         All uses changed.
95293         (YYSTYPE): Removed; replaced by %union with int and textint members.
95294         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
95295         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
95296         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
95297         (tSNUMBER, tUNUMBER): Now of type <textintval>.
95298         (date, number, to_year): Use width of number in digits, not its value,
95299         to determine whether it's a 2-digit year, or a 2-digit time.
95300         (yylex): Store number of digits of numeric tokens.
95301         Reported by John Kendall.
95302
95303         (parser_control): Changed from struct parser_control to typedef (for
95304         consistency).  All uses changed.
95305
95306         (tID): Removed; not used.
95307         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
95308
95309 2000-02-14  Paul Eggert  <eggert@twinsun.com>
95310
95311         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95312         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95313
95314 2000-02-12  Jim Meyering  <meyering@lucent.com>
95315
95316         * lib/userspec.c (ISDIGIT): Define it.
95317         (isdigit): Remove definition.
95318         (is_number): Use ISDIGIT, not isdigit.
95319         <libintl.h>: Include.
95320         (_ and N_): Define.
95321         (parse_user_spec): Mark translatable strings.
95322
95323 2000-02-10  Jim Meyering  <meyering@lucent.com>
95324
95325         With these changes, nanosleep.[ch] are finally enough like the other
95326         lib/* replacement files to compile on a few more losing systems.
95327
95328         * lib/nanosleep.h: Don't include config.h.
95329         Remove prototype from declaration of nanosleep.
95330         (PARAMS): Remove now-unneeded definition.
95331         * lib/nanosleep.c: #undef nanosleep.
95332         (rpl_nanosleep): Rename from nanosleep.
95333
95334 2000-02-10  Jim Meyering  <meyering@lucent.com>
95335
95336         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95337         gnu_nanosleep to rpl_nanosleep.
95338
95339 2000-02-09  Jim Meyering  <meyering@lucent.com>
95340
95341         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95342         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95343
95344 2000-02-08  Akim Demaille  <akim@epita.fr>
95345
95346         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95347         `[' and `]' and remove uses of `changequote'.
95348         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95349         (AC_SYS_LARGEFILE): Likewise.
95350         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95351         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95352         of changequote.
95353         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95354         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95355         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95356         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95357
95358 2000-02-05  Jim Meyering  <meyering@lucent.com>
95359
95360         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95361         Remove explicit use of AC_HEADER_TIME.  It is required by
95362         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95363         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95364         in autoconf whereby the expansion of the latter ended up preceding
95365         the expansion of its prerequisite, AC_HEADER_TIME.
95366         Reported by Volker Borchert.
95367
95368 2000-02-03  Jim Meyering  <meyering@lucent.com>
95369
95370         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95371
95372 2000-02-03  Jim Meyering  <meyering@lucent.com>
95373
95374         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95375         rather than with `#if HAVE_UTMPNAME'.
95376
95377 2000-02-02  Jim Meyering  <meyering@lucent.com>
95378
95379         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95380         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95381         Reported by Eli Zaretskii.
95382
95383 2000-02-01  Jim Meyering  <meyering@lucent.com>
95384
95385         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95386
95387 2000-01-31  Jim Meyering  <meyering@lucent.com>
95388
95389         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95390         functions.  Add the time.h and sys/time.h headers along with the
95391         AC_REQUIRE'ment of AC_HEADER_TIME.
95392
95393 2000-01-31  Jim Meyering  <meyering@lucent.com>
95394
95395         * lib/nanosleep.h (nanosleep): Guard declaration with
95396         `#if ! HAVE_DECL_NANOSLEEP'.
95397         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95398         the declaration in that vendor's sys/timers.h.
95399         Reported by Christian Krackowizer.
95400
95401         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95402         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95403         (ISPRINT): Likewise.
95404         Reported by Tom Tromey.
95405
95406 2000-01-30  Jim Meyering  <meyering@lucent.com>
95407
95408         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95409
95410         * m4/prereq.m4 (utmp_includes): Define.
95411         Check for ut_user and ut_name members in both struct utmpx
95412         and struct utmp.
95413
95414 2000-01-30  Jim Meyering  <meyering@lucent.com>
95415
95416         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95417         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95418         header files where only utmpx.ut_user is declared.
95419
95420         * lib/readutmp.h (UT_USER): Define.
95421
95422 2000-01-29  Jim Meyering  <meyering@lucent.com>
95423
95424         * m4/lib-check.m4: New file containing library-related checks from
95425         fileutils and sh-utils (textutils had none).
95426
95427 2000-01-28  Jim Meyering  <meyering@lucent.com>
95428
95429         * m4/perl.m4: Change format of warning message to look more like that
95430         from the missing script.  Suggestion from François Pinard.
95431
95432 2000-01-25  Jim Meyering  <meyering@lucent.com>
95433
95434         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95435         well as time.h in the compile check.
95436         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95437         Fix typo in cross-compiling case: s/yes/no/.
95438
95439 2000-01-23  Jim Meyering  <meyering@lucent.com>
95440
95441         * m4/jm-macros.m4: Move df-related tests here from
95442         fileutils/configure.in
95443
95444         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95445         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95446
95447         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95448         s/space/ac_fsusage_space/.
95449         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95450
95451         * m4/ftruncate.m4: New file (derived from part of
95452         fileutils/configure.in).
95453         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95454         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95455
95456         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95457         AC_SUBST these here, rather than just in sh-util/configure.in, so
95458         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95459         all the same.
95460         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95461         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95462         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95463         (AC_SUBST(POW_LIBM)): Likewise.
95464         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95465
95466 2000-01-23  Jim Meyering  <meyering@lucent.com>
95467
95468         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95469         obstack.c.
95470
95471 2000-01-22  Jim Meyering  <meyering@lucent.com>
95472
95473         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95474
95475         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95476
95477         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95478         configure.in
95479         (AC_CHECK_HEADERS): Likewise for sh-utils.
95480         (AC_CHECK_HEADERS): Likewise for textutils.
95481         Merge the three lists of headers.
95482
95483         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95484         from fileutils' configure.in.
95485
95486         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95487         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95488         check-decl.m4.
95489
95490         * m4/check-decl.m4: Use #if rather than #ifdef.
95491         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95492         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95493         (_jm_DECL_HEADERS): Define new function.
95494         (jm_CHECK_DECLARATIONS): Require it.
95495
95496 2000-01-22  Jim Meyering  <meyering@lucent.com>
95497
95498         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95499         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95500         Required for some AIX systems.  Reported by Christian Krackowizer.
95501         [TESTING] (main): New function.
95502
95503         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95504         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95505         letters.
95506
95507         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95508         iswprint.
95509
95510         * lib/strverscmp.c (ISDIGIT): Define.
95511         (strverscmp): Use ISDIGIT, not isdigit.
95512
95513 2000-01-19  Jim Meyering  <meyering@lucent.com>
95514
95515         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95516         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95517         defines `struct timespec' in <sys/time.h>
95518
95519         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95520         Thanks to Akim for explaining.
95521
95522 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95523
95524         * lib/nanosleep.c (nanosleep):
95525         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95526         POSIX.1 doesn't require SA_INTERRUPT and some systems
95527         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95528         it's been part of POSIX.1 since day 1 (in 1988).
95529
95530 2000-01-17  Jim Meyering  <meyering@lucent.com>
95531
95532         * lib/interlock: Remove unused file.  Reported by François Pinard.
95533
95534 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95535
95536         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95537         alert, backslash, formfeed, and vertical tab unnecessarily in
95538         shell quoting style.
95539
95540 2000-01-16  Jim Meyering  <meyering@lucent.com>
95541
95542         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95543         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95544         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95545         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95546
95547 2000-01-16  Jim Meyering  <meyering@lucent.com>
95548
95549         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95550         because the latter didn't work.
95551
95552 2000-01-15  Jim Meyering  <meyering@lucent.com>
95553
95554         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95555         (AC_REPLACE_FUNCS): Add memcpy and memset.
95556         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95557         Add strpbrk.
95558         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95559
95560 2000-01-12  Jim Meyering  <meyering@lucent.com>
95561
95562         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95563         (jm_PREREQ): Use it.
95564         (jm_PREREQ_READUTMP): New macro.
95565         (jm_PREREQ): Use it.
95566
95567 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95568
95569         Quote multibyte characters correctly.
95570         * m4/c-bs-a.m4: New file.
95571         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95572         (jm_PREREQ): Use it.
95573
95574 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95575
95576         * m4/uintmax_t.m4: Port to autoconf 2.13.
95577
95578 2000-01-08  Jim Meyering  <meyering@ascend.com>
95579
95580         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95581         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95582
95583 2000-01-04  Jim Meyering  <meyering@ascend.com>
95584
95585         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95586         jm_STRUCT_DIRENT_D_TYPE.
95587         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95588         jm_STRUCT_DIRENT_D_INO.
95589         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95590         jm_STRUCT_UTIMBUF.
95591         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95592         renamings.
95593         * m4/utime.m4: Likewise.
95594
95595         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95596         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95597
95598 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95599
95600         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95601         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95602
95603 2000-01-02  Jim Meyering  <meyering@ascend.com>
95604
95605         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95606         remember if this is necessary.
95607
95608 1999-12-26  Jim Meyering  <meyering@ascend.com>
95609
95610         * m4/jm-macros.m4: Use it here.
95611         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95612
95613 1999-12-23  Jim Meyering  <meyering@ascend.com>
95614
95615         * m4/jm-macros.m4: Check for clock_gettime (moved from
95616         fileutils/configure.in)
95617         Check for gettimeofday.
95618
95619 1999-12-20  Jim Meyering  <meyering@ascend.com>
95620
95621         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95622         autoconf-2.14a-1999-12-20.
95623
95624 1999-12-19  Jim Meyering  <meyering@ascend.com>
95625
95626         * m4/lstat-slash.m4: New file.
95627         * m4/jm-macros.m4: Use the new macro:
95628         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95629
95630 1999-12-07  Jim Meyering  <meyering@ascend.com>
95631
95632         * m4/perl.m4: Require that File::Compare be available, too.
95633         Too many systems seem to lack it.
95634
95635         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95636         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95637
95638 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95639
95640         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95641         problem with the QNX 4.25 shell, which doesn't propagate exit
95642         status of failed commands inside shell assignments.
95643
95644 1999-11-17  Jim Meyering  <meyering@ascend.com>
95645
95646         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95647
95648 1999-11-07  Jim Meyering  <meyering@ascend.com>
95649
95650         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95651
95652 1999-11-06  Jim Meyering  <meyering@ascend.com>
95653
95654         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95655         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95656
95657 1999-11-05  Jim Meyering  <meyering@ascend.com>
95658
95659         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95660         configure.in of textutils, fileutils, and sh-utils into this one
95661         (shared between those packages) file.
95662         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95663         AC_STRUCT_ST_BLKSIZE.
95664
95665 1999-11-03  Jim Meyering  <meyering@ascend.com>
95666
95667         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95668         of AC_CHECK_TYPE checks includes unistd.h.
95669         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95670         Suggestion from Akim Demaille.
95671
95672 1999-10-30  Jim Meyering  <meyering@ascend.com>
95673
95674         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95675         m4-quoted string.
95676         * m4/ls-mntd-fs.m4: Likewise.
95677         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95678         * m4/jm-winsz1.m4: Likewise.
95679
95680         * m4/const.m4: Remove file, since the fix made it into the experimental
95681         version of autoconf.
95682         * m4/mktime.m4: Likewise.
95683
95684         * m4/check-type.m4: Remove file, now that the latest version of
95685         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95686
95687         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95688         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95689         AC_CHECK_TYPE.
95690
95691 1999-10-04  Jim Meyering  <meyering@ascend.com>
95692
95693         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95694
95695 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95696
95697         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95698         2.95.1 bug with HP-UX 10.20.
95699
95700 1999-09-17  Jim Meyering  <meyering@ascend.com>
95701
95702         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95703         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95704         due to missing strdup (against sh-utils-2.0).
95705
95706 1999-08-29  Jim Meyering  <meyering@ascend.com>
95707
95708         * m4/jm-macros.m4: Require jm_BISON.
95709         * m4/bison.m4: New file.
95710
95711 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95712
95713         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95714         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95715
95716 1999-08-05  Jim Meyering  <meyering@ascend.com>
95717
95718         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95719         to avoid conflicts with `conftest' on 8+3 filesystems.
95720         Suggestion from Eli Zaretskii.
95721
95722 1999-08-04  Jim Meyering  <meyering@ascend.com>
95723
95724         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95725         fileutils and sh-utils (textutils's getline test was inadequate).
95726         (AM_FUNC_GETLINE): Run this test.
95727         (AC_CHECK_FUNCS): Check for getdelim.
95728         Reported by Bob Proulx.
95729
95730 1999-08-02  Jim Meyering  <meyering@ascend.com>
95731
95732         * m4/jm-macros.m4: Add a comment.
95733
95734 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95735
95736         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95737         <inttypes.h> defines strtoumax as a macro (and not as a
95738         function).
95739
95740 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95741
95742         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95743         that we can shift, multiply and divide unsigned long long
95744         values; Ultrix cc can't do it.
95745
95746 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95747
95748         * m4/mktime.m4: New file, which is a preview of what should appear
95749         in the next public autoconf release.
95750
95751 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95752
95753         * m4/lfs.m4: Remove this file.
95754         * m4/largefile.m4: New file.  It contains the old contents of
95755         lfs.m4, except that all names with prefix AC_LFS have been
95756         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95757         compatible with future autoconf versions.  Also, some minor m4
95758         quoting problems have been fixed.
95759
95760 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95761
95762         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95763         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95764         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95765         and simplify the shell code.
95766
95767 1999-08-01  Jim Meyering  <meyering@ascend.com>
95768
95769         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95770         m4.
95771
95772 1999-07-20  Jim Meyering  <meyering@ascend.com>
95773
95774         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95775
95776 1999-07-15  Jim Meyering  <meyering@ascend.com>
95777
95778         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95779
95780 1999-05-22  Jim Meyering  <meyering@ascend.com>
95781
95782         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95783
95784 1999-05-20  Jim Meyering  <meyering@ascend.com>
95785
95786         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95787         Add a colon after each `then' in case $4 is empty.
95788
95789 1999-05-16  Jim Meyering  <meyering@ascend.com>
95790
95791         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95792
95793 1999-05-10  Jim Meyering  <meyering@ascend.com>
95794
95795         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95796
95797         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95798         AC_FUNC_MKTIME.
95799
95800 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95801
95802         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95803
95804 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95805
95806         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95807         not CPPFLAGS, so that linking works correctly in IRIX.
95808
95809 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95810
95811         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95812
95813 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95814
95815         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95816         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95817         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95818         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95819         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95820
95821         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95822
95823 1999-04-20  Jim Meyering  <meyering@ascend.com>
95824
95825         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95826         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95827         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95828
95829 1999-04-18  Jim Meyering  <meyering@ascend.com>
95830
95831         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95832         * m4/jm-macros.m4: Use it.
95833
95834 1999-04-06  Jim Meyering  <meyering@ascend.com>
95835
95836         * m4/strftime.m4: Remove test for %f.
95837
95838 1999-03-29  Jim Meyering  <meyering@ascend.com>
95839
95840         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95841         superset of the AC_TYPE_* checks in the textutils, fileutils,
95842         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95843         AC_TYPE_PID_T.
95844
95845 1999-03-28  Jim Meyering  <meyering@ascend.com>
95846
95847         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95848         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95849         replaced e.g., in the *.sh files of the sh-utils.
95850
95851 1999-03-20  Jim Meyering  <meyering@ascend.com>
95852
95853         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95854         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95855         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95856
95857 1999-03-19  Jim Meyering  <meyering@ascend.com>
95858
95859         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95860
95861 1999-03-12  Jim Meyering  <meyering@ascend.com>
95862
95863         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95864
95865 1999-03-07  Jim Meyering  <meyering@ascend.com>
95866
95867         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95868         declared.
95869
95870 1999-02-17  Jim Meyering  <meyering@ascend.com>
95871
95872         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95873         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95874
95875 1999-02-07  Jim Meyering  <meyering@ascend.com>
95876
95877         * m4/group-member.m4: New file -- extracted from sh-utils'
95878         configure.in.
95879
95880         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95881         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95882
95883 1999-02-06  Jim Meyering  <meyering@ascend.com>
95884
95885         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95886         * m4/fnmatch.m4: Likewise.
95887         * m4/getgroups.m4: Likewise.
95888         * m4/lstat.m4: Likewise.
95889         * m4/malloc.m4: Likewise.
95890         * m4/putenv.m4: Likewise.
95891         * m4/realloc.m4: Likewise.
95892         * m4/regex.m4: Likewise.
95893         * m4/stat.m4: Likewise.
95894         * m4/strftime.m4: Likewise.
95895         Suggestion from Alain Magloire.
95896
95897         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95898         * m4/fnmatch.m4: Likewise.
95899         * m4/getgroups.m4: Likewise.
95900         * m4/getline.m4: Likewise.
95901         * m4/lstat.m4: Likewise.
95902         * m4/malloc.m4: Likewise.
95903         * m4/memcmp.m4: Likewise.
95904         * m4/putenv.m4: Likewise.
95905         * m4/realloc.m4: Likewise.
95906         * m4/regex.m4: Likewise.
95907         * m4/stat.m4: Likewise.
95908         * m4/strftime.m4: Likewise.
95909         Suggestion from Alain Magloire.
95910
95911         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95912         an argument.
95913
95914         * m4/regex.m4: Add a run-time Test for proper operation of
95915         re_compile_pattern.
95916
95917 1999-01-31  Jim Meyering  <meyering@ascend.com>
95918
95919         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95920
95921 1999-01-30  Jim Meyering  <meyering@ascend.com>
95922
95923         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95924
95925         * m4/jm-mktime.m4: Make this a wrapper around the official
95926         AM_FUNC_MKTIME rather than my private copy, now that the official one
95927         is up to date.
95928         * m4/mktime.m4: Remove file.
95929
95930         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95931         * m4/uptime.m4: Likewise.
95932         * m4/uintmax_t.m4: Likewise.
95933
95934 1999-01-28  Jim Meyering  <meyering@ascend.com>
95935
95936         * m4/jm-macros.m4: Use jm_AFS.
95937         * m4/afs.m4: New file (from fileutils' configure.in).
95938
95939         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95940         * m4/chown.m4: Likewise.
95941         * m4/d-ino.m4: Likewise.
95942         * m4/d-type.m4: Likewise.
95943         * m4/fnmatch.m4: Likewise.
95944         * m4/getgroups.m4: Likewise.
95945         * m4/gettext.m4: Likewise.
95946         * m4/jm-mktime.m4: Likewise.
95947         * m4/jm-winsz2.m4: Likewise.
95948         * m4/lcmessage.m4: Likewise.
95949         * m4/ls-mntd-fs.m4: Likewise.
95950         * m4/malloc.m4: Likewise.
95951         * m4/memcmp.m4: Likewise.
95952         * m4/putenv.m4: Likewise.
95953         * m4/realloc.m4: Likewise.
95954         * m4/st_mtim.m4: Likewise.
95955         * m4/strftime.m4: Likewise.
95956
95957 1999-01-16  Jim Meyering  <meyering@ascend.com>
95958
95959         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95960         (ARGMATCH_DIE_DECL): Define.
95961
95962 1999-01-12  Jim Meyering  <meyering@ascend.com>
95963
95964         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95965         Reported by Lars Hecking.
95966
95967 1999-01-10  Jim Meyering  <meyering@ascend.com>
95968
95969         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95970         gross kludge.
95971         * m4/inttypes_h.m4: Likewise.
95972         * m4/lstat.m4: Likewise.
95973         * m4/malloc.m4: Likewise.
95974         * m4/readdir.m4: Likewise.
95975         * m4/realloc.m4: Likewise.
95976         * m4/st_dm_mode.m4: Likewise.
95977         * m4/stat.m4: Likewise.
95978         * m4/utimbuf.m4: Likewise.
95979         * m4/utimes.m4: Likewise.
95980
95981         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95982         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95983         comments in config.h.in are meaningful.
95984
95985         * m4/jm-macros.m4: Require autoconf-2.13 here.
95986
95987         * m4/regex.m4: By default, don't use the included regex.c on systems
95988         with glibc 2.  Suggestion from Uli Drepper.
95989
95990 1999-01-02  Jim Meyering  <meyering@ascend.com>
95991
95992         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95993
95994 1998-12-18  Jim Meyering  <meyering@ascend.com>
95995
95996         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95997         Based on a suggestion from Lars Hecking.
95998
95999 1998-11-16  Paul Eggert  <eggert@twinsun.com>
96000
96001         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
96002
96003 1998-11-16  Jim Meyering  <meyering@ascend.com>
96004
96005         * m4/lfs.m4: Double-quote the `uname...` expression.
96006
96007 1998-11-14  Jim Meyering  <meyering@ascend.com>
96008
96009         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
96010         * m4/stat.m4: Likewise.
96011
96012 1998-11-03  Jim Meyering  <meyering@ascend.com>
96013
96014         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
96015         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
96016
96017 1998-10-18  Jim Meyering  <meyering@ascend.com>
96018
96019         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
96020
96021 1998-10-17  Jim Meyering  <meyering@ascend.com>
96022
96023         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
96024         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
96025         calls for those previously hard-coded headers.  Instead, take a new
96026         parameter.
96027         (jm_CHECK_DECLARATIONS): Reflect interface change.
96028         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
96029         (jm_CHECK_DECL_LOCALTIME_R): New macro.
96030
96031         * m4/mktime.m4: Test for spring-forward gap before long-running test.
96032
96033 1998-10-14  Jim Meyering  <meyering@ascend.com>
96034
96035         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
96036         instead of "TZ=America/Vancouver".  From Paul Eggert.
96037
96038 1998-10-11  Jim Meyering  <meyering@ascend.com>
96039
96040         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
96041         This adds a test for a recently added compatibility fix for mktime.c.
96042         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
96043
96044 1998-09-27  Jim Meyering  <meyering@ascend.com>
96045
96046         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
96047
96048         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
96049         ../configure.in, including a change from Gordon Matzigkeit to allow
96050         cross-compiling for the Hurd.
96051
96052         * m4/glibc.m4: New file/macro to test for the GNU C Library
96053         versions 1 and 2.  From Gordon Matzigkeit.
96054         Indent.
96055
96056 1998-09-21  Jim Meyering  <meyering@ascend.com>
96057
96058         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
96059
96060 1998-08-18  Paul Eggert  <eggert@twinsun.com>
96061
96062         Port nanosecond-resolution times to UnixWare 2.1.2 and
96063         pedantic Solaris 2.6.
96064
96065         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
96066         AC_STRUCT_ST_MTIM.
96067         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
96068         Generate name of ns member, instead of just 1 or undef.
96069         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
96070
96071 1998-08-15  Jim Meyering  <meyering@ascend.com>
96072
96073         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
96074         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
96075         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
96076         instead of jm_TYPE_SSIZE_T.
96077
96078 1998-08-12  Jim Meyering  <meyering@ascend.com>
96079
96080         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
96081
96082 1998-08-02  Jim Meyering  <meyering@ascend.com>
96083
96084         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
96085         in acconfig.h manually.
96086
96087 1998-07-31  Paul Eggert  <eggert@twinsun.com>
96088
96089         * m4/st_mtim.m4: New file.
96090
96091 1998-07-28  Jim Meyering  <meyering@ascend.com>
96092
96093         * m4/utimes.m4: Undef stat.
96094
96095 1998-07-25  Jim Meyering  <meyering@ascend.com>
96096
96097         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
96098         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
96099
96100 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
96101
96102         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
96103         uid and gid actually remain unchanged.
96104
96105 1998-07-07  Jim Meyering  <meyering@ascend.com>
96106
96107         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
96108
96109 1998-07-04  Jim Meyering  <meyering@ascend.com>
96110
96111         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
96112         to prove that this macro can be used in packages without regex.c.
96113
96114 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
96115
96116         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
96117         is to be used.
96118
96119 1998-07-03  Jim Meyering  <meyering@ascend.com>
96120
96121         * m4/gettext.m4: Add -lintl if it's found to be necessary.
96122
96123         * m4/gettext.m4: New file -- from gettext-0.10.35.
96124         * m4/lcmessage.m4: Likewise.
96125         * m4/progtest.m4: Likewise.
96126
96127         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
96128         * m4/jm-macros.m4: Require the new macro.
96129
96130 1998-06-29  Jim Meyering  <meyering@ascend.com>
96131
96132         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
96133         for the definition of NGROUPS (used in a system header included
96134         by sys/mount.h).
96135
96136 1998-06-28  Jim Meyering  <meyering@ascend.com>
96137
96138         * m4/ls-mntd-fs.m4: New file.
96139         * m4/fstypename.m4: New file.
96140
96141         * m4/jm-macros.m4: Require the new macro.
96142         * m4/jm-glibc-io.m4: New file.
96143
96144 1998-05-19  Jim Meyering  <meyering@ascend.com>
96145
96146         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
96147         * m4/lchown.m4: New file.
96148
96149         * m4/Makefile.am.in: New file.
96150         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
96151
96152 1998-05-14  Jim Meyering  <meyering@ascend.com>
96153
96154         * m4/Makefile.am (EXTRA_DIST): Add them.
96155         * m4/jm-macros.m4: New file.
96156         * m4/utimbuf.m4: New file.
96157
96158 1998-05-12  Jim Meyering  <meyering@ascend.com>
96159
96160         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
96161
96162 1998-05-11  Jim Meyering  <meyering@ascend.com>
96163
96164         * m4/isc-posix.m4: New file.
96165
96166 1998-05-10  Jim Meyering  <meyering@ascend.com>
96167
96168         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
96169
96170 1998-05-09  Jim Meyering  <meyering@ascend.com>
96171
96172         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
96173         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
96174         with automake.
96175
96176         * m4/ssize_t.m4: New file.
96177         * m4/mktime.m4: Remove file -- the new automake has this now.
96178
96179 1998-04-26  Jim Meyering  <meyering@ascend.com>
96180
96181         * m4/assert.m4: New file.
96182         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
96183
96184 1998-04-05  Jim Meyering  <meyering@ascend.com>
96185
96186         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
96187         (jm_PREREQ): Use it here.
96188
96189 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
96190
96191         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
96192         in acconfig.h.
96193
96194 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
96195
96196         * m4/prereq.m4: New file.
96197         * m4/error.m4: New file.
96198         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
96199
96200 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
96201
96202         * m4/getline.m4: Don't set am_cv_func_working_getline before the
96203         cache-check for the same variable -- that defeated the purpose of
96204         the test; the test program was never run.  This was a problem only
96205         on systems with losing getline functions -- HP-UX 10.20 is one.
96206         Reported by Bjorn Helgaas.
96207
96208 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
96209
96210         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
96211
96212 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
96213
96214         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
96215
96216         * m4/const.m4: New file.  Use an initializer in this declaration
96217         typedef int charset[2]; const charset x;
96218         Reported by Bob Glickstein.
96219
96220 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
96221
96222         * m4/chown.m4: Fix reversed types on -1 args to chown.
96223         From Kaveh Ghazi.
96224
96225 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
96226
96227         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
96228         Add lseek and memchr.
96229
96230         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
96231         T.E.Dickey <dickey@clark.net> said that some older preprocessors
96232         have a 20-character limit on names.
96233
96234 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
96235
96236         * m4/inttypes_h.m4: New file.
96237         * m4/uintmax_t.m4: New file.
96238         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
96239
96240
96241         -----
96242
96243         Local Variables:
96244         coding: utf-8
96245         End:
96246
96247         Copyright (C) 1997-2012 Free Software Foundation, Inc.
96248
96249         Copying and distribution of this file, with or without
96250         modification, are permitted provided the copyright notice
96251         and this notice are preserved.